function navaction_start(div,x) {var nav=document.getElementById('nav');var divs=nav.getElementsByTagName('div');for(i=0;i<divs.length; i++) {divid=divs[i].id;	if(divid==x) {	//if subnav beongs to clicked nav match, then display the subnav	divs[i].style.display='block';	}	else {		if(divs[i].className=='subnav') {		divs[i].style.display='none';			}	}}i=0;}//FOR DELAYED MENUvar i=0;var onlyonce=0;function navaction(x) {var u=0;	var nav=document.getElementById('nav');var div=nav.getElementsByTagName('div');//create array containing just the selected navs (i.e. only the ones that need display='block') --removes delay of looping through entire subnavsvar divs= new Array;for(e=0;e<div.length;e++) {	if(div[e].id==x) {	divs[u]=div[e];	u++;	}}x2=x;//id of clicked div/*old way -- had too much lagif(divs[i].id==x) {divs[i].style.display='block';}*/if(onlyonce==0) {//close all subnavs (just once)	for(w=0;w<div.length;w++) {		if(div[w].className=='subnav' && div[w].style.display=='block') {		div[w].style.display='none';			}	}}//show subnav (one by one)divs[i].style.display='block';		onlyonce++;i++;$delay=50;if(i<divs.length) {//delay the subnavsvar timeout=setTimeout("navaction('"+x2+"');" ,$delay);}if(onlyonce==divs.length) {//once the whole thing is done, reset i for the next clicki=0;	onlyonce=0;}}//end f(x)function highlight(span,on) {//workaround for sending id and not this from the js eventif(span.nodeType!=1) {span=document.getElementById(span);	}var bkgcol=span.style.backgroundColor;var textcol=span.style.color;if(on=='on') {span.style.cursor="hand";//span.style.outline="3px solid orange";span.style.backgroundColor="#C5D276";span.style.color="black";bkgcol_old=bkgcol;txt_old=textcol}else {	if(span.className=='navlist') {	//bkgcol_old=bkgcol;	}span.style.backgroundColor=bkgcol_old;span.style.color=txt_old;}}function thumb_nums(num,picid) {pix=document.getElementById('pix');allnums=pix.getElementsByTagName('a');thenums= new Array();for(z=0;z<allnums.length;z++) {allnums[z].style.color='';}if(picid) {//chg num when bigpic changesdocument.getElementById(picid).style.color='#000000';}else {	//chg when clickednum.style.color='#000000';}}function popup(url) {//window.open('video_popup.php');var popup=window.open(url,'', 'height=400, width=360, menubar=no, scrollbars=no, toolbar=no, statusbar=no, resizable=no, titlebar=yes, location=no');popup.focus();}function view_address() {var email_to_replace=document.getElementById("e");if(email_to_replace) {address_to_replace=document.getElementById("e").firstChild;var real_address=address_to_replace.nodeValue.replace("[at]", "@");address_to_replace.nodeValue=real_address; address_to_replace.parentNode.setAttribute("href", "mailto:"+real_address);}}