// this creates the "where am i" effect for the subnav that lets the user know where they are 
function initSubNav(){
		if (document.getElementById){
		if (document.getElementById('subnav')){
			var subnav = document.getElementById('subnav');  	//finds subnav element
			var subnavas = subnav.getElementsByTagName('a'); 	//finds all anchors within subnav

			for (var a=0; a<subnavas.length; a++){		//cycles through each link
				var currenthref=String(subnavas[a].href);	//assigns current link href to a string
				var currentloc=String(document.location);	//assigns current document url to a string
				//if the current link href matches the document url the anchor is given a class
				if (unescape(currenthref)==unescape(currentloc)){
					subnavas[a].className="snavon"
				}
			}
	  	}
	}
}
window.onload = initSubNav;


