<!--

function init() {
	if (document.getElementById) {
		var x = document.getElementById('nav').getElementsByTagName('img');
	} else if (document.all) {
		var x = document.all['nav'].all.tags('img');
	}
	else return;
	var preloads = new Object();
	for (var i=0;i<x.length;i++) {
		preloads['n'+x[i].id] = new Image;
		preloads['n'+x[i].id].src = 'img/'+ x[i].id + '_off.gif';
		preloads['o'+x[i].id] = new Image;
		preloads['o'+x[i].id].src = 'img/'+ x[i].id + '_on.gif';
		preloads['o'+x[i].id].onerror = function () {this.src='img/spacer.gif'}
		x[i].onmouseover = function () {this.src=preloads['o'+this.id].src;}
		x[i].onmouseout = function () {this.src=preloads['n'+this.id].src;}
	}
}
function showHide(layerName,n){ // shows and hides a given layer
	if (document.getElementById){
		//alert('ns7');
		var fred = document.getElementById(layerName);
		if (n == 1) {
			fred.style.display = "";
		} else if (n == 0) {
			fred.style.display = "none";
		} else if (n == 2) {
			fred.style.display = fred.style.display ? '' : 'none';	
		}
		return;
	}
}
function swapImage(v,z){
	if(document.images) { document.images[v].src="img/btn_" + v + "_" + z + ".gif"; }
}
//-->
