/// Begin Basic Library **************************************************** WW_Netscape4 = true; WW_Microsoft = false; WW_oldbrowser = false; WW_setbrowser(); function WW_setbrowser() { // Set Browser Flags if( navigator.appName != "Netscape" ) { WW_Netscape4 = false; WW_Microsoft = true; } if( navigator.appVersion < 4 ) { WW_Netscape4 = false; WW_Microsoft = false; WW_oldbrowser = true; } } // End WW_setbrowser() function WW_getlayer(idstring) { // Find layer with given label if( WW_Netscape4 ) { return eval("document." + idstring); } else { return eval("document.all." + idstring); } } // End WW_getlayer() function WW_getlayertop(obj) { if(WW_isundefined(obj)) return 0; if(WW_Netscape4 ) { return obj.top; } else { return obj.style.pixelTop; } } // End WW_getlayertop(obj) function WW_getlayerleft(obj) { if(WW_isundefined(obj)) return 0; if(WW_Netscape4 ) { return obj.left; } else { return obj.style.pixelLeft; } } // End WW_getlayerleft(obj) function WW_getlayerheight(obj) { if(WW_isundefined(obj)) return 0; if(WW_Netscape4 ) { return obj.clip.height; } else { return obj.clientHeight; } } // End WW_getlayerheight(obj) function WW_getlayerwidth(obj) { if(WW_isundefined(obj)) return 0; if(WW_Netscape4 ) { return obj.clip.width; } else { return obj.clientWidth; } } // End WW_getlayerwidth(obj) function WW_setlayerwidth(obj,value) { if(WW_isundefined(obj)) return; if(WW_Netscape4 ) { obj.clip.width = value; } else { obj.style.width = value; } } // End WW_setlayerwidth(obj,value) function WW_setlayerheight(obj,value) { if(WW_isundefined(obj)) return; if(WW_Netscape4 ) { obj.clip.height = value; } else { obj.style.height = value; } } // End WW_setlayerheight(obj,value) function WW_getwindowwidth() { if(WW_Netscape4 ) { return window.innerWidth; } else { return document.body.clientWidth; } } // End WW_getwindowwidth() function WW_getwindowheight() { if(WW_Netscape4 ) { return window.innerHeight; } else { return document.body.clientHeight; } } // End WW_getwindowheight() function WW_setbackgroundcolor(obj,actualcolor) { if(WW_isundefined(obj)) return; if( WW_Netscape4 ) { obj.bgColor = actualcolor; } else { obj.style.backgroundColor = actualcolor; } return; } // End WW_setbackgroundcolor(obj,actualcolor) function WW_getlayerzindex(obj) { if(WW_isundefined(obj)) return 0; if(WW_Netscape4 ) { return obj.zIndex; } else { return obj.style.zIndex; } } // End WW_getlayerzindex(obj) function WW_layertotop(obj) { if(WW_isundefined(obj)) return; if(WW_Netscape4 ) { obj.zIndex = 1000; } else { obj.style.zIndex = 1000; } } // End WW_layertotop(obj) function WW_layertogeneric(obj,amount) { if(WW_isundefined(obj)) return; if(WW_Netscape4 ) { obj.zIndex = amount; } else { obj.style.zIndex = amount; } } // End WW_layertogeneric(obj) function WW_layertobottom(obj) { if(WW_isundefined(obj)) return; if(WW_Netscape4 ) { obj.zIndex = 0; } else { obj.style.zIndex = 0; } } // End WW_layertobottom(obj) function WW_layershow(obj) { if(WW_isundefined(obj)) return; if(WW_Netscape4 ) { obj.visibility = "visible"; } else { obj.style.visibility = "visible"; } } // End WW_layershow(obj) function WW_layerhide(obj) { if(WW_isundefined(obj)) return; if(WW_Netscape4 ) { obj.zIndex = 0; obj.visibility = "hidden"; } else { obj.style.zIndex = 0; obj.style.visibility = "hidden"; } return; } // End WW_layerhide(obj) function WW_layerishidden(obj) { if(WW_isundefined(obj)) return true; if(WW_Netscape4) { if( obj.visibility == 'hide' ) return true; } else { if( obj.style.visibility == 'hidden' ) return true; } return false; } // End WW_layerishidden(obj) function WW_layershiftto(obj,x,y) { if(WW_isundefined(obj)) return; if(WW_Netscape4 ) { obj.moveTo(x,y); } else { obj.style.pixelLeft = x; obj.style.pixelTop = y; } } // End WW_layershiftto(obj,x,y) function WW_layershiftby(obj,deltax,deltay) { if(WW_isundefined(obj)) return; if(WW_Netscape4 ) { obj.moveBy(deltax,deltay); } else { obj.style.pixelLeft += deltax; obj.style.pixelTop += deltay; } } // End WW_layershiftby(obj,deltax,deltay) function WW_eventx(e) { // return x value of event if(WW_Netscape4 ) { return e.pageX; } else { return window.event.clientX; } } // End WW_eventx(e) function WW_eventy(e) { // return y value of event if(WW_Netscape4 ) { return e.pageY; } else { return window.event.clientY; } } // End WW_eventy(e)