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

var sections = new Array();
sections[0] = "who_we_are";
sections[1] = "services";
sections[2] = "news_and_diary";
sections[3] = "personal";
sections[4] = "fundraising";
sections[5] = "information";
sections[6] = "ethnic_publications";
sections[7] = "volunteering";
sections[8] = "healingjourney";
sections[9] = "contact";

var sec_colours = new Array("##339999","##339999","##339999","##339999","##339999","##339999","##339999","#339999","#339999","#339999");


var menu_section = '';
var sec_colour = '#669933';
var menu_button = '';
var currentSection = 'images/section_home.gif';
var to_root = '';
var whereweare = window.location.href;
for (i=0; i<sections.length; i++) {
	secname = '/' + sections[i] + '/';
	if (whereweare.indexOf(secname)!=-1) {
		currentSection = '../images/section_' + sections[i]  + '.gif';
		var menu_section = sections[i];
		var sec_colour = sec_colours[i];
		to_root='../';
	}
}
if (whereweare.indexOf('sitemap.html')!=-1) {
	currentSection = 'images/section_sitemap.gif';
	var sec_colour = "#666666";
}

// swap image 

function swapSection(nameSRC) {
    document.images.imgSection.src = "images/section_" + nameSRC;
}