


/*----- Navigation ------*/
$(document).ready(function(){
			$("#mainmenu")
	.superfish({
		hoverClass	: "sfHover",
		pathClass	: "overideThisToUse",
		delay		: 800,
		animation	: {height:"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)").mouseover(function(){  //fixes ie6 bug
			$("ul", this).bgIframe({opacity:true});
		})
		.find("a").focus(function(){
				$("ul", $(".nav>li:has(ul)")).bgIframe({opacity:true});
			});;
			
	/*	Remove line after last menu item*/		
	$("#mainmenu li:last-child").css("border","none");		
			
			
			
	/* replace media classes */
	$("a.media").media();
	
	
	
	/* preload images */
	$.preload( 'bg_nav_on' , {
    base:'images/pageElements/',
    ext:'.jpg'
});
	
		
	// gets rid of focus box on click
	$("a").focus(function(){
	this.blur();
	});			
});




//here's the sIfr
var scriptina = {  src: 'scriptina.swf' };
sIFR.activate(scriptina);

sIFR.replace(scriptina, {
  selector: 'h1', 
  wmode: 'transparent', 
  src: 'scriptina.swf', 
  css: [ '.sIFR-root {font-size:36px; color:#cf2222; }'  ]
});


var futura = {  src: 'futura_light_condensed.swf' };
sIFR.activate(futura);
sIFR.replace(futura, {
  selector: '#addresses', 
  wmode: 'transparent', 
  src: 'futura_light_condensed.swf', 
  css: [ '.sIFR-root {width:600px; text-align:center; font-size:20px; color:#eae4db; }'  ]
});