// sIFR
var charme = {  src: DNN_skinPath + 'flash/Charme.swf' };
sIFR.activate(charme);
sIFR.replace(charme, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath + 'flash/Charme.swf', 
  css: [ '.sIFR-root {color:#ffffff;}'  ]
});

//Menu implementation	   
jQuery(document).ready(function(){
				
	jQuery("#mainmenu > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:600,
		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("#mainmenu > ul >li:has(ul)")).bgIframe({opacity:true});
	});
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
	jQuery("#mainmenu > ul >li:has(ul > li)").find("a:first").attr("href", "#");
	jQuery("#mainmenu a[href='#']").click( function(){ return false; });
	jQuery("#mainmenu > ul >li > ul:empty").css({'border' : 'none', 'height' : '0', 'width' : '0'});
	
	jQuery("#topmenu > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:600,
		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("#topmenu > ul >li:has(ul)")).bgIframe({opacity:true});
	});
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
	jQuery("#topmenu > ul >li:has(ul > li)").find("a:first").attr("href", "#");
	jQuery("#topmenu a[href='#']").click( function(){ return false; });
	jQuery("#topmenu > ul >li > ul:empty").css({'border' : 'none', 'height' : '0', 'width' : '0'});
	
});


	

