/* 

START jQUERY 

*/
$(document).ready(function(){	
	fontResizer('12px','14px','18px');

	/*
	
	INITIALIZE IE NAVMAIN FIX
	
	*/
	
	$("#nav-global li").hover(
		function () {
			$(this).addClass("sfhover");
			//IE7 fix to make sure the nested UL closes
			$(this).removeClass("sfhover-off");
		}, 
		function () {
			$(this).removeClass("sfhover");
			//IE7 fix to make sure the nested UL closes
			$(this).addClass("sfhover-off");
		}
	);
	
	/*
	
	INITIALIZE FIELD VALUE RESET (looks for presence of "alt" attribute in the input tag)
	
	*/
	$("input[alt!='']").focus(function(){
		setValue(this,"onfocus"); 
		return false;
	});
	$("input[alt!='']").blur(function(){
		setValue(this,"onblur"); 
		return false;
	});
	

 });
 
/* 

BEING SETVALUE

setValue clear's a text input's value and resets it to the input's alt attribute if the user doesn't enter a value 

*/

function setValue(pEl,pSwitch) {	
	if (pSwitch == "onfocus") {
		if (pEl.value == pEl.alt) {
			pEl.value = "";	
		}
	}
	if (pSwitch == "onblur") {
		if (pEl.value == "") {
			pEl.value = pEl.alt;
		}
	}
}

/*

END SETVALUE

*/