document.write("<div id='p3' style='position:absolute; left:297px; top:114px; width:100px; height:100px; z-index:100'><img src=images/hwm.jpg border=0></div>");
var xPos_p3 = document.body.clientWidth-70;
var yPos_p3 = 50;
var step_p3 = 1;
var delay_p3 = 10; 
var height = 0;
var Hoffset = 0;
var Woffset = 0;
var yon_p3 = 0;
var xon_p3 = 0;
var pause = true;
var interval;
p3.style.top = yPos_p3;
function changePos_p3() {
width = document.body.clientWidth;
height = document.body.clientHeight;
Hoffset = p3.offsetHeight;
Woffset = p3.offsetWidth;
p3.style.left = xPos_p3 + document.body.scrollLeft;
p3.style.top = yPos_p3 + document.body.scrollTop;
if (yon_p3) {
yPos_p3 = yPos_p3 + step_p3;
}
else {
yPos_p3 = yPos_p3 - step_p3;
}

if (yPos_p3 < 0) {
yon_p3 = 1;
yPos_p3 = 0;

}

if (yPos_p3 >= (height - Hoffset)) {
yon_p3 = 0;
yPos_p3 = (height - Hoffset);

}

if (xon_p3) {
xPos_p3 = xPos_p3 + step_p3;

}
else {
xPos_p3 = xPos_p3 - step_p3;

}

if (xPos_p3 < 0) {

xon_p3 = 1;

xPos_p3 = 0;

}

if (xPos_p3 >= (width - Woffset)) {
xon_p3 = 0;
xPos_p3 = (width - Woffset);

   }

}

function start_p3() {
p3.visibility = "visible";
interval = setInterval('changePos_p3()', delay_p3);

}

function pause_resume_p3() {
if(pause) {
clearInterval(interval);
pause = false;
}
else {
interval = setInterval('changePos_p3()',delay_p3);
pause = true;
   }
}
start_p3();