﻿var ref = "";
try{
	ref = escape(document.referrer);
}catch(e){
}
//var ad_width = 200;
//var ad_height = 130;
var w_cursor = 20;
var h_cursor = 20;
var l_cursor = 180;
var t_cursor = 0;
ad_height=parseInt(ad_height);
ad_width=parseInt(ad_width);

document.writeln("<div id=\"_ShowQQ_08UN_\" style=\" width: "+ad_width+"px; height: "+ad_height+"px; z-index:100; position:absolute; \">");
document.writeln("<div  style=\"float: left;width: "+ad_width+"px; height: "+ad_height+"px; clear: both;\">");
document.writeln(ad_url);
document.writeln("<\/div><\/div>");

var QQfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;
var QQst = document.getElementById("_ShowQQ_08UN_").style;
QQst.top = ( QQfrm.clientHeight - ad_height ) + "px";
QQst.left = ( QQfrm.clientWidth - ad_width ) + "px";
function moveR() {
	QQst.top = ( QQfrm.scrollTop + QQfrm.clientHeight - ad_height ) + "px";
	if(typeof(float)!='undefined' && float=="left"){
		QQst.left ="0px";
	}else{
	QQst.left = ( QQfrm.scrollLeft + QQfrm.clientWidth - ad_width ) + "px";
	}
}



  var close_div=document.createElement("div");
  close_div.innerHTML="关闭";

  with(close_div.style)
  {
	  width="30px";
	  height="20px";
	  lineHeight="20px";
	  marginRight="2px";
	  marginTop="2px";
	  position="absolute";
	  top="0px";
	  right="0px";
	  textDecoration='none';
	  cursor='pointer';
	  display='block';
	  border="0px solid red";
	  filter= "alpha(opacity=0)";
	  opacity=0;
	  zoom="1";
	  textDecoration='none';
	  fontSize="12px";
  }
  close_div.onclick=function(){
	  document.getElementById("_ShowQQ_08UN_").style.display='none';
  }
document.getElementById("_ShowQQ_08UN_").appendChild(close_div);
setInterval("moveR();", 80);
