jQuery(document).ready(function($){

	jQuery("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal"
	});
	
	$('.LinkIcon').rollover('_hover');
	
	$('.accordion-faq h3').click(function() {
		$(this).toggleClass('active').next().toggle('normal');
		return false;
	});
	
	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("#featureortho").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/beOrtho.swf", "slideshow", "450", "380", "6", "#000000");
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
		sshow.addParam("wmode", "transparent");
		sshow.write("featureortho");
	}

	if (jQuery("#invisalign-video").length){
		flowplayer("invisalign-video", {
				src: "http://tools.televoxsites.com/vendor/flash/flowplayer-3.2.6.swf",
				wmode: "transparent"
			}, {
			plugins: { controls: { url: 'flowplayer.controls-tube-3.2.4.swf' } },
			clip: { autoPlay: false, autoBuffering: true, url: 'http://tools.televoxsites.com/vendor/flash/invisalign.flv' }
		});
	}

	$('#featurerpe').click(function() {	featurerpe.load(); });
	
	$('#teeth-ani').flashembed({ src: DNN_skinPath+'flash/teeth-ani.swf', wmode: 'transparent' });


});


//sIFR implementation
function pageScripts(){
	var perpetua = {  src: DNN_skinPath + 'flash/horley-old-style.swf'};
	//alert(DNN_skinPath + 'flash/times.swf');
	sIFR.activate(perpetua);
	sIFR.replace(perpetua, {
	  selector: 'h1', 
	  wmode: 'transparent', 
	  src:  DNN_skinPath +  'flash/horley-old-style.swf', 
	  css: [ '.sIFR-root {color:#18365a;font-size:28px; text-transform:uppercase;}']
	});
}




