//sIFR implementation
function pageScripts() {
var AGaramondRegular = {  src: DNN_skinPath + 'AGaramondRegular.swf' };
sIFR.activate(AGaramondRegular);
sIFR.replace(AGaramondRegular, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'AGaramondRegular.swf', 
  css: [ '.sIFR-root {color:#730202;font-size:48px;}'  ]
  
});
}

//sIFR implementation
function pageScriptsHM() {
var AGaramondRegular = {  src: DNN_skinPath + 'AGaramondRegular.swf' };
sIFR.activate(AGaramondRegular);
sIFR.replace(AGaramondRegular, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'AGaramondRegular.swf', 
  css: [ '.sIFR-root {color:#730202;font-size:40px;}'  ]
  
});
}

//Menu implementation
jQuery(document).ready(function(){
jQuery('#Navigation').accordion({
		active: false,
		header: '.menuTitle', 
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed: 600,
		hideSpeed: 700
	});
	
	jQuery("#navigation li ul:empty").remove();
	jQuery("a").focus(function(){
	this.blur();
	});	
		
	/* FAQ page */
	jQuery('.acc h4').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();	
	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/contactus_hover.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/funstuff_hover.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/home_hover.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/officeinfo_hover.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/patientinfo_hover.png"; 
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/patientlogin_hover.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/treatment_hover.png";

    if (jQuery("#orthodontist").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/beOrtho.swf", "slideshow", "500", "373", "6", "#000000");    		        sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
        sshow.addParam("wmode", "transparent"); 
        sshow.write("orthodontist");
	}   
	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");
	}
	jQuery('#rpeClick').click(function() {
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/rpa2.swf", "slideshow", "450", "350", "6", "#000000");
	    sshow.addParam("wmode", "transparent");
	    sshow.addParam("quality", "high");
		sshow.write("RPEflash");		
	});
	if (jQuery("#retainer1").length){
	var so = new SWFObject("/features/loader.swf", "features", "500", "375", "9", "#FF6600"); 
	so.addVariable("config", "/features/config.xml"); 
	so.addVariable("feature", "retainer"); 
	so.addParam("allowscriptaccess", "always"); 
	so.addParam("wmode", "transparent"); 
	 so.addParam("quality", "high"); 
	so.write("retainer1"); 
	}

});

