//test for version of NN and IE
var isNav, isIE
var coll = ""
var styleObj = ""
if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape") {
		isNav = true
	} else {
		isIE = true
		coll = "all."
		styleObj = ".style"
	}
}

// Convert object name string or object reference
// into a valid object reference
function getObject(obj) {
	var theObj
	if (typeof obj == "string") {
		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 x = 168
	var y = 560
	var theObj = getObject(obj)
	if (isNav) {
		theObj.moveTo(x,y)
	} else {
		theObj.pixelLeft = x
		theObj.pixelTop = y
	}
}


// Setting the visibility of an object to visible
function show(obj) {
	var theObj = getObject(obj)
	shiftTo(obj)
	theObj.visibility = "visible"
	
}
// Setting the visibility of an object to hidden
//this function needs to include an array of data so I don't have to type 17 hidden functions for each link
function hideLayer(obj) {
	var theObj = getObject(obj)
	theObj.visibility = "hidden"
	}

function hide(obj) {
if('one'!=obj) { hideLayer('one') }
if('two'!=obj) { hideLayer('two') }
if('three'!=obj) { hideLayer('three') }
if('four'!=obj) { hideLayer('four') }
if('five'!=obj) { hideLayer('five') }
if('six'!=obj) { hideLayer('six') }
if('seven'!=obj) { hideLayer('seven') }
if('eight'!=obj) { hideLayer('eight') }
if('nine'!=obj) { hideLayer('nine') }
if('ten'!=obj) { hideLayer('ten') }
if('eleven'!=obj) { hideLayer('eleven') }
if('twelve'!=obj) { hideLayer('twelve') }
if('thirteen'!=obj) { hideLayer('thirteen') }
if('fourteen'!=obj) { hideLayer('fourteen') }
if('fifteen'!=obj) { hideLayer('fifteen') }
if('sixteen'!=obj) { hideLayer('sixteen') }
if('seventeen'!=obj) { hideLayer('seventeen') }
if('eighteen'!=obj) { hideLayer('eighteen') }
}
