jQuery(document).ready(function(){
	
	// superfish menu
	jQuery("#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 () {}
	});
	
	jQuery("#menu a[href='#']").click(function() { return false });
	
		
	jQuery('.accordion h2').click(function() {
		jQuery(this).toggleClass('active').next().slideToggle('slow');
		return false;
	});

	// flash features
	if (jQuery("#featureroot").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("featureroot");
	}

	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("#featurecrowns").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("featurecrowns");
	}

	if (jQuery("#flashslide").length){
   	var so = new SWFObject(DNN_skinPath+"flash/slideshow.swf", "mymovie", "274", "278", "9", "#336699");
   	so.addParam("quality", "high");
   	so.addParam("wmode", "transparent");
  	 	so.addVariable("xmlfile", DNN_skinPath+"flash/xml/data.xml");  
  	 	so.write("flashslide");
	}
	if (jQuery("#featuregums").length){
	var sshow = new SWFObject("http://tools.televoxsites.com/features/gums_MX.swf", "slideshow", "320", "200", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	sshow.addParam("wmode", "transparent");
	sshow.write("featuregums");
	}

	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("#flash-video").length){
flowplayer("flash-video", "/Portals/_default/Skins/siteSkin/flash/flowplayer-3.1.5.swf", {
		plugins: { controls: { url: 'flowplayer.controls-tube-3.1.5.swf' } },
		clip: { autoPlay: false, autoBuffering: true }
	});
}

 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("#featureemergency").length){
 var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "emergencies"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featureemergency");
}


 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("#featureimplants").length){
var so = new SWFObject("http://tools.televoxsites.com/features/implant.swf", "feature", "200", "195", "6", "000000");
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("#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");
}

});


