jQuery(document).ready(function(){

	jQuery("#navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("ul", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	});

	/* Activate all media */
	jQuery(".media").media();

	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
			jQuery("#navigation154 a").each(function() {
		newtarget = "_blank";
		jQuery(this).attr("target", newtarget);
	});

});

/*sIFR*/
var fufulightc = {  src: DNN_skinPath + 'fufulightc.swf' };
sIFR.activate(fufulightc);

sIFR.replace(fufulightc, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath + 'fufulightc.swf', 
  css: [ '.sIFR-root {color:#7d3636; letter-spacing: 2;}' ]
});	

$(function() {
	if ($('#flash-video').position().top > $('body').height()) {
		flowplayer("flash-video", "../swf/flowplayer-3.1.5.swf", {
			plugins: { controls: { url: 'flash/flowplayer.controls-tube-3.1.5.swf' } }
		});
	}
});
