var hbcms_img_src = 'images/500qiang.jpg';
var hbcms_img_url = 'articledetail.php?cid=22&id=37';

var hbcms_img_w = '580';

var hbcms_img_h = '120';

var hbcms_img_alt = '';

document.write('<div id="piao" style="Z-INDEX:2; WIDTH: '+hbcms_img_w+'px; POSITION: absolute; HEIGHT: '+hbcms_img_h+'px"><img src="'+hbcms_img_src+'" width="'+hbcms_img_w+'" height="'+hbcms_img_h+'" border="0" alt="'+hbcms_img_alt+'" onMouseOver="pause_resume();" onMouseOut="pause_resume();"></div> ');
var xPos = 20;
var yPos = document.body.clientHeight;
var step = 1;
var height = 0;
var Hoffset = 0;
var Woffset = 0;
var yon = 0;
var xon = 0;
var pause = true;
var piao_interval;
var piao_obj;
piao_obj=Fid("piao");
function hbcms_changePos() {
	width = document.body.clientWidth;
	height = document.body.clientHeight;
	Hoffset = piao_obj.offsetHeight;
	Woffset = piao_obj.offsetWidth;
	piao_obj.style.left = xPos + document.body.scrollLeft+"px";
	piao_obj.style.top = yPos + document.body.scrollTop+"px";
	//alert(yPos + document.body.scrollTop);
	if (yon) {
		yPos = yPos + step;
	}
	else {
		yPos = yPos - step;
	}
	if (yPos < 0) {
		yon = 1;
		yPos = 0;
	}
	if (yPos >= (height - Hoffset)) {
		yon = 0;
		yPos = (height - Hoffset);
	}
	if (xon) {
		xPos = xPos + step;
	}
	else {
		xPos = xPos - step;
	}
	if (xPos < 0) {
		xon = 1;
		xPos = 0;
	}
	if (xPos >= (width - Woffset)) {
		xon = 0;
		xPos = (width - Woffset);
	}
}
function pause_resume() {
	if(pause) {clearInterval(piao_interval);pause = false;}
else {piao_interval = setInterval(hbcms_changePos,20);pause = true;}
}
piao_interval = setInterval(hbcms_changePos,20);

