// JavaScript Document
function atoggle(Sender){
      Sender.innerHTML = (Sender.innerHTML == 'Close' ? 'More' : 'Close');
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}


function brands_homepage_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner").css({'display':'inline'});
		setTimeout(function(){$("#brandsub").slideDown("slow");}, 500);
		
		setTimeout(function(){$("#brands1").slideDown("slow", 'easeOutCubic');}, 1500);
		setTimeout(function(){$("#brands1a").slideDown("slow", 'easeOutCubic');}, 1650);
		setTimeout(function(){$("#brands2").slideDown("slow", 'easeOutCubic');}, 1850);
		setTimeout(function(){$("#brands2a").slideDown("slow", 'easeOutCubic');}, 2000);
		setTimeout(function(){$("#brands3").slideDown("slow", 'easeOutCubic');}, 2200);
		setTimeout(function(){$("#brands4").slideDown("slow", 'easeOutCubic');}, 2550);
		
		setTimeout(function(){$("#footer").fadeIn("slow");}, 3500);		
	});
}

function brands_sakura_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner, #brandsub, #footer").css({'display':'inline'});
		
		setTimeout(function(){$("#blackright").animate({ width:"715px", "padding-left":"20", "padding-right":"20" }, 1500, 'easeOutCubic');}, 1000);
		setTimeout(function(){$("#brandleft").slideDown("slow");}, 2600);
		setTimeout(function(){$(".brandbottom_top").slideDown("slow");}, 2600);
		setTimeout(function(){$(".brandbottom").slideDown("slow");}, 2600);
		
		setTimeout(function(){$("#sakura_pg_img1_").fadeIn("slow");}, 3500);
		setTimeout(function(){$("#sakura_pg_img2_").fadeIn("slow");}, 4000);
		setTimeout(function(){$("#sakura_pg_img3_").fadeIn("slow");}, 4500);
		setTimeout(function(){$("#sakura_pg_img4_").fadeIn("slow");}, 5000);	
		setTimeout(function(){$("#sakura_pg_img5_").fadeIn("slow");}, 5500);	
	});
}

function brands_embargo_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner, #brandsub, #footer").css({'display':'inline'});	
		
		setTimeout(function(){$("#blackright").animate({ width:"715px", "padding-left":"20", "padding-right":"20" }, 1500, 'easeOutCubic');}, 1000);
		setTimeout(function(){$("#brandleft_embargo").slideDown("slow");}, 2600);
		setTimeout(function(){$(".brandbottom_top").slideDown("slow");}, 2600);
		setTimeout(function(){$(".brandbottom").slideDown("slow");}, 2600);
		
		setTimeout(function(){$("#sakura_pg_img1_").fadeIn("slow");}, 3500);
		setTimeout(function(){$("#sakura_pg_img2_").fadeIn("slow");}, 4000);
		setTimeout(function(){$("#sakura_pg_img3_").fadeIn("slow");}, 4500);
		setTimeout(function(){$("#sakura_pg_img4_").fadeIn("slow");}, 5000);	
		setTimeout(function(){$("#sakura_pg_img5_").fadeIn("slow");}, 5500);	
	});
}

function brands_lolalo_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner, #brandsub, #footer").css({'display':'inline'});	
		
		setTimeout(function(){$("#blackright").animate({ width:"715px", "padding-left":"20", "padding-right":"20" }, 1500, 'easeOutCubic');}, 1000);
		setTimeout(function(){$("#brandleft_embargo").slideDown("slow");}, 2600);
		setTimeout(function(){$(".brandbottom_top").slideDown("slow");}, 2600);
		setTimeout(function(){$(".brandbottom").slideDown("slow");}, 2600);
		
		setTimeout(function(){$("#sakura_pg_img1_").fadeIn("slow");}, 3500);
		setTimeout(function(){$("#sakura_pg_img2_").fadeIn("slow");}, 4000);
		setTimeout(function(){$("#sakura_pg_img3_").fadeIn("slow");}, 4500);
		setTimeout(function(){$("#sakura_pg_img4_").fadeIn("slow");}, 5000);	
		setTimeout(function(){$("#sakura_pg_img5_").fadeIn("slow");}, 5500);	
	});
}

