// JavaScript Document
//window.setInterval("heartBeat()",1);
var showad = true; //是否显示广告
///
var showadRight = true; //是否显示左边的广告
var showadLeft = true; //是否显示右边的广告
//
var Toppx = 160; //左上端位置
var Toppx2 = 160; //右上端位置
var AdDivW = 90; //宽度
var AdDivH = 300; //高度
var PageWidth = 836; //页面多少宽度象素下正好不出现左右滚动条

var ClosebuttonHtml = '<div align="" style="position: absolute;top:0px;Left:1px;margin:2px;padding:2px;z-index:2000;"><a href="javascript:;" onclick="hidead()" style="color:red;text-decoration:none;font-size:12px;" title="点击关闭"><img src="/js/close1.gif" border="0" /></a></div>';

//var RightAdContentHtml = '';

bg = new Array(3); //设定图片数量，如果图片数为3，这个参数就设为2，依次类推
bg[0] = '/js/kefud1.gif' //显示的图片路径，可用http://
bg[1] = '/js/kefud1.gif'
bg[2] = '/js/kefud1.gif'
bg[3] = '/js/kefud1.gif'
index = Math.floor(Math.random() * bg.length);
//document.write("<img src="+bg[index]+">");

var LeftAdContentHtml = '<div><img src="'+bg[index]+'" border="0" usemap="#MapMenu1" /><map name="MapMenu1" id="MapMenu1"><area shape="rect" coords="6,194,84,222" href="dayi.asp" target="_blank" alt="帮助中心" /><area shape="rect" coords="6,165,84,193" href="http://www.53kf.com/company.php?arg=best100&style=1" target="_blank" alt="在线咨询" /><area shape="rect" coords="6,136,84,164" href="http://www.53kf.com/company.php?arg=best100&style=1" target="_blank" alt="留言咨询" /><area shape="rect" coords="6,106,84,134" href="tencent://message/?uin=983773371&Site=www.lady138.cn&Menu=yes" target="_blank" alt="QQ：983773371" /><area shape="rect" coords="6,76,84,104" href="http://www.53kf.com/company.php?arg=best100&style=1" target="_blank" alt="免费电话" /><area shape="rect" coords="6,47,84,75" href="http://www.53kf.com/company.php?arg=best100&style=1" target="_blank" alt="在线应答" /><area shape="rect" coords="7,261,82,277" href="#" alt="返回顶部" /></map></div>';

//document.write ('<div id="Javascript.RightDiv" style="position: absolute;z-index:1000;width:'+AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtml+'<div>'+RightAdContentHtml+'</div></div>');

document.write ('<div id="Javascript.LeftDiv" style="position: absolute;z-index:1000;width:'+AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtml+'<div>'+LeftAdContentHtml+'</div></div>');

var MinScreenW = 1024; //显示广告的最小屏幕宽度象素


function scall(){

if(!showad){return;}

if (window.screen.width<MinScreenW){

alert("临时提示：\n\n显示器分辨率宽度小于"+MinScreenW+",不显示广告");

showad = false;

//document.getElementById("Javascript.RightDiv").style.display="none";

document.getElementById("Javascript.LeftDiv").style.display="none";

return;

}

var Borderpx = ((window.screen.width-PageWidth)/2-AdDivW)/2;

//document.getElementById("Javascript.RightDiv").style.display="";

//document.getElementById("Javascript.RightDiv").style.top=(document.documentElement.scrollTop+Toppx)+"px";

//document.getElementById("Javascript.RightDiv").style.Right=(document.documentElement.scrollRight+Borderpx)+"px";

document.getElementById("Javascript.LeftDiv").style.display="";

document.getElementById("Javascript.LeftDiv").style.top=(document.documentElement.scrollTop+Toppx2)+"px";

document.getElementById("Javascript.LeftDiv").style.Right=(document.documentElement.scrollRight+document.documentElement.clientWidth-document.getElementById("Javascript.LeftDiv").offsetWidth-Borderpx)+"px";

}

function hidead()

{

showad = false;

//document.getElementById("Javascript.RightDiv").style.display="none";

document.getElementById("Javascript.LeftDiv").style.display="none";

}
window.onscroll=scall;
window.onresize=scall;
window.onload=scall;