var tmpID;

$(document).ready(function() {

	$(".imgReference").mouseover(function() {
		tmpID = $(this).attr("id");
		tmpID = tmpID.substring(3);

		$(".imgReference").show();
		$(".refTexte").hide();
		
		$("#ref"+tmpID).show();
		$(this).hide();
	});
	
	$(".refTexte").mouseover(function() {
		tmpID = $(this).attr("id");
		tmpID = tmpID.substring(3);
		$("#img"+tmpID).hide();
		$(this).show();
	});
	
	$(".refTexte").mouseout(function() {
		tmpID = $(this).attr("id");
		tmpID = tmpID.substring(3);
		
		$(".imgReference").show();
		$(".refTexte").hide();
		
		/*$("#img"+tmpID).show();
		$(this).hide();*/

	});
	
	/*$(".refImg").click(function() {
		tmpID = $(this).attr("id");
		tmpID = tmpID.substring(6);
		if($("#refText"+tmpID).css('display') == 'none'){
			$("#refText"+tmpID).show('slow');
		} else {
			$("#refText"+tmpID).hide('slow');
		}
	});*/

});
