var ie = (document.all)?true : false;

function openWin(url, nom, winOpts)
{
	var MinWin;
	MinWin = window.open(url, nom, winOpts);
	if (navigator.appVersion.indexOf("(X11") != -1 ||
		navigator.appVersion.indexOf("(Mac") != -1)
	 MinWin = window.open(url, nom, winOpts);
	if (navigator.appName == "Netscape" && (parseInt(navigator.appVersion) >=3 )) {
		MinWin.focus()
	}
}

function precharge(iObj,iSrc) {
if (document.images) { 
	eval(iObj+' = new Image()')
	eval(iObj+'.src = "'+iSrc+'"')}
}

function roll(nom,iObj) { 
if(document.images)document.images[nom].src = eval(iObj+'.src')
}
/*
function rolldiv(nom,nomdiv,iObj) {
		if(ie)
		{
		document.images[nom].src = eval(iObj+'.src')
		}
		else
		{
		eval('document.'+nomdiv+'.document.'+nom+'.src = '+iObj+'.src')
		}
}*/

var layerObj = (!ie) ? 'document' : 'document.all';
var styleObj = (!ie) ? '' : '.style';

function actionLay(nomdiv,val)
{
	table = new Array('hidden','visible')
	if(estce.ns5)
	document.getElementById(nomdiv).style.visibility = table[val]
	else
	eval(layerObj+'.'+nomdiv+styleObj+'.visibility = "'+table[val]+'"')
}

function detection() {
	var nav = navigator.appName; 
	var vers = navigator.appVersion;
	if (nav=="Microsoft Internet Explorer") this.nav = "ie"
	else if (nav=="Netscape") this.nav = "ns"
	else this.nav = nav
	this.version = parseInt(vers);
	this.mac = (navigator.userAgent.indexOf("Mac")!=-1) ||(navigator.userAgent.indexOf("Macintosh")!=-1);
	this.win = (navigator.userAgent.indexOf("Windows")!=-1) ||(navigator.userAgent.indexOf("Win")!=-1);
	this.ie = (this.nav == "ie" && this.version >= 4);
	this.ie4 = (vers.indexOf('MSIE 4')>0);
	this.ie5 = (vers.indexOf('MSIE 5')>0);
	this.ie55 = (vers.indexOf('MSIE 5.5')>0);
	this.ns = (this.nav == "ns" && this.version >= 4);
	this.ns4 = (this.nav == "ns" && this.version == 4);
	this.ns5 = (this.nav == "ns" && this.version == 5);
	this.gen4 = (this.ie || this.ns);
}

function VersionNavigateur(Netscape, Explorer)
{
	if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||
	(navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
	return true;
	else return false;
}
var estce = new detection();
poshaut = "81,335"


function showdiv(nom)
{
for(i=1;i<=12;i++)
{
	nom2="Div"+i;
	actionLay(nom2,0);
}
actionLay(nom,1);
}