<!--

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}


// JavaScript for Vertical Popup Nav
// javascript for IE/win, since it does not support li:hover

addLoadEvent(function() {
//  autoOnState
	l=window.location.toString(); s=l.split("/");
	// ********* CHANGE ME *****************
	// Change this number to the number of slashes in the URL
	// before the home page
	f=s[4];
	if (f == "index.html" || f == "") {
		return;
	}
	else {
		if (f == "about.php") {
			cn = "n-about";
		}
		else if (f == "contact.html") {
			cn = "n-contact";
		}
		else {
			cn = "n-" + f;
		}
		if (document.getElementById(cn)) {
			var nli = document.getElementById(cn);
			nli.className+="location";
		}
		else {
			return;
		}
	}
})

addLoadEvent(function() {
if (document.all) { 
	var li = document.getElementById("dropdown").getElementsByTagName("li");
	for (var i=0; i<li.length; i++) {
		li[i].onmouseover=function() {
			if(this.className != "nosub" || this.className != "nosublocation") {
				this.className+="iewin";
			}
		}
		li[i].onmouseout=function() {
			if (this.className == "locationiewin") {
				this.className=this.className.replace(new RegExp("locationiewin\\b"), "location");
			}		
			else {
				this.className=this.className.replace(new RegExp("iewin\\b"), "");
			}
		}
	}
	}
	else {
		return;
		}
})
addLoadEvent(function () {
	// p = number of photos to make random
	var p = 8;
	var nums = new Array()
	var j;j=parseInt(Math.random()*p);j=(isNaN(j))?0:j;j=j+1;
	var e = document.getElementById("mark");
	e.className+="rphoto"+j;
})



//-->
