function postEventCheck(){$("hiddenpassword").value=md5($("passwdfield").value);var B=$("passwdfield").value.length;var A="";for(i=0;i<B;i=i+1){A=A+"0"}$("passwdfield").value=A;return true}var scrollDirect=0;var deltax=0;var timer;var myFx=0;var bootstrap=function(){myFx=0;if($("user_name")){$("user_name").removeEvents();$("user_name").addEvent("focus",function(C){if(this.value==this.defaultValue){this.value=""}});$("user_name").addEvent("blur",function(C){if(this.value==""){this.value=this.defaultValue}})}var A=function(){if($("topmenubar")){var C=parseInt($("topmenubar").getStyle("left"));if((scrollDirect<0)&&(C<0)){if(C<-49){$("topmenubar").tween("left",[C,C+50])}else{$("topmenubar").tween("left",[C,0])}}if((scrollDirect>0)&&(C>-700)){$("topmenubar").tween("left",[C,C-50])}timer=setTimeout(A,300)}};if($("topmenu")){if(myFx==0){myFx=new Fx.Tween($("topmenubar"),{duration:4000})}if($("scrollleft")){$("scrollleft").addEvent("mouseenter",function(C){new Event(C).stop();var D=parseInt($("topmenubar").getStyle("left"));myFx.start("left",D,0)});$("scrollleft").addEvent("mouseleave",function(C){new Event(C).stop();myFx.cancel()});$("scrollright").addEvent("mouseenter",function(C){new Event(C).stop();var D=parseInt($("topmenubar").getStyle("left"));myFx.start("left",D,-850)});$("scrollright").addEvent("mouseleave",function(C){new Event(C).stop();myFx.cancel()});var B=$("topmenubar").getElements("a");B.each(function(C){if(!C.target){C.addEvent("click",function(D){new Event(D).stop();$("innerpanel").load(C.href)})}})}}};var newsReset=function(){var B=new Fx.Morph($("news"),{duration:"long"});var A=new Fx.Morph($("detail"),{duration:"long",onComplete:function(){$("detail").set("html","")}.bind(this)});B.start({top:["1000px","0px"],opacity:[0,1]});A.start({top:["0px","1000px"],opacity:[1,0]})};var newsSlide=function(B){$("detail").load("/news/"+B);var C=new Fx.Morph($("news"),{duration:"long"});var A=new Fx.Morph($("detail"),{duration:"long",onComplete:function(){}.bind(this)});C.start({top:["0px","1000px"],opacity:[1,0]});A.start({top:["1000px","0px"],opacity:[0,1]})};window.addEvent("domready",function(){MochaUI.Desktop=new MochaUI.Desktop();MochaUI.Windows.indexLevel=2;var B=105;if(Window.getHeight()<730){$("wrapper").setStyle("height","525px");B=10}var D=function(){new MochaUI.Window({id:"window",title:$("windowpanel").title,loadMethod:"html",content:$("windowpanel"),width:810,height:450,y:B,closable:false,headerStartColor:[168,0,0],headerStopColor:[235,0,0],minimizeBgColor:[168,0,0],minimizeColor:[255,255,255],closeBgColor:[168,0,0],closeColor:[255,255,255],contentBgColor:"#EDEDED",resizableColor:[0,0,0],footerHeight:15,collapsible:false,toolbar:false,draggable:false,resizable:false,toolbarPosition:"bottom",onMinimize:function(){},onRestore:function(){}})};D();var C=$("menubar").getElements("a");C.each(function(E){E.addEvent("click",function(F){new Event(F).stop();if((E.rel!="dash")||(lin==0)){if($("windowpanel")){$("windowpanel").load(E.href)}$("window_title").set("html",E.title);bootstrap()}else{window.location="/"}})});var A=$$(".newslink");A.each(function(E){E.addEvent("click",function(F){newsSlide(E.rel)})});bootstrap()});