// shows a specified element
function show(what) {
	document.getElementById(what).style.display="block";
}

// hides a specified element
function hide(what) {
	if (what == 'all_touts') {
		document.getElementById('tout1').style.display="none";
		document.getElementById('tout2').style.display="none";
		document.getElementById('tout3').style.display="none";
		document.getElementById('tout4').style.display="none";
		document.getElementById('tout5').style.display="none";
		document.getElementById('tout6').style.display="none";
	} else if (what == 'all_headers') {
		document.getElementById('header1').style.display="none";
		document.getElementById('header2').style.display="none";
		document.getElementById('header3').style.display="none";
		document.getElementById('header4').style.display="none";
	} else {
		document.getElementById(what).style.display="none";
	}
}

/*
// hides or shows the element appropriately
function showOrHide(what) {
	if (document.getElementById(what).style.display=="none") {
		document.getElementById(what).style.display="block";
	} else {
		document.getElementById(what).style.display="none";
	}
}
*/

// rollover function
// swaps images
// _on -> _over
// _over -> _on
function swapImage(obj) {
	if (obj.src.indexOf('_on') > -1) {
		obj.src = obj.src.substring(0,obj.src.indexOf('_on'))+'_over'+obj.src.substring(obj.src.lastIndexOf('.'));
	} else if (obj.src.indexOf('_over') > -1) {
		obj.src = obj.src.substring(0,obj.src.indexOf('_over'))+'_on'+obj.src.substring(obj.src.lastIndexOf('.'));
	}
}

// check box function
// swaps images
// _off -> _on
// _on -> _off
function checkBox(num) {
	var obj = document.getElementById('check'+num);
	if (obj.src.indexOf('_on') > -1) {
		obj.src = obj.src.substring(0,obj.src.indexOf('_on'))+'_off'+obj.src.substring(obj.src.lastIndexOf('.'));
		eval('document.frmSigns.q'+num).value = 0;
	} else if (obj.src.indexOf('_off') > -1) {
		obj.src = obj.src.substring(0,obj.src.indexOf('_off'))+'_on'+obj.src.substring(obj.src.lastIndexOf('.'));
		eval('document.frmSigns.q'+num).value = 1;
	}
}



// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/gd_image_one.gif'
theImages[1] = 'images/gd_image_two.gif'
theImages[2] = 'images/gd_image_three.gif'
theImages[3] = 'images/gd_image_four.gif'
// do not edit anything below this line
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}


function viewMap() {
window.open(file + ".html", "map","status,scrollbars,resizable,width=460,height=380,left=0,top=0", "replace");
}

