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(); });	
	
	if ($('.slides').length) {
		$('.slides').cycle({
			speed:    1000, 
			timeout:  8000 
		});
	}	
	
	$(".Lvl1").append("<li><img src='"+skinpath+"images/submenu_bottom.png' class='subbtm'></li>");
	$("#s66").append("<li><img src='"+skinpath+"images/submenu_bottom_fun.png' class='subbtm1'></li>");

	$('.acc h4').click(function() {
		$(this).toggleClass('active').next().toggle("fast");
		return false;
	});		

	$('.acc .dhtmlgoodies_question').click(function() {
		$(this).toggleClass('active').next().toggle("fast");
		return false;
	});	

	/*Preload the menu backgrounds*/	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/officeinfo_on.png";	
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patientinfo_on.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/treatment_on.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/funstuff_on.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/community_on.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/contactus_on.jpg";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/directions_on.jpg";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/firstvisit_on.jpg";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/arrow_on.png";
		
});

function pageScripts(){
	var TrajanBold = {  src: skinpath + 'TrajanBold.swf' };
	sIFR.activate(TrajanBold);
	sIFR.replace(TrajanBold, {
	  selector: 'h1', 
	  wmode: 'transparent', 
	  src:  skinpath +  'TrajanBold.swf', 
	  css: [ '.sIFR-root {color:#455560;font-weight:bold;font-size:35px;}'  ] 
	});
}
