
function pageScripts(){
var perpetua = {  src: DNN_skinPath + 'flash/trajanpro.swf' };
sIFR.activate(perpetua);
sIFR.replace(perpetua, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'flash/trajanpro.swf', 
  css: [ '.sIFR-root {color:#cbeaff; font-size:35px; }'  ]
});
}




function pageScriptsWelcomePage(){
var perpetua = {  src: DNN_skinPath + 'flashbanner.swf' };
sIFR.activate(perpetua);
sIFR.replace(perpetua, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'flashbanner.swf', 
  css: [ '.sIFR-root {color:#cbeaff; font-size:30px;}'  ]
});
}


//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("#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("#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("#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("#featureba").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("featureba");
}


 if (jQuery("#featureband").length){
var so = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "planner"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featureband");
}

 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("#featuredental").length){
	var sshow = new SWFObject("http://tools.televoxsites.com/features/dentaldevelopment.swf", "slideshow", "450", "400", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	sshow.addParam("wmode", "transparent");
	sshow.write("featuredental");
}

});





