// JavaScript Document
window.onload=montre;
function montre(id) {

function getURL(uri) {
uri.dir = location.href.substring(0,location.href.lastIndexOf('\/'));
uri.dom = uri.dir; if (uri.dom.substr(0,7) == 'http:\/\/') uri.dom = uri.dom.substr(7);
uri.path = ''; var pos = uri.dom.indexOf('\/'); if (pos > -1) {uri.path = uri.dom.substr(pos+1); uri.dom = uri.dom.substr(0,pos);}
return uri;
}

var uri = new Object();

getURL(uri);
var x = new Array(6);
x[1] = "ces/students";
x[2] = "ces/alumni";
x[3] = "ces/employers";
x[4] = "ces/parents";
x[5] = "ces/faculty";


var d = document.getElementById(id);
	for (var i = 1; i<=5; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
		
		if ((x[i]) == uri.path)	{document.getElementById('smenu'+i).style.display='block';}
	}
if (d) {d.style.display='block';}
}