	var img_number = 1 ; 
	var set_count = 2 ; 

	imgPath = "static/imgs/locations_car/" ; 

	function iniImageAmimation(){

		var imgTmp 

		setTimeout("switchImages()", 5000) ;     
	
		for (var x = 1 ; x <= 4; x++){

			imgFull = imgPath + 'loc_jhp_cart_' + x + '.jpg' ;
			imgTmp = $('<img>').attr('src',imgFull)
			// Hide the image as Safari would display it even if we use .hide()
			imgTmp.css("visibility","hidden") ;
			imgTmp.css("display","none") ;
			
			// Insert the image somewhere as IE would NOT load it without this
			imgTmp.insertAfter($('#img_jhp')) ;
			
			imgFull = imgPath + 'loc_cart' + x + '.png' ;
			imgTmp = $('<img>').attr('src',imgFull)
			// Hide the image as Safari would display it even if we use .hide()
			imgTmp.css("visibility","hidden") ;
			imgTmp.css("display","none") ;
			
			// Insert the image somewhere as IE would NOT load it without this
			imgTmp.insertAfter($('#img_jhp')) ;


		}
	
		
	}

	
	
	function switchImages(){
	
	     img_number ++ ; 
	     img_number = (img_number > set_count) ? 1 : img_number ;     
	     updateImages(img_number)
	     setTimeout("switchImages()", 6000) ;     
	}
	
	
	function updateImages(index){
		 //$("#str_debug").html(index) ; 
	     $("#img_jhp").fadeOut('fast',function(){     
	          $("#img_jhp").attr("src", imgPath + "loc_jhp_cart_" + index + ".jpg") ; 
	          $("#img_jhp").fadeIn('slow');    
	        
	     });


	     $("#img_hut").fadeOut('fast',function(){     
	          $("#img_hut").attr("src", imgPath + "loc_cart" + index + ".png") ; 
	          $("#img_hut").fadeIn('slow');    
	        
	     });
	     
	}

	iniImageAmimation() ; 
