var ns4=(document.layers)?true:false;var w3c=(document.getElementById)?true:false;var ie4=(document.all)?true:false;var isIE=document.all?true:false;var oCanvas=document.getElementsByTagName((document.compatMode&&document.compatMode=="CSS1Compat")?"HTML":"BODY")[0];var bird=false;var marginLeft=8;var marginRight=8;var marginTop=19;var qna_question_temp=1;var mouseX=0;var mouseY=0;var scrollX=0;var scrollY=0;var clientWidth=0;var clientHeight=0;var currentForm=false;var alarmed=false;var wfocused=true;var otitle=document.title;var newmessage=false;var alarmed=false;var mtm=false;var thistory=false;function $(name){if(ns4){return eval("document."+name)}if(w3c){return document.getElementById(name)}if(ie4){return eval("document.all."+name)}return false}var ii={req:null,ready:function(a,b){if(ii.req.readyState==4&&ii.req.status==200){a(ii.req.responseText)}},open:function(a,b,c){ii.req=(window.XMLHttpRequest)?new XMLHttpRequest():((window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):null);if(ii.req){ii.req.open("GET","http://"+location.host+a,c!=false);ii.req.send(null);if(c==false){b(ii.req.responseText)}else{ii.req.onreadystatechange=function(){ii.ready(b)}}}}};function viewGalleryPhoto(b){width="400";height="300";var a=window.open("","","width="+width+",height="+height+",menubar=no,toolbar=no,resizable=no,scrollbars=no,location=no,directory=no,status=no,copyhistory=no");a.document.write('<html><body style="margin:0 0 0 0;" ><img src="'+b+'" alt="" onload="window.resizeTo(this.width, this.height);"/></body></html>')}function mousem(a){mouseX=isIE?event.clientX+oCanvas.scrollLeft:a.pageX-window.pageXOffset;mouseY=isIE?event.clientY+oCanvas.scrollTop:a.pageY-window.pageYOffset;if(hint&&hint.g){hint.show()}}function valueof(a){if(a.type.toLowerCase()=="radio"&&!a.checked){return}if(a.type.toLowerCase()=="checkbox"&&!a.checked){return}if((a.tagName.toLowerCase()=="select")){return a.name+"="+a.options[a.selectedIndex].value+"&"}return a.name+"="+encodeURIComponent(a.value)+"&"}function destroyForm(a){destroyElement($(a))}function destroyElement(a){if(a&&a.parentNode){a.parentNode.removeChild(a)}}function loadpage(b,a){var g=$(b);if(!g){g=document.createElement("DIV");document.body.appendChild(g);g.id=b;currentForm=b;g.style.visibility="hidden";g.innerHTML=a;g.style.position="absolute";g.style.margin="0px";g.style.padding="0px";g.style.zIndex=99;var c=isIE?g.clientHeight:g.offsetHeight;var e=isIE?g.clientWidth:g.offsetWidth;g.style.top=(clientHeight-c)/2+scrollY+"px";g.style.left=(clientWidth-e)/2+scrollX+"px";g.style.visibility="visible"}else{g.innerHTML=a}var d=$("focus");if(d){d.focus()}}function refpage(res){var id;var y=document.createElement("DIV");y.innerHTML=res;while(child=y.firstChild){if(child.innerHTML!=""){if(child.tagName=="DIV"){loadpage(child.id,child.innerHTML)}else{if(child.tagName=="SCRIPT"){eval(child.innerHTML)}}}else{destroyForm(child.id)}if(child){y.removeChild(child)}}destroyElement(y)}function updateelement(b,a){el=$(b);el.innerHTML=a}function _focus(b){for(var a=0;a<b.childNodes.length;a++){if(b.childNodes[a].id="focus"){b.childNodes[a].focus();return}}}var post_a={req:null,ready:function(a,b){if(post_a.req.readyState==4&&post_a.req.status==200){document.getElementById(b).innerHTML="";document.getElementById(b).innerHTML=post_a.req.responseText}},open:function(a,c,d,b){post_a.req=(window.XMLHttpRequest)?new XMLHttpRequest():((window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):null);if(post_a.req){post_a.next=false;post_a.req.open("POST",a,true);if(document.getElementById("load_ing")){document.getElementById("load_ing").style.display="block"}document.getElementById(d).innerHTML="";post_a.req.onreadystatechange=function(){post_a.ready(b,d)};post_a.req.setRequestHeader("Content-type","application/x-www-form-urlencoded");post_a.req.setRequestHeader("Content-length",c.length);post_a.req.setRequestHeader("Connection","close");post_a.req.send(c)}return false}};function post(c,d){var a="";var b="";for(i=0;i<document[c].elements.length;i++){b=valueof(document[c].elements[i]);if(b){a+=b}}post_a.open(document[c].action,a,d,function(e){refpage(e)},false)}var get_a={req:null,ready:function(a,b){if(get_a.req.readyState==4&&get_a.req.status==200){document.getElementById(b).innerHTML="";document.getElementById(b).innerHTML=get_a.req.responseText}},open:function(a,d,c,b){get_a.req=(window.XMLHttpRequest)?new XMLHttpRequest():((window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):null);if(get_a.req){get_a.next=false;if(document.getElementById("load_ing")){document.getElementById("load_ing").style.display="block"}if(document.getElementById(c)){document.getElementById(c).style.display="block"}get_a.req.open("GET","http://"+location.host+a,true);get_a.req.send(null);get_a.req.onreadystatechange=function(){get_a.ready(b,d)}}return false}};function reload_pages(){}function get(a,c,b){get_a.open(a,c,b,function(d){refpage(d)},false)}var hint={t:null,g:false,o:false,mouseX:0,mouseY:0,timer:null,r:function(){if(hint.g){hint.t.parentNode.removeChild(hint.t)}hint.g=false},show:function(){var k=isIE?oCanvas.scrollLeft:window.pageXOffset;var f=isIE?oCanvas.scrollTop:window.pageYOffset;var b=isIE?hint.t.clientWidth:hint.t.offsetWidth;var c=isIE?hint.t.clientHeight:hint.t.offsetHeight;if(hint.t.style.visibility=="hidden"){var h=isIE?oCanvas.clientWidth:window.innerWidth;var a=isIE?oCanvas.clientHeight:window.innerHeight;var g=mouseX;var e=mouseY;if(g+b>h){g=g-b}else{g=g+8}if(e+c>a){e=a-c-10}else{e=e-10}g=isIE?g:g+k;e=isIE?e:e+f;hint.t.style.left=g+"px";hint.t.style.top=e+"px";hint.t.style.visibility="visible"}else{var j=isIE?hint.t.offsetTop:hint.t.offsetTop-f;var d=isIE?hint.t.offsetLeft:hint.t.offsetLeft-k;if((mouseX<d-marginLeft*2||mouseX>d+b+marginLeft*2||mouseY<j-marginLeft*2||mouseY>j+c+marginLeft*2)&&!hint.o){hint.r();return}}},l:function(a){hint.o=true;hint.timer=setTimeout(function(){if(hint.o){ii.open(a,function(b){hint.s(b)})}},50)},s:function(a){if(hint.t){hint.r()}hint.t=document.createElement("DIV");hint.t.style.visibility="hidden";hint.t.style.position="absolute";hint.t.style.margin=marginTop+"px 0px 0px "+marginLeft+"px";hint.t.style.padding="0px 0px 0px 0px";hint.t.style.zIndex=101;hint.t.innerHTML=a;document.body.appendChild(hint.t);hint.g=true;hint.show()},h:function(a){hint.o=false;clearTimeout(hint.timer)}};function resizeClient(){}window.onload=function(b){if(isIE){b=event;var a=clientSize(b);clientWidth=a.w;clientHeight=a.h-32;resizeClient()}};document.onmousemove=mousem;window.onfocus=function(){wfocused=true;alarmed=false};window.onblur=function(){wfocused=false};window.onresize=function(c){if(isIE){c=event}var a=clientSize(c);clientWidth=a.w;clientHeight=a.h-32;if(isIE){resizeClient()}if(currentForm){var e=$(currentForm);var b=isIE?e.clientHeight:e.offsetHeight;var d=isIE?e.clientWidth:e.offsetWidth;e.style.top=(clientHeight-b)/2+scrollY+"px";e.style.left=(clientWidth-d)/2+scrollX+"px"}};function mouseCoords(a){return isIE?{x:a.clientX,y:a.clientY}:{x:a.pageX,y:a.pageY}}function clientSize(a){return isIE?{w:oCanvas.clientWidth,h:oCanvas.clientHeight}:{w:window.innerWidth,h:window.innerHeight}}function scrollCoords(a){return isIE?{x:oCanvas.scrollLeft,y:oCanvas.scrollTop}:{x:window.pageXOffset,y:window.pageYOffset}};
