function show(){document.body.style.visibility='visible';document.getElementById('loading').style.visibility='hidden';}
function openchat(){chatbox=window.open('chat/index.html','chat','height=600,width=400,toolbar=no,directories=no,status=no,'+'menubar=no,scrollbars=no,resizable=no');chatbox.moveTo(0,0);}
jQuery(document).ready(function(){jQuery('#layers .parallax-layer').parallax({mouseport:jQuery('#layers')},{xparallax:0.625,yparallax:0.625,width:1500,height:1500},{xparallax:0.6,yparallax:0.6,width:1500,height:1500},{xparallax:1.225,yparallax:1.225,width:1500,height:1500},{xparallax:1.2,yparallax:1.2,width:1500,height:1500},{xparallax:1.825,yparallax:1.825,width:1500,height:1500},{xparallax:1.8,yparallax:1.8,width:1500,height:1500});});Shadowbox.init();$(document).ready(function(){$("#layer1").hover(function(){$(this).css({'z-index':'10'});$(this).stop().animateToClass("layerz1",400,"easeOutQuart");$("#layer1 .title").stop().animateToClass("ztitle",400,"easeOutQuart");$("#layer1 .contents").stop().animateToClass("zcontents",400,"easeOutQuart");$("#layer1 .contents .list").stop().animateToClass("zcontents .list",400,"easeOutQuart");$("#layer1sh").stop().addClass("layerz1sh");},function(){$(this).css({'z-index':'0'});$(this).stop().animateToClass("layer1",400,"easeOutExpo");$("#layer1 .title").stop().animateToClass("layer1 .title",400,"easeOutExpo");$("#layer1 .contents").stop().animateToClass("layer1 .contents",400,"easeOutExpo");$("#layer1 .contents .list").stop().animateToClass("layer1 .contents .list",400,"easeOutExpo");$("#layer1sh").stop().removeClass("layerz1sh");});$("#layer2").hover(function(){$(this).css({'z-index':'10'});$(this).stop().animateToClass("layerz2",400,"easeOutQuart");$("#layer2 .title").stop().animateToClass("ztitle",400,"easeOutQuart");$("#layer2 .contents").stop().animateToClass("zcontents",400,"easeOutQuart");$("#layer2 .contents .list").stop().animateToClass("zcontents .list",400,"easeOutQuart");$("#layer2sh").stop().addClass("layerz2sh");},function(){$(this).css({'z-index':'0'});$(this).stop().animateToClass("layer2",400,"easeOutExpo");$("#layer2 .title").stop().animateToClass("layer2 .title",400,"easeOutExpo");$("#layer2 .contents").stop().animateToClass("layer2 .contents",400,"easeOutExpo");$("#layer2 .contents .list").stop().animateToClass("layer2 .contents .list",400,"easeOutExpo");$("#layer2sh").stop().removeClass("layerz2sh");});$("#layer22").hover(function(){$(this).css({'z-index':'10'});$(this).stop().animateToClass("layerz2",400,"easeOutQuart");$("#layer22 .title").stop().animateToClass("ztitle",400,"easeOutQuart");$("#layer22 .contents").stop().animateToClass("zcontents",400,"easeOutQuart");$("#layer22 .contents .list").stop().animateToClass("zcontents .list",400,"easeOutQuart");$("#layer22sh").stop().addClass("layerz2sh");},function(){$(this).css({"z-index":"0"});$(this).stop().animateToClass("layer2",400,"easeOutExpo");$("#layer22 .title").stop().animateToClass("layer2 .title",400,"easeOutExpo");$("#layer22 .contents").stop().animateToClass("layer2 .contents",400,"easeOutExpo");$("#layer22 .contents .list").stop().animateToClass("layer2 .contents .list",400,"easeOutExpo");$("#layer22sh").stop().removeClass("layerz2sh");});$("#layer3").hover(function(){$(this).css({'z-index':'10'});$(this).stop().animateToClass("layerz3",400,"easeOutQuart");$("#layer3 .title").stop().animateToClass("ztitle",400,"easeOutQuart");$("#layer3 .contents").stop().animateToClass("zcontents",400,"easeOutQuart");$("#layer3 .contents .list").stop().animateToClass("zcontents .list",400,"easeOutQuart");$("#layer3sh").stop().addClass("layerz3sh");},function(){$(this).css({'z-index':'0'});$(this).stop().animateToClass("layer3",400,"easeOutExpo");$("#layer3 .title").stop().animateToClass("layer3 .title",400,"easeOutExpo");$("#layer3 .contents").stop().animateToClass("layer3 .contents",400,"easeOutExpo");$("#layer3 .contents .list").stop().animateToClass("layer3 .contents .list",400,"easeOutExpo");$("#layer3sh").stop().removeClass("layerz3sh");});$("#layer33").hover(function(){$(this).css({'z-index':'10'});$(this).stop().animateToClass("layerz3",400,"easeOutQuart");$("#layer33 .title").stop().animateToClass("ztitle",400,"easeOutQuart");$("#layer33 .contents").stop().animateToClass("zcontents",400,"easeOutQuart");$("#layer33 .contents .list").stop().animateToClass("zcontents .list",400,"easeOutQuart");$("#layer33sh").stop().addClass("layerz3sh");},function(){$(this).css({'z-index':'0'});$(this).stop().animateToClass("layer3",400,"easeOutExpo");$("#layer33 .title").stop().animateToClass("layer3 .title",400,"easeOutExpo");$("#layer33 .contents").stop().animateToClass("layer3 .contents",400,"easeOutExpo");$("#layer33 .contents .list").stop().animateToClass("layer3 .contents .list",400,"easeOutExpo");$("#layer33sh").stop().removeClass("layerz3sh");});$("#likebuttonhover, #likebutton").hover(function(){$("#likebutton").stop().animate({width:"60px",marginRight:"11px"},400);$("#likebuttonbg").stop().animate({right:"-10px"},400);},function(){$("#likebutton").stop().animate({width:"49px",marginRight:"0px"},500);$("#likebuttonbg").stop().animate({right:"0px"},500);});$("#changelogbar").hover(function(){$(this).stop().animate({bottom:"-2px",left:"-4px"},300);$("#changelogbarglow").stop().animate({bottom:"-2px",left:"-4px"},300);},function(){$(this).stop().animate({bottom:"0px",left:"0px"},300);$("#changelogbarglow").stop().animate({bottom:"0px",left:"0px"},300);});$("#lag").hover(function(){$("#curlin, #curlinpaper").stop().css({visibility:'hidden'});$("#curlout, #curloutpaper").stop().css({visibility:'visible'});},function(){$("#curlin, #curlinpaper").stop().css({visibility:'visible'});$("#curlout, #curloutpaper").stop().css({visibility:'hidden'});});
$(document).bind("contextmenu",function(e){return false;});$.extend($.fn.disableTextSelect=function(){return this.each(function(){if($.browser.mozilla){$(this).css('MozUserSelect','none');}else if($.browser.msie){$(this).bind('selectstart',function(){return false;});}else{$(this).mousedown(function(){return false;});}});});$('body').disableTextSelect();
});
