sfHover = function() {
	var sfEls = document.getElementById("hd_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);

function externalLinks() {
	 if(!document.getElementsByTagName) return;
	 var links,a,i;
	 links = document.getElementsByTagName("a");
	 for(i=0;i<links.length;i++) {
		 a = links[i];
		 if(a.getAttribute("rel") && a.getAttribute("rel").indexOf("external") > -1) {
			 a.onclick = function() {
				 window.open(this.href);
				 return false;
			 }
		 }
	 }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

/* start ghix */
function popUp(URL) {
	win2 = window.open(URL, 'window2', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=270,left = 540,top = 412')
}
function autofitIframe(id) {
	//if (!window.opera && !document.mimeType && document.all && document.getElementById)
	if (document.all) {
		parent.document.getElementById(id).style.height=this.document.body.offsetHeight+"px";
		parent.document.getElementById(id).style.width='250px';
	}
	else if(document.getElementById) {
		parent.document.getElementById(id).style.height=this.document.body.scrollHeight+"px"
		parent.document.getElementById(id).style.width='250px';
	}
} 	
/* end ghix */


