// JavaScript Document
lastScrollY = 0;
function heartBeat() {
	var diffY;
	if (document.documentElement && document.documentElement.scrollTop)
		diffY = document.documentElement.scrollTop;
	else if (document.body)
		diffY = document.body.scrollTop
	else {/* Netscape stuff */
	}

	// alert(diffY);
	percent = .1 * (diffY - lastScrollY);
	if (percent > 0)
		percent = Math.ceil(percent);
	else
		percent = Math.floor(percent);
		//document.getElementById("lefimg").style.top = parseInt(document.getElementById("lefimg").style.top)+ percent + "px";
		document.getElementById("rigimg").style.top = parseInt(document.getElementById("rigimg").style.top)+ percent + "px";

	lastScrollY = lastScrollY + percent;
	
}
//suspendcode12 = "<DIV id=\"lefimg\" style='left: 2px; POSITION: absolute; TOP: 50px; background: #e4d7c1; width:220px; height:120px;'><img src=images/jytd/hz-aben.jpg border=0 style=cursor:hand onclick=mm();></div>"
suspendcode14 = "<DIV id=\"rigimg\" style='right: 2px; POSITION: absolute; TOP: 120px; background: #e4d7c1; width: 150px; height:140px; border=2px #d0c4b1 solid;'>" +
					"<table width=100% border=0>" +
						"<tr><td>¿Í·þQQ:</td></tr>" +
					"</table>" +
					"<table width=100% border=0>" +
						"<tr>" +
							"<td width=5></td>" +
							"<td width=5>" +
								"<img src=images/hs/qq.jpg>" +
							"</td>" +
							"<td>" +
								"<a href=http://wpa.qq.com/msgrd?V=1&Uin=1151040019&Site=http://www.cnqq.net&Menu=yes>1151040019</a>" +
							"</td>" +
						"</tr>" +
						"<tr><td height=5></td></tr>" +
						"<tr>" +
							"<td width=5></td>" +
							"<td width=5>" +
								"<img src=images/hs/qq.jpg>" +
							"</td>" +
							"<td>" +
								"<a href=http://wpa.qq.com/msgrd?V=1&Uin=1290595530&Site=http://www.cnqq.net&Menu=yes>1290595530</a>" +
							"</td>" +
						"</tr>" +
						"<tr><td height=5></td></tr>" +
						"<tr>" +
							"<td width=5></td>" +
							"<td width=5>" +
								"<img src=images/hs/qq.jpg>" +
							"</td>" +
							"<td>" +
								"<a href=http://wpa.qq.com/msgrd?V=1&Uin=840549530&Site=http://www.cnqq.net&Menu=yes>840549530</a>" +
							"</td>" +
						"</tr>" +
					"</table>" +
				"</div>"

//document.write(suspendcode12);
document.write(suspendcode14);

window.setInterval("heartBeat()", 1);

function hidden() {// ¹Ø±Õ´úÂë
	document.getElementById("lefimg").style.display = "none";
	document.getElementById("rigimg").style.display = "none";
}
// -->

function mm() {
	window.open("http://www.abc.cn/yd/index.html");
}
