	
function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
	newWindow=window.open(URLtoOpen, windowName, windowFeatures);
	}
	
	
function navShow(id)
	{
	document.getElementById(id).style.display = "block";
	opacity(id, 0, 100, 200);
	}
	
	
	
function navHide(id){
	//document.getElementById(id).style.display = "none";
	opacity(id, 100, 0, 200);
	}
	
function navbShow(id){
	opacity(id, 22, 12, 900);
	}
	
function navbHide(id){
	opacity(id, 12, 22, 900);
	}
	
function changeNav(id){
	//id = id1;
	document.getElementById(id).style.display = "none";
	}
	
var navaList = new Array("nav_1","nav_2","nav_3","nav_4")
var z = navaList.length;
var holdClass = "hi";
var holdClassId = "bye";

function changeClass(id) {
    holdClassId = id;
	for (var k=0; k<z; k++){ 
	var navId = navaList[k];
	if(navId==id){
	var thisId = document.getElementById(id);
	thisId.setAttribute("class", "nav_z");
	thisId.setAttribute("className", "nav_z");
	holdClass = thisId.getAttribute("class")
	holdClass = thisId.getAttribute("className")
	
	
	}
	}
	}
	
function restoreClass(id) {
	for (var k=0; k<z; k++){ 
	var navId2 = navaList[k];
	if(navId2!=id){
	var thisId = document.getElementById(navId2);
	thisId.setAttribute("class", "nav_a");
	thisId.setAttribute("className", "nav_a");
	}
	}
	//return;
	} 
	
	
	function highlightOn(id) {
	
	var thisId = document.getElementById(id);
	
	//alert(thisId.getAttribute("className"));
	thisId.setAttribute("class", "nav_z");
	thisId.setAttribute("className", "nav_z");
	//alert(thisId.getAttribute("className"));
	//alert(holdClass);
	}
	
	function highlightOff(id) {
	var thisId = document.getElementById(id);
	var thisholdClassId = id;
	if(holdClass != 'nav_z' ){
	//var thisClass = thisId.getAttribute("className");
	thisId.setAttribute("class", "nav_a");
	thisId.setAttribute("className", "nav_a");}
	else if (thisholdClassId != holdClassId){
	thisId.setAttribute("class", "nav_a");
	thisId.setAttribute("className", "nav_a");
	 }
	}
	
		var frameList = new Array("frame_1","frame_c","frame_r","frame_2","frame_3","frame_4","frame_5");
	var f = frameList.length;
	
function iframeShow(id){
	document.getElementById(id).style.display = "block";
	//opacity(id, 0, 100, 400);
	for (var k=0; k<f; k++){
	var frameId = frameList[k];
	if(frameId!=id){
	document.getElementById(frameId).style.display = "none";
	
	}
	}
	}
	
function iframeHide(){
	for (var k=0; k<f; k++){
	var frameId = frameList[k];
	document.getElementById(frameId).style.display = "none";
	//opacity(id, 0, 100, 200);
	}
	}

	
	//painting nav below
	
	var navxxList = new Array("nav_c","nav_r","nav_5","nav_6","nav_7","nav_8");
	var ss = navxxList.length;
	
function changeClass_b(id) {
	for (var k=0; k<ss; k++){ 
	var navId = navxxList[k];
	if(navId=id){
	var thisId = document.getElementById(id);
	thisId.setAttribute("class", "nav_z");
	thisId.setAttribute("className", "nav_z");
	}
	}
	}
	
function restoreClass_b(id) {
	for (var k=0; k<ss; k++){ 
	var navId2 = navxxList[k];
	if(navId2!=id){
	var thisId = document.getElementById(navId2);
	thisId.setAttribute("class", "nav_b");
	thisId.setAttribute("className", "nav_b");
	}
	}
	//return;
	} 
	
	//writing nav below
	
var navcList = new Array("nav_9","nav_10","nav_11","nav_12","nav_13");
var r = navcList.length;
	
function changeClass_c(id) {
	for (var k=0; k<r; k++){ 
	var navId = navcList[k];
	if(navId==id){
	var thisId = document.getElementById(id);
	thisId.setAttribute("class", "nav_z");
	thisId.setAttribute("className", "nav_z");
	}
	}
	}
	
function restoreClass_c(id) {
	for (var k=0; k<r; k++){ 
	var navId2 = navcList[k];
	if(navId2!=id){
	var thisId = document.getElementById(navId2);
	thisId.setAttribute("class", "nav_b");
	thisId.setAttribute("className", "nav_b");
	}
	}
	//return;
	}
	

	
	//in older Vs of mozilla opacity setting was not activated until moused over once, this sets the value when menu displayed
	//add new writing menu items or new function also test if 22 22 or 0 22 produces flash
	var navb_aList = new Array("nav_5_a","nav_6_a","nav_7_a","nav_8_a");
	var s = navb_aList.length;
	
function lowerNavShow(id){
	document.getElementById(id).style.display = "block";
	opacity(id, 0, 100, 800);
	for (var k=0; k<s; k++){ 
	var navbId = navb_aList[k];
	opacity(navbId, 22, 22, 200);
	}
	}
	
	
function lowerNavHide(id)
	{
	document.getElementById(id).style.display = "none";
	}

