$(function(){$.get("/blog/news/",function(b){$("#news").html(b)})}); $(function(){var b=false;$(".content_wrap").css("position","relative");$("#news").hide();$("div#fig_cocoon").css({"background-image":"url(ref/images/fig_top_cocoon.png)",opacity:0}).width(224).height(242).hide();$("div#fig_eizo").css({"background-image":"url(ref/images/fig_top_eizo.png)",opacity:0}).width(146).height(69).hide();$(".gnav").hide();$("#animation_container").css({width:$("#fig_stroke").width(),"margin-left":"auto","margin-right":"auto"});$("#animation_base").css({overflow:"hidden",width:0}); $("#image").css({position:"relative",width:$(".content_wrap").width(),overflow:"hidden",top:0,"z-index":8});$.browser.msie&&DD_belatedPNG.fix("#fig_cocoon, #fig_eizo");$(".container").css({visibility:"visible"});$("#animation_base").animate({width:$("#fig_stroke").width()},3E3,"linear",function(){b||$("#fig_cocoon").css({position:"absolute",top:$("#animation_base").position().top+282,left:$("#animation_base").position().left+534}).show().animate({opacity:1},750,function(){b||$("#fig_eizo").css({position:"absolute", top:$("#animation_base").position().top+374,left:$("#animation_base").position().left+574}).show().animate({opacity:1},750,function(){b||$(".gnav").css({"margin-left":115}).animate({marginLeft:"+=30px",opacity:"toggle"},1E3,"easeOutExpo",function(){$("#news").animate({opacity:"toggle"},1E3,function(){if(!b){b=true;e()}})})})})});var f=function(){var a=$(".content");$(".content_overlay_left, .content_overlay_right").css({"margin-top":(a.height()+40)*-1,height:a.height()+40})},e=function(){var a=[], d=0;$.getJSON("/flashcms/libs/gallery.php",{type:"top",format:"json"},function(c){if(c.header.status=="ok"){$.each(c.items,function(){this.mainimage["@obj"]=$("<img />").attr("src",this.mainimage["@src"]).css({"interpolation-mode":"bicubic","-ms-interpolation-mode":"bicubic"});a.push(this)});setTimeout(function(){g();setInterval(function(){g()},1E4)},1E3)}});var g=function(){f();var c=a[d%a.length],h=$(".content_wrap").width()/c.mainimage["@width"],i=c.mainimage["@width"]*h;c=c.mainimage["@height"]* h;$("#image").empty().css({"margin-top":($("#animation_container").height()+$("#news").outerHeight(true))*-1}).append(a[d%a.length].mainimage["@obj"]);$("#image > img").css({width:i,height:c,opacity:0,"z-index":8,position:"relative",top:50,left:0}).animate({opacity:0.33,top:0},1E3,"easeOutExpo");d=++d%a.length;f()}};$("body").mouseup(function(){j()});var j=function(){if(!b){b=true;var a=function(){$("div#fig_cocoon").css({"background-image":"url(ref/images/fig_top_cocoon.png)",opacity:0}).width(224).height(242).show(); $("div#fig_eizo").css({"background-image":"url(ref/images/fig_top_eizo.png)",opacity:0}).width(146).height(69).show();$(".gnav").show();$("#animation_container").css({width:$("#fig_stroke").width(),"margin-left":"auto","margin-right":"auto"});$("#animation_base").css({overflow:"hidden",width:$("#fig_stroke").width()});$("#image").css({position:"relative",width:$(".content_wrap").width(),overflow:"hidden",top:0,"z-index":8});$.browser.msie&&DD_belatedPNG.fix("#fig_cocoon, #fig_eizo");$("#fig_cocoon").css({position:"absolute", top:$("#animation_base").position().top+282,left:$("#animation_base").position().left+534,opacity:1}).show();$("#fig_eizo").css({position:"absolute",top:$("#animation_base").position().top+374,left:$("#animation_base").position().left+574,opacity:1}).show();$(".gnav").css({"margin-left":145,opacity:1}).show();$("#news").css({opacity:1}).show()};$(":animated").stop();if($.browser.msie){a();e()}else $("body").animate({opacity:0},200,function(){a();$(this).animate({opacity:1},100,function(){e()})})}}});