//sIFR implementation
function pageScripts() {
var FuturaCondensedLight = {src: DNN_skinPath + 'FuturaCondensedLight.swf' };
sIFR.activate(FuturaCondensedLight);
sIFR.replace(FuturaCondensedLight, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'FuturaCondensedLight.swf', 
  css: [ '.sIFR-root {font-size:48px;color:#800a00;}'  ] 
});
}
/*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 () {}
	});
	
	jQuery("a").focus(function(){
	this.blur();
	});
jQuery ("#dnn_ctr436_FormMaster_tdDefaultSubmitButton a").text('Submit the Survey');
jQuery(".LinkIcon").rollover();
	/*Preload the menu backgrounds*/
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/plogin_on.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/offinfo_on.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/pinfo_on.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/tret_on.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/fun_on.png";

	if (jQuery("#jawsfe").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/jaws.swf ", "slideshow", "190", "206", "6", "#72653a");
        sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
        sshow.addParam("wmode", "transparent"); 
        sshow.write("jawsfe");
	}
	if (jQuery("#featureorthognathic").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "slideshow", "190", "205", "6", "#000000"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("featureorthognathic");
	}
	if (jQuery("#orthodontist").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/beOrtho.swf", "slideshow", "500", "373", "6", "#000000");    		        sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
        sshow.addParam("wmode", "transparent"); 
        sshow.write("orthodontist"); 
	}
		if (jQuery("#retainer").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "375", "9", "#FF6600"); 
		so.addVariable("config", "/features/config.xml"); 
		so.addVariable("feature", "retainer"); 
		so.addParam("allowscriptaccess", "always"); 
		so.addParam("wmode", "transparent");
		 so.addParam("quality", "high"); 
		so.write("retainer"); 
}
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");		
	});
jQuery('#oral').click(function() {
  		var sshow = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600");
		sshow.addVariable("config", "/features/config.xml"); 
		sshow.addVariable("feature", "hygiene");
	    sshow.addParam("wmode", "transparent");
	    sshow.addParam("quality", "high");
		sshow.write("feature");		
	});

});



