
//***********C-3 对联广告1样式******************************//

var PageWidth = 866;    //页面多少宽度象素下正好不出现左右滚动条
var MinScreenW = 1024;    //显示广告的最小屏幕宽度象素
var showadb = true;        //b是否显示广告
var Toppxb = 60;            //b上端位置
var AdDivWb = 90;        //b宽度
var AdDivHb = 250;        //b高度
var ClosebuttonHtmlb = '<div align="right" style="position: absolute;top:0px;right:0px;margin:1px;padding:1px;z-index:1001;"><a onClick=hideadb() style="CURSOR: hand; color:#FFFFFF; font-weight:bold; line-height:16px; text-decoration:none;font-size:12px;">关闭</a></div>'
var LAdContentHtmlb = '<div align="center"><embed src="http://www.stec.gov.cn/top/yunpin/duilian.swf" quality="high" wmode="opaque" width="90" height="250" align="middle" type="application/x-shockwave-flash"></embed></div>';
var RAdContentHtmlb = '<div align="center"><embed src="http://www.stec.gov.cn/top/yunpin/duilian.swf" quality="high" wmode="opaque" width="90" height="250" align="middle" type="application/x-shockwave-flash"></embed></div>';
document.write ('<div id="Javascript.LeftDivb" style="position: absolute;border: 1px solid #336699;background-color:#FFF;z-index:198;width:'+AdDivWb+'px;height:'+AdDivHb+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtmlb+'<div>'+LAdContentHtmlb+'</div></div>');
document.write ('<div id="Javascript.RightDivb" style="position: absolute;border: 1px solid #336699;background-color:#FFF;z-index:202;width:'+AdDivWb+'px;height:'+AdDivHb+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtmlb+'<div>'+RAdContentHtmlb+'</div></div>');
function scallb(){

//***********C-3 对联广告1显示******************************//
	
	
    if(!showadb){return;}
    if (window.screen.width<MinScreenW){
        //alert("临时提示：nn显示器分辨率宽度小于"+MinScreenW+",不显示广告");
        showadb = false;
        document.getElementById("Javascript.LeftDivb").style.display="none";
        document.getElementById("Javascript.RightDivb").style.display="none";
        return;
    }
    var Borderpxb = ((window.screen.width-PageWidth)/2-AdDivWb)/2;
    document.getElementById("Javascript.LeftDivb").style.display="";
    document.getElementById("Javascript.LeftDivb").style.top=(document.documentElement.scrollTop+Toppxb)+"px";
    document.getElementById("Javascript.LeftDivb").style.left=(document.documentElement.scrollLeft+Borderpxb)+"px";
    document.getElementById("Javascript.RightDivb").style.display="";
    document.getElementById("Javascript.RightDivb").style.top=(document.documentElement.scrollTop+Toppxb)+"px";
    document.getElementById("Javascript.RightDivb").style.left=(document.documentElement.scrollLeft+document.documentElement.clientWidth-document.getElementById("Javascript.RightDivb").offsetWidth-Borderpxb)+"px";
	

}

//***********C-3 对联广告1关闭******************************//
function hideadb()
{
    showadb = false;
    document.getElementById("Javascript.LeftDivb").style.display="none";
    document.getElementById("Javascript.RightDivb").style.display="none";
}
window.onscroll=scallb;
window.onresize=scallb;
window.onload=scallb;

