
/*----- 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});
			});;
		
	/* replace media classes */
	$("a.media").media();
	
	/*Rollovers*/
	$(".rollover").rollover();
	
	/* remove box from links */
	$("a").focus(function(){
		this.blur();
	});
				
});

	//here's the sIfr
//code for the h1 tags
var garamond = {  src: 'garamond.swf' };
sIFR.activate(garamond);

sIFR.replace(garamond, {
  selector: '#address', 
  wmode: 'transparent', 
  src: 'garamond.swf', 
  css: [ '.sIFR-root {color:#5c4a24; margin-top:0px;}',
		  '.sIFR-root a{color:#5c4a24; margin-top:0px;}',
		  '.sIFR-root a:hover {color:#579957; margin-top:0px;}']
});
sIFR.replace(garamond, {
  selector: '#welcome', 
  wmode: 'transparent', 
  src: 'garamond.swf', 
  css: [ '.sIFR-root {color:#000000; margin-top:0px; font-size:28px; margin-left:0px; text-transform:uppercase;}'  ]
});
sIFR.replace(garamond, {
  selector: 'h1', 
  wmode: 'transparent', 
  src: 'garamond.swf', 
  css: [ '.sIFR-root {color:#5c4a24; margin-top:0px; font-size:36px; text-transform:uppercase;}'  ]
});

