//start jQuery functions
$(window).ready(function(){
	
	$("#nav")
	.superfish({
		hoverClass	: "sfHover",
		pathClass	: "overideThisToUse",
		delay		: 100,
		animation	: {opacity:"show",height:"show"},
		speed		: "normal",
		oldJquery	: false, /* set to true if using jQuery version below 1.2 */
		disableHI	: true, /* set to true to disable hoverIntent detection */
		onInit		: function(){},
		onBeforeShow	: function(){},
		onShow		: function(){},
		onHide		: function(){}
	})
	.find("#nav>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});
			});
			
	$('.faqAnswer').hide(); 
	$('.question a').click(function() {
		  $(this).next('.faqAnswer').slideToggle('fast')
		  .siblings('.faqAnswer:visible').slideUp('normal');
	});

		
	/* replace all media files */
	$("a.media").media();
	
	/* remove box from links */
	$("a").focus(function(){
		this.blur();
	});
	
});



//here's the sIfr
//code for the h1 tags
var bodoni = {  src: 'bodoni.swf' };
sIFR.activate(bodoni);

sIFR.replace(bodoni, {
  selector: 'h1', 
  wmode: 'transparent', 
  src: 'bodoni.swf', 
  css: [ '.sIFR-root {color:#523722; }'  ]
});



