jQuery(document).ready(function($){
	
	$("#menu > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:900,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	});
	
	$("ul.Level1").find("li:last").addClass("last");
	
	$("a[href='#']").click(function() { return false });
	
	$("a").focus(function(){
		this.blur();
	});
	
	// open external links in a new window
	$("a").filter(function() {
    		return this.hostname && this.hostname !== location.hostname;
	}).attr('target', '_blank');
});

function runSIFR(){
	var tp = {  src: DNN_skinPath + 'flash/CenturyGothic3.swf'};
	sIFR.activate(tp);
	sIFR.replace(tp, {
  		selector: 'h1', 
  		wmode: 'transparent', 
  		src:  DNN_skinPath +  'flash/CenturyGothic3.swf', 
		css: [ '.sIFR-root {color:#683717; font-size:24px;}']
	});
}
