/*
function NoJSError()
{
 return true;
}
window.onerror=NoJSError;
*/


// Test des navigateurs avec le DOM pour IE5/IE6 et NS6		
function TestNavig() {
navigateur = navigator.appName;
bVer = parseInt(navigator.appVersion);
this.ie4=((navigateur==("Microsoft Internet Explorer")) && (bVer>=4)) ? true:false;
this.ns4=((navigateur==("Netscape")) && (bVer>=4 && bVer<5)) ? true:false;
this.ns5=((navigateur==("Netscape")) && (bVer>=5)) ? true:false; 
this.dom=document.getElementById?true:false;
}

is = new TestNavig()

// Créateur des objets pour les navigateurs Internet Explorer et Nescape 
function Constructeur(id,Reflay){
    Reflay=(!Reflay) ? '':'document.'+Reflay+'.'
    this.elm = is.dom?document.getElementById(id):is.ie4?document.all[id]:is.ns4?eval(Reflay+'document.'+id):0;
    this.css = is.dom?this.elm.style:is.ie4?this.elm.style:is.ns4?this.elm:0;  

    this.w = (is.dom || is.ie4)?this.elm.offsetWidth:is.ns4?this.css.clip.width:0;
    this.h = (is.dom || is.ie4)?this.elm.offsetHeight:is.ns4?this.css.clip.height:0;		 		
}

function ConstructeurBouge(x,y) {
if (is.ie4) {this.css.pixelLeft=x;this.css.pixelTop=y}
else {this.css.left=x;this.css.top=y}
}

function ConstructeurShow() {
	this.css.visibility = (is.ns4)? "show" : "visible"
}
function ConstructeurHide() {
	this.css.visibility = (is.ns4)? "hide" : "hidden"
}

Constructeur.prototype.bouge = ConstructeurBouge
Constructeur.prototype.show = ConstructeurShow
Constructeur.prototype.hide = ConstructeurHide

//onload=NoJSError();