//sIFR implementation
function pageScripts(){
var CenturyGothic = {  src: DNN_skinPath + 'CenturyGothic.swf' };
sIFR.activate(CenturyGothic);
sIFR.replace(CenturyGothic, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'CenturyGothic.swf', 
  css: [ '.sIFR-root {color:#FFFFFF;font-size:26px;}'  ] 
});
}

//Menu implementation
jQuery(document).ready(function($){
	$('#Navigation').accordion({
		active: false,
		header: '.menuTitle', 
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed: 1200,
		hideSpeed: 1400
	});
	
	$("#navigation li ul:empty").remove();
	
	$("a").focus(function(){ this.blur(); });
	
	//FAQ
	$('.acc h4').click(function() {
		$(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();
 
	$('#review-wrap').cycle({
		speed: 1500,
		timeout: 10000 
	});

	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/after_on.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/fun_on.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/home_on.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/oo_on.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/patient_on.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/testi_on.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/tret_on.png";
	
	if ($("#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");
	}
	
});
