/* ----------------------------------- 
	Suckerfish drop down menu program to make IE work */

function sf_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);
}

/*  ----------------------------------
	Routine to make an external link open in a new window.  Stops any link to my website clicked
	while visiting my website from opening in a new window.  Note - this routine requires 
	the jQuery library 	*/

function ExtLink(){
	var myURL = location.protocol + '//' + location.hostname;
	$('a[href^=http://www]').not('[href^='+myURL+']').attr('target','_blank');
}

/* -----------------------------------
	hides e-mail addresses  */

function cbc_sfcon(u){
	pre="mail";
	url=pre+"to:"+u;
	document.location.href=url+"@cbc-chelmsford.org";
}

function yah_sfcon(u){
	pre="mail";
	url=pre+"to:"+u;
	document.location.href=url+"@yahoo.com";
}

/* ----------------------------------- */