
$(document).ready(function(){
	$("#nav > li > ul").fadeOut("fast");
	$("#nav li").hover(
		function(){ $(this).find("ul:first").fadeIn("fast"); }, 
		function(){ $(this).find("ul:first").fadeOut("fast"); } 
	);
	if (document.all) {
		$("#nav li").hoverClass ("sfHover");
	}
});

$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};	

$(document).ready(function(){
	$(".protected-image").bind('contextmenu', function(e) {
		alert('Use without permission is prohibited. The BBB Accredited Business seal is a trademark of the Council of Better Business Bureaus, Inc.');
		return false;
	});
});

/* 
$(document).ready(function(){
   $("a > img[@alt^='External Link:']"
      ).parent().attr("rel","external");
   $("a[@title^='External Link:']"
      ).attr("rel","external");
   $("a[@rel*='external']"
      ).attr("target","_blank");
});
Code Highlighting 
Courtesy of Dean Edwards star-light 
http://dean.edwards.name/my/behaviors/#star-light.htc
	- with jQuery methods added, of course

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);
*/


