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


// BrowserCheck Object
function BrowserCheck() {		
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
        this.dom=document.getElementById?1:0
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.min = (this.ns||this.ie)
}
is = new BrowserCheck()

function DivMaker(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 DivMakerMoveTo(x,y) {
	this.x=x;this.y=y
	this.css.left=this.x
	this.css.top=this.y	
}
function DivMakerMoveBy(x,y) {
	this.moveTo(this.x+x,this.y+y)
}
function DivMakerShow() {
	this.css.visibility = (is.ns4)? "show" : "visible"
}
function DivMakerHide() {
	this.css.visibility = (is.ns4)? "hide" : "hidden"
}

DivMaker.prototype.moveTo = DivMakerMoveTo
DivMaker.prototype.moveBy = DivMakerMoveBy
DivMaker.prototype.show = DivMakerShow
DivMaker.prototype.hide = DivMakerHide
NoJSError();
