DOM = (document.getElementById) ? true : false;
NS4 = (document.layers) ? true : false;
IE = (document.all) ? true : false;
IE4 = IE && !DOM;
Mac = (navigator.appVersion.indexOf("Mac") != -1);
IE4M = IE4 && Mac;
Opera = (navigator.userAgent.indexOf("Opera")!=-1);
Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

BrowserString = NS4 ? "NS" : DOM ? "DOM" : "IE";

document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='datas/script"+ BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");


function changeclass(objet, myClass)
{
  objet.className = myClass;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function goTo(adr)
{
        document.location=adr;
}

time = 2000;
timerID = 2000;
polop = 1;

function hide(what)
{
        polop = 1;
        timerID = setTimeout("hidel()",time);
}
function getRealLeft()
{
        xPos = this.offsetLeft;
        tempEl = this.offsetParent;
        while (tempEl != null)
        {
                xPos += tempEl.offsetLeft;
                tempEl = tempEl.offsetParent;
        }
        return xPos;
}

function disp(element, classe)
  {
   element.className = classe;
  }

function add(formu) {
 eval("valini = document."+formu+".value;");
 if(isNaN(valini)) {valini = 0;}
 valini++;
 eval("document."+formu+".value = valini;");
}

function sub(formu) {
 eval("valini = document."+formu+".value;");
 if(isNaN(valini) || valini < 1) {valini = 1;}
 valini--;
 eval("document."+formu+".value = valini;");
}

function MM_openBrWindow(theURL,winName,features)
{ //v2.0
  window.open(theURL,winName,features);
}

function verif(url) {
if (document.imagebank.P_CONFIRM2.checked==false) {
document.imagebank.submit();
}
else
{
	window.open(url,'','toolbar=no,status=yes,scrollbars=no,resizable=no,width=550,height=420');	
	document.imagebank.submit();		
}
}







