var pw,ph,preload_pics=new Array(),xmlHttp=AjaxObject(),fadein_timer,fadeout_timer;function con(a){if(!window.console){return}console.log(a!=null?a:"TEST console")}function AjaxObject(){var a;try{a=new XMLHttpRequest()}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){alert("Ajax is not available!")}}}return a}function AjaxBusy(a){con("AJAX is busy ("+a+")")}function AjaxReady(){return(xmlHttp.readyState===4&&xmlHttp.status===200)}function AjaxInteractive(){return(xmlHttp.readyState>0&&xmlHttp.readyState<4)}function AjaxAbort(){xmlHttp.onreadystatechange=function(){};xmlHttp.abort()}function AjaxLoading(a){if(!a){}}function AjaxReturn(a){Dom(a).innerHTML=xmlHttp.responseText}function AjaxCall(b,a){if(AjaxInteractive()){AjaxBusy(b);return}AjaxLoading(1);xmlHttp.open("get",b);xmlHttp.onreadystatechange=function(){if(AjaxReady()){a.call();AjaxLoading(0)}};xmlHttp.send(null);return false}function AjaxPostCall(b,c,a){if(AjaxInteractive()){AjaxBusy(b);return}AjaxLoading(1);xmlHttp.open("post",b,true);xmlHttp.onreadystatechange=function(){if(AjaxReady()){a.call();AjaxLoading(0)}};xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.send(c);return false}function SetOpacity(c,a){var b=Dom(c);b.style.MozOpacity=((a/100)+0.001);b.style.opacity=(a/100)+0.001;b.style.filter="alpha(opacity="+a+")";if(a==100&&b.style.filter&&b.style.removeAttribute){b.style.removeAttribute("filter")}}function Delay(c){var b=new Date(),a=null;do{a=new Date()}while(a-b<c)}function FadeIn(b,a){if(a<=100){SetOpacity(b,a);a+=10;fadein_timer=window.setTimeout("FadeIn('"+b+"',"+a+")",20)}}function FadeOut(b,a){if(a>0){SetOpacity(b,a);a-=5;fadeout_timer=window.setTimeout("FadeOut('"+b+"',"+a+")",20)}}function PageWidth(){var a=document.documentElement.clientWidth;if(a!=0){return a}a=document.body.clientWidth;if(a!=0){return a}return window.innerWidth}function PageHeight(){var a=document.documentElement.clientHeight;if(a!=0){return a}a=document.body.clientHeight;if(a!=0){return a}return window.innerHeight}function ResizeObject(d,b,a){var c=Dom(d).style;c.width=b+"px";c.height=a+"px"}function SetObjectWidth(b,a){Dom(b).style.width=a+"px"}function SetObjectHeight(b,a){Dom(b).style.height=a+"px"}function GetObjectWidth(a){return Dom(a).clientWidth}function GetObjectHeight(a){return Dom(a).clientHeight}function Resize(a,b){window.resizeTo(a,b)}function Maximize(){window.resizeTo(screen.width,screen.height)}function DefineScreen(){pw=PageWidth(),ph=PageHeight()}function GetObjectPositionLeft(a){return Dom(a).offsetLeft}function GetObjectPositionTop(a){return Dom(a).offsetTop}function SetObjectPosition(d,c,b){var a=Dom(d);a.style.left=c+"px";a.style.top=b+"px";a.style.posLeft=c;a.style.posTop=b}function $(b){var a=document.getElementById(b);if(a!=undefined){a.html=function(c){if(c!=null){a.innerHTML=c}else{return a.innerHTML}}}return a}function Dom(a){return document.getElementById(a)}function Frm(a){return document.forms[a]}function Tbl(a){return $(a).tBodies[0]}function iHTML(b,a){Dom(b).innerHTML=a}function KillElement(b){var a=Dom(b);if(a!=undefined){a.parentNode.removeChild(a)}}function AddNewStyleRule(a,c){var b=document.styleSheets[0];if(b.addRule){b.addRule(a,c)}else{if(b.insertRule){b.insertRule(a+" {"+c+"}",b.cssRules.length)}}}function ShowHideArray(b,d){var c;for(c=0;c<=b.length-1;c++){if(Dom(b[c])){ShowHide(b[c],d)}}}function ShowHide(b,a){Dom(b).style.visibility=a?"visible":"hidden"}function DisplayHideArray(b,d){var c;for(c=0;c<=b.length-1;c++){if(Dom(b[c])){DisplayHide(b[c],d)}}}function DisplayHide(b,a){Dom(b).style.display=a}function PreLoadImg(b,a){preload_pics[a]=new Image();preload_pics[a].src=b+a}function PreLoadImages(b,a){var c;for(c=0;c<=a.length-1;c++){PreLoadImg(b,a[c])}}function AppendScript(b){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src",b);document.getElementsByTagName("body")[0].appendChild(a)};
