
	
	$(document).ready(function() {


		
		$("#jessica li").append('<img class="shadow" src="img/sel_japanese.png" width="160" height="32" alt="" />');
		

		
		$("#jessica").hover(function() {
			var e = this;
		    $(e).find("a").stop().animate({ marginTop: "-14px" }, 250, function() {
		    $(e).find("a").animate({ marginTop: "-10px" }, 250);
		    });
		   // $(e).find("img.shadow").stop().animate({ width: "100%", height: "32px", marginLeft: "0"}, 250);
		},function(){
			var e = this;
		    $(e).find("a").stop().animate({ marginTop: "4px" }, 250, function() {
		    $(e).find("a").animate({ marginTop: "0px" }, 250);
		    });
		  //  $(e).find("img.shadow").stop().animate({ width: "100%", height: "32px", marginLeft: "0"}, 150);
		});


		
		$("#suyama li").append('<img class="shadow" src="img/sel_english.png" width="160" height="32" alt="" />');
	
		
		
		$("#suyama").hover(function() {
			var e = this;
		    $(e).find("a").stop().animate({ marginTop: "-14px" }, 250, function() {
		    $(e).find("a").animate({ marginTop: "-10px" }, 250);
		    });
		  //  $(e).find("img.shadow").stop().animate({ width: "100%", height: "32px", marginLeft: "0"}, 250);
		},function(){
			var e = this;
		    $(e).find("a").stop().animate({ marginTop: "4px" }, 250, function() {
		    $(e).find("a").animate({ marginTop: "0px" }, 250);
		    });
		 //   $(e).find("img.shadow").stop().animate({ width: "100%", height: "32px", marginLeft: "0"}, 150);
		});
		
        
		$("#jessica").click(function(){
		    $("#layer")
			   .css("display","block");								
            $("#suyama li")
			   .css("display","none");
			$("#jessica li")
			   .css("display","none");
			$("#suyama img")
			   .animate({width: '160px', left:'0px',}, {queue:false,duration:1500, easing:'easeInOutExpo'})
               .animate({top:'221px',left:"-220px",}, {queue:false,duration:1500, easing:'easeOutBounce'})
			   .animate({left:"+=500px"},2400)
			$("#suyama_bg img")
			   .animate({left:"+=0px"},2400)
			   .animate({width: '1360px', height: '334', top:'-321px',left:"-340px"}, {duration:800, easing:'easeInOutExpo'})
			   .animate({width: '334px', height: '1360', top:'-733px',left:"-388px"}, {duration:800, easing:'easeInOutExpo'})
			$("#jessica img")
			   .animate({width: '160px'}, {duration:2400, easing:'easeOutBounce'})
			   .animate({width: '0px', height: '0px', top:'0px',left:"0px"}, {duration:800, easing:'easeInOutExpo'})
            $("#jessica_bg img")
			   .animate({width: '160px', height: '0'}, {duration:2400, easing:'easeOutBounce'})
			   .animate({width: '0px', height: '0px'}, {duration:800, easing:'easeInOutExpo'})
			   .animate({width: '539px', height: '179px', top:'-160px',left:"-320px"}, {duration:800, easing:'easeInOutExpo'})

            });
		



		
		
		
		$("#suyama").click(function(){
			$("#layer")
			   .css("display","block");						
            $("#suyama li")
			   .css("display","none");
			$("#jessica li")
			   .css("display","none");
			$("#suyama img")
			   .animate({width: '160px', left:'0px',}, {queue:false,duration:1500, easing:'easeInOutExpo'})
			   .animate({width: '0px', height: '0px', top:'500px',left:"500px"}, {duration:800, easing:'easeInOutBounce'})
			$("#suyama_bg img")
			   .animate({width: '160px', height: '240px', top:'240px',left:'500px'},1600)
			   .animate({width: '1360px', height: '334', top:'-321px',left:"-340px"}, {duration:800, easing:'easeInOutExpo'})
			   .animate({width: '334px', height: '1360', top:'-733px',left:"-388px"}, {duration:800, easing:'easeInOutExpo'})
			$("#jessica img")
			   .animate({width: '160px'}, {duration:1600, easing:'easeOutBounce'})
			   .animate({width: '0px', height: '0px', top:'0px',left:"0px"}, {duration:800, easing:'easeInOutExpo'})
            $("#jessica_bg img")
			   .animate({width: '160px', height: '0'}, {duration:1600, easing:'easeOutBounce'})
			   .animate({width: '0px', height: '0px'}, {duration:800, easing:'easeInOutExpo'})
			   .animate({width: '539px', height: '179px', top:'-160px',left:"-320px"}, {duration:800, easing:'easeInOutExpo'})

            });

		
		
						

	
	});