	var curNum;
	var randomnumber;
	var randomnumber2;
	function beginAnim()
	{
		randomnumber=Math.floor(Math.random()*10000)
		randomnumber2=Math.floor(Math.random()*2)
		if (randomnumber2 == 0)
			setTimeout("createOnRight()",randomnumber)
		else
			setTimeout("createOnLeft()",randomnumber)
	}
	function createOnRight()
	{
		document.img1.width=200
		document.img1.height=247
		img1.style.right="-200px"
		curNum = -200;
		moveInFromRight()
	}
	function moveInFromRight()
	{
		curNum = curNum + 5;
		img1.style.right = curNum + "px"
		if (curNum <= 0)
			setTimeout("moveInFromRight()",5)
		else
			setTimeout("pauseV()",1000)
	}
	function moveBackToRight()
	{
		curNum = curNum - 5;
		img1.style.right = curNum + "px"
		if (curNum <=-200)
		{
			document.img1.width=0
			document.img1.height=0
			img1.style.right="0px"
		}
		else
			setTimeout("moveBackToRight()",5)
	}
	function pauseV()
	{
		if (randomnumber2 == 0)
			moveBackToRight()
		else
			moveBackToLeft()
	}
	function createOnLeft()
	{
		document.img1.width=200
		document.img1.height=247
		img1.style.left="-200px"
		curNum = -200;
		moveInFromLeft()
	}
	function moveInFromLeft()
	{
		curNum = curNum + 5;
		img1.style.left = curNum + "px"
		if (curNum <= 0)
			setTimeout("moveInFromLeft()",5)
		else
			setTimeout("pauseV()",1000)
	}
	function moveBackToLeft()
	{
		curNum = curNum - 5;
		img1.style.left = curNum + "px"
		if (curNum <=-200)
		{
			document.img1.width=0
			document.img1.height=0
			img1.style.left="0px"
		}
		else
			setTimeout("moveBackToLeft()",5)
	}
