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

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

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

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

$(document).ready(function() {

	// Hides all product nav carousels							
	
    $('.productNav').hide();
		
	// Adds arrow class to first brand on page load
	
	$('.leftNav_RightButton:first').addClass('arrow');
	
	$('.leftNav_RightButton').click(function(){
		$(this).addClass('arrow');
		$(this).siblings().removeClass('arrow');
	 });
	
	$('body#RE_home #productNav_brand0').show();		
    $('body#RE_home .productSection').load('residence_elevators/i_RE_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#RE_viewall #productNav_brand1').show();		
    $('body#RE_viewall .productSection').load('residence_elevators/i_RE_WaupacaElevator.html');

$('.product1').click(function(){
	    $('#productNav_brand1').show();
		$('#productNav_brand1').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_WaupacaElevator.html');
	});
	$('.product2').click(function(){
	    $('#productNav_brand2').show();
		$('#productNav_brand2').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_Minivator.html');
	});
	$('.product3').click(function(){
	    $('#productNav_brand3').show();
		$('#productNav_brand3').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_Windsor.html');
	});
	$('.product4').click(function(){
	    $('#productNav_brand4').show();
		$('#productNav_brand4').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_TKAccessLEVElevator.html');
	});
	$('.product5').click(function(){
	    $('#productNav_brand5').show();
		$('#productNav_brand5').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_ConcordInfinityElevator.html');
	});
	$('.product6').click(function(){
	    $('#productNav_brand6').show();
		$('#productNav_brand6').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_CarrierLift.html');
	});
	$('.product7').click(function(){
	    $('#productNav_brand7').show();
		$('#productNav_brand7').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_GateSelections.html');
	});
	$('.product8').click(function(){
	    $('#productNav_brand8').show();
		$('#productNav_brand8').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_Configurations.html');
	});
	$('.product9').click(function(){
	    $('#productNav_brand9').show();
		$('#productNav_brand9').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_Fixtures.html');
	});
	$('.product10').click(function(){
	    $('#productNav_brand10').show();
		$('#productNav_brand10').siblings().hide();
	});
	$('.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();
	});

// 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_RE_WaupacaElevator').click(function(){
		$('#productNav_brand1').show();
		$('#productNav_brand1').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_WaupacaElevator.html');
	});
	$('li#i_RE_WaupacaElevator_f1').click(function(){
		$('.productSection').load('residence_elevators/i_RE_WaupacaElevator_f1.html');
	});
	$('li#i_RE_WaupacaElevator_f2').click(function(){
		$('.productSection').load('residence_elevators/i_RE_WaupacaElevator_f2.html');
	});
	$('li#i_RE_WaupacaElevator_f3').click(function(){
		$('.productSection').load('residence_elevators/i_RE_WaupacaElevator_f3.html');
	});
	$('li#i_RE_WaupacaElevator_f4').click(function(){
		$('.productSection').load('residence_elevators/i_RE_WaupacaElevator_f4.html');
	});
	$('li#i_RE_WaupacaElevator_f5').click(function(){
		$('.productSection').load('residence_elevators/i_RE_WaupacaElevator_f5.html');
	});
	$('li#i_RE_WaupacaElevator_f6').click(function(){
		$('.productSection').load('residence_elevators/i_RE_WaupacaElevator_f6.html');
	});
	$('li#i_RE_WaupacaElevator_f7').click(function(){
		$('.productSection').load('residence_elevators/i_RE_WaupacaElevator_f7.html');
	});

// Porch Lift S
	$('li#i_RE_Minivator').click(function(){
		$('#productNav_brand2').show();
		$('#productNav_brand2').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_Minivator.html');
	});
	$('li#i_RE_Minivator_f1').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Minivator_f1.html');
	});
	$('li#i_RE_Minivator_f2').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Minivator_f2.html');
	});
	$('li#i_RE_Minivator_f3').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Minivator_f3.html');
	});
	$('li#i_RE_Minivator_f4').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Minivator_f4.html');
	});
	$('li#i_RE_Minivator_f5').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Minivator_f5.html');
	});
	
// Porch Lift EZE Enclosure	
	
	$('li#i_RE_Windsor').click(function(){
		$('#productNav_brand3').show();
		$('#productNav_brand3').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_Windsor.html');
	});
	$('li#i_RE_Windsor_f1').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Windsor_f1.html');
	});
	$('li#i_RE_Windsor_f2').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Windsor_f2.html');
	});
	$('li#i_RE_Windsor_f3').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Windsor_f3.html');
	});
	$('li#i_RE_Windsor_f4').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Windsor_f4.html');
	});
	$('li#i_RE_Windsor_f5').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Windsor_f5.html');
	});
	
