// JavaScript Document
	function findPosX(obj)
	{
		var curleft = 0;
		if(obj.offsetParent)
			while(1) 
			{
			  curleft += obj.offsetLeft;
			  if(!obj.offsetParent)
				break;
			  obj = obj.offsetParent;
			}
		else if(obj.x)
			curleft += obj.x;
		return curleft;
	}

	Hmove=0;
	Vmove=20;
	
	Vdelta=0;
	
	VMover=0;
	HDivision=10;
	
	function moveObjRight(obj, width, height, steps) 
	{    
		var agt=navigator.userAgent.toLowerCase();
		var bIsIE = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
		if (!bIsIE) {
			obj = document.getElementById(obj);
		}
		
		obj.style.left   = Hmove + "px";
		obj.style.bottom = Vmove + "px";
		Hmove+=2;
		
		Vmove+=Vdelta;
		
		if (VMover >= steps) {
			VMover = 0;
		}
		
		VMover+=1;
		
		var y = Math.cos((VMover/steps)*2*Math.PI);
		
		if (y >= 0) {
		
			Vdelta = y*4;
		
		} else {
		
			Vdelta = y*1;
		
		}
		
		if(findPosX(obj) < width + 100) {
			var object = null;
			
			if (bIsIE) {
				window.setTimeout("moveObjRight("+obj.id+",width, height, steps);", 40);
			} else {
				window.setTimeout("moveObjRight('JS',width, height, steps);", 40);
			}
			
		} else {
			
			obj.visibility="hidden";
			
		}
	}
	
	function GetWidth()
	{
			var x = 0;
			if (self.innerHeight)
			{
					x = self.innerWidth;
			}
			else if (document.documentElement && document.documentElement.clientHeight)
			{
					x = document.documentElement.clientWidth;
			}
			else if (document.body)
			{
					x = document.body.clientWidth;
			}
			return x;
	}
	
	function GetHeight()
	{
			var y = 0;
			if (self.innerHeight)
			{
					y = self.innerHeight;
			}
			else if (document.documentElement && document.documentElement.clientHeight)
			{
					y = document.documentElement.clientHeight;
			}
			else if (document.body)
			{
					y = document.body.clientHeight;
			}
			return y;
	}