function showProducts() {
	var fadeInSpeed = 500;
	$('#parallax').fadeIn(400, function(){
		$('.parallax-layer').each(function(index){
			if ( $.browser.msie ) {
    			$(this).delay(index*(fadeInSpeed/6)).css({filter: 0.0, visibility: 'visible'}).animate({filter: 1.0});
    			$('#cta #cta-products .products-text').css({visibility: "visible"});
	 		} else {
    			$(this).delay(index*(fadeInSpeed/5)).css({opacity: 0.0, visibility: 'visible'}).animate({opacity: 1.0});
 			}		
		
      	});
    });
    
    if ( $.browser.msie ) {
    	var decaySpeed = .5;
	} else {
		var decaySpeed = .75;
 	}	
 			    
    var productParallax = $('.parallax-layer').parallax(
    	{ mouseport:('#parallax, #cta, #cta-products, #header'), decay: decaySpeed, mouseActiveOutside: true},// Global Options
        { xparallax: '3%', yparallax: '4%', xorigin: .4, yorigin: .4 }, // Layer 1 big
        { xparallax: '7%', yparallax: '8%', xorigin: .78, yorigin: .85 }, // Layer 2 big
        { xparallax: '8%', yparallax: '10%', xorigin: .14, yorigin: .90 }, // Layer 3 medium
        { xparallax: '5%', yparallax: '8%', xorigin: 1.15, yorigin: .14 }, // Layer 4 big
        { xparallax: '5%', yparallax: '8%', xorigin: -.13, yorigin: .7 }, // Layer 5 big
        { xparallax: '10%', yparallax: '4%', xorigin: .75, yorigin: .26 }, // Layer 6 small
        { xparallax: '6%', yparallax: '6%', xorigin: .2, yorigin: .28 }, // Layer 7 small
        { xparallax: '7%', yparallax: '8%', xorigin: .0, yorigin: .1 }, // Layer 8 small
        { xparallax: '4%', yparallax: '8%', xorigin: .94, yorigin: .7 } // Layer 9 small
    );
}

function hideProducts() {			
	$('#parallax').fadeOut( function(){
		if ( $.browser.msie ) {
			$('#cta #cta-products .products-text').css({visibility: "hidden"});
			$('.parallax-layer').trigger({type: 'freeze'}).css({filter: 0.0, visibility: 'visible'});
		} else {
			$('.parallax-layer').trigger({type: 'freeze'}).css({opacity: 0.0, visibility: 'visible'});
		}
	});	
}

function showTheme() {
	var fadeInSpeed = 500;
	$('#static, #theme').fadeIn(400, function(){
		$('.theme-layer').each(function(index){
			if ( $.browser.msie ) {
    			$(this).delay(index*(fadeInSpeed/6)).css({filter: 0.0, visibility: 'visible'}).animate({filter: 1.0});
	 		} else {
    			$(this).delay(index*(fadeInSpeed/5)).css({opacity: 0.0, visibility: 'visible'}).animate({opacity: 1.0});
 			}		
		
      	});
    });
    
	
	if ( $.browser.msie ) {
    	var decaySpeed = .5;
	} else {
		var decaySpeed = .75;
 	}
    var themeParallax = $('.theme-layer').parallax(
    	{ mouseport:("#static, #cta, #theme, #header"),  decay: decaySpeed, mouseActiveOutside: true},// Global Options
        { xparallax: '4%', yparallax: '4%', xorigin: -.07, yorigin: .60 }, // Layer 1 
        { xparallax: '4%', yparallax: '4%', xorigin: .9, yorigin: .67 }, // Layer 2 
        { xparallax: '4%', yparallax: '4%', xorigin: -.1, yorigin: -.16 }, // Layer 3 
        { xparallax: '6%', yparallax: '6%', xorigin: .01, yorigin: .44 }, // Layer 4 
        { xparallax: '6%', yparallax: '6%', xorigin: .72, yorigin: .64 }, // Layer 5 
        { xparallax: '6%', yparallax: '6%', xorigin: .85, yorigin: .20 }, // Layer 6 
        { xparallax: '6%', yparallax: '6%', xorigin: .31, yorigin: -.11 }, // Layer 7 
        { xparallax: '8%', yparallax: '8%', xorigin: -.02, yorigin: .82 }, // Layer 8 
        { xparallax: '8%', yparallax: '8%', xorigin: .58, yorigin: .88 }, // Layer 9 
        { xparallax: '8%', yparallax: '8%', xorigin: .84, yorigin: .93 }, // Layer 10 
        { xparallax: '8%', yparallax: '8%', xorigin: -.01, yorigin: .62 }, // Layer 11 
        { xparallax: '8%', yparallax: '8%', xorigin: .07, yorigin: .71 }, // Layer 12 
        { xparallax: '8%', yparallax: '8%', xorigin: .92, yorigin: .56 }, // Layer 13 
        { xparallax: '8%', yparallax: '8%', xorigin: .87, yorigin: .44 }, // Layer 14 
        { xparallax: '8%', yparallax: '8%', xorigin: .96, yorigin: .04 }, // Layer 15 
        { xparallax: '8%', yparallax: '8%', xorigin: .87, yorigin: -.06 }, // Layer 16
        { xparallax: '8%', yparallax: '8%', xorigin: .14, yorigin: -.06 }, // Layer 17 
        { xparallax: '8%', yparallax: '8%', xorigin: .09, yorigin: .25 }, // Layer 18
        { xparallax: '8%', yparallax: '8%', xorigin: .04, yorigin: .22 } // Layer 19 
    );
}



