//Init function for all pages
var gLockInit = false;
function eShopInit(poFct){
	if(!gLockInit){
		gLockInit = true;
		if(gbSearchLayer){
			//Search Layer initialisation
			goSearchTabs = new mootoolstabs('layerHomeCtn',{tabActiveClass:'tabCurrent', changeTransition:'none'});
			$('layerHomeCtn').toggleVisibility("div","toggleVisibility");
		}
		goSkeenableForms = new skeenableForms();
		goDataLoader = new dataLoader();
		goDataLoader.setSelectDefaultLabel(goLabels);
		//initialisation du bread crump
		new breadCrump();
		//l'initialisation du search layer ne peut etre faite qu'apres l'init des skeenables forms
		//et du dataLoader
		if(gbSearchLayer){
			initSearchLayer();
			// if search by offer is activated, init diaporama
			if (goSkeenableForms.forms.get("tyreSize")) {
				new diaporama($('layerHomeCtn').getElement("div.diaporama"));
			}
			$('layerHomeCtn').toggleVisibility("div","toggleVisibility");
		}
		
		new cart('panier');

		initPrestationList();
		
		if(gbShowCart == "true") {
			var loInt = setInterval(function(){
				if($('panier').innerHTML != ""){
					clearInterval(loInt);
					goModalLayer.open('panier');
				}}, 100);			
		}
		
		if(poFct){
			poFct();
		}
	}
}