// JavaScript Document
var currentPannel="_1";
	function setDiv(){
		var opacity=0;
		//var nb=9;
		var nb=3;
		for(i=1;i<=nb;i++){
			setopacity("_"+i,opacity);
		}
		for(i=1;i<=4;i++){
			var el = document.getElementById("p"+i);
			this["page"+i]=el.outerHTML;
		}
		var el = document.getElementById("cont1");
		el.innerHTML=this["page1"];
		var el = document.getElementById("cont2");
		el.innerHTML=this["page3"];
		Spry.Effect.AppearFade(currentPannel, {duration: 400, from: 0, to: 100, toggle: true});
		
		
	}
	
	
	function panneau(id){
		if(id!=currentPannel){
			Spry.Effect.AppearFade(currentPannel, {duration: 400, from: 0, to: 100, toggle: true});
			Spry.Effect.AppearFade(id, {duration: 400, from: 0, to: 100, toggle: true});
			var el2= document.getElementById(id);
			el2.style.zIndex=12;
			var el2= document.getElementById(currentPannel);
			el2.style.zIndex=11;
			var el = document.getElementById(id+"img");
			el.src="images/puceselected.gif";
			var el = document.getElementById(currentPannel+"img");
			el.src="images/puce.gif";
			currentPannel=id;
		}
		
		
	}
	function setopacity(id,opacity){
		var el = document.getElementById(id);
		el.style.opacity = opacity;
		el.style.filter = "alpha(opacity=" + Math.floor(opacity * 100) + ")";
	}
	function affichepage(cont,id){
	var el = document.getElementById(cont);
		el.innerHTML=this[id];
	
	}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}