
function pageScripts(){
var perpetua = {  src: DNN_skinPath + 'flash/arial.swf' };
sIFR.activate(perpetua);
sIFR.replace(perpetua, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'flash/arial.swf', 
  css: [ '.sIFR-root {color:#314a07; font-size:35px; text-transform:uppercase; }'  ]
});
}

function pageScriptsinner(){
var perpetua = {  src: DNN_skinPath + 'flash/arial.swf' };
sIFR.activate(perpetua);
sIFR.replace(perpetua, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'flash/arial.swf', 
  css: [ '.sIFR-root {color:#314a07; font-size:24px; text-transform:uppercase;  }'  ]
});
}


//Menu implementation
jQuery(document).ready(function(){
	jQuery('#navigation').accordion({
		active: false,
		header: '.menuTitle',
		event: 'click',
		autoheight:false,
		navigation:false,
		showSpeed: 1200,
		hideSpeed: 1200
	});

	jQuery('[name=dnn$ctr461$FormMaster$ctl__20100329T150841]').focus(function() {
		jQuery(this).val('');
	});

	jQuery('[name=dnn$ctr461$FormMaster$ctl__20100329T152702]').focus(function() {
		jQuery(this).val('');
	});

	jQuery('[name=dnn$ctr461$FormMaster$ctl__20100329T152743]').focus(function() {
		jQuery(this).val('');
	});
		
	jQuery("a").focus(function(){	this.blur(); });
	
	jQuery(".LinkIcon").hover(
		function() { this.src = this.src.replace('.jpg', '_hover.jpg') },
		function() { this.src = this.src.replace('_hover', '') }
	);
	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_hover.png";
   menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/home.png";		
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/officeInfo.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/officeInfo_hover.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/patientInfo.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/patientInfo_hover.png";	
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/treatment_hover.png";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/treatment.png";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/funstuff_hover.png";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/funstuff.png";
	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/patientLogin.png";
	menuImage12 = new Image(); 
	menuImage12.src = DNN_skinPath + "images/patientLogin_hover.png";


// 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("#featureemer").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("featureemer");
	}

	
	if (jQuery("#featureorthog").length){
	var sshow = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "slideshow", "190", "205", "6", "#000000");
	sshow.addParam("wmode", "transparent");
	sshow.write("featureorthog");
	}

	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("#featureparts").length){
	var so = new SWFObject("/features/loader.swf", "features", "500", "315", "9", "#FF6600");
	so.addVariable("config", "/features/config.xml");
	so.addVariable("feature", "parts");
	so.addParam("wmode", "transparent");
	so.addParam("quality", "high");
	so.write("featureparts"); 
	}	

	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("#flash-video").length){
	flowplayer("flash-video", "/Portals/_default/Skins/siteSkin/flash/flowplayer-3.1.5.swf", {
		plugins: { controls: { url: 'flowplayer.controls-tube-3.1.5.swf' } },
		clip: { autoPlay: false, autoBuffering: true }
	});

	}
	
	jQuery('.accordion h2').click(function() {
	jQuery(this).toggleClass('active').next().slideToggle('slow');
		return false;
	}).next().hide();
});



	



