function initLightbox(){
	//Pour eviter l'erreur JS 
	//Scriptaculous/prototype/lightbox.js ont été désactivés
}

$('document').ready(function(){
	changecolor();
	setAnchorCatalogue();
})

function changecolor(){
	//alert("fdf");
	$(".cust table td strong").each(function(){
		$(this).attr("style","color:rgb(26,171,229)");
	});
}

function setAnchorCatalogue(){
	//dans la fiche
	if ($("#fiche").length){
		var hrefNext = $("a.next").attr("href");
		var newHrefNext = addFicheAnchor(hrefNext);
		$("a.next").attr("href",newHrefNext);
		 
		var hrefPrev= $("a.prev").attr("href");
		var newHrefPrev = addFicheAnchor(hrefPrev);
		$("a.prev").attr("href",newHrefPrev);
	}
	//dans la liste
	if ($(".prodlist_item").length){
		$(".prodlist_item a:not(.prodlist_item_lnkEdit)").each(function(e){
			$currentHref = $(this).attr('href');
			$newHref = addFicheAnchor($currentHref);
			//on réassigne le href;
			$(this).attr('href',$newHref);
		});
	}
}
//Fonction qui ajoute l'ancre fiche
function addFicheAnchor(str){
	$strRecu = str;
	$strRecu += "#fiche";
	//alert($strRecu);
	return $strRecu;
}
