// Javascript common to all pages
function adjustHeight(){
	$("#sidebar , #content").css("height","auto");  // reset existing heights
	var cheight = $("#content").height();
	var wheight = $(window).height();
    var sheight = $("#sidebar").height();
	var dheight = $(document).height();
	var maxheight = Math.max(cheight, wheight, sheight)
	$("#sidebar").height(maxheight);
	$("#content").height(maxheight);
};	

$(document).ready(function(){
adjustHeight();
});

$(window).resize(function(){
adjustHeight();
});

$(document).ready(function()
{
	$("#nav .hassub").mouseover(function()
    {
	     $(".subs").slideDown(1000);
	});
	$("#nav .hassub").mouseleave(function()
    {
		$(".subs").slideUp(800);
	});
});

