jQuery(document).ready(function($){
	
	$("#menu > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:900,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	});
	
	$("ul.Level1").find("li:last").addClass("last");
	
	$("#menu a[href='#']").click(function() { return false });
	
	$("a").focus(function(){
		this.blur();
	});
	
	// open external links in a new window
	$("a").filter(function() {
    		return this.hostname && this.hostname !== location.hostname;
	}).attr('target', '_blank');
});


function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + 'flash/CenturyGothic3.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'flash/CenturyGothic3.swf', 
  css: [ '.sIFR-root {color:#8F212A; font-size:24px;}'  ]
});
}

jQuery(document).ready(function(){

// flash features
	

	if (jQuery("#featureoral").length){
var so = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "hygiene-dental"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featureoral"); 
}


 if (jQuery("#featurerootcanal").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/rootcanal.swf", "slideshow", "350", "260", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	sshow.addParam("wmode", "transparent");
	sshow.write("featurerootcanal");
}


 if (jQuery("#featurewisdom").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/wisdom.swf", "slideshow", "190", "205", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	sshow.addParam("wmode", "transparent");
	sshow.write("featurewisdom");
}

 if (jQuery("#featurecrown").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/crown.swf", "slideshow", "287", "300", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	sshow.addParam("wmode", "transparent");
	sshow.write("featurecrown");
}

if (jQuery("#featureimplants").length){
var so = new SWFObject("http://tools.televoxsites.com/features/implant.swf", "featureimplants", "200", "195", "6", "ffffff");
so.addParam("wmode", "transparent");
so.write("featureimplants");
}

if (jQuery("#featuregums").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/gums.swf", "slideshow", "320", "200", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	sshow.addParam("wmode", "transparent");
	sshow.write("featuregums");
}

if (jQuery("#featuretmj").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/jaws.swf", "slideshow", "200", "208", "6", "#000000");
       sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
       sshow.addParam("wmode", "transparent");
       sshow.write("featuretmj");
}

if (jQuery("#featuredev").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("featuredev");
}

});



jQuery(document).ready(function($){

	// this part goes in site.js inside the DOCUMENT READY - DO NOT PUT IT IN TWICE
	$('.accordion-faq h3').click(function() {
		$(this).toggleClass('active').next().toggle('normal');
		return false;
	});
	
});

