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://2009.mda7006.com/";
texts[0] = "手机智能化 移动手机桌面助理帮你搞定一切！完全免费！";
textHrefs[0] = "http://2009.mda7006.com/";
titles[1] = "139邮箱免费注册";
titleHrefs[1] = "http://union.co-cm.com/wicp/139mail/index.jsp?399230AFA5833D7B57090832469DD178=BBCE6C7C19C365330C905D2D75236E65&PID=0&501BCE144BC6145257090832469DD178=5BC4023D02C22F5F0C905D2D75236E65&AdPositionID=0&tag=1";
texts[1] = "139邮箱免费注册，大奖每月155名 G3上网本 每月10000名 10元电子充值卡";
textHrefs[1] = "http://union.co-cm.com/wicp/139mail/index.jsp?399230AFA5833D7B57090832469DD178=BBCE6C7C19C365330C905D2D75236E65&PID=0&501BCE144BC6145257090832469DD178=5BC4023D02C22F5F0C905D2D75236E65&AdPositionID=0&tag=1";

var ran = parseInt(Math.random()*2);
//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';
}
