var xPos4444444 = 300;
var yPos44444 = 200; 
var step6666 = 1;
var delay3333 = 30; 
var height = 0;
var Hoffset1111 = 0;
var Woffset77777 = 0;
var yon0000 = 0;
var xon77777 = 0;
var pause = true;
var interval;
img1.style.top = yPos44444;
function changePos4444() 
{
	width = document.body.clientWidth;
	height = document.body.clientHeight;
	Hoffset1111 = img1.offsetHeight;
	Woffset77777 = img1.offsetWidth;
	img1.style.left = xPos4444444 + document.body.scrollLeft;
	img1.style.top = yPos44444 + document.body.scrollTop;
	if (yon0000) 
		{yPos44444 = yPos44444 + step6666;}
	else 
		{yPos44444 = yPos44444 - step6666;}
	if (yPos44444 < 0) 
		{yon0000 = 1;yPos44444 = 0;}
	if (yPos44444 >= (height - Hoffset1111)) 
		{yon0000 = 0;yPos44444 = (height - Hoffset1111);}
	if (xon77777) 
		{xPos4444444 = xPos4444444 + step6666;}
	else 
		{xPos4444444 = xPos4444444 - step6666;}
	if (xPos4444444 < 0) 
		{xon77777 = 1;xPos4444444 = 0;}
	if (xPos4444444 >= (width - Woffset77777)) 
		{xon77777 = 0;xPos4444444 = (width - Woffset77777);   }
	}
	
	function start333()
	 {
	 	img1.visibility = "visible";
		interval = setInterval('changePos4444()', delay3333);
	}
	function pause_resume() 
	{
		if(pause) 
		{
			clearInterval(interval);
			pause = false;}
		else 
		{
			interval = setInterval('changePos4444()',delay3333);
			pause = true; 
			}
		}
	start333();