function montrerFamilles(){ document.getElementById("familles").style.display="block"; document.getElementById("planches").style.display="none"; } function montrerNumero(){ document.getElementById("familles").style.display="none"; document.getElementById("planches").style.display="block"; } function ouvrePageN(){ nume=substring(window.event.srcElement.innerHTML,8); nume=nume.replace(" ",""); var nouv=window.open("bonnier"+nume+".php","_self"); } function ouvrirform(){ var nouvfen=window.open("../formail.php",null,"height=380,top=150,left=200,width=500,status=yes,toolbar=no,menubar=no,location=no"); nouvfen.focus(); } function ouvrirform2(){ var nouvfen=window.open("../formail.php?sujet=Comment obtenir le CD du site&message=Saisissez votre email ci-dessus et envoyer le message tel quel.\n\rVous recevrez en retour toutes précisions sur le CD.",null,"height=350,top=150,left=200,width=500,status=yes,toolbar=no,menubar=no,location=no"); nouvfen.focus(); } function pgsuiv(){ nume=document.getElementById("num2").innerHTML.substring(8); nume=nume.replace(" ",""); var suiv=parseInt(nume)+1; if(nume=="64"){suiv="1";} var nouv=window.open("bonnier"+suiv+".php","_self"); } function pgprec(){ nume=document.getElementById("num2").innerHTML.substring(8); nume=nume.replace(" ",""); var prec=parseInt(nume)-1; if(nume=="1"){ prec="64"; } var nouv=window.open("bonnier"+prec+".php","_self"); } function variables(){ document.getElementById("num").innerHTML="Planche"+" "+nume+"."; document.getElementById("num2").innerHTML="Planche"+" "+nume; document.getElementById("titreimage").innerHTML=famill; document.getElementById("famille1").innerHTML=famill; document.getElementById("hache3").innerHTML=famill; nume=nume.replace(" ",""); document.getElementById("image1").src="imagesb/bonnier" + nume + ".jpg"; } function Tailleimage(largBodyInit,hautBodyInit,largInitImg,hautInitImg){ if (typeof document.StyleImage == 'undefined'){ document.StyleImage = new Object; } if (typeof document.StyleImage.Tailleimage == 'undefined') { document.StyleImage.Tailleimage = new Object; document.StyleImage.Tailleimage.bodyLargInit = largBodyInit; document.StyleImage.Tailleimage.bodyHautInit = hautBodyInit; document.StyleImage.Tailleimage.imgLargInit = largInitImg; document.StyleImage.Tailleimage.imgHautInit = hautInitImg; document.StyleImage.Tailleimage.rapport = hautInitImg/largInitImg; } var appName = window.navigator.appName; if (appName=="Microsoft Internet Explorer"){ var largeurBody = document.body.offsetWidth; var hauteurBody = document.body.offsetHeight; }else{ var largeurBody = document.width; var hauteurBody = document.height; } var largAjustee = parseInt(document.StyleImage.Tailleimage.imgLargInit) * (largeurBody / document.StyleImage.Tailleimage.bodyLargInit); var hautAjustee = parseInt(largAjustee) * (document.StyleImage.Tailleimage.rapport); if(document.getElementById("image1")){ document.getElementById("image1").width = Math.round(largAjustee); document.getElementById("image1").height = Math.round(hautAjustee);} } window.onresize = Tailleimage;