window.addEvent("domready",function(){if(window.location.search.indexOf("iso=")!=-1&&window.location.hash==""){window.location+="#translations"}if(Browser.Engine.trident){return}$("main-nav").getElements("ul.level_2").each(function(a){a.set({opacity:0})});$("main-nav").getElements("a.submenu, span.submenu").each(function(b){var a=b.getParent().getElement("ul.level_2");b.addEvent("mouseenter",function(){new Fx.Morph(a,{duration:300}).start({opacity:1})
});b.addEvent("mouseout",function(){setTimeout(function(){if(a.getStyle("left").toInt()<0){a.set({opacity:0})}},50)})})});window.addEvent("load",function(){var a=$$("p.confirm");if($defined(a[0])){if(a[0].getPosition().y>window.getSize().y){window.scrollTo(0,a[0].getPosition().y-120)}}if($defined($("username"))){$("username").focus()}});window.addEvent("domready",function(){var a=$$("#links>a");if($defined(a)&&a.length>1){for(i=1;
i<a.length;i++){a[i].setStyle("left",400);a[i].removeClass("hide")}var b={index:0,next:function(){b.index++;if(b.index==a.length){b.index=0}if(b.index==0){a[b.index].tween("left",[400,0]);a[a.length-1].tween("left",[0,-400])}else{a[b.index].tween("left",[400,0]);a[b.index-1].tween("left",[0,-400])}}};b.next.periodical(5000)}});
