//sIFR implementation
function pageScripts() {
var Bembo = {src: DNN_skinPath + 'Bembo.swf' };
sIFR.activate(Bembo);
sIFR.replace(Bembo, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'Bembo.swf', 
  css: [ '.sIFR-root {font-size:31px;color:#292929;}'  ] 
});
}



	//Menu implementation	   
jQuery(document).ready(function(){
	jQuery("#navigation > ul").superfish({ 
		hoverClass:"hover",
		pathClass:"overideThisToUse", 
		delay:2000,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("li", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	});		

jQuery('.acc h3').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();

	
	/*Preload the menu backgrounds*/

	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/invis_on.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/offi_on.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/pinfo_on.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/treat_on.png";

	
	
	if (jQuery("#OrthoSurgery").length){
	var so = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "features", "190", "205", "9", "#FF6600");
	so.addParam("wmode", "transparent");
	so.addParam("quality", "high");
	so.write("OrthoSurgery"); 
	}



	
});



