//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/spring.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/spring.swf', 
  css: [ '.sIFR-root {color:#da711f; font-size:45px;}'  ]
});
}


function pageScripts1(){
var ShelleyAllegroScript1 = {  src: DNN_skinPath + '/flash/spring.swf' };
sIFR.activate(ShelleyAllegroScript1);
sIFR.replace(ShelleyAllegroScript1, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/spring.swf', 
  css: [ '.sIFR-root {color:#0f41b4; font-size:45px;}'  ]
});
}


//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});
	
	});

//Team

var PathHome = DNN_skinPath + "images/team.jpg";

jQuery(
"#Navigation154").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Team' /></a>");

jQuery(
"#Navigation154").find("img").mouseover(function () {

var PathHomeON = DNN_skinPath + "images/team_hover.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation154").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/team.jpg";

jQuery(
this).attr({ src:PathHomeON });

});



//End

//Getting Started

var PathHomeo = DNN_skinPath + "images/getting.jpg";

jQuery(
"#Navigation158").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Getting Started' /></a>");

jQuery(
"#Navigation158").find("img").mouseover(function () {

var PathHomeON = DNN_skinPath + "images/getting_hover.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation158").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/getting.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

//End
//Treatment
	var PathHome = DNN_skinPath + "images/treatment.jpg";
	jQuery("#Navigation79").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Treatment' /></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
	
//Office Info
	var PathHome = DNN_skinPath + "images/office.jpg";
	jQuery("#Navigation57").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Office' /></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
	
//Events
	var PathHome = DNN_skinPath + "images/events.jpg";
	jQuery("#Navigation168").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Events' /></a>");

	jQuery("#Navigation168").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/events_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation168").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/events.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});



	
	//Refferals
	var PathHome = DNN_skinPath + "images/referrals.jpg";
	jQuery("#Navigation171").append("<a href='/LinkClick.aspx?link=171&tabid=171' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Refferals' /></a>");

	jQuery("#Navigation171").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/referrals_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation171").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/referrals.jpg";
				jQuery(this).attr({ src:PathHomeON });


});




});
