$(function(){
	
	$('div.news-latest-container ul li').hover(
		function(){
			var $this = $(this);
			$this.css('cursor','pointer');
			var image = $this.find('div.image img');
			var file = image.attr('rel');
			image.attr('src','/?eID=tx_scoopmodelscom_roimage&key=newscolor&file='+file);

			$this.find('div.infobox').css('zIndex','100');
		},
		function(){
			var $this = $(this);
			$this.css('cursor','default');
			var image = $this.find('div.image img');			
			var file = image.attr('rel');
			image.attr('src','/?eID=tx_scoopmodelscom_roimage&key=newsgreyscale&file='+file);
			
			$this.find('div.infobox').css('zIndex','-1');			
		}				
	);	
	


//	$('div.news-latest-container ul li div.image').hover(
//		function(){
//			$(this).css('cursor','pointer');			
//			$(this).parent().find('div.infobox').css('zIndex','100');			
//		},
//		function(){
//			$(this).css('cursor','default');			
//			$(this).parent().find('div.infobox').css('zIndex','-1');			
//		}
//	);
//	
//	$('div.news-latest-container ul li div.infobox').hover(
//		function(){
//			$(this).css('cursor','pointer');			
//			$(this).css('zIndex','100');								
//		},
//		function(){
//			$(this).css('cursor','default');				
//			$(this).css('zIndex','-1');			
//		}
//	);		
	
});