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("#navigation129 a").each(function() {
		// Set the original src
		newwindow = "_blank";
		jQuery(this).attr("target", newwindow);
	});

});

/*sIFR*/
var poorrichard = {  src: DNN_skinPath + 'poorrichard.swf' };
sIFR.activate(poorrichard);

sIFR.replace(poorrichard, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath + 'poorrichard.swf', 
  css: [ '.sIFR-root {color:#000000;}' ]
});	

sIFR.replace(poorrichard, {
  selector: 'h2', 
  wmode: 'transparent', 
  src:  DNN_skinPath + 'poorrichard.swf', 
  css: [ '.sIFR-root {color:#000000;text-align:center;font-size:26px;}','a{color:#000000;text-decoration:none;}' ]
});	