// JavaScript Document
function mycarousel_initCallback(carousel) {
    jQuery('.jcarousel-control a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    });

    jQuery('.jcarousel-scroll select').bind('change', function() {
        carousel.options.scroll = jQuery.jcarousel.intval(this.options[this.selectedIndex].value);
        return false;
    });

    jQuery('#mycarousel-next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#mycarousel-prev').bind('click', function() {
        carousel.prev();
        return false;
    });
}
jQuery(document).ready(function() {
	jQuery('#mycarousel0').jcarousel({
        scroll: 1,
		animation: 1000
    });							
    jQuery('#mycarousel1').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel2').jcarousel({
        scroll: 1,
		animation: 1000	
    });
	jQuery('#mycarousel3').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel4').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel5').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel6').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel7').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel8').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel9').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel10').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel11').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel12').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel13').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel14').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel15').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel16').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel17').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel18').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel19').jcarousel({
        scroll: 1,
		animation: 1000
    });
	jQuery('#mycarousel20').jcarousel({
        scroll: 1,
		animation: 1000
    });
});

jQuery(document).ready(function() {

	// Hides all product nav carousels							
	
    $('.productNav').hide();
		
	// Adds arrow class to first brand on page load
	
	 $('.leftNav_RightButton:first').addClass('arrow');
	
	// loads correct carousel for each brand, hides all others
	
	$('.leftNav_RightButton').click(function(){
		$(this).addClass('arrow');
		$(this).siblings().removeClass('arrow');
	 });
	
	 $('body#WL_home #productNav_brand0').show();		
     $('body#WL_home .productSection').load('wheelchair_lifts/i_WL_generalInfo.html', function(){
		$f('productPlayer', 'swf/flowplayer-3.1.3.swf', {
		    clip: {
				autoPlay: true,
				scaling: 'orig'
			},
			plugins: {
  				controls: {
					timeBgColor: '#d2a564',
					sliderColor: '#663300',
					bufferGradient: 'none',
					backgroundGradient: 'none',
					borderRadius: '0px',
					bufferColor: '#ffffff',
					sliderGradient: 'none',
					progressGradient: 'medium',
					durationColor: '#ffffff',
					progressColor: '#d2a564',
					backgroundColor: '#ffffff',
					tooltipTextColor: '#ffffff',
					tooltipColor: '#663300',
					volumeSliderGradient: 'none',
					volumeSliderColor: '#663300',
					buttonOverColor: '#663300',
					timeColor: '#663300',
					buttonColor: '#d2a564',
					height: 24,
					opacity: 1.0,
				    autoHide: true,
					fullscreen: false,
					time: false,
					volume: false
		  	 }
			}, 
			canvas: {
				backgroundColor: '#ffffff',
				backgroundGradient: 'none'
				
			}
		});
	 });
	 
	 $('body#WL_commercial #productNav_brand1').show();		
 	 $('body#WL_commercial .productSection').load('wheelchair_lifts/i_WL_PorchLiftTG50.html');
	 
	 $('body#WL_lula #productNav_brand9').show();		
  	 $('body#WL_lula .productSection').load('wheelchair_lifts/i_WL_CemcoLULAElevator.html');
	 
	 $('body#WL_residential #productNav_brand8').show();		
  	 $('body#WL_residential .productSection').load('wheelchair_lifts/i_WL_PorchLiftRA.html');
	
        // product 1 = Porch Lift TG 50
        // product 2 = Porch Lift "S" (commercial)
        // product 3 = Enclosure Model Lifts
        // product 4 = 
        // product 5 = Prolift Voyager
        // product 6 = Carrier Lift
        // product 7 = Porch Lift Portable
        // product 8 = Porch Lift RA
        // product 9 = Cemco LU/LA Elevator
        // product 10 = Porch Lift "S" (residential)
    

	$('.product1').click(function(){
	    $('#productNav_brand1').show();
		$('#productNav_brand1').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftTG50.html');
	});
	$('.product2').click(function(){
	   $('#productNav_brand2').show();
		$('#productNav_brand2').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_C.html');
	});
	$('.product3').click(function(){
	    $('#productNav_brand3').show();
		$('#productNav_brand3').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftEML.html');
	});
	$('.product4').click(function(){
	   $('#productNav_brand4').show();
		$('#productNav_brand4').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftENCEnclosure.html');
	});
	$('.product5').click(function(){
	    $('#productNav_brand5').show();
		$('#productNav_brand5').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_ProLiftVoyager.html');
	});
	$('.product6').click(function(){
	    $('#productNav_brand6').show();
		$('#productNav_brand6').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_CarrierLift.html');
	});
	$('.product7').click(function(){
	    $('#productNav_brand7').show();
		$('#productNav_brand7').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftPortable.html');
	});
	$('.product8').click(function(){
	    $('#productNav_brand8').show();
		$('#productNav_brand8').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftRA.html');
	});
	$('.product9').click(function(){
	    $('#productNav_brand9').show();
		$('#productNav_brand9').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_CemcoLULAElevator.html');
	});
	$('.product10').click(function(){
	    $('#productNav_brand10').show();
		$('#productNav_brand10').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_R.html');
	});
	$('.product11').click(function(){
	   $('#productNav_brand11').show();
		$('#productNav_brand11').siblings().hide();
	});
	$('.product12').click(function(){
	    $('#productNav_brand12').show();
		$('#productNav_brand12').siblings().hide();
	});
	$('.product13').click(function(){
	    $('#productNav_brand13').show();
		$('#productNav_brand13').siblings().hide();
	});
	$('.product14').click(function(){
	    $('#productNav_brand14').show();
		$('#productNav_brand14').siblings().hide();
	});
	$('.product15').click(function(){
	   $('#productNav_brand15').show();
		$('#productNav_brand15').siblings().hide();
	});
	$('.product16').click(function(){
	    $('#productNav_brand16').show();
		$('#productNav_brand16').siblings().hide();
	});
	$('.product17').click(function(){
	    $('#productNav_brand17').show();
		$('#productNav_brand17').siblings().hide();
	});
	$('.product18').click(function(){
	   $('#productNav_brand18').show();
		$('#productNav_brand18').siblings().hide();
	});
	$('.product19').click(function(){
	    $('#productNav_brand19').show();
		$('#productNav_brand19').siblings().hide();
	});
	$('.product20').click(function(){
	    $('#productNav_brand20').show();
		$('#productNav_brand20').siblings().hide();
	});

// Loads outside html file when you click on product located on carousel. li id same as html page name.
    
// Porch Lift TG 50
    $('li#i_WL_PorchLiftTG50').click(function(){
		$('#productNav_brand1').show();
		$('#productNav_brand1').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftTG50.html');
	});
	$('li#i_WL_PorchLiftTG50_f1').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftTG50_f1.html');
	});
	$('li#i_WL_PorchLiftTG50_f2').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftTG50_f2.html');
	});
	$('li#i_WL_PorchLiftTG50_f3').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftTG50_f3.html');
	});
	$('li#i_WL_PorchLiftTG50_f4').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftTG50_f4.html');
	});
	$('li#i_WL_PorchLiftTG50_f5').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftTG50_f5.html');
	});

