// JavaScript Document/* 	This function changes the background colour, and adds the second nav to a div area*/function showObj(ObjIndex, ObjDiv) {	var Obj = (document.getElementById) ? document.getElementById(ObjDiv) : eval("document.all['" + ObjDiv + "']");	Obj.className = navArray[ObjIndex][0][1];	//Obj.style.backgroundColor = navArray[ObjIndex][0][1];	Obj.innerHTML = buildnav(ObjIndex);}/*	creates the nav*/function buildnav(ObjIndex){	htmlnav = '<ul>';	for (x = 1; x < navArray[ObjIndex].length; x++) {		htmlnav += '<li><a href="'+navArray[ObjIndex][x][1]+'" target="_' + navArray[ObjIndex][x][2]+ '">'+navArray[ObjIndex][x][0]+'</a></li>';		if (x < (navArray[ObjIndex].length-1)) {			htmlnav += '<li>:</li>';		}	}	htmlnav += '</ul>';	return htmlnav;}/*	hides the nav*/function hideObj(ObjIndex, ObjDiv) {	var Obj = (document.getElementById) ? document.getElementById(ObjDiv) : eval("document.all['" + ObjDiv + "']");	Obj.className = navArray[ObjIndex][0][1];	//Obj.style.backgroundColor = navArray[ObjIndex][0][1];	Obj.innerHTML = hidenav(ObjIndex);}function hidenav(ObjIndex){	htmlnav = '';	return htmlnav;}/* 	show the nav of the current page based on the name of the page */function do_shownav(str,ObjDiv) {	for (i = 0; i < navArray.length; i++) {		if (navArray[i][0][0] == str) {			showObj(i,ObjDiv);			break;		}	}	}function defaulttext(obj,type,defaultvalue){	if (type==1){		if (obj.value == defaultvalue){			obj.value = '';		}	}	if (type==2){		if (obj.value == ''){			obj.value = defaultvalue;		}	}}function loadWork(product){	url = "work.php?passedVariable=";	document.location.href= url + product;}function spanishWork(product){	url = "work.php?lang=spanish&passedVariable=";	document.location.href= url + product;}