var xPos =50;
var yPos = 10;
var step = 1;
var delay = 20;
var height = 0;
var Hoffset = 0;
var Woffset = 0;
var yon = 0;
var xon = 0;
var pause = true;
var interval;
//postit.style.top = yPos;
function changePos() {
var postit=document.getElementById("postit");
width = document.documentElement.clientWidth;
height = document.documentElement.clientHeight;
Hoffset = postit.offsetHeight;
Woffset = postit.offsetWidth;
postit.style.left = xPos + document.body.scrollLeft;
postit.style.top = 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 www_helpor_net() {
var postit=document.getElementById("postit");
postit.visibility = "visible";
interval = setInterval('changePos()', delay);
}
ie4=(document.all)?true:false;
ns4=(document.layers)?true:false;
 
function toExit(){
var args=toExit.arguments;
var visible=args[0];
if(ns4){
        theObj=eval("document.layers[\'"+args[1]+"\']");
        if(theObj)theObj.visibility=visible;
        }
else if(ie4){
        if(visible=='show')visible='visible';
        if(visible=='hide')visible='hidden';
        theObj=eval("document.all[\'"+args[1]+"\']");
        if(theObj)theObj.style.visibility=visible;
        }
 
} 
function pause_resume() {
clearInterval(interval);
pause = false;
} 
function play_resume() {
interval = setInterval('changePos()',delay);
pause = true;
 
}

function closeAdvert(){//关闭漂浮
	document.getElementById("postit").style.visibility='hidden';
} 
