// JavaScript Document

document.domain = "kryton.com";

sfHover = function() {
	var sfEls = document.getElementById("nav_233878").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
			document.getElementById("selectProfessionBox").style.visibility = 'hidden';
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			document.getElementById("selectProfessionBox").style.visibility = 'visible';
		}
	}
}

if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
 var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 
 if (ieversion <= 6) {
	if (window.attachEvent) window.attachEvent("onload", sfHover); 
 }
}

function selectProfession(url) {
	location.href = url;
}

function resizeIFrame(ifrm) {
	ifrm.height = ifrm.contentWindow.document.body.scrollHeight + 75;
	ifrm.style.visibility = 'visible';
}