//Menu implementation	   
jQuery(document).ready(function(){
	jQuery("#Navigation > ul, #Navigation1 > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:1200,
		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),#Navigation1 > ul >li:has(ul)")).bgIframe({opacity:true});
	});
	
	 jQuery(".Level1").append("<li><img src='/Portals/_default/Skins/smilesbydrpaul/images/Submenubottom.png' align='bottom' class='subbottom' /></li>");

	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});

if (jQuery("#featuretypes").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("xmlfile", "/features/types.xml");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featuretypes");
	}
if (jQuery("#featurecrossword").length){
		var so = new SWFObject("http://tools.televoxsites.com/flashfeatures/crossword.swf", "features", "860", "550", "9", "#FFFFFF");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featurecrossword");
	}

if (jQuery("#featureemer").length){
  		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
  		so.addVariable("config", "/features/config.xml");
  		so.addVariable("feature", "emergencies");
  		so.addParam("wmode", "transparent");
  		so.addParam("quality", "high");
  		so.write("featureemer");
	}

	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/adbtusSubmenu2.png";	
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/adbtusSubmenu2interior.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/PediatricSubmenu2interior.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/Hover_last.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/Hover.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/Submenu1.jpg";	 
});
