/*
-------------------------
MASTER JAVASCRIPT ACTIONS
-------------------------
*/

// font replacement
Cufon.replace('h2, h4, #nav', { fontFamily: 'Daniel' });

// nav effects
$('#nav a').hover(function() {
	$(this).animate({ paddingLeft: '0.5em' }, { duration: 'fast', queue: false });
}, function() {
	$(this).animate({ paddingLeft: '0' }, { duration: 'fast', queue: false });
});

// audio player
$('#audioPlayer').flowplayer('assets/flash/flowplayer.swf', {
	plugins: {
		controls: {
			height: 40,
			fullscreen: false
		}
	},
	clip: {
		autoPlay: false,
		baseUrl: 'assets/audio/'
	},
	playlist: [
		{
			url: 'q94_demo.mp3',
			title: 'Q94 Demo'
		},
		{
			url: 'spot_demo.mp3',
			title: 'Spot Demo'
		},
		{
			url: 'vo_demo.mp3',
			title: 'Voiceover Demo'
		},
		{
			url: 'wedding_demo.mp3',
			title: 'Wedding Demo'
		}
	]
});
$f('audioPlayer').playlist('#playlist');