// SUCKERFISH Single-level Dropdowns SCRIPT (http://www.htmldog.com/articles/suckerfish/dropdowns/)
// -----------------------------------------------------------------------

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

// External Links
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
       anchor.target = "_blank";
 }
}

//JQuery Setup
$(function(){
	// Anti-spam email obfuscator
	//-- requires <script type="text/javascript" src="http://10.scripts.sesamehost.com/scripts/jquery.jcAntiSpam.js"></script>
	//-- change the ('.my-email-address') to to the class of the container which holds your email
	$('.email').jcAntiSpam({
	emailCommonName: 'smiles@iversondds.com',//Name displayed in link text, e.g., 'Email So-And-So'
	emailName: 'smiles',//First half of primary email address; before "@" symbol
	emailDomain: 'iversondds.com',// Full Primary email domain name
	emailCcName: '',//First half of CC email address; before "@" symbol
	emailCcDomain: ''//CC email domain name
	}); 

});//end document.ready