
/*===============construction du menu===============*/


document.write('<img src="images/nave_gche01_berger_levraul.gif" alt="" title="">')	
document.write('<div onClick="switchDisplay(\'rubr01\',this);switchDisplay2(\'rubr02\',this);switchDisplay2(\'rubr03\',this);"><a href="#" onMouseOver="MM_swapImage(\'Image2\',\'\',\'images/nave_gche_bt_inscript_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_inscript.gif" alt="Inscription" name="Image2" border="0" id="Image2" title="Inscription"></a></div>')
document.write('<div id=rubr01>') 
document.write('<div><a href="/newsletter" target="_top" onMouseOver="MM_swapImage(\'Image16\',\'\',\'images/nave_gche_bt_inscript2_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_inscript2.gif" name="Image16" alt="" title="" id="Image16"></a></div></div>')
document.write('<div onClick="switchDisplay(\'rubr02\',this);switchDisplay2(\'rubr01\',this);switchDisplay2(\'rubr03\',this);"><a href="#" onMouseOver="MM_swapImage(\'Image3\',\'\',\'images/nave_gche_bt_zoom_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_zoom.gif" alt="Zoom" name="Image3" border="0" id="Image3" title="Zoom"></a></div>')
document.write('<div id=rubr02>') 
document.write('<div><a href="/savoir-faire" target="_top" onMouseOver="MM_swapImage(\'Image17\',\'\',\'images/nave_gche_bt_zoom2_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_zoom2.gif" alt="" title="" name="Image17" id="Image17"></a></div></div>')




document.write('<div onClick="switchDisplay2(\'rubr01\',this);switchDisplay2(\'rubr02\',this);switchDisplay2(\'rubr03\',this);"><a target="_top" href="/ouvrages/nouveautes" onMouseOver="MM_swapImage(\'Image30\',\'\',\'images/nave_gche_bt_nouveautes_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_nouveautes.gif" alt="Nouveautés ouvrages" name="Image30" border="0" id="Image30" title="Nouveautés ouvrages"></a></div>')
document.write('<div onClick="switchDisplay2(\'rubr01\',this);switchDisplay2(\'rubr02\',this);switchDisplay2(\'rubr03\',this);"><a target="_top" href="/panier" onMouseOver="MM_swapImage(\'Image31\',\'\',\'images/nave_gche_bt_panier_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_panier.gif" alt="Panier" name="Image31" border="0" id="Image31" title="Panier"></a></div>')
document.write('<div onClick="switchDisplay2(\'rubr01\',this);switchDisplay2(\'rubr02\',this);switchDisplay2(\'rubr03\',this);"><a target="_top" href="/suivi-commandes" onMouseOver="MM_swapImage(\'Image32\',\'\',\'images/nave_gche_bt_voscommand_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_voscommand.gif" alt="suivez vos commandes" name="Image32" border="0" id="Image32" title="Suivez vos commandes"></a></div>')


document.write('<div onClick="switchDisplay(\'rubr03\',this);switchDisplay2(\'rubr01\',this);switchDisplay2(\'rubr02\',this);"><a href="#" onMouseOver="MM_swapImage(\'Image4\',\'\',\'images/nave_gche_bt_faq_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_faq.gif" alt="Faq" name="Image4" border="0" id="Image4" title="Faq"></a></div>')
document.write('<div id=rubr03>')
document.write('<div><a href="/faq-commandes" target="_top" onMouseOver="MM_swapImage(\'Image5\',\'\',\'images/nave_gche_bt_commande_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_commande.gif" alt="Commandes" name="Image5" title="Commandes" id="Image5"></a></div>')
document.write('<div><a href="/faq-produits" target="_top" onMouseOver="MM_swapImage(\'Image6\',\'\',\'images/nave_gche_bt_produits_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_produits.gif" alt="Produits" name="Image6" title="Produits" id="Image6"></a></div></div><br class="br5">')
document.write('<div onClick="switchDisplay2(\'rubr01\',this);switchDisplay2(\'rubr02\',this);switchDisplay2(\'rubr03\',this);"><a target="_top" href="/cgv" onMouseOver="MM_swapImage(\'Image7\',\'\',\'images/nave_gche_bt_conditions_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_conditions.gif" alt="Conditions de ventes" name="Image7" border="0" id="Image7" title="Conditions de vente"></a></div><br class="br5">')
document.write('<div onClick="switchDisplay2(\'rubr01\',this);switchDisplay2(\'rubr02\',this);switchDisplay2(\'rubr03\',this);"><a target="_top" href="/liens-utiles" onMouseOver="MM_swapImage(\'Image8\',\'\',\'images/nave_gche_bt_liens_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_liens.gif" alt="Liens et infos utiles" name="Image8" border="0" id="Image8" title="Liens et infos utiles"></a></div><br class="br5">')
document.write('<div onClick="switchDisplay2(\'rubr01\',this);switchDisplay2(\'rubr02\',this);switchDisplay2(\'rubr03\',this);"><a target="_top" href="/contacts" onMouseOver="MM_swapImage(\'Image9\',\'\',\'images/nave_gche_bt_contacts_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/nave_gche_bt_contacts.gif" alt="Contacts" name="Image9" border="0" id="Image9" title="Contacts"></a></div>')
		

/*===============fonctions menu===============*/

	 function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject


function switchDisplay(divId, eventObj) {
	var styleObject = getStyleObject(divId);
	var oldDisp = styleObject.display;
	if (oldDisp == '' || oldDisp == 'block') {
		styleObject.display = 'none'; 
	} else {
		styleObject.display = 'block';
	}
	eventObj.cancelBubble = true;
	return true;
}




function switchDisplay2(divId, eventObj) {
	var styleObject = getStyleObject(divId);
	var oldDisp = styleObject.display;
	{
		styleObject.display = 'none'; 
	}
	eventObj.cancelBubble = true;
	return true;
}


// intiialise le menu en fonction du contexte
function initMenu(context,message, eventObj) {
	if (context != 'rub01') switchDisplay('rub01', eventObj);
	if (context != 'rub02') switchDisplay('rub02', eventObj);
	if (context != 'rub03') switchDisplay('rub03', eventObj);
}

// fonctions de navigation (pour ne pas a avoir a modifier chaque page)
var liens = new Array();
liens['test'] = 'test_page.html';
liens['srub02'] = 'srub02.html';
liens['srub03'] = 'srub03.html';
function jumpTo(ecran) {
	var lien = liens[ecran];
	//alert('lien');
	if (lien != undefined) {
		document.location=lien;
	} else {
		alert('Ecran non implémenté');
	}
}