//here's the sIfr
var avant = {  src: 'avantgarde.swf' };
sIFR.activate(avant);

sIFR.replace(avant, {
  selector: 'h1, h1.pageTitle', 
  wmode: 'transparent', 
  src: 'avantgarde.swf', 
  css: [
		'.sIFR-root {color: #5d4a31; }' ]
});

sIFR.replace(avant, {
  selector: '#testimonialsTitle', 
  wmode: 'transparent', 
  src: 'avantgarde.swf', 
  css: [
		'.sIFR-root {color: #ffffff; }' ]
});

sIFR.replace(avant, {
  selector: '#specialsTitle', 
  wmode: 'transparent', 
  src: 'avantgarde.swf', 
  css: [
		'.sIFR-root {color: #ffffff; }' ]
});

sIFR.replace(avant, {
  selector: '#discountTitle', 
  wmode: 'transparent', 
  src: 'avantgarde.swf', 
  css: [
		'.sIFR-root {color: #EDE0B4; }' ]
});

var avantlight = {  src: 'avantgardelight.swf' };
sIFR.activate(avantlight);

sIFR.replace(avantlight, {
  selector: '#servingTitle', 
  wmode: 'transparent', 
  src: 'avantgardelight.swf', 
  css: [
		'.sIFR-root {color: #ffffff; cursor: pointer; }',
		'.sIFR-root a { color: #ffffff; cursor: pointer; text-decoration: none; display: block; }',
		'.sIFR-root a:hover { color: #ffffff; cursor: pointer; text-decoration: none; }']
});

sIFR.replace(avant, {
  selector: 'h2', 
  wmode: 'transparent', 
  src: 'avantgarde.swf', 
  css: [
		'.sIFR-root {color: #820900; }' ]
});

sIFR.replace(avant, {
  selector: '.subTitle', 
  wmode: 'transparent', 
  src: 'avantgarde.swf', 
  css: [
		'.sIFR-root {color: #d3bd7d; text-transform: uppercase; letter-spacing: 3; }' ]
});


jQuery(document).ready(function(){
	$("#nav")
	.superfish({
		hoverClass	: "sfHover",
		pathClass	: "overideThisToUse",
		delay		: 800,
		animation	: {opacity:"show",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)") //fixes ie6 bug
		.mouseover(function(){
			jQuery("ul", this).bgIframe({opacity:true});
		})
		.find("a")
			.focus(function(){
				jQuery("ul", jQuery("#nav>li:has(ul)")).bgIframe({opacity:true});
			});
	
	/* replace all media files */
	$("a.media").media();
	
	/* remove box from links */
	$("a").focus(function(){
		this.blur();
	});

});




