/*
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()
// Createur des objets pour les navigateurs Internet Explorer et Nescape
function Constructeur(id,Reflay){
try {
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;
} catch(e) {}
}
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 ConstructeurMoveTo(x,y) {
if (x!=null) {
this.x = x
if (is.ns) this.css.left = this.x
else this.css.pixelLeft = this.x
}
if (y!=null) {
this.y = y
if (is.ns) this.css.top = this.y
else this.css.pixelTop = this.y
}
}
function ConstructeurMoveBy(x,y) {
this.moveTo(this.x+x,this.y+y)
}
function ConstructeurShow() {
this.css.visibility = (is.ns4)? "show" : "visible"
}
function ConstructeurHide() {
this.css.visibility = (is.ns4)? "hide" : "hidden"
}
Constructeur.prototype.moveBy = ConstructeurMoveBy
Constructeur.prototype.moveTo = ConstructeurMoveTo
Constructeur.prototype.bouge = ConstructeurBouge
Constructeur.prototype.show = ConstructeurShow
Constructeur.prototype.hide = ConstructeurHide
//onload=NoJSError();