jQuery(document).ready(function(){
	
	// ugh
	jQuery('#menu > ul').superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:400,
		animation:{width:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {} 
	});
	jQuery(".submenu").find("span:last > a").addClass("last");
	
	jQuery("#menu li ul:empty").remove();
	jQuery("a").focus(function(){
		this.blur();
	});
	jQuery("#menu > ul >li:has(ul > li)").find("a:first").attr("href", "#");
	jQuery("#menu a[href='#']").click( function(){ return false; });
	
	jQuery("#tab57, #tab36, #tab85").next().find(".subtop").css('height','0').css('display', 'none');
	jQuery("#tab57, #tab36, #tab85").next().find(".subbottom").css('height','0').css('display', 'none');
	
	jQuery(".content p:last").css("margin-bottom", "0");

	jQuery(".LinkIcon").rollover();
	jQuery(".bookmark img").rollover();
	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/menu/menu_patientLogin_on.png";	 
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/menu/menu_home_on.png";
    menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/menu/menu_officeInfo_on.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/menu/menu_patientInfo_on.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/menu/menu_treatment_on.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/menu/menu_funstuff_on.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/menu/menu_contact_on.png";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/menu/subbottom.gif";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/menu/subtop.gif";
	
});

function runJS() {
	var kp = {  src: DNN_skinPath + 'flash/Kidprint.swf' };
	sIFR.activate(kp);
	sIFR.replace(kp, {
  		selector: 'h1', 
  		wmode: 'transparent', 
  		src:  DNN_skinPath +  'flash/Kidprint.swf', 
  		css: [ '.sIFR-root {color:#cf2323; font-size:30px; font-weight:bold}'  ]
	});
}

