function swapIMG(b,a){document[a].src=b}function showOBJ(a){document.getElementById(a).style.display="block"}function hideOBJ(a){document.getElementById(a).style.display="none"}function openHTML(c,b,d,e){var a=window.open(c,b,"width="+d+",height="+e+",resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1")}function ANCHOR(a){obj=document.getElementById(a);y=obj.offsetTop;scrollTo(0,y)}function jumpMENU(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore){selObj.selectedIndex=0}}function rewriteHTML(b,a){new Ajax.Updater(b,a,{method:"get"})}var popup={base:{close:function(){if(!this._pop){return}this._timer&&clearTimeout(this._timer);this._timer=setTimeout(this._hide.bind(this),350)},_hide:function(){this._pop.hide();this._pop.stopObserving("mouseover",Event.stop);this._body.stopObserving("mouseover",this.close.bind(this));this._header.stopObserving("mouseover",Event.stop)},jump:function(a){if(!this._pop){return}this._timer&&clearTimeout(this._timer);this._pop.observe("mouseover",Event.stop);this._body.observe("mouseover",this.close.bind(this));this._header.observe("mouseover",Event.stop);var b=Position.cumulativeOffset(a);this._pop.setStyle({display:"block",left:b[0]+"px",top:b[1]+20+"px"})},hover:function(a){if(this._hover_target){this._hover_target.removeClassName("hover")}this._timer&&clearTimeout(this._timer);this._hover_target=$(a);this._hover_target.addClassName("hover")}},_create:function(){return this.inject({},function(b,c){b[c.key]=a(c.value);return b});function a(b){return !(b instanceof Function)?b:function(){if(!this._initialized){this._initialized=true;this.initialize()}return b.apply(this,$A(arguments))}}},create:function(a){return this._create.call($H(this.base).merge(a))}};popup.live=popup.create({initialize:function(){this._pop=$("popup_jump2recent");this._body=$(document.body);this._header=$("navi");this._hover_target=null}});popup.other=popup.create({initialize:function(){this._pop=$("popup_other");this._body=$(document.body);this._header=$("navi");this._hover_target=null}});function cText(a){if(a.value==a.defaultValue){a.value="";a.style.color="#000"}}function sText(a){if(a.value==""){a.value=a.defaultValue;a.style.color="#999"}}function chkWord(b){var a=$("search_target");if(a.value==a.defaultValue){a.value=""}}function getCookie(c){if(typeof(c)=="undefined"){return null}var b=document.cookie.split(";");var e="";for(var d=0;d<b.length;d++){var a=b[d].indexOf("=");if(b[d].substring(0,a)==c){e=b[d].substring(a+1);return e}}}function setCookie(b,e){var d=new Date();d.setTime(d.getTime()+(365*1000*60*60*24));var c=location.pathname;var a=c.lastIndexOf("/");c=c.substring(0,a+1);document.cookie=b+"="+e+";expires="+d.toGMTString()+";domain="+document.domain+";path="+c}var DescriptionWrapper=(function(){var wrap=function(container){var container_clone=container.cloneNode(true);var br={count:0,limit:2,test:function(node){if(/br/i.test(node.tagName)){this.count++}return this.count>=this.limit}};$A(container_clone.childNodes).each(function(node){if(br.test(node)){Element.remove(node)}$A(node.childNodes).each(arguments.callee)});if(br.count<br.limit){container.style.display="block";container_clone.style.display="block";return}var hide=function(){container.parentNode.replaceChild(container_clone,container);button.stopObserving("click",hide);button.observe("click",show);button.innerHTML='<img src="./img/gatewatch/btn_view_more.png" alt="詳細を表示する">';setCookie("desopen","0")};var show=function(){container_clone.parentNode.replaceChild(container,container_clone);button.stopObserving("click",show);button.observe("click",hide);button.innerHTML='<img src="./img/gatewatch/btn_view_off.png" alt="詳細を非表示にする">';setCookie("desopen","1")};var button=$(document.createElement("p"));with(button.style){cursor="pointer";width="153px"}container.parentNode.insertBefore(button,container.nextSibling);var desopen=getCookie("desopen");if(desopen=="1"){hide();show()}else{hide()}container.style.display="block";container_clone.style.display="block"};return{ready:function(selector){$$(selector).each(wrap)}}})();function backToTop(){var b=x2=x3=0;var c=y2=y3=0;if(document.documentElement){b=document.documentElement.scrollLeft||0;c=document.documentElement.scrollTop||0}if(document.body){x2=document.body.scrollLeft||0;y2=document.body.scrollTop||0}x3=window.scrollX||0;y3=window.scrollY||0;var a=Math.max(b,Math.max(x2,x3));var d=Math.max(c,Math.max(y2,y3));window.scrollTo(Math.floor(a/2),Math.floor(d/2));if(a>0||d>0){window.setTimeout("backToTop()",25)}};