function pageScripts() {
var AvianRegular = {  src: DNN_skinPath + 'AvianRegular.swf' };
sIFR.activate(AvianRegular);
sIFR.replace(AvianRegular, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'AvianRegular.swf', 
  css: [ '.sIFR-root {color:#5086aa; font-size:24px; }'  ]
});
}

function pageScripts1() {
var AvianRegular = {  src: DNN_skinPath + 'AvianRegular.swf' };
sIFR.activate(AvianRegular);
sIFR.replace(AvianRegular, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'AvianRegular.swf', 
  css: [ '.sIFR-root {color:#4a7214; font-size:24px; }'  ]
});
}

jQuery(document).ready(function(){
jQuery.noConflict();
jQuery('.acc h4').click(function() {
jQuery(this).toggleClass('active').next().toggle("fast");
 return false;
 }).next().hide(); 	

	jQuery('#Navigation').accordion({
		active: false,
		header: '.menuTitle',
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed: 400, 
		hideSpeed: 400
	});	
	
	jQuery('#Navigation1').accordion({
		active: false,
		header: '.menuTitle',
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed: 400, 
		hideSpeed: 400
	});	
	/* remove box from links */
	jQuery("a").focus(function(){
	this.blur();
	});	
	jQuery('#sitemap147 a').text("Home");
	/*Preload the menu backgrounds*/
	menuImage1 = new Image(); 
	menuImage1src = DNN_skinPath + "images/home_hover.jpg";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/officeinfo_hover.jpg";	
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patientinfo_hover.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/treatment_hover.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/contactus_hover.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/homepkwy_hover.jpg";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/officeinfopkwy_hover.jpg";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/patientinfopkwy_hover.jpg";
	menuImage9= new Image(); 
	menuImage9.src = DNN_skinPath + "images/treatmentpkwy_hover.jpg";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/contactuspkwy_hover.jpg";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/typespkwy_hover.jpg";

    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("#featureoraldental").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600");
		so.addVariable("config", "/features/config_dental.xml");
		so.addVariable("feature", "hygiene-dental");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featureoraldental"); 
	}	
});

