var fuyun = document.getElementById("divPFGG");
var fy_xPos = 1;
var fy_yPos = document.body.clientHeight - 80;
var fy_step = 1;
var fy_delay = 30; 
var fy_height = 0;
var fy_Hoffset = 0;
var fy_Woffset = 0;
var fy_yon = 0;
var fy_xon = 0;
var fy_pause = true;
var interval;
fuyun.style.top = fy_yPos;
function changePos() {
	fy_width = document.body.clientWidth;
	fy_height = document.body.clientHeight;
	fy_Hoffset = 100; //fuyun.offsetHeight;
	fy_Woffset = 100; //fuyun.offsetWidth;
	fuyun.style.left = fy_xPos + document.body.scrollLeft;
	fuyun.style.top = fy_yPos + document.body.scrollTop;
	if (fy_yon) {
		fy_yPos = fy_yPos + fy_step;
	} else {
		fy_yPos = fy_yPos - fy_step;
	}
	if (fy_yPos < 0) {
		fy_yon = 1;
		fy_yPos = 0;
	}
	if (fy_yPos >= (fy_height - fy_Hoffset)) {
		fy_yon = 0;
		fy_yPos = (fy_height - fy_Hoffset);
	}
	if (fy_xon) {
		fy_xPos = fy_xPos + fy_step;
	} else {
		fy_xPos = fy_xPos - fy_step;
	}
	if (fy_xPos < 0) {
		fy_xon = 1;
		fy_xPos = 0;
	}
	if (fy_xPos >= (fy_width - fy_Woffset)) {
		fy_xon = 0;
		fy_xPos = (fy_width - fy_Woffset);
	}
}
function start() {
	fuyun.visibility = "visible";
	interval = setInterval('changePos()', fy_delay);
}
function fy_pause_resume() {
	if(fy_pause) {
		clearInterval(interval);
		fy_pause = false;
	} else {
		interval = setInterval('changePos()',fy_delay);
		fy_pause = true;
	}
}

