$(document).ready(function(){
	$("#nav_list li").hover(
		function(){
			$("ul", this).hide(0); 
			$("ul", this).slideFadeToggle("medium"); 
		},
		function() { }
	);
	if (document.all) {
		$("#nav_list li").hoverClass ("sfHover");
	}
});

$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover(
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};

function checkHover(){
	if (obj){
		obj.find('ul').fadeOut('fast');
	}
}

function show(element_id)
{
	document.getElementById(element_id).style.display = 'block';
}

function hide(element_id)
{
	document.getElementById(element_id).style.display = 'none';
}

function toggle(element_id)
{
	if (document.getElementById(element_id).style.display != 'block')
	{
		document.getElementById(element_id).style.display = 'block';
	}
	else
	{	
		document.getElementById(element_id).style.display = 'none';
	}
}

function popup(url, width, height)
{
	window.open(url,'newWin','width=' + width + ',height=' + height + ',toolbar=0,menubar=0,scrollbars=0,resizable=0');
}
