// $Revision: #9 $
var isBr_IE=document.all,NS6=document.getElementById&&!isBr_IE,NS4=document.layers,idc=0,sty=NS4?"":".style";function mylayer(p,c){if(c==null)c="";var t=l=w=h=z=b=v="",pa=p.split(",");for(var i=0;i<pa.length;i++){pa_=pa[i].split("=");switch(pa_[0]){case "top":t=pa_[1];break; case "left":l=pa_[1];break;case "width":w=pa_[1];break; case "height":h=pa_[1];break;case "zindex":z=pa_[1];break; case "bgcolor":b=pa_[1];break;case "hide":v=pa_[1];break;}}this.name="dhCtRl"+(++idc),this.width=w,this.height=h,this.left=l,this.top=t;z=(z=="")?1:z;visb=(v==1)?(NS4)?' visibility="hide"':';visibility:hidden':(NS4)?' visibility="show"':';visibility:visible';bcol=(b=="")?'':(!NS4)?';background-color:'+b:' bgcolor="'+b+'"';if(!NS4)document.write("<div id=\""+this.name+"\" style=\"position:absolute;left:"+l+"px;top:"+t+"px;width:"+w+"px;height:"+h+"px;z-index:"+z+visb+bcol+"\" ondragenter=\"event.returnValue=false;return false;\" ondragover=\"event.returnValue=false;return false;\">"+c+"</div>");else{document.write("<layer id=\""+this.name+"\" left=\""+l+"\" top=\""+t+"\" width=\""+w+"\" height=\""+h+"\" z-index=\""+z+"\""+visb+bcol+">"+c);document.write("</layer>");}}function target(arg){return (isBr_IE)?document.all[arg]:(NS6)?document.getElementById(arg):eval("document."+arg);}function convertPixel(arg){return parseInt(arg.replace("px",""))};function cancelEvent(){event.returnValue=false;return false;}mylayer.prototype.hide=function(){eval("target(this.name)"+sty+".visibility=(NS4)?'hide':'hidden';")};mylayer.prototype.show=function(){eval("target(this.name)"+sty+".visibility=(NS4)?'show':'visible';")};mylayer.prototype.moveby=function(x,y){x=!x?0:parseInt(x);y=!y?0:parseInt(y);t=eval("target(this.name)"+sty+".top");l=eval("target(this.name)"+sty+".left");t=y+convertPixel(t.toString());l=x+convertPixel(l.toString());if(NS4)target(this.name).moveTo(l,t);else{target(this.name).style.left=l;target(this.name).style.top=t;}}