sfHover = function() {
	var sfEls = document.getElementById("navigation").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);

//flash detect
var flashVersion = 0;
function getFlashVersion(){
	var latestFlashVersion=9;
	var agent=navigator.userAgent.toLowerCase();
	if(navigator.plugins!=null&&navigator.plugins.length>0){
		var flashPlugin=navigator.plugins['Shockwave Flash'];
		if (typeof flashPlugin=='object'){
			for(var i=latestFlashVersion;i>=3;i--){
				if (flashPlugin.description.indexOf(i+'.')!=-1){
					flashVersion=i;
					break;
				}
			}
		}
	} else if (agent.indexOf("msie")!=-1&&parseInt(navigator.appVersion)>=4&&agent.indexOf("win")!=-1&&agent.indexOf("16bit")==-1){
		var doc='<scr'+'ipt language="VBScript"\>\n';doc+='On Error Resume Next \n';doc+='Dim obFlash \n';doc+='For i='+latestFlashVersion+' To 3 Step -1 \n';doc+='Set obFlash=CreateObject("ShockwaveFlash.ShockwaveFlash."&i)\n';doc+='If IsObject(obFlash) Then \n';doc+='flashVersion=i \n';doc+='Exit For \n';doc+='End If \n';doc+='Next \n';doc+='</script>\n';
		document.write(doc);
	} else{
		flashVersion=flashVersion_DONTKNOW;
	}
	return flashVersion;
}
flashVersion_DONTKNOW=-1;
function flasher(flashfile,statik,minver,height,width,alt) {
	var flashVersion=getFlashVersion();
	if(flashVersion>=minver){
		document.write('<a href="services.html">');
		document.write('<object type="application/x-shockwave-flash" data="' + flashfile + '" width="' + width + '" height="' + height + '">');
		document.write('<param name="movie" value="' + flashfile + '" /><param name="wmode" value="transparent" />');
		document.write('<img src="' + statik + '" width="' + width + '" height="' + height + '" alt="' + alt + '" title="" />');
		document.write(' </object>');
		document.write('</a>');
	} else {
		document.write('<a href="services.html">');
		document.write('<img src="' + statik + '" width="' + width + '" height="' + height + '" alt="' + alt + '" title="" />');
		document.write('</a>');
	}
}
// Marks div height stuff...
if (self.innerWidth) {
	availableWidth = self.innerWidth;
	availableHeight = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientWidth) {
	availableWidth = document.documentElement.clientWidth;
	availableHeight = document.documentElement.clientHeight;
} else if (document.body) {
	availableWidth = document.body.clientWidth;
	availableHeight = document.body.clientHeight;
}

var ie5 = (document.getElementById && document.all); 
var ns6 = (document.getElementById && !document.all);

function addPX (what) {
	if (ns6) {
		what+='px';
	}
	return (what);
}

function delayLaunch() {
	alert(document.getElementById('top').offsetHeight);
	alert(document.getElementById('navigation').offsetHeight);
	alert(document.getElementById('footer').offsetHeight);
}