function brands_ponana_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner, #brandsub, #footer").css({'display':'inline'});	
		
		setTimeout(function(){$("#blackright").animate({ width:"715px", "padding-left":"20", "padding-right":"20" }, 1500, 'easeOutCubic');}, 1000);
		setTimeout(function(){$("#brandleft_ponana").slideDown("slow");}, 3000);
		setTimeout(function(){$(".brandbottom_top").slideDown("slow");}, 3400);
		setTimeout(function(){$(".brandbottom").slideDown("slow");}, 3400);
		
		setTimeout(function(){$("#sakura_pg_img1_").fadeIn("slow");}, 3500);
		setTimeout(function(){$("#sakura_pg_img2_").fadeIn("slow");}, 4000);
		setTimeout(function(){$("#sakura_pg_img3_").fadeIn("slow");}, 4500);
		setTimeout(function(){$("#sakura_pg_img4_").fadeIn("slow");}, 5000);	
		setTimeout(function(){$("#sakura_pg_img5_").fadeIn("slow");}, 5500);	
	});
}

function brands_fez_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner, #brandsub, #footer").css({'display':'inline'});	
		
		setTimeout(function(){$("#blackright").animate({ width:"715px", "padding-left":"20", "padding-right":"20" }, 1500, 'easeOutCubic');}, 1000);
		setTimeout(function(){$("#brandleft_fez").slideDown("slow");}, 2600);
		setTimeout(function(){$(".brandbottom_top").slideDown("slow");}, 2600);
		setTimeout(function(){$(".brandbottom").slideDown("slow");}, 2600);
		
		setTimeout(function(){$("#sakura_pg_img1_").fadeIn("slow");}, 3500);
		setTimeout(function(){$("#sakura_pg_img2_").fadeIn("slow");}, 4000);
		setTimeout(function(){$("#sakura_pg_img3_").fadeIn("slow");}, 4500);
		setTimeout(function(){$("#sakura_pg_img4_").fadeIn("slow");}, 5000);	
		setTimeout(function(){$("#sakura_pg_img5_").fadeIn("slow");}, 5500);		
	});
}


function slideSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});


function about_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner, #footer").css({'display':'inline'});	
		
		setTimeout(function(){$("#about1").fadeIn("slow");}, 500);
		setTimeout(function(){$("#about2").fadeIn("slow");}, 1000);
		setTimeout(function(){$("#about3").fadeIn("slow");}, 1500);
		setTimeout(function(){$("#about4").fadeIn("slow");}, 2000);	
		setTimeout(function(){$("#aboutimg").slideDown(2000);}, 3000);	
		setTimeout(function(){$("#about5").fadeIn("slow");}, 2500);	
		setTimeout(function(){$("#about1_content").slideDown(2000);}, 4000);	
		
		$("#about1_toggle").click(function(){
	  		$("#about1_content").slideToggle("slow");
			$("#about2_content").slideUp("slow");
			$("#about3_content").slideUp("slow");
			$("#about4_content").slideUp("slow");
			$("#about5_content").slideUp("slow");
			$("#aboutimg1").fadeIn("slow");
			$("#aboutimg2").fadeOut("slow");
			$("#aboutimg3").fadeOut("slow");
			$("#aboutimg4").fadeOut("slow");
			$("#aboutimg5").fadeOut("slow");
			
			
		});
		
		$("#about2_toggle").click(function(){
	  		$("#about2_content").slideToggle("slow");
			$("#about1_content").slideUp("slow");
			$("#about3_content").slideUp("slow");
			$("#about4_content").slideUp("slow");
			$("#about5_content").slideUp("slow");
			$("#aboutimg1").fadeOut("slow");
			$("#aboutimg2").fadeIn("slow");
			$("#aboutimg3").fadeOut("slow");
			$("#aboutimg4").fadeOut("slow");
			$("#aboutimg5").fadeOut("slow");
		});
		
		$("#about3_toggle").click(function(){
	  		$("#about3_content").slideToggle("slow");
			$("#about1_content").slideUp("slow");
			$("#about2_content").slideUp("slow");
			$("#about4_content").slideUp("slow");
			$("#about5_content").slideUp("slow");
			$("#aboutimg1").fadeOut("slow");
			$("#aboutimg2").fadeOut("slow");
			$("#aboutimg3").fadeIn("slow");
			$("#aboutimg4").fadeOut("slow");
			$("#aboutimg5").fadeOut("slow");
		});
		
		$("#about4_toggle").click(function(){
	  		$("#about4_content").slideToggle("slow");
			$("#about1_content").slideUp("slow");
			$("#about2_content").slideUp("slow");
			$("#about3_content").slideUp("slow");
			$("#about5_content").slideUp("slow");
			$("#aboutimg1").fadeOut("slow");
			$("#aboutimg2").fadeOut("slow");
			$("#aboutimg3").fadeOut("slow");
			$("#aboutimg4").fadeIn("slow");
			$("#aboutimg5").fadeOut("slow");
		});
		
		$("#about5_toggle").click(function(){
	  		$("#about5_content").slideToggle("slow");
			$("#about1_content").slideUp("slow");
			$("#about2_content").slideUp("slow");
			$("#about3_content").slideUp("slow");
			$("#about4_content").slideUp("slow");
			$("#aboutimg1").fadeOut("slow");
			$("#aboutimg2").fadeOut("slow");
			$("#aboutimg3").fadeOut("slow");
			$("#aboutimg4").fadeOut("slow");
			$("#aboutimg5").fadeIn("slow");
		});


	});
}

