/*v1.05 byD.H.*/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=o="";var 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; case "overflow":o=pa_[1];break;}}z=(z=="")?1:z;this.name="dhCtRl"+(++idc),this.width=w,this.height=h,this.left=l,this.top=t,this.zindex=z;visb=(v==1)?(NS4)?' visibility="hide"':';visibility:hidden':(NS4)?' visibility="show"':';visibility:visible';flow=(o=="")?'':(!NS4)?';overflow:'+o:' overflow="'+o+'"';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+flow+"\">"+c+"</div>");else{document.write("<layer id=\""+this.name+"\" left=\""+l+"\" top=\""+t+"\" width=\""+w+"\" height=\""+h+"\" z-index=\""+z+"\""+visb+bcol+flow+">"+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",""))}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.centered=function(){x=!isBr_IE?window.innerWidth:document.body.offsetWidth;y=!isBr_IE?window.innerHeight:document.body.offsetHeight;x=(x-this.width)/2;y=(y-this.height)/2;if(NS4)target(this.name).moveTo(x,y);else{target(this.name).style.left=x;target(this.name).style.top=y;}this.top=y;this.left=x;};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;}this.top=t;this.left=l;};mylayer.prototype.moveto=function(x,y){x=!x?0:parseInt(x);y=!y?0:parseInt(y);if(NS4)target(this.name).moveTo(x,y);else{target(this.name).style.left=x;target(this.name).style.top=y;}this.top=y;this.left=x;};mylayer.prototype.resizeby=function(x,y){x=!x?0:parseInt(x);y=!y?0:parseInt(y);sty=NS4?".clip":sty;w=eval("target(this.name)"+sty+".width");h=eval("target(this.name)"+sty+".height");w=x+convertPixel(w.toString());h=y+convertPixel(h.toString());if(NS4){target(this.name).clip.width=w;target(this.name).clip.height=h;}else{target(this.name).style.width=w;target(this.name).style.height=h;}this.width=w;this.height=h;};mylayer.prototype.resizeto=function(x,y){if(NS4){if(x)target(this.name).clip.width=x;if(y)target(this.name).clip.height=y;}else{if(x)target(this.name).style.width=x;if(y)target(this.name).style.height=y;}this.width=x;this.height=y;};mylayer.prototype.changez=function(z){eval("target(this.name)"+sty+".zIndex=z");this.zindex=z;}/*dh@dhexhibit.net||dhuang@viewpoint.com*/