/**DHTML library from DHTMLCentral.com
*Copyright (C) 2001 Thomas Brattli 2001
*This script was released at DHTMLCentral.com
*Made by Thomas Brattli 2001**/
function lib_bwcheck(){
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera=this.agent.indexOf("Opera")>-1
this.ie4=(document.all&&!this.dom&&!this.opera)?1:0;
this.ie=((this.ver.indexOf("MSIE")>-1&&this.dom&&!this.opera)?1:0)||this.ie4
this.ns6=(this.dom&&parseInt(this.ver)>=5)?1:0;
this.ns4=(document.layers&&!this.dom)?1:0;
this.bw=(this.ie||this.ns4||this.ns6||this.opera)
return this}
bw=new lib_bwcheck()
function lib_message(txt){alert(txt);return false}
function lib_obj(obj,nest){
if(!bw.bw) return lib_message('Old browser')
nest=(!nest) ? "":'document.'+nest+'.'
this.evnt=bw.dom? document.getElementById(obj):
bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;
if(!this.evnt) return lib_message('The layer does not exist ('+obj+')'
+'- \nIf your using Netscape please check the nesting of your tags!')
this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt;
this.ref=bw.dom||bw.ie4?document:this.css.document;
this.x=parseInt(this.css.left)||this.css.pixelLeft||this.evnt.offsetLeft||0;
this.y=parseInt(this.css.top)||this.css.pixelTop||this.evnt.offsetTop||0
this.w=this.evnt.offsetWidth||this.css.clip.width||
this.ref.width||this.css.pixelWidth||0;
this.h=this.evnt.offsetHeight||this.css.clip.height||
this.ref.height||this.css.pixelHeight||0
this.c=0
if((bw.dom||bw.ie4)&&this.css.clip){
this.c=this.css.clip;this.c=this.c.slice(5,this.c.length-1);
this.c=this.c.split(' ');
for(var i=0;i<4;i++){this.c[i]=parseInt(this.c[i])}}
this.ct=this.css.clip.top||this.c[0]||0;
this.cr=this.css.clip.right||this.c[1]||this.w||0
this.cb=this.css.clip.bottom||this.c[2]||this.h||0;
this.cl=this.css.clip.left||this.c[3]||0
this.obj=obj+"Object";eval(this.obj+"=this")
return this}
lib_obj.prototype.writeIt=function(text,startHTML,endHTML){
if(bw.ns4){
if(!startHTML){startHTML="";endHTML=""}
this.ref.open("text/html");
this.ref.write(startHTML+text+endHTML);
this.ref.close()
}else this.evnt.innerHTML=text}
