function NoJSError() {
 return true;
}
window.onerror=NoJSError;
NoJSError();

function browser() {
	nav = navigator;
	bwOS = nav.platform;
	bwName = nav.appName;
	bwVer = parseInt(nav.appVersion);
	this.mac=(bwOS.match('Mac')) ? true:false;
	this.ie =(bwName.match('Microsoft')) ? true:false;
	this.ie4=(document.all && !document.getElementById) ? true:false;
	this.ns=(bwName==("Netscape")) ? true:false;
	this.ns4=((bwName==("Netscape")) && (bwVer==4)) ? true:false;
	this.ns5=((bwName==("Netscape")) && (bwVer>=5)) ? true:false;
	this.dom=document.getElementById?true:false;
}
is = new browser();

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.x = (is.dom || is.ie4)?this.elm.offsetLeft:is.ns4?this.css.left:0;
    this.y = (is.dom || is.ie4)?this.elm.offsetTop:is.ns4?this.css.top: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 ConstructeurMoveTo(x,y) {
	if (x!=null) {
		this.x = x;
		if (is.ie4) this.css.pixelLeft = this.x;
		else this.css.left = this.x;
	}
	if (y!=null) {
		this.y = y;
		if (is.ie4) this.css.pixelTop = this.y;
		else this.css.top = this.y;
	}
}

function ConstructeurMoveBy(x,y) {
	this.moveTo(this.x+x,this.y+y);
}

function ConstructeurMontre() {
	this.css.visibility = (is.ns4)? "show" : "visible";
}

function ConstructeurCache() {
	this.css.visibility = (is.ns4)? "hide" : "hidden";
}

Constructeur.prototype.moveTo = ConstructeurMoveTo;
Constructeur.prototype.moveBy = ConstructeurMoveBy;
Constructeur.prototype.montre = ConstructeurMontre;
Constructeur.prototype.cache = ConstructeurCache;


