//sIFR implementation
function pageScripts() {
var P22_Corinthia = {src: DNN_skinPath + 'P22_Corinthia.swf' };
sIFR.activate(P22_Corinthia);
sIFR.replace(P22_Corinthia, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'P22_Corinthia.swf', 
  css: [ '.sIFR-root {font-size:57px;color:#867c60;line-height:-10px; text-indent:5;}'  ] 
});
}
/*Menu implementation*/
jQuery(document).ready(function(){
								
jQuery('.acc h4').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();									
	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 () {}
	});
	
	jQuery("a").focus(function(){
	this.blur();
	});
	
	jQuery(".Level1").append("<li><img src='/Portals/_default/Skins/morrelldental.com/images/subbtm.png' align='bottom' class='subbottom' /></li>");
	/*Preload the menu backgrounds*/

	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/Home_hover.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/Office_hover.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/PatientInfo_hover.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/Treatment_hover.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/CosmeticDentistry_hover.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/Implants_hover.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/Whitening_hover.png";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/callout1_hover.jpg";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/callout2_hover.jpg";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/callout3_hover.jpg";
	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/callout4_hover.jpg";
	menuImage13 = new Image(); 
	menuImage13.src = DNN_skinPath + "images/callout5_hover.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("#Implants").length){
  		var so = new SWFObject("http://tools.televoxsites.com/features/implant.swf", "features", "200", "195", "9", "#FF6600");
  		so.addParam("wmode", "transparent");
  		so.addParam("quality", "high");
  		so.write("Implants");
	}
	if (jQuery("#jaws").length){
  		var so = new SWFObject("http://tools.televoxsites.com/features/jaws.swf", "features", "250", "260", "6", "#FF6600");
  		so.addParam("wmode", "transparent");
  		so.addParam("quality", "high");
  		so.write("jaws");
	}
	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"); 
	}
	if (jQuery("#Root").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("Root");
	}
	if (jQuery("#wisdom").length){
  		var so = new SWFObject("http://tools.televoxsites.com/features/wisdom.swf", "features", "190", "205", "6", "ffffff"); 
		so.addParam("wmode", "transparent"); 
		so.write("wisdom");
	}
	
	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("#jawsfe").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/jaws.swf ", "slideshow", "190", "206", "6", "#72653a");
        sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
        sshow.addParam("wmode", "transparent"); 
        sshow.write("jawsfe");
	}
	
});



