var IE4 = (document.all && !document.getElementById) ? true : false;var NS4 = (document.layers) ? true : false;var IE5 = (document.all && document.getElementById) ? true : false;var NS6 = (document.getElementById && !document.all) ? true : false;var IE = (IE4 || IE5) ? true : falsevar NS = (NS4 || NS6) ? true : falsevar isNav = NSvar isIE = IEvar coll = (IE) ? "all." : ""var styleObj = (IE) ? ".style" : ""if(NS){var hide="hide";var show="show"}if(IE){var hide="hidden";var show="visible"}function changeMe(name,toThis) {	if (document.getElementById){		document.getElementById(name).innerHTML = toThis	} else if (document.layers){        document.layers[name].document.close()        document.layers[name].document.write(toThis)        document.layers[name].document.close()	} else if (document.all) {		test = eval("document.all." + name)		test.innerHTML = toThis  	}}// Convert object name string or object reference// into a valid object referencefunction getObject(obj) {	var theObj	if (typeof obj == "string") {		if(document.getElementById){			theObj = document.getElementById(obj).style		} else {			theObj = eval("document." + coll + obj + styleObj)		}	} else {		theObj = obj	}	return theObj}// Positioning an object at a specific pixel coordinatefunction shiftTo(obj, x, y) {	var theObj = getObject(obj)	if (isNav) {		theObj.moveTo(x,y)	} else {		theObj.pixelLeft = x		theObj.pixelTop = y	}}// Moving an object by x and/or y pixelsfunction shiftBy(obj, deltaX, deltaY) {	var theObj = getObject(obj)	if (isNav) {		theObj.moveBy(deltaX, deltaY)	} else {		theObj.pixelLeft += deltaX		theObj.pixelTop += deltaY	}}// Setting the z-order of an objectfunction setZIndex(obj, zOrder) {	var theObj = getObject(obj)	theObj.zIndex = zOrder}// Setting the background color of an objectfunction setBGColor(obj, color) {	var theObj = getObject(obj)	if (isNav) {		theObj.bgColor = color	} else {		theObj.backgroundColor = color	}}// Setting the text colour of an objectfunction setTxtColor(obj, color) {	var theObj = getObject(obj)	if (isNav) {		//theObj.bgColor = color	} else {		theObj.color = color	}}// Setting the visibility of an object to visiblefunction show(obj) {	var theObj = getObject(obj)	theObj.visibility = "visible"}// Setting the visibility of an object to hiddenfunction hide(obj) {	var theObj = getObject(obj)	theObj.visibility = "hidden"}// Retrieving the x coordinate of a positionable objectfunction getObjectLeft(obj)  {	var theObj = getObject(obj)	if (isNav) {		return theObj.left	} else {		return theObj.pixelLeft	}}// Retrieving the y coordinate of a positionable objectfunction getObjectTop(obj)  {	var theObj = getObject(obj)	if (isNav) {		return theObj.top	} else {		return theObj.pixelTop	}}// Utility function returns rendered height of object content in pixelsfunction getObjHeight(obj) {	if (isNav) {		return obj.clip.height	} else {		return obj.clientHeight	}}// Utility function returns rendered width of object content in pixelsfunction getObjWidth(obj) {	var theObj = getObject(obj)	if (isNav) {		return theObj.clip.width	} else {		return theObj.clientWidth	}}// Utility function returns the available content width space in browser windowfunction getInsideWindowWidth() {	if (isNav) {		return window.innerWidth	} else {		return document.body.clientWidth	}}// Utility function returns the available content height space in browser windowfunction getInsideWindowHeight() {	if (isNav) {		return window.innerHeight	} else {		return document.body.clientHeight	}}
