tnHover=function(){var c=document.getElementById("topnav");if(c==null)return;var a=c.getElementsByTagName("LI");if(a==null)return;for(var b=0;b<a.length;b++){a[b].onmouseover=function(){this.className+=" tnhover"};a[b].onmouseout=function(){this.className=this.className.replace(new RegExp(" tnhover\\b"),"")}}};window.attachEvent&&window.attachEvent("onload",tnHover);ttHover=function(){var c=document.getElementById("ttroll");if(c==null)return;var a=c.getElementsByTagName("A");if(a==null)return;for(var b=0;b<a.length;b++){a[b].onmouseover=function(){this.className+=" tthover"};a[b].onmouseout=function(){this.className=this.className.replace(new RegExp(" tthover\\b"),"")}}};window.attachEvent&&window.attachEvent("onload",ttHover);function hidediv(a){document.getElementById(a).style.display="none"}function showdiv(a){document.getElementById(a).style.display="block"}function gamepop(url,width,height){day=new Date;id=day.getTime();eval("page"+id+" = window.open(url, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+width+",height="+height+"');")}function openNewWindow(c,b,a){newWindow=window.open(c,b,a)}function changeCommercial(b){for(var a="",e=document.getElementById("flashtv"),d=e.getElementsByTagName("div"),c=0;c<d.length;c++)d[c].style.display="none";if(b=="ad15")a="J8399YS36yQ";else if(b=="ad16")a="9OIJBkhLMYg";else if(b=="ad17")a="sU_mSVep62k";else if(b=="ad18")a="En8s4nXM6Lk";a=a+"?enablejsapi=1&playerapiid=tvplayer&fs=0&rel=0";so=new SWFObject("http://www.youtube.com/v/"+a,"tv","400","326","9.0.47.0");so.addParam("wmode","transparent");so.addParam("allowScriptAccess","always");so.addParam("allowFullScreen","true");so.write("ad");document.getElementById("ad").style.display="block"}function set_cookie(j,i,c,h,g,d,b,f){var a=j+"="+escape(i);if(c){var e=new Date(c,h,g);a+="; expires="+e.toGMTString()}if(d)a+="; path="+escape(d);if(b)a+="; domain="+escape(b);if(f)a+="; secure";document.cookie=a}function delete_cookie(b){var a=new Date;a.setTime(a.getTime()-1);document.cookie=b+="=; expires="+a.toGMTString()}function get_cookie(b){var a=document.cookie.match("(^|;) ?"+b+"=([^;]*)(;|$)");if(a)return unescape(a[2]);else return null}function resetTabs(){$("img#tabOriginal").attr("src","../App_Themes/Tools/images/kwiyj/original_tab_off.gif");$("img#tabSparkling").attr("src","../App_Themes/Tools/images/kwiyj/sparkling_tab_off.gif")}function setTab(a){if(a==0)$("img#tabOriginal").attr("src","../App_Themes/Tools/images/kwiyj/original_tab_on.gif");else $("img#tabSparkling").attr("src","../App_Themes/Tools/images/kwiyj/sparkling_tab_on.gif");$("#hfSelectedTab").val(a)}function getViewableAreaHeight(){var a,b=$common.getClientBounds(),d=b.width,c=b.height;if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&document.compatMode!="CSS1Compat")a=document.body.scrollHeight;else a=Math.max(Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),c);return a}function getViewableAreaWidth(){var a,b=$common.getClientBounds(),c=b.width,d=b.height;if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&document.compatMode!="CSS1Compat")a=document.body.scrollWidth;else a=Math.max(Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),c);return a}function centerPositionDiv(e,c){var a=document.getElementById(e),b=document.getElementById(c);if(a&&b){var m=620,l=396,h=m/2,i=l/2,g=getViewableAreaWidth(),f=getViewableAreaHeight(),j=g/2,k=f/2,d=j-h,n=k-i;a.style.top="215px";a.style.left=d+"px";showdiv(c);b.style.top="215px";b.style.left=d+"px";showdiv(e)}};
