function pageScripts(){
	var perpetua = {  src: DNN_skinPath + 'flash/helvetica-neue.swf' };
	sIFR.activate(perpetua);
	sIFR.replace(perpetua, {
		selector: 'h1',
		wmode: 'transparent',
		src:  DNN_skinPath +  'flash/helvetica-neue.swf',
		css: [ '.sIFR-root {color:#3e1500; font-size:30px;}'  ]
	});
}

//Menu implementation
jQuery(document).ready(function(){
	
	// homepage flash 
	jQuery('#banner').flashembed({ src: DNN_skinPath+'flash/flash_photos_3.swf', wmode: 'transparent' });
	
	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('.png', '_hover.png') },
		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/officeInfo_hover.png";
	menuImage3 = new Image();
	menuImage3.src = DNN_skinPath + "images/patientInfo_hover.png";
	menuImage4 = new Image();
	menuImage4.src = DNN_skinPath + "images/treatment_hover.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/funstuff_hover.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/patientLogin_hover.png";
	
	jQuery('.accordion h2').click(function() {
	jQuery(this).toggleClass('active').next().slideToggle('slow');
		return false;
	}).next().hide();	

	// invisalign video
	if (jQuery('#flash-video').length) {
		flowplayer("flash-video", DNN_skinPath+"flash/flowplayer-3.1.5.swf", {
			plugins: { controls: { url: 'flowplayer.controls-tube-3.1.5.swf' } },
			clip: { autoPlay: false, autoBuffering: true }
		});
	}

	// jaw surgery feature
	jQuery('#featuresurgery').flashembed({ src: 'http://tools.televoxsites.com/features/jaws.swf', wmode: 'transparent' });
	// retention flash feature
	jQuery('#retention').flashembed({ src: 'http://tools.televoxsites.com/features/retainer.swf', wmode: 'transparent' }); 


});
