//sIFR implementation
function pageScripts(){
var rockwell = {  src: DNN_skinPath + 'flash/rockwell.swf' };
sIFR.activate(rockwell);
sIFR.replace(rockwell, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'flash/rockwell.swf', 
  css: [ '.sIFR-root {color:#6b6e4f; font-size:30px;}'  ]
});
}


//perpetua

jQuery(document).ready(function($){

	$("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:1200,
		animation:{height:"show"},
		speed:"normal"
	});
	
	$('.accordion-faq h3').click(function() {
		$(this).toggleClass('active').next().toggle('normal');
		return false;
	});
	
	$('.LinkIcon').rollover('_hover');

		
/*//home
	var PathHome = DNN_skinPath + "images/home.jpg";
jQuery("#Navigation40").append("<a href='#' title=''></a>");
	
	jQuery("#Navigation40").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/home_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation40").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/home.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
	
	//officeinfo
	var PathHomeo = DNN_skinPath + "images/officeinfo.jpg";
	jQuery("#Navigation63").append("<a href='#' title=''></a>");
	
	jQuery("#Navigation63").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/officeinfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation63").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/officeinfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	//patientinfo
	var PathHomeo = DNN_skinPath + "images/patientinfo.jpg";
	jQuery("#Navigation64").append("<a href='#' title=''></a>");
	
	jQuery("#Navigation64").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation64").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	//treatment
	var PathHomeo = DNN_skinPath + "images/treatment.jpg";
	jQuery("#Navigation65").append("<a href='#' title=''></a>");
	
	jQuery("#Navigation65").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/treatment_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation65").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/treatment.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
	//funstuff
	var PathHomeo = DNN_skinPath + "images/fun.jpg";
	jQuery("#Navigation66").append("<a href='#' title=''></a>");
	
	jQuery("#Navigation66").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/fun_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation66").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/fun.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End

	//Contact us
	var PathHomeo = DNN_skinPath + "images/contact.jpg";
	jQuery("#Navigation97").append("<a href='#' title=''></a>");
	
	jQuery("#Navigation97").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/contact_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation97").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/contact.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End	*/
	
	// 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"); 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("#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("#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("#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' }
	});
}

	if (jQuery("#featureband").length){
var so = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "planner"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featureband");
}

});





