
/* flash text replacements */
var futuraT = {  src: DNN_skinPath+'futuraT.swf' };
sIFR.activate(futuraT);
sIFR.replace(futuraT, {
  selector: '.headerTitle h1', 
  wmode: 'transparent', 
  src: DNN_skinPath+'futuraT.swf', 
  css: [ '.sIFR-root {color:#ffffff; text-transform:uppercase;}'  ]
});

/*----- Navigation ------*/
jQuery(document).ready(function(){
	
	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("ul", 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();
	
	/* flash activation replacements */
    jQuery('#flashheader').flash(
        { 
          src: DNN_skinPath+"top.swf",
          width: 850,
          height: 176,
          flashvars: { DNN_skinPath_flash:DNN_skinPath }
        },
        { version: 8 }
    );
	jQuery('#mainPicts').flash(
        { 
          src: DNN_skinPath+"picts.swf",
          width: 446,
          height: 213,
          flashvars: { wmode:"transparent" }
        },
        { version: 8 }
    );
	
});
