

function toggleText(id) {
	if (navLoaded != true) return;
	if (ns4) {
		if (document.layers['rolloverText'+id].visibility == 'hide') show('rolloverText'+id);
		else hide('rolloverText'+id);
	}
	else {
		if (document.all['rolloverText'+id].style.visibility == 'hidden') show('rolloverText'+id);
		else hide('rolloverText'+id);
	}
}


function toggleLink(id) {
	if (navLoaded != true) return;
	if (document.images['link'+id].src.indexOf('_on') != -1) {
		document.images['link'+id].src = document.images['link'+id].src.replace(/_on/,"_off");
	}
	else {
		document.images['link'+id].src = document.images['link'+id].src.replace(/_off/,"_on");		
	}
}

function linkOn(id) {
	if (navLoaded != true) return;
	document.images['link'+id].src = document.images['link'+id].src.replace(/_off/,"_on");		
}

function linkOff(id) {
	if (navLoaded != true) return;
	document.images['link'+id].src = document.images['link'+id].src.replace(/_on/,"_off");
}

function toggleRollover(id) {
	if (navLoaded != true) return;
	if (document.images['rollover'+id].src.indexOf('_on') != -1) document.images['rollover'+id].src = rolloverImages[id].src;
	else document.images['rollover'+id].src = rolloverImages[id+numRollovers].src;
}

function toggleImg(id) {
	if (is.ie401) return;
	if (ns4) {
		var ref = document;
		var i = 0;
		for (var i=0; !ref.images['menuImg'+id]; i++){
			ref = document.layers[i].document;
		}
		if (ref.images['menuImg'+id].src.indexOf('_on') != -1) ref.images['menuImg'+id].src = menuImages[id].src;
		else ref.images['menuImg'+id].src = menuImages[id+numMenus].src;
	}
	else {
		if (document.images['menuImg'+id].src.indexOf('_on') != -1) document.images['menuImg'+id].src = menuImages[id].src;
		else document.images['menuImg'+id].src = menuImages[id+numMenus].src;
	}
}
