function highlightPage() {
	if (!document.getElementById("primary")) return false;
	var nav = document.getElementById("primary");
	var links = nav.getElementsByTagName("a");
	for (var i=0; i<links.length; i++) {
		var linkurl = links[i].getAttribute("href");
		var currenturl = window.location.href;
		if (currenturl.indexOf(linkurl) != -1) {
  			links[i].className = "active";
  			var linktext = links[i].lastChild.nodeValue.toLowerCase();
  			document.body.setAttribute("class",linktext);
		}
	}
}

$(document).ready(function(){
    highlightPage();
    $("#primary li a").each(function(){
        if(!$(this).hasClass("active")){
            $(this).hover(function(){
                $(this).animate({top:-26},100)
            },function(){
                $(this).animate({top:0},100)
            })
        }
    })
    //function hideDivs() {
	//	$(".toggle").each(function(){
	//		 $(this).hide('fast');
	//	})	
	//}
	$(".toggle").hide();
	$(".default").show();
	$(".toggler").each(function(){
	 	$(this).mouseover(function(){
	 		$(".toggler").removeClass("toggled");
	 		$(".toggle").hide();
	 		$(this).children("div").show("fast");
	 		$(this).addClass("toggled");
	 	})
	})
})