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 () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("ul", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	});


	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});

});



function runJS() {
	var angelina = {  src: DNN_skinPath + 'Arnopro.swf' };
	sIFR.activate(angelina);
	sIFR.replace(angelina, {
  		selector: 'h1', 
  		wmode: 'transparent', 
  		src:  DNN_skinPath +  'Arnopro.swf', 
  		css: [ '.sIFR-root {color:#340144; font-size:26px; text-transform: uppercase;}'  ]
});
}


jQuery(document).ready(function(){



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("#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("#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");
}


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");
}

});
