//*****************zoom sur les plans
var compteur = 0;
	var tabImages = Array(	"img/acces_1.gif",
							"img/acces_2.gif",
							"img/acces_3.gif"
							);
	
	function changeImage()
	{
		var index = indexSuivant();
		var nouvelle_image = tabImages[index];

		var oImage = document.getElementById("image_zoom");

		if(oImage)
		{ oImage.src = nouvelle_image;}
	}
	
	function indexSuivant()
	{
		compteur++;
		
		if(compteur == 3)
		{ compteur = 0;}

		return compteur;
	}




//********** Detection Browser ***************
ns = (document.layers) ? true:false;
ie = (document.all) ? true:false;



//********** Macromedia Trouve Objet ***************
function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}


//********** PopUp ***************
function affichepage(nom,w,h,scrolle) {

	var XposMsgBox = ( screen.width - w - 8 ) / 2 ;
	var YposMsgBox = ( screen.height - h - 30 ) / 2 ;

	stats='toolbar=no,location=no,directories=no,status=no,menubar=no,' ;
	stats += 'scrollbars='+scrolle+',resizable=no,width='+w+',height='+h+',left='+XposMsgBox+',top='+YposMsgBox ;		
	MsgBox = window.open (nom,'msgWindow',stats);

}
function popupMedia(id) {
	affichepage('popup.asp?ID='+id,400,500,'yes');
}
function afficheImg(nom) {
	affichepage(nom,400,400,'yes');
}
function affichePress(id) {
	affichepage('echos_presse.asp?ID='+id,620,500,'yes');
}
function affichePress1() {
	affichepage('presse_generaux.asp',620,500,'yes');
}
function affichePress2() {
	affichepage('presse_realisations.asp',620,500,'yes');
}
function afficheRecette() {
	affichepage('fiche_recette.asp',457,500,'yes');
}
function affichePub() {
	affichepage('gp_popup_publicite.asp',517,450,'yes');
}


//********** Bug Netscape Layer ***************
function refresch(){
window.location.reload()
}


//********** Jump List ***************
function JumpListTo(selSelectObject,urlPreFixe,num)
{
   if (selSelectObject.options[selSelectObject.selectedIndex+num].value != "")
   { 
     location.href=urlPreFixe+selSelectObject.options[selSelectObject.selectedIndex+num].value;
   }
}
function JumpList(selSelectObject,urlPreFixe)
{
   JumpListTo(selSelectObject,urlPreFixe,0)
}
function ChangeOptionList(selSelectObject,urlPreFixe,num)
{
   var tempIndex=selSelectObject.selectedIndex+num;

   if (selSelectObject)
   { 
      if ((tempIndex>=0)&&(tempIndex<selSelectObject.options.length)) 
      {
         //selSelectObject.selectedIndex=tempIndex;
         JumpListTo(selSelectObject,urlPreFixe,num)
      }
   }
}

//********** RollOver ************************
var PageCourante='';

function RollOver (menu,image) {
//alert(menu.name + ' '+ PageCourante);
	if (menu.name!=PageCourante) {
		menu.src=image;
	
	}
}