	var rolloverClass = ".rollover";
	var overAppend = "-over";

$(document).ready(function(){	
	$(rolloverClass).hover(
		function(){
			if($(this).attr("src").indexOf(overAppend) == -1) {
				var oldSrc = $(this).attr("src");
				var ftype = oldSrc.getFileType();
				var hoverSrc = oldSrc.replace(ftype,overAppend + ftype);
				$(this).attr("src", hoverSrc);
			}
		},
		function(){
			var hoverSrc = $(this).attr("src");
			var ftype = hoverSrc.getFileType();
			if($(this).attr("src").indexOf(overAppend + ftype) != -1){
				var oldSrc = hoverSrc.replace(overAppend + ftype, ftype);
				$(this).attr("src", oldSrc);
			}						  
		}
	);
	
$("#nav li").hover(
	function(){ $("ul", this).fadeIn("fast"); }, 
	function() { $("ul", this).fadeOut("fast"); } 
);
if (document.all) {
	$("#nav li").hoverClass ("sfHover");
}	
	
	/* handle mailto links so they alert with a confirm before proceeding... */
	$("a[@href^='mailto']").click(function(){
	  var confirmStr = "Sending us an e-mail will not make you a client of Holmstrom & Kennedy.\n\nUntil we have agreed to represent you, anything you send us will not necessarily be confidential or privileged.\n\nIf you are adverse to a party you must identify that party before providing us with any substantive information regarding your issue as we may have a pre-existing relationship with that party.\n\nWe cannot necessarily respond to every unsolicited e-mail.  Even if we are able to respond, our communications would likely be preliminary only.\n\nBefore we can agree to represent a potential client, we must review the matter closely and screen parties involved for possible conflicts of interest.  Only at that time would we confirm with you that we have agreed to represent you."
	  if(!confirm(confirmStr)){
		  return false;
	  } else return true;
	});
	
	
 });

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};   

