jQuery(document).ready(function(){
	/*----- Navigation ------*/
	jQuery("#mainmenu")
	.superfish({
		hoverClass	: "sfHover",
		pathClass	: "overideThisToUse",
		delay		: 600,
		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("#mainmenu>li:has(ul)")).bgIframe({opacity:false});
			});


	jQuery(">li:first","#mainmenu").css("list-style-type","none").css("padding-left","15px");
	jQuery(">li:first","#mainmenu li ul").css("list-style-type","none");

	jQuery("> span", "#mainmenu li ul li:last-child").remove();


	/* replace media classes */
	jQuery("a.media").media();
	
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
});


var futuraT = {  src: 'futuraT.swf' };
sIFR.activate(futuraT);

sIFR.replace(futuraT, {
  selector: 'li div', 
  wmode: 'transparent', 
  src: 'futuraT.swf', 
  css: [ '.sIFR-root {color:#ffffff; text-align:right; cursor:pointer;}',
		 '.sIFR-root a {color:#ffffff; text-align:right; text-decoration:none; cursor:pointer;}',
		 '.sIFR-root a:hover {color:#ffffff; cursor:pointer;}']
});	

	

