	var CurrentOn = 000;

//Dropdown Code Starts Here
		
$(document).ready(function(){
	buildMenu(111868, 2);
	buildMenu(111869, 2);
	buildMenu(111870, 2);
	buildMenu(111871, 2);
	buildMenu(111872, 2);
	buildMenu(111873, 2);
	buildMenu(111874, 2);

    $("#Nav li").hover(
        function(){ $("ul", this).show("fast"); }, 
        function() { } 
    );
	$("#Nav ul").bgiframe({src:'/podium/blank.html'});
    if (document.all) {
        $("#Nav li").hoverClass ("sfHover");
    }
});

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};
var detect = navigator.userAgent.toLowerCase();
function buildMenu(pageID, level){
	//alert("build the menu - " + pageID);
	var firstItem = true;
	var menuString = "";
	
	for(var i = 0; i < schoolPageList.length; i++){
		if(schoolPageList[i].parentID == pageID && schoolPageList[i].level == level){
			if(firstItem){
//** This is used for styling all drop down headers at once
//				menuString = "<ul><li><div id='header'><!-- --></div></li>"
//** This is used for styling individual drop downs with different headers
				menuString = "<ul><li><div id='header_"+pageID+"'><!-- --></div></li>";
// ** This is used to center drop downs or position them individually
//				menuString = "<ul id='dd_"+pageID+"'><li><div id='header_"+pageID+"'><!-- --></div></li>"
				if(!checkIt('msie')){
					menuString += "<li><div id='top_spacer'></div></li>";
				}
			}
			target = ""
			if(schoolPageList[i].target) target = " target=\"_blank\"";
			menuString += "<li><a href=\"" + schoolPageList[i].pageURL + "\"" + target + "><span>" + schoolPageList[i].pageName + "</span></a></li>";
			firstItem = false;
		}
	}
	
	if(menuString.length > 0){
		if(!checkIt('msie')){
			menuString += "<li><div id='bottom_spacer'></div></li>";
		}
		menuString += "<li class='footer'><div><!-- --></div></li></ul>";
		
		$("#L1_" + pageID).after(menuString);
	}
}
function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}
//Dropdown Code Ends
function M_object(element) {
	if (arguments.length > 1) {
		for (var i = 0, elements = [], length = arguments.length; i < length; i++)
			elements.push(M_object(arguments[i]));
		return elements;
	}
	if (typeof element == 'string')
		element = document.getElementById(element);
	return element;
}