$(document).ready(function() {
	$('#navigation li').hover(
		function() {
			$(this).addClass('hover');
		},
		function() {
			$(this).removeClass('hover');
		}
	);
});
function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
} 
function addText(thefield){
	if(thefield.value == '') {
		thefield.value = thefield.defaultValue;
	}
}


// highlight active navigation function
$(function(){
   var path = location.pathname.substring(1);
   if ( path )
     $('#navigation li a[href$="' + path + '"]').attr('class', 'active');
 });
 
 $(function(){
   var path = location.pathname.substring(1);
   if ( path )
     $('#navigation li li a[href$="' + path + '"]').attr('class', 'active');
 });
