//sIFR implementation
function pageScripts(){
var CenturyGothic = {  src: DNN_skinPath + 'CenturyGothic.swf' };
sIFR.activate(CenturyGothic);
sIFR.replace(CenturyGothic, {
  selector: '#htitle', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'CenturyGothic.swf', 
  css: [ '.sIFR-root {color:#000000;font-size:24px;}'  ] 
});
var CenturyGothic = {  src: DNN_skinPath + 'CenturyGothic.swf' };
sIFR.activate(CenturyGothic);
sIFR.replace(CenturyGothic, {
  selector: '#ititle', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'CenturyGothic.swf', 
  css: [ '.sIFR-root {color:#000000;font-size:30px;}'  ] 
}); 
}

//Menu implementation	   
jQuery(document).ready(function(){

	jQuery("#navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:200,
		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});
	}); 
	
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
	/*Preload the menu backgrounds*/
	menuImage = new Image(); 
	menuImage.src = DNN_skinPath + "images/testimonial_hover.jpg";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/patientlogin_hover.jpg";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/patientform_hover.jpg";
	
	
	jQuery('.accordion h3').click(function() {
		jQuery(this).toggleClass('active').next().toggle('blind', 'normal');
		return false;
	}).next().hide();
	
	if (jQuery('#flash-video').position().top > jQuery('body').height()) {
		flowplayer("flash-video", "flash/flowplayer-3.1.5.swf", {
			plugins: { controls: { url: 'flash/flowplayer.controls-tube-3.1.5.swf' } }
		});
	}
	
});