function news_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner, #brandsub, #footer").css({'display':'inline'});	
		
		setTimeout(function(){$("#blackright").animate({ width:"715px", "padding-left":"20", "padding-right":"20" }, 1500, 'easeOutCubic');}, 1000);
		setTimeout(function(){$("#newswrapper").fadeIn("fast");}, 3000);
		setTimeout(function(){$(".newswrappers").slideDown("slow");}, 3000);
		
	
	});
}

$(document).ready(function(){

	//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

	//Switch the "Open" and "Close" state per click
	$("div.trigger").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	//Slide up and down on click
	$("div.trigger").click(function(){
		$(this).next(".toggle_container").slideToggle("slow");
	});

});

function sitelist_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner").css({'display':'inline'});
		
		setTimeout(function(){$("#sitelist1").fadeIn("slow");}, 500);
		setTimeout(function(){$("#sitelist2").fadeIn("slow");}, 850);
		setTimeout(function(){$("#sitelist3").fadeIn("slow");}, 1200);
		setTimeout(function(){$("#sitelist3a").fadeIn("slow");}, 1550);
		setTimeout(function(){$("#sitelist4a").fadeIn("slow");}, 1800);
		setTimeout(function(){$("#sitelist4").fadeIn("slow");}, 2050);
		
		setTimeout(function(){$("#sitelist1_copyliner").slideDown(800);}, 2000);
		setTimeout(function(){$("#sitelist2_copyliner").slideDown(800);}, 2350);
		setTimeout(function(){$("#sitelist3_copyliner").slideDown(1200);}, 2700);
		setTimeout(function(){$("#sitelist3a_copyliner").slideDown(800);}, 3050);
		setTimeout(function(){$("#sitelist4a_copyliner").slideDown(800);}, 3300);
		setTimeout(function(){$("#sitelist4_copyliner").slideDown(800);}, 3550);
		
		setTimeout(function(){$("#site1img").fadeIn("slow");}, 4000);
		setTimeout(function(){$("#site2img").fadeIn("slow");}, 4500);
		setTimeout(function(){$("#site3img").fadeIn("slow");}, 5000);
		setTimeout(function(){$("#site4img").fadeIn("slow");}, 5500);
		
	});
}

function contact_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner").css({'display':'inline'});
		
		setTimeout(function(){$("#contactleft").slideDown("slow");}, 500);
		setTimeout(function(){$("#contactright").slideDown("slow");}, 850);
		
	});
}

