	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);
	
	function switchClass(passTarget,passClass) {
		if (passTarget === undefined) {
		
		} else {
			document.getElementById(passTarget).className = passClass;
		};
	}
	
	function initSIFR(targetElement, sifrWeight, sifrAlign, sifrColour, sifrLinkColour, sifrHoverColour, sifrTextcase){
	
		if (targetElement === undefined) {var targetElement = "h1";};
		if (sifrWeight === undefined) {var sifrWeight = "normal";};
		if (sifrAlign === undefined) {var sifrAlign = "left";};
		if (sifrColour === undefined) {var sifrColour = "#000000";};
		if (sifrLinkColour === undefined) {var sifrLinkColour = "#000000";};
		if (sifrHoverColour === undefined) {var sifrHoverColour = "#000000";};
		if (sifrTextcase === undefined) {var sifrTextcase = "lowercase";};
	
		var smoothfont = {src: '/swf/sifr/sifr.swf'};
		sIFR.delayCSS  = false;
		sIFR.domains = ['*'];
		sIFR.activate(smoothfont);
		sIFR.replace(smoothfont, {selector:targetElement,css:['.sIFR-root {width:100%;text-align:' + sifrAlign + ';font-weight:' + sifrWeight + ';color:' + sifrColour + ';letter-spacing:-0.5;text-transform:' + sifrTextcase + ';}','a {color:' + sifrLinkColour + ';text-decoration:none;}','a:link {color:' + sifrLinkColour + ';}','a:hover {color:' + sifrHoverColour + ';}'],wmode:'transparent'});
	}
	
	function attachParams(){
		var paramString = window.location.search;
		var paramStringBuff = paramString.slice(1,paramString.lastIndexOf(""));
		return paramStringBuff;
	}
	
	function openFSWindow(url){
		var w = screen.availWidth;
		var h = screen.availHeight;
		if (document.layers){
			var tmp1 = window.outerWidth - window.innerWidth;
			var tmp2 = window.outerHeight - window.innerHeight;
			w -= tmp1;
			h -= tmp2;
		}
		var params = attachParams();
		var sep = "";
		if (params.length > 0) sep = ((url.indexOf('?') > -1)?'&':'?');
		openWindow(url + sep + params, w, h, 'no', 'no', 'yes', 0, 0, 'no', 'Q5MS', '1');
	}
	
	function openWindow(url, w, h, re, st, sc, le, to, center, type, fs) {
		if (center == 'yes'){
			le = screen.width/2 - w/2;
			to = screen.height/2 - h/2;
		}
		var params = 'width='+w+',height='+h+',scrollbars='+sc+',status='+re+',resizable='+re;
		newWin = window.open(url, type, params);
		newWin.moveTo(le, to);
		window.setTimeout("newWin.focus()", 250);
	}