//NAVIGATION ****************************************************

sfHover = function() {
	var sfEls = document.getElementById("nav").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);

//FORM*************************************************************

function cf(obj){
	if(obj.value == obj.defaultValue) obj.value='';
}
function rf(obj){
	if(obj.value =='')obj.value=obj.defaultValue;
}

//PRELOAD-IMAGES**************************************************

var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
preloadimages("images/about_the_firm_on.gif", "images/about_the_firm_off.gif", "images/attorney_bios_on.gif", "images/attorney_bios_off.gif", 
"images/practice_areas_on.gif", "images/practice_areas_off.gif", "images/in_the_news_on.gif", "images/in_the_news_off.gif", "images/testimonials_off.gif", "images/testimonials_on.gif",
"images/faqs_on.gif", "images/faqs_off.gif", "images/verdicts_and_settlements_on.gif", "images/verdicts_and_settlements_off.gif", "images/contact_us_off.gif", "images/contact_us_on.gif",
"images/auto_accidents_bg.jpg", "images/banner.jpg", "images/truck_accidents_bg.jpg", "images/wrongful_death_bg.jpg", "images/contact_bg.gif")