jQuery(document).ready(function(){
	
	jQuery('#menu').accordion({
		active: false,
		header: '.menuTitle',
		animation:{height:"show"},
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed: 1300,
		hideSpeed: 1500
	});

/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
	if (jQuery('#flash-video').length) {
		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' } }
			});
		}
	}
	
	if (jQuery('.slideshow').length) {
		jQuery('.slideshow').cycle({
			fx: 'fade',
			timeout: 5000,
			speed: 1300
		});		
	}

});

function runJS() {
	var angelina = {  src: DNN_skinPath + 'angelina.swf' };
	sIFR.activate(angelina);
	sIFR.replace(angelina, {
  		selector: 'h1', 
  		wmode: 'transparent', 
  		src:  DNN_skinPath +  'angelina.swf', 
  		css: [ '.sIFR-root {color:#eadd96; font-size:40px;}'  ]
});
}


