//sIFR implementation

function pageScripts() {
var HamburgerHeaven = {  src: DNN_skinPath + 'KozGoPr6N.swf' };
sIFR.activate(HamburgerHeaven);
sIFR.replace(HamburgerHeaven, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'KozGoPr6N.swf', 
  css: [ '.sIFR-root {color:#36ba72;font-size:30px;}'  ]
});
}

/*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 () {}
	});
	
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();		
		});
	/* photo*/
	
jQuery(".Level1").append("<li><img src='/Portals/_default/Skins/turtlecovedental.com/images/submenu_bottom.png' class='subbtm'></li>");
	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/patientlogin_hover.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/home_hover.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/officeinfo_hover.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/patientinfo_hover.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/treatment_hover.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/additionalinfo_hover.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/clickhere_hover.jpg";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/submenu_top.png"; 
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/submenu_bottom.png";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/patientforms_hover.png";
	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/directions_hover.png";
	
	
	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("#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("#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("#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");
	}
	if (jQuery("#wisdom").length){
  		var so = new SWFObject("http://tools.televoxsites.com/features/wisdom.swf", "feature1", "190", "205", "6", "ffffff"); 
		so.addParam("wmode", "transparent"); 
		so.write("wisdom");
	}
	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");
	}
	

});