function hideTheme() {
	$('#static, #theme').fadeOut( function(){
		if ( $.browser.msie ) {
			$('.theme-layer').trigger({type: 'freeze'}).css({filter: 0.0, visibility: 'visible'});
		} else {
			$('.theme-layer').trigger({type: 'freeze'}).css({opacity: 0.0, visibility: 'visible'});
		}
	});	
}

var myCarousels = function initCarousels() {

	var featuredSlider = $('#featured-stores').fadeIn(1000).bxSlider({
		displaySlideQty: 3,
		moveSlideQty: 1,
		onAfterSlide: function(currentSlide){
    		$('#featured-stores li').eq(currentSlide + 2).addClass('active').children().children().animate({
    			width: '296px',
				height: '132px'
    		}, 200, 'linear');
  		},
  		onBeforeSlide: function(currentSlide){
    		$('#featured-stores li').eq(currentSlide + 2).addClass('active').children().children().animate({
    			width: '296px',
				height: '132px'
    		}, 200, 'linear');
    		$('#featured-stores li').eq(currentSlide + 2).siblings().removeClass('active').children().children().animate({
    			width: '205px',
				height: '91px'
    		}, 200, 'linear');
  		}	
	});

	var kidsSlider = $('#kids-stores').fadeIn(1000).bxSlider({
		displaySlideQty: 3,
		moveSlideQty: 1,
		onAfterSlide: function(currentSlide){
    		$('#kids-stores li').eq(currentSlide + 2).addClass('active').children().children().animate({
    			width: '296px',
				height: '132px'
    		}, 200, 'linear');
  		},
  		onBeforeSlide: function(currentSlide){
    		$('#kids-stores li').eq(currentSlide + 2).addClass('active').children().children().animate({
    			width: '296px',
				height: '132px'
    		}, 200, 'linear');
    		$('#kids-stores li').eq(currentSlide + 2).siblings().removeClass('active').children().children().animate({
    			width: '205px',
				height: '91px'
    		}, 200, 'linear');
  		}	
	});

	
	var mensSlider = $('#men-stores').fadeIn(1000).bxSlider({
		displaySlideQty: 3,
		moveSlideQty: 1,
		onAfterSlide: function(currentSlide){
    		$('#men-stores li').eq(currentSlide+2).addClass('active').children().children().animate({
    			width: '296px',
				height: '132px'
    		}, 200, 'linear');
  		},
  		onBeforeSlide: function(currentSlide){
    		$('#men-stores li').eq(currentSlide+2).addClass('active').children().children().animate({
    			width: '296px',
				height: '132px'
    		}, 200, 'linear');
    		$('#men-stores li').eq(currentSlide+2).siblings().removeClass('active').children().children().animate({
    			width: '205px',
				height: '91px'
    		}, 200, 'linear');
  		}	
	});

	var teenSlider = $('#teens-stores').fadeIn(1000).bxSlider({
		displaySlideQty: 3,
		moveSlideQty: 1,
		onAfterSlide: function(currentSlide){
    		$('#teens-stores li').eq(currentSlide+2).addClass('active').children().children().animate({
    			width: '296px',
				height: '132px'
    		}, 200, 'linear');
  		},
  		onBeforeSlide: function(currentSlide){
    		$('#teens-stores li').eq(currentSlide+2).addClass('active').children().children().animate({
    			width: '296px',
				height: '132px'
    		}, 200, 'linear');
    		$('#teens-stores li').eq(currentSlide+2).siblings().removeClass('active').children().children().animate({
    			width: '205px',
				height: '91px'
    		}, 200, 'linear');
  		}
  	});	

	var womensSlider = $('#women-stores').fadeIn(1000).bxSlider({
		displaySlideQty: 3,
		moveSlideQty: 1,
		onAfterSlide: function(currentSlide){
    		$('#women-stores li').eq(currentSlide+2).addClass('active').children().children().animate({
    			width: '296px',
				height: '132px'
    		}, 200, 'linear');
  		},
  		onBeforeSlide: function(currentSlide){
    		$('#women-stores li').eq(currentSlide+2).addClass('active').children().children().animate({
    			width: '296px',
				height: '132px'
    		}, 200, 'linear');
    		$('#women-stores li').eq(currentSlide+2).siblings().removeClass('active').children().children().animate({
    			width: '205px',
				height: '91px'
    		}, 200, 'linear');
  		}	
	});
	
	var newSlider = $('#new-stores').fadeIn(1000).bxSlider({
		displaySlideQty: 3,
		moveSlideQty: 1,
		onAfterSlide: function(currentSlide){
    		$('#new-stores li').eq(currentSlide+2).addClass('active').children().children().animate({
    			width: '296px',
				height: '132px'
    		}, 200, 'linear');
  		},
  		onBeforeSlide: function(currentSlide){
    		$('#new-stores li').eq(currentSlide+2).addClass('active').children().children().animate({
    			width: '296px',
				height: '132px'
    		}, 200, 'linear');
    		$('#new-stores li').eq(currentSlide+2).siblings().removeClass('active').children().children().animate({
    			width: '205px',
				height: '91px'
    		}, 200, 'linear');
  		}	
	});

}

