
/*----- Navigation ------*/
$(document).ready(function(){
	$("#mainmenu")
	.superfish({
		hoverClass	: "sfHover",
		pathClass	: "overideThisToUse",
		delay		: 800,
		animation	: {opacity:"show"},
		speed		: "normal",
		oldJquery	: false, /* set to true if using jQuery version below 1.2 */
		disableHI	: false, /* set to true to disable hoverIntent detection */
		onInit		: function(){},
		onBeforeShow	: function(){},
		onShow		: function(){},
		onHide		: function(){}
	})
	.find(">li:has(ul)") //fixes ie6 bug
		.mouseover(function(){
			$("ul", this).bgIframe({opacity:true});
		})
		.find("a")
			.focus(function(){
				$("ul", $(".nav>li:has(ul)")).bgIframe({opacity:true});
			});;
		

	if($.browser.msie && $.browser.version < 7){
		$("#footercallouts").attr("src","images/pageElements//footerandcallouts.gif");	
	}
	
	/* replace media classes */
	$("a.media").media();

				
});

	//here's the sIfr
//code for the h1 tags
var centaur = {  src: 'centaur.swf' };
sIFR.activate(centaur);

sIFR.replace(centaur, {
  selector: 'h1', 
  wmode: 'transparent', 
  src: 'centaur.swf', 
  css: [ '.sIFR-root {color:#ffffff; margin-top:0px;}'  ]
});
