//sIFR implementation
function pageScripts() {
var AgencyFB = {  src: DNN_skinPath + 'AgencyFB.swf' };
sIFR.activate(AgencyFB);
sIFR.replace(AgencyFB, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'AgencyFB.swf', 
  css: [ '.sIFR-root {color:#3399cc;font-size:32px;font-weight:bold;}'  ]
});
}

//Menu implementation	   
jQuery(document).ready(function(){
	jQuery("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse", 
		delay:2000,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("li", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#Navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	});	
/* remove box from links */
jQuery("a").focus(function(){
	this.blur();
});

/*Email Links*/
	jQuery("#main155").text("Home");
	 jQuery("#Navigation200 a").attr("href", "mailto:AppointmentsFishersLanding@CascadeDental.com");
	 jQuery("a#main200").attr("href", "mailto:AppointmentsFishersLanding@CascadeDental.com");
	 jQuery("#Navigation142 a").attr("href", "mailto:AppointmentsNewHorizons@CascadeDental.com");
	 jQuery("a#main142").attr("href", "mailto:AppointmentsNewHorizons@CascadeDental.com");
	 jQuery("#Navigation171 a").attr("href", "mailto:AppointmentsPadden@CascadeDental.com");
	 jQuery("a#main171").attr("href", "mailto:AppointmentsPadden@CascadeDental.com");
	 
jQuery(".LinkIcon").rollover();

/* Preload the images*/
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.jpg";	 
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/aboutus_on.jpg";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/contactus_on.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/emailus_on.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/faqs_on.jpg";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/favlinks_on.jpg";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/map_on.jpg";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/patientlibrary_on.jpg";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/patientlogin_on.jpg";
	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/patientnewsletter_on.jpg";
	menuImage12 = new Image(); 
	menuImage12.src = DNN_skinPath + "images/patientservices_on.jpg";
	menuImage13 = new Image(); 
	menuImage13.src = DNN_skinPath + "images/paymentinfo_on.jpg";
	menuImage14 = new Image(); 
	menuImage14.src = DNN_skinPath + "images/border.jpg";
	
	if (jQuery("#gums").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/gums.swf", "slideshow2", "350", "260", "6", "#000000"); 
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("gums");
	}
	
	if (jQuery("#dentaldevelopment").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/dentaldevelopment.swf", "slideshow", "450", "400", "6", "#000000"); 
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("dentaldevelopment");
	}
	if (jQuery("#RootCanal").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/rootcanal.swf", "slideshow2", "350", "260", "6", "#000000"); 
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("RootCanal");
	}
if (jQuery("#wisdom").length){
  		var so = new SWFObject("http://tools.televoxsites.com/features/wisdom.swf", "feature", "190", "205", "6", "ffffff"); 
		so.addParam("wmode", "transparent"); 
		so.write("wisdom");
	}
if (jQuery("#Crowns").length){
		var so = new SWFObject("http://tools.televoxsites.com/features/crown.swf", "features", "287", "300", "9", "#FF6600");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("Crowns"); 
	}
	
});
