(function($){
	$(function(){
		/* Main navigation */
		$('#nav li:has(ul)').hover(function(){$(this).addClass('sfhover');}, function(){$(this).removeClass('sfhover');});		  
		/* Accordian nav on right */
  		//$('div.Accord > div').hide(); // hide all the sidenav modules
		$('div.Accord > h3').css({cursor:'pointer'}).click(function(){ $(this).next().slideToggle('fast'); });
		//$('div.Accord:eq(0) > div:eq(0)').show(); // show just the first one by default
	});
})(jQuery);



function openNewWindow(theURL, width, height) { //v2.0
	var winl = (screen.width - width) / 2; //center screen horizontal
	var wint = (screen.height - height) / 2; //center screen vertical
	window.open(theURL,'','width='+width+',height='+height+',top=' + wint + ',left=' + winl+',resizable=0,scrollbars=0');
}

