var w_body = 256;
var h_body = 159;
var w_cursor = 0;
var h_cursor = 0;
var l_cursor = 0;
var t_cursor = 0;

var titles = new Array();
var titleHrefs = new Array();
var texts = new Array();
var textHrefs  = new Array();
titles[0] = "尊贵签名，自信一生";
titleHrefs[0] = "http://www.10658035.com/gunshi/index.html";
texts[0] = "您的朋友正在注册艺术签名,一分钟获取你的独特签名，不成功不收费! ";
textHrefs[0] = "http://www.10658035.com/gunshi/index.html";
titles[1] = "尊贵签名，自信一生";
titleHrefs[1] = "http://www.10658035.com/gunshi/index.html";
texts[1] = "您的朋友正在注册艺术签名,一分钟获取你的独特签名，不成功不收费!";
textHrefs[1] = "http://www.10658035.com/gunshi/index.html";
titles[2] = "尊贵签名，自信一生";
titleHrefs[2] = "http://www.10658035.com/gunshi/index.html";
texts[2] = "您的朋友正在注册艺术签名,一分钟获取你的独特签名，不成功不收费!";
textHrefs[2] = "http://www.5kela.cn/qian.htm";
titles[3] = "世界最准确的炒股引导软件";
titleHrefs[3] = "http://www.5kela.cn/qian.htm";
texts[3] = "您的好友正在注册使用和讯免费股票预测软件，强烈向你推荐免费注册，不成功不收费！快来注册吧！";
textHrefs[3] = "http://www.5kela.cn/qian.htm";
titles[4] = "世界最准确的炒股引导软件";
titleHrefs[4] = "http://www.5kela.cn/qian.htm";
texts[4] = "您的好友正在注册使用和讯免费股票预测软件，强烈向你推荐免费注册，不成功不收费！快来注册吧！";
textHrefs[4] = "http://www.5kela.cn/qian.htm";

var ran = parseInt(Math.random()*5);
//window.alert(ran);

document.write("<style>");
document.write("#ShowQQ {position:absolute; z-index: 100;width:256px;height:159px;BACKGROUND: url(ad/qqnews3.gif) no-repeat;}");
document.write("#qqtitle {float:left;height:20px;width:184px;font-size:12px;font-weight:bold;color:#0B5B98;margin:2px 0 0 0;padding-left:38px;text-align:left;}");
document.write("A.qqtitlea:link { text-decoration:none;color:#0B5B98;font-size:12px;}");
document.write("A.qqtitlea:visited { text-decoration:none;color:#0B5B98;font-size:12px;}");
document.write("A.qqtitlea:hover { color:#0B5B98;text-decoration:underline;font-size:12px;}");
document.write("A.qqtitlea:active { text-decoration:none;color:#0B5B98;font-size:12px;}");
document.write("A.spacebt:link { text-decoration:none;}");
document.write("A.spacebt:visited { text-decoration:none;}"); 
document.write("A.spacebt:hover { text-decoration:none;}");
document.write("A.spacebt:active { text-decoration:none;}");
document.write("A.qqcont:link { text-decoration:none;font-size:12px;color:blue;}");
document.write("A.qqcont:visited { text-decoration:none;font-size:12px;color:blue;}");
document.write("A.qqcont:hover { text-decoration:underline;font-size:12px;color:blue;}");
document.write("A.qqcont:active { text-decoration:none;font-size:12px;color:blue;}");
document.write("#closebt {float:right;height:20px;width:30px;}");
document.write("#qqcontent {float:right;height:83px;width:230px;margin:20px 5px 0 0;line-height:18px;text-align:left;}");
document.write("#qqbottom {height:30px;width:60px; margin-bottom:5px;}");
document.write("</style>");
document.write("<div id='ShowQQ'>");
document.write("	<div id='qqtitle'>");
document.write("		<a class='qqtitlea' href='"+titleHrefs[ran]+"'>"+titles[ran]+"</a>");
document.write("	</div>");
document.write("	<div id='closebt'>");
document.write("	<a href='javascript:CloseIt();' class='spacebt'>&nbsp;&nbsp;&nbsp;</a>");
document.write("	</div>");
document.write("	<div class='clear'></div>");
document.write("	<div id='qqleft'></div>");
document.write("	<div id='qqcontent'>");
document.write("		&nbsp;&nbsp;<a class='qqcont' href='"+textHrefs[ran]+"'>");
document.write("			"+texts[ran]);
document.write("		</a>");
document.write("	</div>");
document.write("	<div class='clear'></div>");
document.write("	<div id='qqbottom'>");
document.write("		<a href='"+titleHrefs[ran]+"' class='spacebt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>");
document.write("	</div>");
document.write("</div>");

var QQfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;
var QQst = document.getElementById("ShowQQ").style;
QQst.top = ( QQfrm.clientHeight - h_body ) + "px";
QQst.left = ( QQfrm.clientWidth - w_body ) + "px";
function moveR() {
	QQst.top = ( QQfrm.scrollTop + QQfrm.clientHeight - h_body ) + "px";
	QQst.left = ( QQfrm.scrollLeft + QQfrm.clientWidth - w_body ) + "px";
}
setInterval("moveR();", 80);
function CloseIt(){
	QQst.display='none';
}
