// JavaScript Document

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

var emTing = "gary";
var emWong = "kim";
var emWalsh = "maire";
var emPopalardo = "mike";
var emSelby = "thea";
var emThomas = "lisa";
var emBickle = "deb";

// Function to open quote popup
function popQuote(whichQuote) {
	quoteWin=window.open(whichQuote,"quotes","width=500,height=475,toolbar=no,scrollbars=no,menubar=no,resize=no,status=no,left=10,top=10");
	quoteWin.focus();
	}

//show or hide the "Other Services" sections
function toggleSection(currSection) {
	if (document.getElementById) {
	thisMenu = document.getElementById(currSection).style;
		if (thisMenu.display == "block") {
			thisMenu.display = "none";
		}
		else { thisMenu.display = "block" }
		return false;
	}
	else {
		return true;
	}
}


/* Function to reveal submenu in IE from http://www.alistapart.com/articles/hybrid */
startList = function() {
	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", "");
				}
			}
		}
	}
	if (location.search && location.search.length > 1) {
		showSection(location.search.substring(1));
	}
}
window.onload=startList;


//make the apps page work
function showSection(whichSection) {
	if (document.getElementById) {
		document.getElementById(whichSection).style.display='block';
	}
}

