﻿var $$ = function(id) { return "string" == typeof id ? document.getElementById(id) : id; };
function sflash(flashsrc,flashwidth,flashheight){document.write("<div style=\"position:relative\;background:transparent !important\;\"><embed src=\""+flashsrc+"\" quality=\"high\" width=\""+flashwidth+"\" height=\""+flashheight+"\" type=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" wmode=\"transparent\"></embed></div>");};
function h(obj,url){obj.style.behavior='url(#default#homepage)';obj.setHomePage(url);};
function fav(url,txtn){if(window.sidebar){window.sidebar.addPanel(txtn,url,"");}else{window.external.addFavorite(url,txtn);}};
function imageScan(oIS,iWit,imgid){var imgId = $$(imgid);var iWidth = oIS.width, iHeight = oIS.height;var bili;if (parseInt(oIS.width) > parseInt(iWit)) {bili = oIS.width / iWit;imgId.width=iWidth/bili;imgId.height=iHeight/bili;}};
function imgCenter(width,height,ids){var imgId=$$(ids);var iWidth=width,iHeight=height;var intWidth = document.body.scrollWidth;var nWeight = (intWidth-iWidth)/2;imgId.style.left = nWeight + "px";};
function ImgTip(imgSrc) { var oTip = $$("DivTip"); var intWidth = document.body.scrollWidth; var intHeight = document.body.scrollHeight; oTip.style.display = "block"; oTip.innerHTML = "<div style=\"position:relative;background-color:gray;filter:alpha(opacity=50);opacity:0.5;height:" + intHeight + "px;width:" + intWidth + "px;\"><div onclick=\"HideTip()\" style=\"left:" + parseInt(intWidth) / 2 + "px;z-index:3;top:20px;position:absolute;width:50px;height:20px;text-align:center;background-color:yellow;border:1px solid black;line-height:20px;cursor:pointer;\">关×闭</div></div><img id=\"bigImg\" style=\"top:20px;position:absolute;\" onload=\"imgCenter(this.width,this.height,this.id)\" ondblclick=\"HideTip()\" src=\"" + imgSrc.src + "\" alt=\"双击可关闭\" title=\"双击可关闭\" />"; }; function HideTip() { var oTip = $$("DivTip"); oTip.style.display = "none"; }; function getJob(numUrl) { var oID = $$("divGet"); var intWidth = document.body.scrollWidth; var intHeight = document.body.scrollHeight; var offtop; if (document.documentElement) { offtop = parseInt(document.documentElement.scrollTop) + (parseInt(document.documentElement.clientHeight) / 2); } else if (document.body) { offtop = parseInt(document.body.scrollTop) + (parseInt(document.body.clientHeight) / 2); } else { offtop = parseInt(window.pageYOffset) + (parseInt(window.pageYOffset) / 2); }; oID.style.display = "block"; var dLeft = (parseInt(intWidth) / 2 - 250), dTop = (parseInt(offtop) - 150); oID.innerHTML = '<div style="top:0px;left:0px;position:absolute;background-color:gray;filter:alpha(opacity=50);opacity:0.5;height:' + intHeight + 'px;width:' + intWidth + 'px;"></div><div style="left:' + dLeft + 'px;top:' + dTop + 'px;position:absolute;background-color:white;height:300px;width:500px;z-index:10;border-right:4px solid gray;border-bottom:4px solid gray;"><div style="height:25px;width:500px;background:url(/shareimg/dialogbox_tbg.gif) repeat-x;cursor:pointer;line-height:25px;background-color:#EFD1E6;"><div onclick="hiddendialog()" style="float:right;color:red;">关×闭</div><div><iframe id="dialog" src="' + numUrl + '" width="500px" height="270px" frameborder="0" scrolling="no"></iframe></div>'; var myFrame = $$("dialog"); myFrame.src = numUrl + "&tt=" + (new Date()).getTime(); }; function hiddendialog() { var oTip = $$("divGet"); oTip.innerHTML = ""; document.documentElement.style.overflow = "scroll"; oTip.style.display = "none"; }; function fonts(getid, iSize) { var cid = $$(getid); cid.style.fontSize = iSize + "px"; if (iSize >= 15) { cid.style.lineHeight = "25px"; } else { cid.style.lineHeight = "20px"; } }; if (typeof XMLHttpRequest == "undefined" && window.ActiveXObject) { function XMLHttpRequest() { var arrSignatures = ["MSXML2.XMLHTTP.5.0", "MSXML2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"]; for (var i = 0; i < arrSignatures.length; i++) { try { var oRequest = new ActiveXObject(arrSignatures[i]); return oRequest; } catch (oError) { }; }; throw new Error("你的系统不支持MSXML，无法使用网站某些功能！"); } }
