 	function showtime() 
		{
			var delayTime=5000;
			
			var myCars=new Array(19);
			var arrSize=myCars.length;
			for (i=0; i < arrSize ; i++)
				myCars[i]=new Array(19); 

			myCars[0][0]='../uploaded/artis_img4.jpg';
			/*myCars[0][1]='img1.jpg';
			myCars[0][2]='img1.jpg';*/
			
			myCars[1][0]='../uploaded/artis_img5.jpg';
			/*myCars[1][1]='img4.jpg';
			myCars[1][2]='img2.jpg';*/
			
			myCars[2][0]='../uploaded/artis_img8.jpg';
			myCars[3][0]='../uploaded/artis_img9.jpg';
			myCars[4][0]='../uploaded/artis_img10.jpg';
			myCars[5][0]='../uploaded/artis_img11.jpg';
			myCars[6][0]='../uploaded/artis_img12.jpg';
			myCars[7][0]='../uploaded/artis_img14.jpg';
			myCars[8][0]='../uploaded/artis_img15.jpg';
			myCars[9][0]='../uploaded/artis_img16.jpg';
			myCars[10][0]='../uploaded/artis_img17.jpg';
			myCars[11][0]='../uploaded/artis_img18.jpg';
			myCars[12][0]='../uploaded/artis_img19.jpg';
			myCars[13][0]='../uploaded/artis_img20.jpg';
			myCars[14][0]='../uploaded/artis_img21.jpg';
			myCars[15][0]='../uploaded/artis_img22.jpg';
			myCars[16][0]='../uploaded/artis_img24.jpg';
			myCars[17][0]='../uploaded/artis_img23.jpg';
			myCars[18][0]='../uploaded/artis_img25.jpg';
			/*myCars[2][1]='img4.jpg';
			myCars[2][2]='img4.jpg';*/
			
			var indexVal=parseInt(document.getElementById('arrIndex').value);
			
			//var newImageL = "url(images/"+myCars[indexVal][1]+")";
			//var newImageR = "url(images/"+myCars[indexVal][2]+")";
			
			
			//opacity('midimg', 0, 500, 1000);

			document.getElementById('midimg').style.backgroundImage='url(uploaded/'+myCars[indexVal][0]+')';
			//document.getElementById('lbg').style.backgroundImage=newImageL;
			//document.getElementById('rbg').style.backgroundImage=newImageR;
			
			//opacity('midimg', 100, 0, 100);
			//opacity('lbg', 100, 0, 100);
			//opacity('rbg', 100, 0, 100);
			
			indexVal=parseInt(indexVal+1);
			if(indexVal==arrSize) indexVal=0;
			document.getElementById('arrIndex').value=indexVal;
			
			setTimeout("showtime()",delayTime);
		}
		
		function opacity(id, opacStart, opacEnd, millisec)
		 { 
			//speed for each frame 
			var speed = Math.round(millisec / 100); 
			var timer = 0; 
		
			//determine the direction for the blending, if start and end are the same nothing happens 
			if(opacStart > opacEnd) 
			{ 
				for(i = opacStart; i >= opacEnd; i--)
				{ 
					setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
					timer++; 
				} 
			} 
			else if(opacStart < opacEnd)
			 { 
				for(i = opacStart; i <= opacEnd; i++) 
				{ 
					setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
					timer++; 
				} 
			} 
		}
		
		function changeOpac(opacity, id)
		{ 
			//alert(id);
			var object = document.getElementById(id).style; 
			object.opacity = (opacity / 100); 
			object.MozOpacity = (opacity / 100); 
			object.KhtmlOpacity = (opacity / 100); 
			object.filter = "alpha(opacity=" + opacity + ")"; 
		}
		
		// for Mozilla browsers
		if(document.addEventListener) 
		{  
			document.addEventListener("DOMContentLoaded", showtime, false); 
		}
		else 
			window.onload = showtime;
		
    