function career_homepage_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner").css({'display':'inline'});
		setTimeout(function(){$("#careersub").slideDown("slow");}, 500);
		
		setTimeout(function(){$("#blackright_thinnermargins").animate({ width:"735px", "padding-left":"20" }, 1500, 'easeOutCubic');}, 1000);
		
		setTimeout(function(){$("#career1").slideDown("slow", 'easeOutCubic');}, 2600);	
		setTimeout(function(){$("#career1_liner").slideDown("slow");}, 3300);
		
		setTimeout(function(){$("#careermiddle").fadeIn("slow");}, 4000);
		setTimeout(function(){$("#careerright").fadeIn("slow");}, 4500);
		
		setTimeout(function(){$("#careerlogo1").fadeIn();}, 5000);
		setTimeout(function(){$("#careerlogo2").fadeIn();}, 5300);
		setTimeout(function(){$("#careerlogo3").fadeIn();}, 5600);
		setTimeout(function(){$("#careerlogo4").fadeIn();}, 5900);
		setTimeout(function(){$("#careerlogo5").fadeIn();}, 6200);
		
				
	});
}

function career_apply_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner").css({'display':'inline'});
		
		setTimeout(function(){$("#blackright_thinnermargins").animate({ width:"735px", "padding-left":"20" }, 1500, 'easeOutCubic');}, 1000);
		
		setTimeout(function(){$("#career1").slideDown("slow", 'easeOutCubic');}, 2600);	
		
		
		setTimeout(function(){$("#careermiddle").fadeIn("slow");}, 3000);
		setTimeout(function(){$("#careerright").fadeIn("slow");}, 3500);
		
		setTimeout(function(){$("#careerlogo1").fadeIn();}, 4000);
		setTimeout(function(){$("#careerlogo2").fadeIn();}, 4300);
		setTimeout(function(){$("#careerlogo3").fadeIn();}, 4600);
		setTimeout(function(){$("#careerlogo4").fadeIn();}, 4900);
		setTimeout(function(){$("#careerlogo5").fadeIn();}, 5200);
				
	});
}

function career_applied_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner").css({'display':'inline'});
		$("#blackright_thinnermargins").css({ 'width':'735px', 'padding-left':'20' });
		
		setTimeout(function(){$("#career1").slideDown("slow", 'easeOutCubic');}, 2600);	
		
		setTimeout(function(){$("#careermiddle").fadeIn("slow");}, 3000);
		setTimeout(function(){$("#careerright").fadeIn("slow");}, 1000);
		
		setTimeout(function(){$("#careerlogo1").fadeIn();}, 3500);
		setTimeout(function(){$("#careerlogo2").fadeIn();}, 3800);
		setTimeout(function(){$("#careerlogo3").fadeIn();}, 4100);
		setTimeout(function(){$("#careerlogo4").fadeIn();}, 4400);
		setTimeout(function(){$("#careerlogo5").fadeIn();}, 4700);
				
	});
}

function career_current_jq() {
$(document).ready(function() {		
		$("#logoimg, #navliner").css({'display':'inline'});
		setTimeout(function(){$("#careersub").slideDown("slow");}, 500);
		
		setTimeout(function(){$("#blackright").animate({ width:"715px", "padding-left":"20", "padding-right":"20" }, 1500, 'easeOutCubic');}, 1000);
		setTimeout(function(){$("#carrerlist_topborderwrapper").fadeIn("fast");}, 3000);
		setTimeout(function(){$(".newswrappers").slideDown("slow");}, 3000);
		
		setTimeout(function(){$("#career1").slideDown("slow", 'easeOutCubic');}, 2600);	
		setTimeout(function(){$("#career1_liner").slideDown("slow");}, 3300);
		
		setTimeout(function(){$("#careermiddle").fadeIn("slow");}, 4000);
		setTimeout(function(){$("#careerright").fadeIn("slow");}, 4500);
		
		setTimeout(function(){$("#careerlogo1").fadeIn();}, 5000);
		setTimeout(function(){$("#careerlogo2").fadeIn();}, 5300);
		setTimeout(function(){$("#careerlogo3").fadeIn();}, 5600);
		setTimeout(function(){$("#careerlogo4").fadeIn();}, 5900);
		setTimeout(function(){$("#careerlogo5").fadeIn();}, 6200);
				
	});
}

$(document).ready(function(){
  $("label").inFieldLabels({ fadeOpacity:0.4 });
});


//<!------- Home Page Slides --------->

