function divObject(id,nestref) {this.id = id;
if (ns4) {this.css = nestref ? eval("document."+nestref+".document."+id) : document.layers[id];this.ref = this.event = this.css;this.doc = this.css.document;this.x = this.css.left;this.y = this.css.top;this.w = this.css.clip.width;		this.h = this.css.clip.height;this.InnerObject("Img","images");
this.InnerObject("Form","forms");this.InnerObject("Link","links");}
else if (ns5){this.ref = document.getElementById(id);}
else if (ie) {this.ref = this.event = document.all[id];}
if (ie||ns5){this.css = this.ref.style;	this.doc = document;this.x = this.ref.offsetLeft;		
this.y = this.ref.offsetTop;
this.w = ie4 ? this.css.pixelWidth : this.ref.offsetWidth;
this.h = ie4 ? this.css.pixelHeight : this.ref.offsetHeight;}
this.nestref = nestref;this.obj = id + "divObject";eval(this.obj + "=this");}
function divObjectShow() {this.css.visibility = ns4 ? "show" : "visible"}
function divObjectHide() {this.css.visibility = ns4 ? "hide" : "hidden"}
function divObjectInherit() {this.css.visibility="inherit";}
divObject.prototype.show = divObjectShow;divObject.prototype.hide = divObjectHide;
divObject.prototype.inherit = divObjectInherit;
divObjectTest = new Function('return true');
function divObjectInit(nestref) {if (ns4) {
if (nestref) docRef = eval('document.'+nestref+'.document')
else {nestref = '';docRef =document;InnerObject("Img","images");
InnerObject("Form","forms");InnerObject("Link","links");}
var dl=docRef.layers.length;
for (var i=0; i<dl; i++) {
var dn = docRef.layers[i].name;nra[dn] = nestref;var ix = dn.indexOf("Div");
if (ix > 0) {eval(dn.substr(0,ix)+' = new divObject("'+dn+'","'+nestref+'")')}
if (docRef.layers[i].document.layers.length > 0) {rarr[rarr.length] = nestref==''? dn : nestref+'.document.'+dn;}
}
if (rel < rarr.length) {divObjectInit(rarr[rel++]);}}
else if (ie||ns5) {var ds=ie ? document.all.tags("DIV") : document.getElementsByTagName("div");
var ddl=ds.length;
for (var i=0; i<ddl; i++) {
var dn = ds[i].id;var ix = dn.indexOf("Div");
if (ix > 0) {eval(dn.substr(0,ix)+' = new divObject("'+dn+'")')}}
InnerObject("Img","img");InnerObject("Form","form");InnerObject("Link","a");}
return true;}
var nra = new Array();var rarr = new Array();var rel = 0;
function divObjectWrite(html) {if (ns4) {
this.doc.open();this.doc.write(html);this.doc.close();}
else if (ie||ns5) {this.ref.innerHTML = html;}}
divObject.prototype.write = divObjectWrite;var bT = navigator.appName;var b;
if (bT=="Netscape") b = "ns";
else if (bT=="Microsoft Internet Explorer") b = "ie";
else b=bT;
var version = navigator.appVersion;var v = parseInt(this.version);var ns = b=="ns" && v>=4;var ns4 = b=="ns" && v==4;
var ns5 = b=="ns" && v==5;var ie = b=="ie" && v>=4;var ie4 = version.indexOf('MSIE 4')>0;
var ie5 = version.indexOf('MSIE 5')>0;var min = ns||ie;var platform = navigator.platform;
if(platform=="MacPPC" | "Mac68K") var mac = true;
divObject.prototype.InnerObject=InnerObject;
function InnerObject(objName,objTag){var docElm;
if (ns5)docElm=document.getElementsByTagName(objTag);
else if(ns4){var nestDiv=this.doc || document;docElm=nestDiv[objTag];}
else if(ie)docElm=document.all.tags(objTag)
loopObjectTag(docElm,docElm.length,objName,nestDiv);
}
function loopObjectTag(docElm,docElmLength,objName,nestDiv){
for (var i=0; i<docElmLength; i++) {
var elmName = docElm[i].name||docElm[i].id;
if (elmName!='')eval(elmName+objName+'= new TypeObject(elmName,nestDiv)');
}}
function TypeObject(objName,nestDiv){this.name=objName;this.nestDiv=nestDiv || document.all;
if (ie)this.ref=document.all[objName];
else if(ns4)this.ref=nestDiv[objName];
else if(ns5)this.ref=document.getElementById(objName);
}
function roll(imgObj,imgSrc){
if (eval("typeof "+imgObj+"=='object'")){
eval(imgObj+".ref.src = imgSrc.src");
}}
function divObjectGetRelativeX() {return ns ? this.css.pageX : this.ref.offsetLeft}
function divObjectGetRelativeY() {return ns ? this.css.pageY : this.ref.offsetTop}
divObject.prototype.getRelativeX = divObjectGetRelativeX;divObject.prototype.getRelativeY = divObjectGetRelativeY;
function divObjectGetContentWidth() {return ns4? this.doc.width : this.ref.offsetWidth;}
function divObjectGetContentHeight() {return ns4?  this.doc.height : this.ref.offsetHeight;}
divObject.prototype.getContentWidth = divObjectGetContentWidth;
divObject.prototype.getContentHeight = divObjectGetContentHeight;
function divObjectClipInit(clipTop,clipRight,clipBottom,clipLeft) {
if (ie) {
if (arguments.length==4) this.clipTo(clipTop,clipRight,clipBottom,clipLeft);
else if (ie4) this.clipTo(0,this.css.pixelWidth,this.css.pixelHeight,0)
}}
function divObjectClipBy(t,r,b,l) {
this.clipTo(this.clipValues('t')+t,this.clipValues('r')+r,this.clipValues('b')+b,this.clipValues('l')+l)}
function divObjectClipTo(t,r,b,l) {
if (t==null) t = this.clipValues('t')
if (r==null) r = this.clipValues('r')
if (b==null) b = this.clipValues('b')
if (l==null) l = this.clipValues('l')
if (ns) {
this.css.clip.top = t;this.css.clip.right = r;this.css.clip.bottom = b;
this.css.clip.left = l
}
else if (ie) this.css.clip = "rect("+t+"px "+r+"px "+b+"px "+l+"px)"
}
function divObjectClipValues(which) {
if (ie) var clipv = this.css.clip.split("rect(")[1].split(")")[0].split("px")
if (which=="t") return (ns)? this.css.clip.top : Number(clipv[0])
if (which=="r") return (ns)? this.css.clip.right : Number(clipv[1])
if (which=="b") return (ns)? this.css.clip.bottom : Number(clipv[2])
if (which=="l") return (ns)? this.css.clip.left : Number(clipv[3])
}
divObject.prototype.clipInit = divObjectClipInit;divObject.prototype.clipTo = divObjectClipTo;
divObject.prototype.clipBy = divObjectClipBy;divObject.prototype.clipValues = divObjectClipValues;
function divObjectResize(w,h){
this.w = w;
ns ? this.css.width : this.css.pixelWidth = w;
this.h = h;
ns ?  this.css.height : this.css.pixelHeight = h;
this.clipTo(0,w,h,0);
}
divObject.prototype.resizeTo=divObjectResize;
function divObjectMoveTo(x,y) {
if (x!=null) {this.x = x;
if (ns) this.css.left = this.x;
else this.css.pixelLeft = this.x;
}
if (y!=null) {this.y = y;
if (ns) this.css.top = this.y;
else this.css.pixelTop = this.y;
}
}
divObject.prototype.moveTo = divObjectMoveTo;