jQuery(document).ready(function($){
									
	$("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal"
	});

	/* remove box from links */
	$("a").focus(function(){ this.blur(); });
	
	/* Invisalign FAQ */
	$('.acc h4, .acc h3').click(function() {
		$(this).toggleClass('active').next().toggle("fast");
		return false;
	});
	
	$('#pictAni').cycle({
		fx: 'fade',
		speed: 1500,
		timeout: 6000
	});
	
	/*menu ul bottom image */	
	$(".Lvl1").append("<li><img src='/Portals/0/submenubottom.png' align='bottom' class='subbottom'/></li>");
	
	/*Preload images for the menu backgrounds starts*/
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/contactus_on.jpg";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/funstuff_on.jpg";	
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/home_on.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/officeinfo_on.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/patientinfo_on.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/patientlogin_on.jpg";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/treatment_on.jpg";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/whychooseus_on.png";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/invisalign_on.png";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/map_on.png";
	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/firstvisit_on.png";
	/*Preload images for the menu backgrounds end*/
	
	if ($("#orthosurgery").length){
		var so = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "features", "190", "205", "9", "#FF6600");		
		so.addVariable("feature", "orthosurgery");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("orthosurgery"); 
	}		
		
});	

function pageScripts(){
	var goundy = {  src: DNN_skinPath + 'goundy.swf' };
	sIFR.activate(goundy);
	sIFR.replace(goundy, {
	  selector: 'h2', 
	  wmode: 'transparent', 
	  src:  DNN_skinPath +  'goundy.swf', 
	  css: [ '.sIFR-root {color:#4B422C; font-size:36px;}'  ]
	});
}
