//********** 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 popup(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 popup2(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,'msgWindow2',stats);

}

//********** 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;
	
	}
}
var RubriqueCourante='';

function RollOver2 (menu,image) {
//alert(menu.name + ' '+ PageCourante);
	if (menu.name!=RubriqueCourante) {
		menu.src=image;
	
	}
}