 var theia_last_id = 0;function dw(t){document.write(t);}function theia_breakoutFrame(){if (top.location != location){top.location.href = document.location.href;}}function theia_Refresh(){location.reload(true);}function theia_Popup(url,id,param){var new_win = window.open(url,id,param);if(!new_win.opener) new_win.opener = self;new_win.focus();}function theia_fixCookieDate(date){var base = new Date(0);var skew = base.getTime();if (skew > 0) date.setTime (date.getTime() - skew);}function theia_setCookie(name,value,day,hour,min){var expdate = new Date ();theia_fixCookieDate (expdate);expdate.setTime (expdate.getTime() + (day * 24 * 60 * 60 * 1000 + hour * 60 * 60 * 1000 + min * 60 * 1000));document.cookie = name + "=" + escape (value) + ";expires=" + expdate.toGMTString();}function theia_setCookieEx(name,value,day,hour,min,domain){var expdate = new Date ();theia_fixCookieDate (expdate);expdate.setTime (expdate.getTime() + (day * 24 * 60 * 60 * 1000 + hour * 60 * 60 * 1000 + min * 60 * 1000));str = name + "=" + escape (value) + ";expires=" + expdate.toGMTString() + ";path=/;domain=" + domain;document.cookie = str;}function theia_GetObj(inID){return document.getElementById?document.getElementById(inID):document.all?document.all[inID]:document.layers[inID];}function theia_GetPageOffsetLeft(inElem){var ol = inElem.offsetLeft;while((inElem = inElem.offsetParent) != null){ol += inElem.offsetLeft;}return ol;}function theia_GetPageOffsetTop (inElem){var ot = inElem.offsetTop;while((inElem = inElem.offsetParent) != null){ot += inElem.offsetTop;}return ot;}function theia_GetPageOffsetRight(inElem){var ol = inElem.offsetRight;while((inElem = inElem.offsetParent) != null){ol += inElem.offsetRight;}return ol;}function theia_GetPageOffsetBottom(inElem){var ot = inElem.offsetBottom;while((inElem = inElem.offsetParent) != null){ot += el.offsetBottom;}return ot;}function theia_DocHeight(){if (typeof document.height != 'undefined'){return document.height;}else if (document.compatMode && document.compatMode != 'BackCompat'){return document.documentElement.scrollHeight;}else if (document.body && typeof document.body.scrollHeight != 'undefined'){return document.body.scrollHeight;}return 0;}function theia_DocWidth(){if (typeof document.width != 'undefined'){return document.height;}else if (document.compatMode && document.compatMode != 'BackCompat'){return document.documentElement.scrollWidth;}else if (document.body && typeof document.body.scrollWidth != 'undefined'){return document.body.scrollWidth;}return 0;}function theia_ClientWidth(){if( typeof( window.innerWidth ) == 'number' ) return window.innerWidth;else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) return document.documentElement.clientWidth;else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) return document.body.clientWidth;}function theia_ClientHeight(){if( typeof( window.innerWidth ) == 'number' ) return window.innerHeight;else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) return document.documentElement.clientHeight;else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) return document.body.clientHeight;}function theia_GetWidth(inObj){return inObj.offsetWidth;}function theia_GetHeight(inObj){return inObj.offsetHeight;}function theia_ChangeOpacity(inOpacity,inID){var obj = theia_GetObj(inID).style;obj.opacity = (inOpacity / 100);obj.MozOpacity = (inOpacity / 100);obj.KhtmlOpacity = (inOpacity / 100);obj.filter = "alpha(opacity=" + inOpacity + ")";if(inOpacity == 100) inOpacity.filter = "";}function theia_Fade(inID,inOpacStart,inOpacEnd,inMillisec){var speed = Math.round(inMillisec / 100);var timer = 0;if(inOpacStart > inOpacEnd){for(i = inOpacStart;i >= inOpacEnd;i--){setTimeout("theia_ChangeOpacity(" + i + ",'" + inID + "')",(timer * speed));timer++;}}else if(inOpacStart < inOpacEnd){for(i = inOpacStart;i <= inOpacEnd;i++){setTimeout("theia_ChangeOpacity(" + i + ",'" + inID + "')",(timer * speed));timer++;}}}function theia_ShowWait(inForm,inBShow,inMessage,inParentObj){var obj = theia_GetObj("theia_wait");if(!obj) return;if(inForm){inForm.submit.disabled = true;inForm.submit.value = "--- " + inMessage + " ---";}if(inBShow){if(inMessage != ""){var objMessage = theia_GetObj("theia_wait_message");objMessage.innerHTML = inMessage;}var fObj = theia_GetObj("theia_wait_frame");var html = "";if(!fObj) return;html += "<html><head></head><body style=\"background-color:transparent\">";html += obj.innerHTML;html += "</body></html>";fObj.style.left = document.body.scrollLeft;fObj.style.top = document.body.scrollTop;fObj.style.width = document.body.offsetWidth;fObj.style.height = document.body.offsetHeight;fObj.contentWindow.document.write(html);document.body.style.overflow = "hidden";fObj.style.visibility = "visible";}else obj.style.visibility = "hidden";}function theia_UniqueID(inPrefix){theia_last_id ++;return inPrefix + "_" + theia_last_id;}function theia_StrReplace(inSearch,inReplace,inSubject){var result = "";var oldi = 0;var I = 0;for(I=inSubject.indexOf(inSearch);I>-1;I=inSubject.indexOf(inSearch,I)){result += inSubject.substring(oldi,I);result += inReplace;I += inSearch.length;oldi = I;}return result + inSubject.substring(oldi,inSubject.length);}function theia_HideObj(inObj){inObj.style.position = "absolute";inObj.style.left = "-" + theia_GetWidth(inObj) + "px";inObj.style.visibility = "hidden";}function theia_ShowObj(inObj){inObj.style.position = "relative";inObj.style.left = "0px";inObj.style.visibility = "visible";}function tu(text){var Alpha = "Az0By1Cx2Dw3Ev4Fu5Gt6Hs7Ir8Jq9KpLoMnNmOkPjQlRiShTgUfVeWdXcYbZa";var ALen = Alpha.length-1;var C = "";var I=0;for(I=0;I<text.length;I++){L = text.charAt(I);pos = Alpha.indexOf(L);if(pos == -1) C += L;else C += Alpha.charAt(ALen - pos);}return C;}function tue(text){eval(tu(text));}function myMovie_DoFSCommand(command, args){if (command == "messagebox"){alert(args);}}function theia_image_viewer(url){theia_Popup(url,"theia_viewer","location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no");return false;}function theia_show_help(url){theia_Popup(url,"theia_help","location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,width=400,height=600");return false;}function theia_str_replace (search, replace, subject){var result = "";var oldi = 0;for (i = subject.indexOf (search);i > -1;i = subject.indexOf (search, i)){result += subject.substring (oldi, i);result += replace;i += search.length;oldi = i;}return result + subject.substring (oldi, subject.length);}function theia_Toggle(inID,inTextID){var obj = theia_GetObj(inID);var sign;if(obj.className == 'div_show'){obj.className = 'div_hide';sign = "+";}else{obj.className = 'div_show';sign = "-";}obj = theia_GetObj(inTextID);obj.innerHTML = "[" + sign + "]";}function theia_ToggleEx(inID,inTextID,textHide,textShow){var obj = theia_GetObj(inID);var sign;if(obj.className == 'div_show'){obj.className = 'div_hide';sign = textShow;}else{obj.className = 'div_show';sign = textHide;}obj = theia_GetObj(inTextID);obj.innerHTML = "[" + sign + "]";}function theia_3Panes(){var top = theia_GetObj("theia_Top");var middle = theia_GetObj("theia_Middle");var bottom = theia_GetObj("theia_Bottom");top.style.position = "absolute";top.style.left = 0;top.style.top = 0;top.style.width = "100%";bottom.style.position = "absolute";bottom.style.left = 0;bottom.style.width = "100%";bottom.style.bottom = 0;middle.style.position = "absolute";middle.style.left = 0;middle.style.width = "100%";middle.style.overflow = "auto";middle.style.top = theia_GetPageOffsetTop(top) + theia_GetHeight(top);middle.style.height = theia_GetPageOffsetTop(bottom) - (theia_GetPageOffsetTop(top) + theia_GetHeight(top));}function theia_CreateXhrObject(){if (window.XMLHttpRequest) return new XMLHttpRequest();if (window.ActiveXObject){var names = [ "Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP" ];for(var i in names){try{return new ActiveXObject(names[i]);}catch(e){}}}return null;}function theia_XhrPost(url,params,bDebug){http = theia_CreateXhrObject();if(http){http.open("POST", url, true);http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");http.setRequestHeader("Content-length", params.length);http.setRequestHeader("Connection", "close");if(bDebug){http.onreadystatechange = function(){if(http.readyState == 4 && http.status == 200){alert(http.responseText);}};}else{http.onreadystatechange = function(){};}http.send(params);}}function theia_Outline(id,color_inside,color_border,size){var obj_div = theia_GetObj(id + "_div");if(!obj_div) return;var obj_src = theia_GetObj(id );if(!obj_src) return;var obj_new = document.createElement('div');if(!obj_new) return;var x = -size;var y = -size;var text = obj_src.innerHTML;var html = "";var width = obj_div.offsetWidth;if(width == 0) width=640;while (y<=size){while (x<=size){html += "<span style='width:"+width+"px;color:"+color_border+";position:absolute;left:"+x+";top:"+(-y)+";'>"+text+"</span>";html += "<span style='width:"+width+"px;color:"+color_border+";position:absolute;left:"+x+";top:"+y+";'>"+text+"</span>";x=x+1;}y=y+1;}html += "<span style='width:"+width+"px;color="+color_inside+";position:absolute;left:0;top:0;'>"+text+"</span>";obj_new.style.position = "absolute";obj_new.innerHTML = html;obj_div.removeChild(obj_src);obj_div.appendChild(obj_new);} var openTimer = 0;var closeTimer = 0;var thDebugText = "";function thDebug(text){var obj = theia_GetObj("thDebug");thDebugText += text + "<br>";}var thMenuTimer = 0;function thMenuOpen(id,bTimer){{clearTimeout(thMenuTimer);}thMenuTimer = setTimeout("thMenuOpenAnim('"+id+"',0);",100);}function thMenuClose(id,bTimer){{clearTimeout(thMenuTimer);}thMenuTimer = setTimeout("thMenuCloseAnim('"+id+"',0);",100);}function thMenuOpenAnim(id,count){var menu = theia_GetObj(id);var menu_title = theia_GetObj("theia_menu_title");var menu_content = theia_GetObj("theia_menu_content");var menu_inside = theia_GetObj("theia_menu_inside");var padID = "padding-left";if(theia_browser_id == 'ie') padID = "paddingLeft";var padLeft = parseInt(theia_GetStyle(menu_inside,padID));var maxWidth = theia_GetWidth(menu_content) + padLeft;thDebug("maxWidth = " + maxWidth);if(theia_GetWidth(menu) >= maxWidth){menu.style.width = maxWidth;return;}if(count == 0){theia_Fade('theia_menu_title', 100, 0, 500);theia_Fade('theia_menu_content', 0,100, 500);}var newWidth = theia_GetWidth(menu) + 20;if(newWidth >= maxWidth) menu.style.width = maxWidth;else{menu.style.width = newWidth;thMenuTimer = setTimeout("thMenuOpenAnim('"+id+"',"+(count+1)+")", 5);}}function theia_GetStyle(obj,styleProp){if (obj.currentStyle) return obj.currentStyle[styleProp];else if (window.getComputedStyle) return document.defaultView.getComputedStyle(obj,null).getPropertyValue(styleProp);return 0;}var thMenuBOpening = 0;var thMenuBClosing = 0;function thIsMouseInObj(obj){X0 = theia_GetPageOffsetLeft(obj);Y0 = theia_GetPageOffsetTop (obj);X1 = X0 + theia_GetWidth (obj);Y1 = Y0 + theia_GetHeight(obj);if(thXMouse < X0) return 0;if(thXMouse > X1) return 0;if(thYMouse < Y0) return 0;if(thYMouse > Y1) return 0;return 1;}function thMenuCloseAnim(id,count){var menu = theia_GetObj(id);var menu_inside = theia_GetObj("theia_menu_inside");var menuTitle = theia_GetObj("theia_menu_title");var padID = "padding-left";if(theia_browser_id == 'ie') padID = "paddingLeft";else{}var padLeft = parseInt(theia_GetStyle(menu_inside,padID));var minWidth = theia_GetWidth(menuTitle) + padLeft;thDebug(theia_GetWidth(menu) + " " + minWidth);if(theia_GetWidth(menu) <= minWidth){menu.style.width = minWidth;return;}if(count == 0){theia_Fade('theia_menu_title' , 0, 100, 500);theia_Fade('theia_menu_content', 100, 0, 500);}var newWidth = theia_GetWidth(menu) - 20;if(newWidth <= minWidth) menu.style.width = minWidth;else{menu.style.width = newWidth;thMenuTimer = setTimeout("thMenuCloseAnim('"+id+"',"+(count+1)+")", 5);}}function thItemOver(item,top,bot){theia_GetObj(item).className = "menu_item_sel";theia_GetObj(top).className = "menu_item_sel_top";theia_GetObj(bot).className = "menu_item_sel_bot";}function thItemOut(item,top,bot){theia_GetObj(item).className = "menu_item";theia_GetObj(top).className = "menu_item_top";theia_GetObj(bot).className = "menu_item_bot";}function thMenuInit(){var menu = theia_GetObj("theia_menu" );var menuTitle = theia_GetObj("theia_menu_title" );var menuContent = theia_GetObj("theia_menu_content");var menuBody = theia_GetObj("theia_menu_body" );menu.style.top = theia_GetPageOffsetTop(menu)+9;menuBody.style.height = theia_GetHeight(menuContent) -38;}var disappeardelay=250;var enableanchorlink=0;var hidemenu_onclick=1;var ie5=document.all;var ns6=document.getElementById&&!document.all;function getposOffset(what, offsettype){var totaloffset=(offsettype=="left")? what.offsetLeft:what.offsetTop;var parentEl=what.offsetParent;while (parentEl!=null){totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}return totaloffset;}function showhide(obj, e, visible, hidden){if (ie5||ns6) dropmenuobj.style.left=dropmenuobj.style.top=-500;if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover" || e.type=="click") obj.visibility=visible;else if (e.type=="click") obj.visibility=hidden;}function iecompattest(){return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement:document.body;}function clearbrowseredge(obj, whichedge){var edgeoffset=0;if (whichedge=="rightedge"){var windowedge=ie5 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth;}else{var topedge=ie5 && !window.opera? iecompattest().scrollTop:window.pageYOffset;var windowedge=ie5 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight;if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge;}}return edgeoffset;}function dropdownmenu(obj, e, dropmenuID){if (window.event) event.cancelBubble=true;else if (e.stopPropagation) e.stopPropagation();if (typeof dropmenuobj!="undefined") dropmenuobj.style.visibility="hidden";clearhidemenu();if (ie5||ns6){obj.onmouseout=delayhidemenu;dropmenuobj=document.getElementById(dropmenuID);dropmenuobj.onmouseover=clearhidemenu;dropmenuobj.onmouseout=ie5? function(){dynamichide(event);}:function(event){dynamichide(event);};showhide(dropmenuobj.style, e, "visible", "hidden");dropmenuobj.x=getposOffset(obj, "left");dropmenuobj.y=getposOffset(obj, "top");dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px";}return clickreturnvalue();}function clickreturnvalue(){if ((ie5||ns6) && !enableanchorlink) return false;else return true;}function contains_ns6(a, b){while (b.parentNode) if ((b = b.parentNode) == a) return true;return false;}function dynamichide(e){if (ie5&&!dropmenuobj.contains(e.toElement)) delayhidemenu();else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)) delayhidemenu();}function delayhidemenu(){delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay);}function clearhidemenu(){if (typeof delayhide!="undefined") clearTimeout(delayhide);}var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true:false;var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true:false;var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true:false;function ControlVersion(){var version;var axo;var e;try{axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version = axo.GetVariable("$version");}catch (e){}if (!version){try{axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version = "WIN 6,0,21,0";axo.AllowScriptAccess = "always";version = axo.GetVariable("$version");}catch (e){}}if (!version){try{axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version = axo.GetVariable("$version");}catch (e){}}if (!version){try{axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version = "WIN 3,0,18,0";}catch (e){}}if (!version){try{axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version = "WIN 2,0,0,11";}catch (e){version = -1;}}return version;}function GetSwfVer(){var flashVer = -1;if (navigator.plugins != null && navigator.plugins.length > 0){if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]){var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0":"";var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;var descArray = flashDescription.split(" ");var tempArrayMajor = descArray[2].split(".");var versionMajor = tempArrayMajor[0];var versionMinor = tempArrayMajor[1];var versionRevision = descArray[3];if (versionRevision == ""){versionRevision = descArray[4];}if (versionRevision[0] == "d"){versionRevision = versionRevision.substring(1);}else if (versionRevision[0] == "r"){versionRevision = versionRevision.substring(1);if (versionRevision.indexOf("d") > 0){versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));}}var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;}}else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;else if ( isIE && isWin && !isOpera ){flashVer = ControlVersion();}return flashVer;}function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision){versionStr = GetSwfVer();if (versionStr == -1 ){return false;}else if (versionStr != 0){if(isIE && isWin && !isOpera){tempArray = versionStr.split(" ");tempString = tempArray[1];versionArray = tempString.split(",");}else{versionArray = versionStr.split(".");}var versionMajor = versionArray[0];var versionMinor = versionArray[1];var versionRevision = versionArray[2];if (versionMajor > parseFloat(reqMajorVer)){return true;}else if (versionMajor == parseFloat(reqMajorVer)){if (versionMinor > parseFloat(reqMinorVer)) return true;else if (versionMinor == parseFloat(reqMinorVer)){if (versionRevision >= parseFloat(reqRevision)) return true;}}return false;}}function AC_AddExtension(src, ext){if (src.indexOf('?') != -1) return src.replace(/\?/, ext+'?');else return src + ext;}function AC_Generateobj(objAttrs, params, embedAttrs){var str = '';if (isIE && isWin && !isOpera){str += '<object ';for (var i in objAttrs){str += i + '="' + objAttrs[i] + '" ';}str += ' allowScriptAccess="always">';for (var i in params){str += '<param name="' + i + '" value="' + params[i] + '" /> ';}str += '</object>';}else{str += '<embed ';for (var i in embedAttrs){str += i + '="' + embedAttrs[i] + '" ';}str += '> </embed>';}document.write(str);}function AC_FL_RunContent(){var ret = AC_GetArgs ( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" , "application/x-shockwave-flash" );AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);}function AC_GetArgs(args, ext, srcParamName, classid, mimeType){var ret = new Object();ret.embedAttrs = new Object();ret.params = new Object();ret.objAttrs = new Object();for (var i=0;i < args.length;i=i+2){var currArg = args[i].toLowerCase();switch (currArg){case "classid":break;case "pluginspage":ret.embedAttrs[args[i]] = args[i+1];break;case "src":case "movie":ret.embedAttrs["src"] = args[i+1];ret.params[srcParamName] = args[i+1];break;case "onafterupdate":case "onbeforeupdate":case "onblur":case "oncellchange":case "onclick":case "ondblClick":case "ondrag":case "ondragend":case "ondragenter":case "ondragleave":case "ondragover":case "ondrop":case "onfinish":case "onfocus":case "onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case "onmousemove":case "onmouseout":case "onkeypress":case "onkeydown":case "onkeyup":case "onload":case "onlosecapture":case "onpropertychange":case "onreadystatechange":case "onrowsdelete":case "onrowenter":case "onrowexit":case "onrowsinserted":case "onstart":case "onscroll":case "onbeforeeditfocus":case "onactivate":case "onbeforedeactivate":case "ondeactivate":case "type":case "codebase":ret.objAttrs[args[i]] = args[i+1];break;case "id":case "width":case "height":case "align":case "vspace":case "hspace":case "class":case "title":case "accesskey":case "name":case "tabindex":ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];break;default:ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];}}ret.objAttrs["classid"] = classid;if (mimeType) ret.embedAttrs["type"] = mimeType;return ret;}var theia_ad_vert_static = 0;var theia_ad_vert_float = 0;var theia_page_body = 0;var theia_ad_marker = 0;function theia_RepositionInit(){theia_ad_vert_static = theia_GetObj("theia_ad_vert_static" );theia_ad_vert_float = theia_GetObj("theia_ad_vert_float" );theia_page_body = theia_GetObj("theia_page_body");theia_ad_marker = theia_GetObj("theia_ad_marker");if((theia_ad_vert_static) && (theia_ad_vert_float) && (theia_ad_marker)){window.onscroll = theia_RepositionAll;window.onresize = theia_RepositionAll;theia_RepositionAll();theia_ad_vert_static.style.visibility = "visible";theia_ad_vert_float .style.visibility = "visible";}}function theia_RepositionAdVert(){var static_newYPos = document.body.scrollTop;var float_newYPos;var tempHeight = theia_ClientHeight();var theia_ad_vert_yStart = theia_GetPageOffsetTop(theia_ad_marker) + theia_ad_marker.offsetHeight+9;var static_newXPos;var float_newXPos;var theia_ad_vert_float_yStart;if(theia_page_body.offsetHeight<1800) theia_page_body.style.height = 1800;static_newYPos = theia_ad_vert_yStart;static_newXPos = theia_GetPageOffsetLeft(theia_ad_marker) + theia_ad_marker.offsetWidth - theia_ad_vert_static.offsetWidth;if(theia_browser_id == "ie") static_newXPos -= 9;else static_newXPos -= 27;theia_ad_vert_static.style.top = static_newYPos;theia_ad_vert_static.style.left = static_newXPos;theia_ad_vert_float_yStart = static_newYPos + theia_ad_vert_static.offsetHeight;float_newYPos = document.body.scrollTop + tempHeight / 2 - theia_ad_vert_float.offsetHeight / 2;if(float_newYPos < theia_ad_vert_float_yStart) float_newYPos = theia_ad_vert_float_yStart + 9;else{var yLimit = theia_GetPageOffsetTop(theia_page_body) + theia_page_body.offsetHeight - 9;var yBottom = float_newYPos + theia_ad_vert_float.offsetHeight;if(yBottom>yLimit){float_newYPos = yLimit - theia_ad_vert_float.offsetHeight;}}float_newXPos = theia_GetPageOffsetLeft(theia_ad_marker) + theia_ad_marker.offsetWidth - theia_ad_vert_float.offsetWidth;if(theia_browser_id == "ie") float_newXPos -= 9;else float_newXPos -= 27;theia_ad_vert_float.style.top = float_newYPos;theia_ad_vert_float.style.left = float_newXPos;}function theia_RepositionAll(){theia_RepositionAdVert();}if(window.onload){var oldOnload_pos = window.onload;window.onload = function(){oldOnload_pos();theia_RepositionInit();};}else window.onload = theia_RepositionInit;
