function GLNavi(A){this.open_sleep=100;this.close_sleep=300;this.timer=null;this.active_oSubUl=null;this.global_oMain=null;if(document.getElementById(A)){this.init(A)}}GLNavi.prototype.init=function(B){var C=document.getElementById(B);for(i=0;i<C.childNodes.length;i++){var A=C.childNodes[i];if(A.nodeName=="LI"){for(r=0;r<A.childNodes.length;r++){var D=A.childNodes[r];if(D.nodeName=="UL"){oSubUl=D;this.global_oMain=C.childNodes[i];Event.observe(A,"click",function(E,F){return function(){E.open(F)}}(this,oSubUl),false);Event.observe(D,"mouseover",function(E,F){return function(){E.open(F)}}(this,oSubUl),false);Event.observe(A,"mouseout",function(E,F){return function(){E.close(F)}}(this,oSubUl),false)}}}}};GLNavi.prototype.open=function(A){if(this.timer){this.resetTimer()}if(this.active_oSubUl){if(this.active_oSubUl!=A){this._close()}}this.active_oSubUl=A;this.timer=setTimeout(function(B){return function(){B._open()}}(this),this.open_sleep)};GLNavi.prototype.close=function(A){if(this.timer){this.resetTimer()}this.timer=setTimeout(function(B){return function(){B._close()}}(this),this.close_sleep)};GLNavi.prototype._open=function(){var A=Position.cumulativeOffset(this.global_oMain);var C=A[0]+"px";var B=A[1]+24+"px";Element.setStyle(this.active_oSubUl,{"visibility":"visible","left":C,"top":B});Element.setStyle("menuDeliSearch",{"visibility":"hidden"})};GLNavi.prototype._close=function(){if(this.active_oSubUl){this.active_oSubUl.style.visibility="hidden";this.resetTimer();this.active_oSubUl=null;Element.setStyle("menuDeliSearch",{"visibility":"visible"})}};GLNavi.prototype.resetTimer=function(){clearTimeout(this.timer);delete this.timer};Event.observe(window,"load",function(){new GLNavi("samuraiMenu")},false)