function popDivAd()
{
  document.writeln("<style>");
  document.writeln("#popDivAd{ position:fixed; bottom:10px; left:10px; _position: absolute; _bottom: auto;  _top: expression( eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop + (documentElement.clientHeight - this.clientHeight) - 1 : document.body.scrollTop + (document.body.clientHeight - this.clientHeight) - 1);}");
  document.writeln("</style>");
	document.writeln("<div id='popDivAd' style='position:fixed; z-index:9999; bottom:10px; left:10px; _position: absolute; _bottom: auto;  _top: expression( eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop + (documentElement.clientHeight - this.clientHeight) - 1 : document.body.scrollTop + (document.body.clientHeight - this.clientHeight) - 1); bottom:0px; background:#63B6EA;'>");
	document.writeln("<p style='position:relative;background:#63B6EA; width:285px; margin-bottom:0px; height:12px; text-align:right; font-size:12px;'><a href='javascript:;' onclick='closeDivAd();'><img src='http://static.kangq.com/kangq_img/close.gif' border='0'></a></p>");
	document.writeln("<div style='height:185px; width:285px;'><a href='http://www.kangq.com/wishes/' target='_blank'><img src='http://static.kangq.com/kangq_img/ad/xuyuan_ad.gif' border='0'></a></div>");
document.writeln("</div>");
}

function closeDivAd()
{
	$("#popDivAd").fadeOut("slow"); 
}


function moveR()
{
	window.document.getElementById('popDivAd').style.top=document.body.scrollTop+document.body.clientHeight-185;
	window.document.getElementById('popDivAd').style.left=document.body.scrollLeft+document.body.clientWidth-285;
	setTimeout("moveR();",80)
}

popDivAd();


