// JavaScript Document
// Site: Churchill Flute Band Website
//       Multimedia Section (version 3)
// Author: Surreal Kid
// Date: 29th January 2008


// Hide the no-script warning on load
window.addEvent('domready', function(){
		$('noScript').setStyle('display', 'none');
		
		// load the accordion for the menu
		accordion = new Accordion('h4.listTitle', 'div.listContent', {
			start:false,
			show:false,
			height: true,
			width: false,
			display: -1,
			alwaysHide: true,
			duration: 600,
			fps: 50,
			opacity: true
		},
		$('playlists'));
	}
);

var flashVars =
{
	params: {
		allowscriptaccess: 'always',
		allowfullscreen: 'true'
	},
	
	common: {
		width: '320',
		backcolor: '0xb1b1b1',
		frontcolor: '0x000000',
		lightcolor: '0x981600',
		javascriptid: 'FlashPlayer',
		enablejs: 'true'
	},
	
	photo: {
		href: '../_flash/imagerotator.swf',
		name: 'mpl',
		height: '240',
		vars: {
			height: '240',
			rotatetime: '5',
			linktarget: '_photos',
			overstretch: 'false',
			shownavigation: 'true',
			shuffle: 'false',
			repeat: 'true',
			linkfromdisplay: 'true'
		}
	},
	
	video: {
		href: '../_flash/flvplayer.swf',
		name: 'jwPlayer',
		height: '350',
		vars: {
			displayheight: '240',
			showdownload: 'true',
			repeat: 'list',
			autostart: 'true'
		}
	}
}

flashObj = new flash(flashVars, 'player');
