/*====================================================
menu hover function:
needed for compatibility with internet explorer.
-----------------------------------------------------*/
sfHover = function()
{
    if (document.getElementById("nav")==null){
        return;
    }
     var sfEls = document.getElementById("nav").getElementsByTagName("li");
     var select1 = document.getElementById("select1");
     var select2 = document.getElementById("select2");
     for (var i=0; i<sfEls.length; i++)
     {
          sfEls[i].onmouseover=function()
          {
               this.className+=" sfhover";
               //hide the selects
			   var theBody = document.getElementById("container").getElementsByTagName("SELECT");
			   for (var i=0; i<theBody.length; i++){
				   	el = theBody[i];
					el.style.visibility="hidden";
			   }
			   
		  }
          sfEls[i].onmouseout=function()
          {
               this.className=this.className.replace(new RegExp("sfhover\\b"), "");
               //show the selects
				var theBody = document.getElementById("container").getElementsByTagName("SELECT");
			    for (var i=0; i<theBody.length; i++){
				   	el = theBody[i];
					el.style.visibility="visible";
			   }			   
          }
     }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

inputArray  = new Array();
function inputChecker() {
// basically this function loops through all inputs on the page.  
//If they have a value it stores that value in an event handler argument
//if the onclick event is fired and the value of the input is the same as the value in 
//the event handler argument that was originally created, the value is cleared and the
//user can enter information

//get inputs
theInputs = document.getElementsByTagName("input");
	for(i=0; i < theInputs.length; i++){
		//loop through inputs
		if(theInputs[i].type=='text'){
			if(theInputs[i].className == 'checkField'){
				//assign event handler to text field		
				theInputs[i].onclick = checkField;
				inputArray[inputArray.length] = theInputs[i].id + '&&' + theInputs[i].value;
			}
		}
	}
}

function checkField() {
	//this function needs to 
	for(i=0; i<inputArray.length; i++){		
		testString = inputArray[i].split("&&");
		testObj = document.getElementById(testString[0]);
		testValue = testString[1];
		if(this.value == testValue) {			
		//found the proper object now test the value
			if(this.value == testValue) {
				this.value ='';
			}
		}
	}
}