// JavaScript Document
$(document).ready(function(){
  
	$("#nav li a img").each(function () {

			var BimgIndexHov = $(this).attr("name");
			var BimgIndex = $(this).attr("id");

			if ($(this).attr("src").indexOf(BimgIndexHov + ".") == -1) {
				$(this).hover(
					
					function () { $(this).attr("src", $(this).attr("src").replace(BimgIndex + ".png", BimgIndexHov + ".png") ); },	
					function () { $(this).attr("src", $(this).attr("src").replace(BimgIndexHov + ".png",BimgIndex + ".png") ); }	 
				);
			}			
	}); 
	
	$("#subNavo1 ol li a img").each(function () {

			var SimgIndexHov = $(this).attr("name");
			var SimgIndex = $(this).attr("id");

			if ($(this).attr("src").indexOf(SimgIndexHov + ".") == -1) {
				$(this).hover(
					
					function () { $(this).attr("src", $(this).attr("src").replace(SimgIndex + ".png", SimgIndexHov + ".png") ); },	
					function () { $(this).attr("src", $(this).attr("src").replace(SimgIndexHov + ".png",SimgIndex + ".png") ); }	 
				);
			}			
	});
	

});	

function clearform () {		
	for (var n = 0; n < document.updateForm.elements.length; n++) { 
		field = document.updateForm.elements[n];
		if (field.type == "text") {
			if (field.value.substring(0,5)=="enter" || field.value.substring(0,6)=="please") field.value = "";
		}
	}	
}
