if (ns4){layerRef="document.layers['";		styleSwitch="']";	layerStyleRef=".document";}
if (ie4){layerRef="document.all['";		styleSwitch="'].style";	layerStyleRef="";}
if (dom){layerRef="document.getElementById('";	styleSwitch="').style";	layerStyleRef="";}

function montre(layerName)	{eval(layerRef+layerName+styleSwitch+'.visibility = "visible"')}
function cache(layerName)	{eval(layerRef+layerName+styleSwitch+'.visibility = "hidden"')}
function xpos(layerName)	{return parseInt(eval(layerRef+layerName+styleSwitch+'.left'));}
function ypos(layerName)	{return parseInt(eval(layerRef+layerName+styleSwitch+'.top'));}
function tox(layerName,x)	{eval(layerRef+layerName+styleSwitch+'.left = '+x);}
function toy(layerName,y)	{eval(layerRef+layerName+styleSwitch+'.top = '+y);}
function byx(layerName,x)	{eval(layerRef+layerName+styleSwitch+'.left = '+xpos(layerName)+'+'+x);}
function byy(layerName,y)	{eval(layerRef+layerName+styleSwitch+'.top = '+ypos(layerName)+'+'+y);}

function SetDiv(IDcouche,Content){
	if (dom) {document.getElementById(IDcouche).innerHTML = Content;return;}
	if (ie4) {document.all[IDcouche].innerHTML = Content;return;}
	if (ns4) {with (eval('document.'+IDcouche+'.document')) {open();write(Content);close();}return;}
	}

function change_img(img_name,img_var){
	img=eval(img_var+".src");
	document[img_name].src=img;
	}

function change_img_layer(layer_name,img_name,img_var){
        img=eval(img_var+".src");
	if (ns4){document.layers[layer_name].document[img_name].src=img;}
	else {document.images[img_name].src=img;}
        }

function pop_up(sURL, iWidth, iHeight, X0, Y0, bScrollbar){
	if(bScrollbar){iWidth+=16;}
	var sName, sFeatures;
	sName = 'pop_up';
	if(ie4||dom){if((top.vide.fen)&&(!top.vide.fen.closed)){top.vide.fen.close();}}
	sFeatures = 'toolbar=no,location=no,directories=no,status=no,menubar=no';
	if ( bScrollbar == false )
		sFeatures += ',scrollbars=no';
	else
		sFeatures += ',scrollbars=yes';
	sFeatures += ',resizable=yes,screenY='+Y0+',screenX='+X0+',top='+Y0+',left='+X0+',width='+iWidth+',height='+iHeight;
	top.vide.fen=window.open(sURL, sName, sFeatures);
	}

function pop_up_ecran(sURL, bScrollbar){
	if(bScrollbar){iWidth+=16;}
	var sName, sFeatures;
	sName = 'pop_up';
	if(ie4||dom){if((top.vide.fen)&&(!top.vide.fen.closed)){top.vide.fen.close();}}
	sFeatures = 'toolbar=no,location=no,directories=no,status=no,menubar=no';
	if ( bScrollbar == false )
		sFeatures += ',scrollbars=no';
	else
		sFeatures += ',scrollbars=yes';
	iWidth=eval("screen.width-10")
	iHeight=eval("screen.height")
	sFeatures += ',resizable=no,screenY=0,screenX=0,top=0,left=0,width='+iWidth+',height='+iHeight;
	top.vide.fen=window.open(sURL, sName, sFeatures);
	}


