
$(document).ready(function(){
	$("#nav-one li").hover(
		function(){ $("ul", this).fadeIn("fast"); }, 
		function() { } 
	);
	if (document.all) {
		$("#nav-one li").hoverClass ("sfhover");
	}
	
	// get a URI object
	var uri = new Object();
	getURL(uri);
	
	// make sure that we've got a value for url.file; if not, default to index.html
	var fileName = uri.file;
	if (fileName == "") fileName = "index.html";
	
	// get a reference to the element that contains the anchor tag
	$("#nav-one li a[@href*='" + fileName + "']").addClass("selected");
	$("#secondary_content ul li a[@href*='" + fileName + "']").parent().addClass("selected");
});

$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};	  
