// IE6 support for rollover nav
sfHover = function() {
var sfEls = document.getElementById("navigation").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

// IE6 support for form field focus
$(document).ready(function() {  
    $('input[type="text"]').addClass("idleField");  
    $('input[type="text"]').focus(function() {  
       $(this).removeClass("idleField").addClass("focusField");  
       if (this.value == this.defaultValue){  
           this.value = '';  
       } else {  
           this.select();  
       }  
    }); 

	$('input[type="text"]').blur(function() {
	    $(this).removeClass("focusField").addClass("idleField");
	    if ($.trim(this.value) == ''){
       		$(this).removeClass("focusField").addClass("idleField"); 
	    	this.value = (this.defaultValue ? this.defaultValue : ''); 
        } else {
       		$(this).removeClass("focusField").addClass("completedField"); 
		}
	});
});  

