jQuery(document).ready(function($){
	
	$("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse", 
		delay:2000,
		animation:{height:"show"},
		speed:"normal"
	});	
	
	//FAQ
	$('.acc h4').click(function() {
		$(this).toggleClass('active').next().toggle("fast");
		return false;
	}); 
	
	/* remove box from links */
	$("a").focus(function(){ this.blur(); });
	
	 $(".LinkIcon").rollover();
	
	$(".Level1").append("<li><img src='/Portals/_default/Skins/fogleortho.com/images/subappend.png' align='bottom' class='subbottom' /></li>");

	if ($("#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 ($("#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 ($("#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 ($("#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 ($("#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 ($("#orthodontist").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/beOrtho.swf", "slideshow3", "500", "373", "6", "#000000");
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
		sshow.addParam("wmode", "transparent"); 
        sshow.write("orthodontist");
	}   
	
});

//sIFR implementation
function pageScripts(){
	var copperplate = {  src: DNN_skinPath + 'copperplate.swf' };
	sIFR.activate(copperplate);
	sIFR.replace(copperplate, {
	  selector: 'h1', 
	  wmode: 'transparent', 
	  src:  DNN_skinPath +  'copperplate.swf', 
	  css: [ '.sIFR-root {color:#FFFFFF; font-size:34px; font-weight:normal;}'  ] 
	});
}
