// JavaScript Document

//variables for email obfuscation
var emGenName = "info";
var emHost1 = "nextsteps";
var emHost2 = "marketing.com";

//Random homepage photo, with appropriately colored gif because some images are dark & some light
var	randomPic = new Array(); 
var	matchBubble = new Array();

	randomPic[0] = "images/home/binoculars.jpg";
	matchBubble[0] = "images/home/bubble.gif";
	
	randomPic[1] = "images/home/conductor.jpg";
	matchBubble[1] = "images/home/bubble_blk.gif";
	
	randomPic[2] = "images/home/ducklings.jpg";
	matchBubble[2] = "images/home/bubble.gif";
	
	randomPic[3] = "images/home/dog.jpg";
	matchBubble[3] = "images/home/bubble.gif";

	randomPic[4] = "images/home/goldfish.jpg";
	matchBubble[4] = "images/home/bubble_blk.gif";
	
	randomPic[5] = "images/home/bee.jpg";
	matchBubble[5] = "images/home/bubble_blue.gif";


var whichPic = Math.floor((Math.random() * randomPic.length));

//gets homepage random image
function getPic() {
	document.getElementById('tagBox').style.backgroundImage ="url("+randomPic[whichPic]+")" ;
	document.getElementById('bubble').src = matchBubble[whichPic];
	startList();
}

function startList() {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById("NSMmenu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
			node.onmouseout=function() {
				this.className=this.className.replace
				(" over", "");
				}
			}
		}
	}
}

