//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/university.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/university.swf', 
  css: [ '.sIFR-root {color:#40939e; font-size:39px;}'  ]
});
}

//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});
	
	});




//home

var PathHomeo = DNN_skinPath + "images/home.jpg";

jQuery(
"#Navigation55").append("<a href='#' title=''></a>");

jQuery(
"#Navigation55").find("img").mouseover(function () {

var PathHomeON = DNN_skinPath + "images/home_hover.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation55").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/home.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

//End


//whatset

var PathHomeo = DNN_skinPath + "images/whatset.jpg";

jQuery(
"#Navigation162").append("<a href='#' title=''></a>");

jQuery(
"#Navigation162").find("img").mouseover(function () {

var PathHomeON = DNN_skinPath + "images/whatset_hover.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation162").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/whatset.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

//End

//officeinfo
	var PathHome = DNN_skinPath + "images/office.jpg";
	jQuery("#Navigation57").append("<a href='#' title=''></a>");

	jQuery("#Navigation57").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/office_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation57").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/office.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
//End

//patient
	var PathHome = DNN_skinPath + "images/patient.jpg";
	jQuery("#Navigation66").append("<a href='#' title=''></a>");

	jQuery("#Navigation66").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patient_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation66").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patient.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
//End


//treatment
	var PathHome = DNN_skinPath + "images/treatment.jpg";
	jQuery("#Navigation79").append("<a href='#' title=''></a>");

	jQuery("#Navigation79").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/treatment_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation79").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/treatment.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
//End

//funstuff
	var PathHome = DNN_skinPath + "images/events.jpg";
	jQuery("#Navigation93").append("<a href='#' title=''></a>");

	jQuery("#Navigation93").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/events_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation93").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/events.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});



	
//Contactus
	var PathHome = DNN_skinPath + "images/contactus.jpg";
	jQuery("#Navigation163").append("<a href='#' title=''></a>");

	jQuery("#Navigation163").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/contactus_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation163").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/contactus.jpg";
				jQuery(this).attr({ src:PathHomeON });


});

//login
	var PathHome = DNN_skinPath + "images/patientlogin.jpg";
	jQuery("#Navigation164").append("<a href='#' title=''></a>");

	jQuery("#Navigation164").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientlogin_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation164").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientlogin.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
//End


});



jQuery(document).ready(function(){
	jQuery('.accordion h2').click(function() {
	jQuery(this).toggleClass('active').next().slideToggle('slow');
		return false;
	}).next().hide();
});