// Porch Lift S
	$('li#i_WL_PorchLiftS_C').click(function(){
		$('#productNav_brand2').show();
		$('#productNav_brand2').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_C.html');
	});
	$('li#i_WL_PorchLiftS_C_f1').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_C_f1.html');
	});
	$('li#i_WL_PorchLiftS_C_f2').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_C_f2.html');
	});
	$('li#i_WL_PorchLiftS_C_f3').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_C_f3.html');
	});
	$('li#i_WL_PorchLiftS_C_f4').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_C_f4.html');
	});
	$('li#i_WL_PorchLiftS_C_f5').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_C_f5.html');
	});
	
// Porch Lift EZE Enclosure	
	
	$('li#i_WL_PorchLiftEML').click(function(){
		$('#productNav_brand3').show();
		$('#productNav_brand3').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftEML.html');
	});
	$('li#i_WL_PorchLiftEML_f1').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftEML_f1.html');
	});
	$('li#i_WL_PorchLiftEML_f2').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftEML_f2.html');
	});
	$('li#i_WL_PorchLiftEML_f3').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftEML_f3.html');
	});
	$('li#i_WL_PorchLiftEML_f4').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftEML_f4.html');
	});
	$('li#i_WL_PorchLiftEML_f5').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftEML_f5.html');
	});
	$('li#i_WL_PorchLiftEML_f6').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftEML_f6.html');
	});
	$('li#i_WL_PorchLiftEML_f7').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftEML_f7.html');
	});
	
// Porch Lift ENC Enclosure	
	$('li#i_WL_PorchLiftENCEnclosure').click(function(){
		$('#productNav_brand4').show();
		$('#productNav_brand4').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftENCEnclosure.html');
	});
	$('li#i_WL_PorchLiftENCEnclosure_f1').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftENCEnclosure_f1.html');
	});
	$('li#i_WL_PorchLiftENCEnclosure_f2').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftENCEnclosure_f2.html');
	});
	$('li#i_WL_PorchLiftENCEnclosure_f3').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftENCEnclosure_f3.html');
	});
	$('li#i_WL_PorchLiftENCEnclosure_f4').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftENCEnclosure_f4.html');
	});
	$('li#i_WL_PorchLiftENCEnclosure_f5').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftENCEnclosure_f5.html');
	});
	
