//sIFR implementation
function pageScripts(){
var caflischscriptpro = {  src: DNN_skinPath + 'avian.swf'};
sIFR.activate(caflischscriptpro);
sIFR.replace(caflischscriptpro, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'avian.swf', 
  css: [ '.sIFR-root {color:#15397f; font-size:24px;}']
});
}

function fireImageSwf(){
var sshow = new SWFObject("/Portals/0/homevideo.swf", "slideshow", "440", "362", "9", "#000000");
	sshow.addParam("wmode", "transparent", "high");
	sshow.write("video");
}


//Menu implementation
jQuery(document).ready(function(){
	jQuery('#navigation').accordion({
		active: false,
		header: '.menuTitle',
		animation:{height:"show"},
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed: 600,
		hideSpeed: 1400
	});
	
	jQuery(".video").click(fireImageSwf);

/* THIS REMOVE THE LINE FROM THE EMPTY <UL> ELEMENTS (NOTE: be sure there is NO space between the <ul></ul> elements) */
	jQuery("#navigation li ul:empty").remove();
	
		/*Preload the menu backgrounds*/
	menuImage = new Image(); 
	menuImage.src = DNN_skinPath + "images/1Home_hover.gif";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/1FunStuff_hover.gif";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/1OfficeInfo_hover.gif";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/1PatientInfo_hover.gif";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/1PatientLogin_hover.gif";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/1Treatment_hover.gif";
		});