//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/kojuka.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/kojuka.swf', 
  css: [ '.sIFR-root {color:#d0157e; 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});
	
	});

//Home
	var PathHome = DNN_skinPath + "images/home.jpg";
	

jQuery("#Navigation36").append("<a href='/LinkClick.aspx?link=36&tabid=36' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Home' /></a>");
	
	jQuery("#Navigation36").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/home_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation36").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/home.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
	//officeinfo
	var PathHomeo = DNN_skinPath + "images/officeinfo.jpg";
	jQuery("#Navigation57").append("<a href='#' title='Office Info'><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='officeinfo' /></a>");
	
	jQuery("#Navigation57").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/officeinfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation57").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/officeinfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
	//services
	var PathHomeo = DNN_skinPath + "images/services.jpg";
	jQuery("#Navigation70").append("<a href='#' title='Services'><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='services' /></a>");
	
	jQuery("#Navigation70").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/services_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation70").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/services.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
	//forms
	var PathHomeo = DNN_skinPath + "images/forms.jpg";
	jQuery("#Navigation72").append("<a href='/LinkClick.aspx?link=72&tabid=36' title='Forms'><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='forms' /></a>");
	
	jQuery("#Navigation72").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/forms_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation72").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/forms.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
	//staff
	var PathHomeo = DNN_skinPath + "images/staff.jpg";
	jQuery("#Navigation73").append("<a href='/LinkClick.aspx?link=73&tabid=36' title='Staff'><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='staff' /></a>");
	
	jQuery("#Navigation73").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/staff_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation73").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/staff.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
	//vasectomies
	var PathHome = DNN_skinPath + "images/vasectomies.jpg";
	

jQuery("#Navigation74").append("<a href='/LinkClick.aspx?link=74&tabid=36' title='Vasectomies'><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='vasectomies' /></a>");
	
	jQuery("#Navigation74").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/vasectomies_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation74").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/vasectomies.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
	//urgentcare
	var PathHome = DNN_skinPath + "images/urgentcare.jpg";
	

jQuery("#Navigation75").append("<a href='/LinkClick.aspx?link=75&tabid=36' title='Urgent Care'><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='urgentcare' /></a>");
	
	jQuery("#Navigation75").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/urgentcare_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation75").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/urgentcare.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
	//VIP
	var PathHome = DNN_skinPath + "images/vip.jpg";
	

jQuery("#Navigation76").append("<a href='http://kerriganvip.com/' target='_blank' title='VIP'><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='VIP' /></a>");
	
	jQuery("#Navigation76").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/vip_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation76").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/vip.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
	//charity
	var PathHome = DNN_skinPath + "images/Referrals.jpg";
	

jQuery("#Navigation124").append("<a href='/Referrals.aspx' title='Referrals'><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Referrals' /></a>");
	
	jQuery("#Navigation124").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/Referrals_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation124").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/Referrals.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	/*//charity
	var PathHome = DNN_skinPath + "images/charity.jpg";
	

jQuery("#Navigation77").append("<a href='/LinkClick.aspx?link=77&tabid=36' title='Charity'><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='charity' /></a>");
	
	jQuery("#Navigation77").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/charity_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation77").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/charity.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End*/
	
	
	
});



//preload images for patient login
function PreloadImg(){

 Ploginpic= new Image(100,25); 
  Ploginpic.src=DNN_skinPath + "images/homecallouts.jpg";
 Ploginpic2= new Image(100,25); 
  Ploginpic2.src=DNN_skinPath + "images/innerCallouts.jpg";



}
