function pageScripts(){
var Goudy = {  src: DNN_skinPath + 'Goudy.swf' };
sIFR.activate(Goudy);
sIFR.replace(Goudy, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'Goudy.swf', 
  css: [ '.sIFR-root {font-size:32px;color:#43b2b2;}'  ]
});
}
///Menu implementation	   
jQuery(document).ready(function(){
jQuery("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("ul", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#Navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	});

    jQuery(".Level1").append("<li><img src='/Portals/_default/Skins/augersmiles.com/images/submenubg_bt.png' class='subbtm'></li>");

	 
		/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});	
	
	/* FAQ page */
jQuery('.acc h4').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();	
		
	/*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/seeour_hover.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/Treatment_hover.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/Fun_hover.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/Forourpatient_hover.jpg";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/Contactus_hover.jpg";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/callout1_hover.jpg";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/callout2_hover.jpg";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/callout3_hover.jpg";
	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/callout4_hover.jpg";
	menuImage12 = new Image(); 
	menuImage12.src = DNN_skinPath + "images/callout5_hover.jpg";
	menuImage13 = new Image(); 
	menuImage13.src = DNN_skinPath + "images/callout6_hover.jpg";	
	
   // flash features		
		
	if (jQuery("#featurecommon").length){	
		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "problems");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featurecommon"); 
	}		
		
	if (jQuery("#featurebefore").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "295", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "beforeafter");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featurebefore"); 
	}	
	
	if (jQuery("#featuretypes").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("xmlfile", "/features/types.xml");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featuretypes");
	}

	if (jQuery("#featureoral").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "hygiene");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featureoral"); 
	}

});

//login
function validate(pwd) {
    if (pwd=="Wilson")
        location.href="/WilsonStudyClub.aspx";
    else
    {
        location.href="/StudyClub.aspx";
    }
}


function ffReplace(btn) {
	var _embed = "<embed width='400' height='350' type='application/x-shockwave-flash' quality='high' wmode='transparent' menu='menu' loop='loop' scale='ShowAll' src='http://tools.televoxsites.com/features/rpa2.swf' name='slideshow8' id='slideshow8'></embed>";
	jQuery(btn).click(function() {
		jQuery(this).html(_embed);
	});
}
