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