function homepage_jq() {
$(document).ready(function() {		
		$("#largelogo").fadeIn("slow");
		setTimeout(function(){$("#largelogo").fadeOut(3500);}, 500);
		setTimeout(function(){$("#logoimg").fadeIn("slow");}, 1000);
		setTimeout(function(){$("#navliner").fadeIn("slow");}, 1500);	
		
		setTimeout(function(){$("#homeimg1").fadeIn("slow");}, 1200);
		setTimeout(function(){$("#homeimg2").fadeIn("slow");}, 2200);
		setTimeout(function(){$("#homeimg6").fadeIn("slow");}, 3200);
		setTimeout(function(){$("#homeimg3").fadeIn("slow");}, 4200);
		setTimeout(function(){$("#homeimg5").fadeIn("slow");}, 5200);
		setTimeout(function(){$("#homeimg7").fadeIn("slow");}, 6200);	
		
		$("#slideshow1_on_img").fadeIn("slow");
		$("#slideshow2_on_img").fadeIn("slow");
		$("#slideshow6_on_img").fadeIn("slow");
		$("#slideshow3_on_img").fadeIn("slow");
		$("#slideshow4_on_img").fadeIn("slow");
		
		setTimeout(function(){$("#slideshow1_on_img").fadeOut("slow");}, 9000);
		setTimeout(function(){$("#slideshow2_on_img").fadeOut("slow");}, 11000);
		setTimeout(function(){$("#slideshow6_on_img").fadeOut("slow");}, 13000);
		setTimeout(function(){$("#slideshow3_on_img").fadeOut("slow");}, 15000);
		setTimeout(function(){$("#slideshow4_on_img").fadeOut("slow");}, 17000);
		
		setTimeout(function(){$("#footer").fadeIn("slow");}, 1500);		
	});
}


function slideSwitch1() {
    var $active = $('#slideshow1 IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow1 IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow1 IMG:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 2000, function() {
            $active.removeClass('active last-active');
        });
}

function slideSwitch2() {
    var $active = $('#slideshow2 IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow2 IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow2 IMG:first');

    $active.addClass('last-active');

    $next.delay(2000).css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 2000, function() {
            $active.removeClass('active last-active');
        });
}

function slideSwitch3() {
    var $active = $('#slideshow3 IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow3 IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow3 IMG:first');

    $active.addClass('last-active');

    $next.delay(6000).css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 2000, function() {
            $active.removeClass('active last-active');
        });
}

function slideSwitch4() {
    var $active = $('#slideshow4 IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow4 IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow4 IMG:first');

    $active.addClass('last-active');

    $next.delay(8000).css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 2000, function() {
            $active.removeClass('active last-active');
        });
}

function slideSwitch6() {
    var $active = $('#slideshow6 IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow6 IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow6 IMG:first');

    $active.addClass('last-active');

    $next.delay(4000).css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 2000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch1()", 10000 ); 
	setInterval( "slideSwitch2()", 10000 );
	setInterval( "slideSwitch3()", 10000 );
	setInterval( "slideSwitch4()", 10000 );
	setInterval( "slideSwitch6()", 10000 );
});

$(function() {
	 $("#homeimg1").hover(function(){ 
		$("#slideshow1_on_img").fadeIn("slow"); 
	 }, function() { 
		$("#slideshow1_on_img").fadeOut("slow"); 
	 }); 
});
$(function() {
	 $("#homeimg2").hover(function(){ 
		$("#slideshow2_on_img").fadeIn("slow"); 
	 }, function() { 
		$("#slideshow2_on_img").fadeOut("slow"); 
	 }); 
});
$(function() {
	 $("#homeimg3").hover(function(){ 
		$("#slideshow3_on_img").fadeIn("slow"); 
	 }, function() { 
		$("#slideshow3_on_img").fadeOut("slow"); 
	 }); 
});
$(function() {
	 $("#homeimg5").hover(function(){ 
		$("#slideshow4_on_img").fadeIn("slow"); 
	 }, function() { 
		$("#slideshow4_on_img").fadeOut("slow"); 
	 }); 
});
$(function() {
	 $("#homeimg6").hover(function(){ 
		$("#slideshow6_on_img").fadeIn("slow"); 
	 }, function() { 
		$("#slideshow6_on_img").fadeOut("slow"); 
	 }); 
});
//<!------- END Home Page Slides --------->



