var showad2 = true;
var Toppx2 = 200; 		//上端位置
var AdDivW2 = 120; 	//宽度
var AdDivH2 = 107; 	//高度
var PageWidth2 = 800; //页面多少宽度象素下正好不出现左右滚动条close.gif
var MinScreenW2 = 1024; //显示广告的最小屏幕宽度象素
var ClosebuttonHtml2 = '<div align="right" style="position: absolute;top:0px;right:0px;margin:2px;padding:2px;z-index:2000;"><a href="javascript:;" onclick="hidead2()" style="color:red;text-decoration:none;font-size:12px;"><img src="../ad_js/images/close.png" border="0"></a></div>'
var AdContentHtml2 = '<div align="center" style="position: absolute;top:0px;right:0px;"><a href="../web/Adshow.aspx?id=2" target="_blank"><img src="../ad_js/images/ad2.gif" border="0"></a></div>';
document.write('<div id="Javascript.LeftDiv2" style="position: absolute;border: 1px solid #336699;background-color:#ffffff;z-index:1000;width:' + AdDivW2 + 'px;height:' + AdDivH2 + 'px;top:-1000px; word-break:break-all;display:none;">' + ClosebuttonHtml2 + '<div>' + AdContentHtml2 + '</div></div>');
document.write('<div id="Javascript.RightDiv2" style="position: absolute;border: 1px solid #336699;background-color:#ffffff;z-index:1000;width:' + AdDivW2 + 'px;height:' + AdDivH2 + 'px;top:-1000px;word-break:break-all;display:none;">' + ClosebuttonHtml2 + '<div>' + AdContentHtml2 + '</div></div>');
scall2()
function scall2() {
    if (!showad2) { return; }
    if (window.screen.width < MinScreenW2) {
        alert("临时提示：\n\n显示器分辨率宽度小于" + MinScreenW2 + ",不显示广告");
        showad2 = false;
        document.getElementById("Javascript.LeftDiv2").style.display = "none";
        document.getElementById("Javascript.RightDiv2").style.display = "none";
        return;
    }
    var Borderpx2 = ((window.screen.width - PageWidth2) / 2 - AdDivW2) / 2;
    document.getElementById("Javascript.LeftDiv2").style.display = "";
    document.getElementById("Javascript.LeftDiv2").style.top = document.body.scrollTop + Toppx2;
    document.getElementById("Javascript.LeftDiv2").style.left = document.body.scrollLeft;
    document.getElementById("Javascript.RightDiv2").style.display = "";
    document.getElementById("Javascript.RightDiv2").style.top = document.body.scrollTop + Toppx2;
    document.getElementById("Javascript.RightDiv2").style.left = document.body.scrollLeft + document.body.clientWidth - document.getElementById("Javascript.RightDiv2").offsetWidth;
    setTimeout("scall2();", 20)
}
function hidead2() {
    showad2 = false;
    document.getElementById("Javascript.LeftDiv2").style.display = "none";
    document.getElementById("Javascript.RightDiv2").style.display = "none";
}