// Porch Lift ENC Enclosure	
	$('li#i_RE_TKAccessLEVElevator').click(function(){
		$('#productNav_brand4').show();
		$('#productNav_brand4').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_TKAccessLEVElevator.html');
	});
	$('li#i_RE_TKAccessLEVElevator_f1').click(function(){
		$('.productSection').load('residence_elevators/i_RE_TKAccessLEVElevator_f1.html');
	});
	$('li#i_RE_TKAccessLEVElevator_f2').click(function(){
		$('.productSection').load('residence_elevators/i_RE_TKAccessLEVElevator_f2.html');
	});
	$('li#i_RE_TKAccessLEVElevator_f3').click(function(){
		$('.productSection').load('residence_elevators/i_RE_TKAccessLEVElevator_f3.html');
	});
	$('li#i_RE_TKAccessLEVElevator_f4').click(function(){
		$('.productSection').load('residence_elevators/i_RE_TKAccessLEVElevator_f4.html');
	});
	$('li#i_RE_TKAccessLEVElevator_f5').click(function(){
		$('.productSection').load('residence_elevators/i_RE_TKAccessLEVElevator_f5.html');
	});
	
// Prolift Voyager	
	
	$('li#i_RE_ConcordInfinityElevator').click(function(){
		$('#productNav_brand5').show();
		$('#productNav_brand5').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_ConcordInfinityElevator.html');
	});
	$('li#i_RE_ConcordInfinityElevator_f1').click(function(){
		$('.productSection').load('residence_elevators/i_RE_ConcordInfinityElevator_f1.html');
	});
	$('li#i_RE_ConcordInfinityElevator_f2').click(function(){
		$('.productSection').load('residence_elevators/i_RE_ConcordInfinityElevator_f2.html');
	});
	$('li#i_RE_ConcordInfinityElevator_f3').click(function(){
		$('.productSection').load('residence_elevators/i_RE_ConcordInfinityElevator_f3.html');
	});
	$('li#i_RE_ConcordInfinityElevator_f4').click(function(){
		$('.productSection').load('residence_elevators/i_RE_ConcordInfinityElevator_f4.html');
	});
	$('li#i_RE_ConcordInfinityElevator_f5').click(function(){
		$('.productSection').load('residence_elevators/i_RE_ConcordInfinityElevator_f5.html');
	});
	
// Carrier lift
	
	$('li#i_RE_CabInteriors').click(function(){
		$('#productNav_brand6').show();
		$('#productNav_brand6').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_CarrierLift.html');
	});
	$('li#i_RE_CabInteriors_f1').click(function(){
		$('.productSection').load('residence_elevators/i_RE_CabInteriors_f1.html');
	});
	$('li#i_RE_CabInteriors_f2').click(function(){
		$('.productSection').load('residence_elevators/i_RE_CabInteriors_f2.html');
	});
	$('li#i_RE_CabInteriors_f3').click(function(){
		$('.productSection').load('residence_elevators/i_RE_CabInteriors_f3.html');
	});
	$('li#i_RE_CabInteriors_f4').click(function(){
		$('.productSection').load('residence_elevators/i_RE_CabInteriors_f4.html');
	});
	$('li#i_RE_CabInteriors_f5').click(function(){
		$('.productSection').load('residence_elevators/i_RE_CabInteriors_f5.html');
	});

	
// Porch Lift Portable	
	
	$('li#i_RE_GateSelections').click(function(){
		$('#productNav_brand7').show();
		$('#productNav_brand7').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_GateSelections.html');
	});
	$('li#i_RE_GateSelections_f1').click(function(){
		$('.productSection').load('residence_elevators/i_RE_GateSelections_f1.html');
	});
	$('li#i_RE_GateSelections_f2').click(function(){
		$('.productSection').load('residence_elevators/i_RE_GateSelections_f2.html');
	});
	$('li#i_RE_GateSelections_f3').click(function(){
		$('.productSection').load('residence_elevators/i_RE_GateSelections_f3.html');
	});
	$('li#i_RE_GateSelections_f4').click(function(){
		$('.productSection').load('residence_elevators/i_RE_GateSelections_f4.html');
	});
	$('li#i_RE_GateSelections_f5').click(function(){
		$('.productSection').load('residence_elevators/i_RE_GateSelections_f5.html');
	});
	
// Porch Lift RA	
	
	$('li#i_RE_Configurations').click(function(){
		$('#productNav_brand8').show();
		$('#productNav_brand8').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_Configurations.html');
	});
	$('li#i_RE_Configurations_f1').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Configurations_f1.html');
	});
	$('li#i_RE_Configurations_f2').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Configurations_f2.html');
	});
	$('li#i_RE_Configurations_f3').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Configurations_f3.html');
	});
	$('li#i_RE_Configurations_f4').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Configurations_f4.html');
	});
	$('li#i_RE_Configurations_f5').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Configurations_f5.html');
	});
	
// LU/LA Elevatore
	
	$('li#i_RE_Fixtures').click(function(){
		 $('#productNav_brand9').show();
		$('#productNav_brand9').siblings().hide();
		$('.productSection').load('residence_elevators/i_RE_Fixtures.html');
	});
	$('li#i_RE_Fixtures_f1').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Fixtures_f1.html');
	});
	$('li#i_RE_Fixtures_f2').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Fixtures_f2.html');
	});
	$('li#i_RE_Fixtures_f3').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Fixtures_f3.html');
	});
	$('li#i_RE_Fixtures_f4').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Fixtures_f4.html');
	});
	$('li#i_RE_Fixtures_f5').click(function(){
		$('.productSection').load('residence_elevators/i_RE_Fixtures_f5.html');
	});
	
	
	//Page Load Functions
	
	
	
	
	
});

