var xPos_2 = 680;
var yPos_2 = 200;
var step_2 = 1;
var delay_2 = 30; 
var height_2 = 0;
var Hoffset_2 = 0;
var Woffset_2 = 0;
var yon_2 = 0;
var xon_2 = 0;
var pause_2 = true;
var interval_2;
img2.style.top = yPos_2;
function changePos_2() 
{
	width = document.body.clientWidth;
	height_2 = document.body.clientHeight;
	Hoffset_2 = img2.offsetHeight;
	Woffset_2 = img2.offsetWidth;
	img2.style.left = xPos_2 + document.body.scrollLeft;
	img2.style.top = yPos_2 + document.body.scrollTop;
	if (yon_2) 
		{yPos_2 = yPos_2 + step_2;}
	else 
		{yPos_2 = yPos_2 - step_2;}
	if (yPos_2 < 0) 
		{yon_2 = 1;yPos_2 = 0;}
	if (yPos_2 >= (height_2 - Hoffset_2)) 
		{yon_2 = 0;yPos_2 = (height_2 - Hoffset_2);}
	if (xon_2) 
		{xPos_2 = xPos_2 + step_2;}
	else 
		{xPos_2 = xPos_2 - step_2;}
	if (xPos_2 < 0) 
		{xon_2 = 1;xPos_2 = 0;}
	if (xPos_2 >= (width - Woffset_2)) 
		{xon_2 = 0;xPos_2 = (width - Woffset_2);}
}
	
function start_2()
{
	img2.visibility = "visible";
	interval_2 = setInterval('changePos_2()', delay_2);
}

function pause_resume_2() 
{
	if(pause_2) 
	{
		clearInterval(interval_2);
		pause_2 = false;
	}
	else 
	{
		interval_2 = setInterval('changePos_2()',delay_2);
		pause_2 = true; 
	}
}
start_2();
