/****************************************************************************
DHTML library from DHTMLCentral.com
*   Copyright (C) 2001 Thomas Brattli 2001
*   This script was released at DHTMLCentral.com
*   Visit for more great scripts!
*   This may be used and changed freely as long as this msg is intact!
*   We will also appreciate any links you could give us.
*
*   Made by Thomas Brattli 2001
***************************************************************************/
//Browsercheck (needed) ***************
function lib_bwcheck(){
  this.ver=navigator.appVersion
  this.agent=navigator.userAgent
  this.dom=document.getElementById?1:0
  this.opera5=this.agent.indexOf("Opera 5")>-1
  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
  this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
  this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
  this.ie=this.ie4||this.ie5||this.ie6
  this.mac=this.agent.indexOf("Mac")>-1
  this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
  this.ns4=(document.layers && !this.dom)?1:0;
  this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5||this.opera6)
  return this
}
bw=new lib_bwcheck() //Browsercheck object
//
function lib_obj(obj){
  this.evnt=bw.dom? document.getElementById(obj):
    bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;
  this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt;
  this.obj = obj + "Object"; eval(this.obj + "=this");

  return this;
}  var status=false;var inkr =1;
//
lib_obj.prototype.showIt = function() {
  document.loginform.reset();

 if(status==false){
    this.css.visibility="visible";
    this.action = window.setInterval(this.obj+".moveIt(500,0.8)", 10);

    status=true;
  }else{
    //this.css.display="none";
    this.action = window.setInterval(this.obj+".moveIt(1,-0.8)", 10);

    status=false;
  }
  aobj.markIt();
}
lib_obj.prototype.markIt = function() {
 if(status==false){
    this.css.color="#976D2B";
    if(bw.opera) this.css.background="#ffffff";
    this.css.backgroundColor="#ffffff";
  }else{
    this.css.color="#ffffff";
    if(bw.opera) this.css.background="#EDC08B";
    else if(bw.dom || bw.ie4) this.css.backgroundColor="#EDC08B";
  }
}
lib_obj.prototype.moveIt = function(end,fak) {
  inkr+=(inkr*fak);
  this.css.width=inkr+"px" ;
  if((fak < 0 && inkr<=end) || (fak > 0 && inkr>=end)){
    this.css.width=end+"px" ;
    window.clearInterval(this.action);
    if(fak < 0 && inkr<=end){
      this.css.visibility="hidden";
      inkr=1;
    }
  }
}
//
window.onerror=null;
//