// Prolift Voyager	
	
	$('li#i_WL_ProLiftVoyager').click(function(){
		$('#productNav_brand5').show();
		$('#productNav_brand5').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_ProLiftVoyager.html');
	});
	$('li#i_WL_ProLiftVoyager_f1').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_ProLiftVoyager_f1.html');
	});
	$('li#i_WL_ProLiftVoyager_f2').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_ProLiftVoyager_f2.html');
	});
	$('li#i_WL_ProLiftVoyager_f3').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_ProLiftVoyager_f3.html');
	});
	$('li#i_WL_ProLiftVoyager_f4').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_ProLiftVoyager_f4.html');
	});
	$('li#i_WL_ProLiftVoyager_f5').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_ProLiftVoyager_f5.html');
	});
	
// Carrier lift
	
	$('li#i_WL_CarrierLift').click(function(){
		$('#productNav_brand6').show();
		$('#productNav_brand6').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_CarrierLift.html');
	});
	$('li#i_WL_CarrierLift_f1').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_CarrierLift_f1.html');
	});
	$('li#i_WL_CarrierLift_f2').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_CarrierLift_f2.html');
	});
	$('li#i_WL_CarrierLift_f3').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_CarrierLift_f3.html');
	});
	$('li#i_WL_CarrierLift_f4').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_CarrierLift_f4.html');
	});
	$('li#i_WL_CarrierLift_f5').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_CarrierLift_f5.html');
	});

	
// Porch Lift Portable	
	
	$('li#i_WL_PorchLiftPortable').click(function(){
		$('#productNav_brand7').show();
		$('#productNav_brand7').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftPortable.html');
	});
	$('li#i_WL_PorchLiftPortable_f1').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftPortable_f1.html');
	});
	$('li#i_WL_PorchLiftPortable_f2').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftPortable_f2.html');
	});
	$('li#i_WL_PorchLiftPortable_f3').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftPortable_f3.html');
	});
	$('li#i_WL_PorchLiftPortable_f4').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftPortable_f4.html');
	});
	$('li#i_WL_PorchLiftPortable_f5').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftPortable_f5.html');
	});
	
// Porch Lift RA	
	
	$('li#i_WL_PorchLiftRA').click(function(){
		$('#productNav_brand8').show();
		$('#productNav_brand8').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftRA.html');
	});
	$('li#i_WL_PorchLiftRA_f1').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftRA_f1.html');
	});
	$('li#i_WL_PorchLiftRA_f2').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftRA_f2.html');
	});
	$('li#i_WL_PorchLiftRA_f3').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftRA_f3.html');
	});
	$('li#i_WL_PorchLiftRA_f4').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftRA_f4.html');
	});
	$('li#i_WL_PorchLiftRA_f5').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftRA_f5.html');
	});
	
// LU/LA Elevatore
	
	$('li#i_WL_CemcoLULAElevator').click(function(){
		 $('#productNav_brand9').show();
		$('#productNav_brand9').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_CemcoLULAElevator.html');
	});
	$('li#i_WL_CemcoLULAElevator_f1').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_CemcoLULAElevator_f1.html');
	});
	$('li#i_WL_CemcoLULAElevator_f2').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_CemcoLULAElevator_f2.html');
	});
	$('li#i_WL_CemcoLULAElevator_f3').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_CemcoLULAElevator_f3.html');
	});
	$('li#i_WL_CemcoLULAElevator_f4').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_CemcoLULAElevator_f4.html');
	});
	$('li#i_WL_CemcoLULAElevator_f5').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_CemcoLULAElevator_f5.html');
	});
	


	$('li#i_WL_PorchLiftS_R').click(function(){
		$('#productNav_brand10').show();
		$('#productNav_brand10').siblings().hide();
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_R.html');
	});
	$('li#i_WL_PorchLiftS_R_f1').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_R_f1.html');
	});
	$('li#i_WL_PorchLiftS_R_f2').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_R_f2.html');
	});
	$('li#i_WL_PorchLiftS_R_f3').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_R_f3.html');
	});
	$('li#i_WL_PorchLiftS_R_f4').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_R_f4.html');
	});
	$('li#i_WL_PorchLiftS_R_f5').click(function(){
		$('.productSection').load('wheelchair_lifts/i_WL_PorchLiftS_R_f5.html');
	});
});
