//here's the sIfr
var futura = {  src: DNN_skinPath+'futuraTmed.swf' };
sIFR.activate(futura);

sIFR.replace(futura, {
  selector: 'h1', 
  wmode: 'transparent', 
  src: DNN_skinPath+'futuraTmed.swf', 
  css: [
		'.sIFR-root {color:#006B7A; }',
		'#containerboxtextarea {color:#006B7A; text-decoration:none;}'
		]
});
/*
var futura2 = {  src: DNN_skinPath+'fufu1.swf' };
sIFR.activate(futura2);

sIFR.replace(futura2, {
  selector: '.menutitle', 
  wmode: 'transparent', 
  src: DNN_skinPath+'fufu1.swf', 
  css: [
		'.sIFR-root {text-transform:uppercase; text-decoration:none; cursor:pointer; text-align:center; color:#ffffff; width:140px;}',
		'a:link {color:#faf191; text-decoration:none; cursor:pointer; text-align: center;}',
		'a:hover {color:#fff; text-decoration:none; cursor:pointer; text-align: center; }',
		'a:active {color:#fff; text-decoration:none; cursor:pointer; text-align: center;}',
		'a:visited {color:#faf191; text-decoration:none; cursor:pointer; text-align: center;}',
		'.current {color:#e9e7cc; text-decoration:none; cursor:pointer; text-align: center;}'
		]
});

*/


jQuery(document).ready(function(){
	/*----- Navigation ------*/
	jQuery("#mainmenu")
	.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("li", jQuery("#mainmenu>li:has(ul)")).bgIframe({opacity:true});
			});
	
	/* THIS REMOVE THE LINE FROM THE EMPTY <UL> ELEMENTS (NOTE: be sure there is NO space between the <ul></ul> elements) */
	jQuery("#mainmenu li ul:empty").remove();
		

	// Preload all rollovers
	jQuery(".rollover").each(function() {
		// Set the original src
		rollsrc = jQuery(this).attr("src");
		rollON = rollsrc.replace(/.jpg$/ig,"_on.jpg");
		jQuery("<img>").attr("src", rollON);
	});
	
	// Navigation rollovers
	jQuery(".rollover").mouseover(function(){
		imgsrc = jQuery(this).attr("src");
		matches = imgsrc.match(/_on/);
		// don't do the rollover if state is already ON
		if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"_on.jpg"); // strip off extension
			jQuery(this).attr("src", imgsrcON);
		}
		
	}).mouseout(function(){
		jQuery(this).attr("src", imgsrc);
	});



/* flash replacement */
	jQuery("a.media").media();
	
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	

});
