//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/itc.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/itc.swf', 
  css: [ '.sIFR-root {color:#145ba3; font-size:22px; }'  ]
});
}

//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 PathHome = DNN_skinPath + "images/home.jpg";

	jQuery("#Navigation55").append("<a href='/LinkClick.aspx?link=55&amp;tabid=55' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Home' /></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

//aboutus

var PathHomeo = DNN_skinPath + "images/aboutus.jpg";

jQuery(
"#Navigation57").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='aboutus' /></a>");

jQuery(
"#Navigation57").find("img").mouseover(function () {

var PathHomeON = DNN_skinPath + "images/aboutus_hover.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation57").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/aboutus.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

//End
//ourservices
	var PathHome = DNN_skinPath + "images/ourservices.jpg";
	jQuery("#Navigation66").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='ourservices' /></a>");

	jQuery("#Navigation66").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/ourservices_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation66").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/ourservices.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End


	//appointments
	var PathHome = DNN_skinPath + "images/appointments.jpg";
	jQuery("#Navigation72").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='appointments' /></a>");

	jQuery("#Navigation72").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/appointments_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation72").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/appointments.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End


	//helpfulinfo
	var PathHome = DNN_skinPath + "images/helpfulinfo.jpg";
	jQuery("#Navigation79").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='helpfulinfo' /></a>");

	jQuery("#Navigation79").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/helpfulinfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation79").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/helpfulinfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});

	//contact
	var PathHome = DNN_skinPath + "images/contact.jpg";
	jQuery("#Navigation65").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='contact' /></a>");

	jQuery("#Navigation65").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/contact_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation65").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/contact.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//patientlogin
	var PathHome = DNN_skinPath + "images/patientlogin.jpg";
	jQuery("#Navigation167").append("<a href='https://www.mytlink.net/TLinkDotNet/Patient/Login.aspx?tpract=537596' target='_blank' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='patientlogin' /></a>");

	jQuery("#Navigation167").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientlogin_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation167").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientlogin.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});

	
	//what-patients-say
	var PathHome = DNN_skinPath + "images/what-patients-say.jpg";
	jQuery("#Navigation165").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='what-patients-say' /></a>");

	jQuery("#Navigation165").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/what-patients-say_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation165").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/what-patients-say.jpg";
				jQuery(this).attr({ src:PathHomeON });


});

	if (jQuery('div.clips').length > 0) {
	// setup scrolling for the playlist elements
		jQuery("div.clips").scrollable({
			items:'div.scroller',
			vertical:false,
			next:'a.right',
			prev:'a.left'
		});
		
		// setup player normally
		$f("player1", {			
				src: "/Portals/0/patientcare/flash/flowplayer-3.2.4.swf",
				wmode: "transparent"
			},
			{	
		// clip properties common to all playlist entries
			clip: {
				baseUrl: 'http://makingsmilesnew.com.televoxpreview12.com/Portals/0/patientcare/flv/'
			},		
		// show playlist buttons in controlbar
			plugins: {
				controls: {
					playlist: true
				}
			}
		}).playlist("div.scroller:first", {loop:true});
		
	}
});


