function pu_OpenTaille(bUrl, bName, bWidth, bHeight)
{
  var viewerpop = window.open('about:blank',bName,'location=no,toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no,width='+bWidth+',height='+bHeight+',top=1,left=50');
  if (!viewerpop.opener)viewerpop.opener=self;
  if (viewerpop.focus)viewerpop.focus();
  viewerpop.location.href=bUrl;
}

var mySomm;
var theLayer;

lastY=2;YOffset=200;staticYOffset=100;refreshMS=4;slideSpeed=10;waitTime=3000; 

	function setup(eID){
		bw=new checkBrowser;
	   document.getElementById(eID).style.backgroundColor="#FFFFFF";
		if(bw.macie523 || bw.macie51 ||bw.macie50 || bw.mac )
		{
			document.getElementById("Somm").id = '';
		}
		if(bw.ns4||bw.opera){MM_reloadPage(true);}
		var noFix=bw.ie4||bw.ns4||(bw.ns6&&bw.mac)||bw.macie50?true:false;
		if (window.attachEvent){fix_layer(eID)}
		else if(noFix){	
			if(bw.ns6){document.getElementById(eID).style.position="relative";document.getElementById(eID).style.backgroundColor="#FFFFFF";}
			if(bw.macie50){document.getElementById(eID).style.position="relative";document.getElementById(eID).style.backgroundColor="#FFFFFF";}
			if(bw.ns6&&YOffset==0){YOffset=-15}
			mySomm=new makeLayerObj(eID);
			layerSlide(eID)}
		else{
			mySomm=new makeLayerObj(eID);
			layerSlide(eID);
			//mySomm.css.position="fixed";
		}
		if(!mySomm){mySomm=new makeLayerObj(eID);}
		//mySomm.css.visibility="visible";
	}

	
	function fix_layer(layerID){
		
		mySomm=new makeLayerObj(layerID);
		document.getElementById(layerID).style.position="relative";
		winY = document.body.scrollTop;
			if (winY!=lastY&&winY>YOffset-staticYOffset) {
				smooth = .1 * (winY - lastY - YOffset + staticYOffset);}
			else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
				smooth = .1 * (winY - lastY);}
			else {smooth=0};
			if(smooth > 0) smooth = Math.ceil(smooth);
			else smooth = Math.floor(smooth);
		document.getElementById(layerID).style.visibility='visible';
		document.getElementById(layerID).style.pixelTop+=smooth;
		lastY = lastY+smooth;
		setTimeout('fix_layer("'+layerID+'")', refreshMS)

	}


	function layerSlide(layerID) {
		if(bw.dhtml){
			if(!mySomm){mySomm=new makeLayerObj(layerID);}
			if (bw.ns) {winY = window.pageYOffset;}
			else if (bw.ie) {winY = document.body.scrollTop;}
			if (bw.ie||bw.ns) {
				if (winY!=lastY&&winY>YOffset-staticYOffset){smooth = .1 * (winY - lastY - YOffset + staticYOffset);}
				else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset){smooth = .1 * (winY - lastY - (YOffset-(YOffset-winY)));}
				else{smooth=0}
				if(smooth > 0) {smooth = Math.ceil(smooth);}
				else{smooth = Math.floor(smooth);}
				if (bw.ie){mySomm.css.pixelTop+=smooth;}
				else if (bw.ns){mySomm.css.top=parseInt(mySomm.css.top)+smooth;}
				lastY = lastY+smooth;
				setTimeout('layerSlide("'+layerID+'")', refreshMS)}}}

	function MM_reloadPage(init) {
  	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    	document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; top.onresize=MM_reloadPage; }}
  	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) {location.reload();}}

	function makeLayerObj(eID){
		if(document.getElementById){this.css=document.getElementById(eID).style}
		else if(document.layers){this.css=document.layers[eID];}
		else {this.css=document.all[eID].style;}
		return this
	}
	
	function checkBrowser(){
		this.ver=navigator.appVersion;
		this.name=navigator.appName;
		this.mac=(navigator.platform.toLowerCase().indexOf('mac')>-1)?true:false;
		this.opera=(navigator.userAgent.toLowerCase().indexOf('opera')>-1)?true:false;
		this.dom=document.getElementById?true:false;
		this.ns=(this.name=='Netscape');
		this.ie4=(document.all && !this.dom)?true:false;
		this.ie=(this.name =='Microsoft Internet Explorer'&&!this.opera)?true:false;
		this.ie5=(this.ie && (navigator.userAgent.indexOf("MSIE 5")!=-1))?true:false;
		this.macie50=(this.mac&&this.ie5&&(navigator.userAgent.indexOf("MSIE 5.0")!=-1))?true:false
		this.macie51=(this.mac&&this.ie5&&(navigator.userAgent.indexOf("MSIE 5.1")!=-1))?true:false
		this.macie523=(this.mac&&this.ie5&&(navigator.userAgent.indexOf("MSIE 5.23")!=-1))?true:false
		this.ns4=(this.ns && parseInt(this.ver) == 4)?true:false;
		this.ns6=((this.name=="Netscape")&&(parseInt(this.ver)==5))?true:false
		this.standards=document.getElementById?true:false;
		this.dhtml=this.standards||this.ie4||this.ns4;
	}
	
	function showMe(eID){
		myFloater=new makeLayerObj(eID)
		myFloater.css.visibility="visible";
	}
	
	function hideMe(eID){
		myFloater=new makeLayerObj(eID)
		myFloater.css.visibility="hidden";
	}