//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/trajanpro.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/trajanpro.swf', 
  css: [ '.sIFR-root {color:#0c2f29; font-size:30px;}'  ]
});
}




//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('.accordion h2').click(function() {
	jQuery(this).toggleClass('active').next().slideToggle('slow');
		return false;
	}).next().hide();
	
	jQuery('.LinkIcon').rollover('_hover');
	
	image1 = new Image();
	image1.src = DNN_skinPath + "images/home_hover.jpg";
	image2 = new Image();
	image2.src = DNN_skinPath + "images/officeinfo_hover.jpg";
	image3 = new Image();
	image3.src = DNN_skinPath + "images/patientinfo_hover.jpg";
	image4 = new Image();
	image4.src = DNN_skinPath + "images/treatment_hover.jpg";
	image5 = new Image();
	image5.src = DNN_skinPath + "images/funzone_hover.jpg";
	image6 = new Image();
	image6.src = DNN_skinPath + "images/patientlogin_hover.jpg";
	
	
	if (jQuery('#featurebefore').length) {
		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "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('#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");
	}
	
	if (jQuery('#featureemergency').length) {
		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "emergencies");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high"); so.write("featureemergency");
	}
	
	if (jQuery('#featuresurgery').length) {
		var sshow = new SWFObject("http://tools.televoxsites.com/features/jaws.swf", "slideshow", "200", "208", "6", "#000000");
       sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
       sshow.addParam("wmode", "transparent");
       sshow.write("featuresurgery");	
	}

});

