// clcp = Current Link/Current Page
// Also added an IE hover function here since it relates to navigation
$(document).ready(function(){
	// set link current based on its href attribute.
	if (location.pathname.substring(1).length > 0) {
	//alert (location.pathname.substring(1));
	$('#navigation a[@href$="' + location.pathname.substring(1) + '"]').removeAttr("href").parent("li").attr('class', 'current');
	}
	else {
	// the first list item is the "home" link. Select it if there's no page name link in the address bar
	//alert (location.pathname.substring(1));
	var first_li = $('#navigation li')[0];
	$(first_li).attr('class', 'current').find("a").removeAttr("href");
	}
	
// hover navigation in IE
   $("ul#navigation").find("li").hover(
			function() { $(this).addClass('hover');  },
			function() { $(this).removeClass('hover'); }
				);
});