function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresizable'
	win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// onclick="openWindow('page.html','name','width','height','yes ou no pour scrollbar'); return false"

// PopUp LEGAL
function popUpLegal(url)
{
	fenetre=window.open(url,"int","resizable=no,width=600,height=487,scrollbars=yes");
}


// FOLDOUTMENU script
function SwitchMenu(obj, objtype) {
	if (document.getElementById) {
		var el = document.getElementById(obj);
		var ar = document.getElementById("masterdiv").getElementsByTagName("span");
//		var ar_li = document.getElementById("masterdiv").getElementsByTagName("li");
		if (el.style.display != "block") {
			for (var i=0; i<ar.length; i++) {
				if ( ar[i].className == objtype + "menu" ) {
					ar[i].style.display = "none";
//					ar_li[i].style.listStyleImage="url(../img/img_up.gif)";
				}
			}
			el.style.display = "block";
//			event.srcElement.style.listStyleImage="url(../img/img_down.gif)";
			
		} else {
			el.style.display = "none";
//			event.srcElement.style.listStyleImage="url(../img/img_up.gif)";
		}
	}
}


// changement d'opacité

//changement d'opacité 
var step=1 
var whichimage=1 
function slideit(){ 
if (!document.images) 
return 

if (document.all) 
slide.filters.blendTrans.apply() 
document.images.slide.src=eval("image"+step+".src") 

if (document.all) 
slide.filters.blendTrans.play() 
whichimage=step 


//changer le nombre d'images ici 
if (step<5) 
step++ 

else 
step=1 


//durée du changement en millisecond 
setTimeout("slideit()",5000) 
} 


//change page
function goPage (newURL) {
// This function is called from the pop-up menus to transfer to
// a different page. Ignore the value returned is a null string

   	if (newURL != "") {
   	
// skip the menu dividers and reset the menu selection to default
   		if (newURL == "-" ) {
			resetMenu();			
		} else {  
// send page to designated URL		 	
   			document.location.href = newURL;
   		}
   	}
}

function resetMenu() {
// resets the menu selection upon entry to this page
   document.gomenu.selector.selectedIndex = 2;
}
