//sIFR implementation
function pageScripts(){
var Avenir = {  src: DNN_skinPath + 'Arial.swf' };
sIFR.activate(Avenir);
sIFR.replace(Avenir, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'Arial.swf', 
  css: [ '.sIFR-root {color:#dd9801;font-size:30px;}'  ]
});
}

//Menu implementation	   
jQuery(document).ready(function(){
	
/* FQA page */
jQuery('.accordion h4').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();	

								
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 () {}
	});

	/* remove box from links */
	jQuery("a").focus(function(){	this.blur(); });
	
		// flash features
		if (jQuery("#Implants").length){
  		var so = new SWFObject("http://tools.televoxsites.com/features/implant.swf", "features", "200", "195", "9", "#FF6600");
  		so.addParam("wmode", "transparent");
  		so.addParam("quality", "high");
  		so.write("Implants");
	}
	
	if (jQuery("#WisdomTeeth").length){
		var so = new SWFObject("http://tools.televoxsites.com/features/wisdom.swf", "features", "190", "205", "9", "#FF6600");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("WisdomTeeth");
	}
	if (jQuery("#featureorthognathic").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "slideshow", "190", "205", "6", "#000000"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("featureorthognathic");
	}
	if (jQuery("#youtube").length){
	var sshow = new SWFObject("http://www.youtube.com/v/C1JZ3iO6gg0&hl=en_US&feature=player_embedded&version=3", "slideshow", "425", "343", "6", "#000000"); 
	sshow.addParam("wmode", "transparent"); 
	sshow.write("youtube"); 
	}
	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.png";	 
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/practiceinfo_on.png";
    menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/orthodontics_on.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/pediatricdent_on.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/oralsurgery_on.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/fun_on.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/plogin_on.png";
});


