/**
 * Filename:	update.js
 * 
 * Javascript for the landing pages "Update 3.3" and "Update 4.0" subpages  
 * 
 * @version		given for each function block
 * @author		Tobias Preuss
 * @see			update33.css
 * 
 */


/* --- Landing page / How-To-Guide / Start ------------------------------------------------------ */

// jQuery starts here; needs include in global_frame_o2009.php
$(document).ready( function() {

	/**
	 * Landing page / How-To-Guide: Internal menu & hide/show action for the tutorials
	 * 
	 * @version 	02/11/09
	 * @autor		Tobias Preuss
	 * @see 		update33_howtoguide.php
	 */
	$num_guides = 6;
	for ( $index1=1; $index1<=$num_guides; $index1++) {
		$( '#howto'+$index1).hide();
		$( '#howtomenu'+$index1).bind( "click", function() {
			for ( $index2 = 1; $index2 <= $num_guides; $index2++) {
				$( '#howto' + $index2).hide();
				$( '#howtomenu' + $index2 + ' a').removeClass( 'menupointer');
			}
			$( '#' + $(this).attr( 'id') + ' a').addClass( 'menupointer');			
			$current_id = $(this).attr( 'id');
			$current_id_number = $current_id.substr( $current_id.length-1, $current_id.length);
			$( '#howto'+$current_id_number).show();
		});		
	} // eo for-loop
	$( '#howto1').show();
	$( '#howtomenu1 a').addClass( 'menupointer');
	
/* --- Landing page / How-To-Guide / End -------------------------------------------------------- */	



/* --- Landing page / Software update / Inline gallery / Start ---------------------------------- */

	/**
	 * jQuery SlideViewer 1.1
	 * 
	 * @source		http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html
	 * 
	 * @version 	03/26/09
	 * @autor		Tobias Preuss
	 * @see 		update33_newimprovements.php, update40_newimprovements.php, update40_howtoguide.php
	 * 
	 * I modified the script with an optional parameter 'additionalTextHeight' to be able to put 
	 * text under each image. Without the additional height the text is hidden because of the 
	 * overflow attribute!
	 * Example: 	$("div#minigallery_navigation").slideView(23); In this case 23 is the height for additional text.
	 */

	$(window).bind("load", function() {
		// Slide Viewers used in update page 3.3 / New improvements
	    $("div#minigallery_navigation").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 23);			 
	    $("div#minigallery_networksetup").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 40);
	    $("div#minigallery_maestro").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 40);
		// Slide Viewers used in update page 4.0 / New improvements
	    $("div#minigallery_keynavigation").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 40);
	    $("div#minigallery_searchfunction").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 23);
	    $("div#minigallery_playscreens").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 40);
	    $("div#minigallery_simplenetworkingsetup").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 23);
	    $("div#minigallery_systemstatus").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 60);
		// Slide Viewers used in update page 4.0 / How to guide
	    $("div#minigallery_howto_findmusic").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 40);
	    $("div#minigallery_howto_ratemusic").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 40);
	    $("div#minigallery_howto_createplaylists").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 23);
	    $("div#minigallery_howto_burnmusic").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 60);
	    $("div#minigallery_howto_internetradio").slideView({ 
	    	easeFunc: "easeInOutCubic", 
	    	easeTime: 1200 
		}, 90);
	}); 

/* --- Landing page / Software update / Inline gallery / End ------------------------------------ */



}); // eo jQuery








