//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/arnopro.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/arnopro.swf', 
  css: [ '.sIFR-root {color:#899883; font-size:36px;}'  ]
});
}

//Menu implementation	   
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});
	});

	//jQuery(".LinkIcon").rollover();
	/*
	 menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/aboutus.jpg";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/aboutus_hover.jpg";
		
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patient-information.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/patient-information_hover.jpg";

	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/treatment.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/treatment_hover.jpg";

	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/funzone.jpg";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/funzone_hover.jpg";

	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/contactus.jpg";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/contactus_hover.jpg";
	*/


	//Office Info
	var PathHome = DNN_skinPath + "images/aboutus.jpg";
	jQuery("#navigation58").append("<a href='#' title=''></a>");

	jQuery("#navigation58").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/aboutus_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation58").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/aboutus.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//patientinfo Info
	var PathHome = DNN_skinPath + "images/patient-information.jpg";
	jQuery("#navigation65").append("<a href='#' title=''></a>");

	jQuery("#navigation65").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patient-information_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation65").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patient-information.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End

	//Treatment
	var PathHome = DNN_skinPath + "images/treatment.jpg";
	jQuery("#navigation72").append("<a href='#' title=''></a>");

	jQuery("#navigation72").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/treatment_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation72").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/treatment.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	
//Fun Stuff
	var PathHome = DNN_skinPath + "images/funzone.jpg";
	jQuery("#navigation77").append("<a href='#' title=''></a>");

	jQuery("#navigation77").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/funzone_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation77").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/funzone.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});

//Patient Login
	var PathHome = DNN_skinPath + "images/contactus.jpg";
	jQuery("#navigation78").append("<a href='#' title=''></a>");

	jQuery("#navigation78").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/contactus_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation78").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/contactus.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});



	
});


jQuery(document).ready(function(){
	jQuery('.accordion h2').click(function() {
	jQuery(this).toggleClass('active').next().slideToggle('slow');
		return false;
	}).next().hide();
});

