/*
var d = document.createElement('div');
d.id = 'suspend';
d.className = 'suspend';
d.style.position = 'absolute';
d.style.top = '0';
d.style.marginLeft = '1000px';

if (document.body) {
	document.body.appendChild(d);
	alert(1);
}
d.innerHTML = '<div id="qq" style="position:absolute"><img src="images/suspend.gif" width="80" height="170" usemap="#Map" /></div><map name="Map" id="Map"><area shape="rect" coords="2,54,77,88" href="skype:marketing1@shinlight.com?call" onclick="return skypeCheck();" /><area shape="rect" coords="2,96,76,125" href="http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=marketing2@shinlight.com&mkt=zh-cn" /><area shape="rect" coords="25,128,60,149" href="#" id="qiushi" /></map>';
*/

/*
 * @Name: qqScroll()  QQ滚动
 * @Author: xbei
 * @Date: 17:44 2009/09/17 周四
 * @Usage: obj = 最外层窗口	t = 时间
 * @Detail: webkit 下脚本失效, 其余浏览器下正常
 */
qqScroll = function(obj, t, boxHeight) {
	if (document.getElementById(obj)) {
		mainScroll = function() {
			var box = document.getElementById(obj);

			box.style.top = document.documentElement.scrollTop + boxHeight + 'px';
		};

		window.setInterval('mainScroll()', t);
	}
};

//Run
qqScroll('qq', 1, 390);
document.getElementById('qiushi').onclick = function() {
	document.getElementById('suspend').innerHTML = '';
};

