divhover2 = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" divhover2";

            if(document.getElementById("menu_iframe2")) {
            	var iframe2 = document.getElementById("menu_iframe2");
            	var submenu2 = this.getElementsByTagName("ul");
            	if(submenu2.length) {
            		iframe2.style.top = submenu2[0].offsetTop + this.offsetTop;
            		iframe2.style.left = submenu2[0].offsetLeft + this.offsetLeft;
            		iframe2.style.width = submenu2[0].scrollWidth;
            		iframe2.style.height = submenu2[0].clientHeight;
            		iframe2.style.display = "inline";
            	}
            }
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" divhover2\\b"), "");
			if(document.getElementById("menu_iframe2")){
				var iframe2 = document.getElementById("menu_iframe2");
				iframe2.style.display = "none";
			}
		}
	}
}
if (window.attachEvent){
	window.attachEvent("onload", divhover2);
}

$(document).ready(function(){
	
	if ($(".press-callout").length > 0){
		$.ajax({
			url: '/cgi-bin/press-callout.cgi',
			dataType: 'html',
			success: function(data, textStatus, jqXHR){
				$(".press-callout").html(data);
			}
		});
	}
	
	if ($(".press-releases").length > 0){
		$.ajax({
			url: '/cgi-bin/showPress.cgi',
			dataType: 'html',
			success: function(data, textStatus, jqXHR){
				$(".press-releases").html(data);
			}
		});
	}

	if ($(".show-opp").length > 0){
		$.ajax({
			url: '/cgi-bin/showOpp.cgi',
			dataType: 'html',
			success: function(data, textStatus, jqXHR){
				$(".show-opp").html(data);
			}
		});
	}

});
