/* Setup variables */
var loc_string = document.location.pathname;
var s = new String(loc_string);

var last_index = s.lastIndexOf('/');
//document.write(last_index);

var url = new String(parent.document.URL); 
//document.write(url);

var query_string = "";
if (url.indexOf('?') != -1) {
	query_string = url.substring(url.indexOf('?')+1, url.length);
}

/* Function for top navigation menu */
sfHover = function() {
	var sfEls = document.getElementById("bannerMenu").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);



