$(function() {
$("#menu a").live("click", function() {
var isLeaf = true;
if ($(this).parent().parent().hasClass("nav")) {
if ($(this).parent().find('ul').hasClass("subnav")) { isLeaf = false; alert("cuole"); }
else { isLeaf = true; alert("duile"); }
} else {
isLeaf = true;
}
if (isLeaf) {
$("#content").html('<img src="../images/loading.gif" vspace=100 hspace=245>');
var navId = $(this).attr("id");
$.getScript("../js/student/" + navId.substring(4, navId.length) + ".js");
setLocation(navId);
}
});
var location = getLocation();
$("#" + location).trigger("click");
});