// JavaScript Document

// JavaScript Document

$(function() {
	// setup overlay actions to links
	$("a[rel]").overlay({
 
		// use the Apple effect for overlay
		effect: 'apple',		
		
		expose: '#789',				
		
		onLoad: function(content) {
			// find the player contained inside this overlay and load it
			this.getOverlay().find("a.player, a.audio").flowplayer(0).load();
		},
		
		onClose: function(content) {
			$f().unload();
		}
	});				
	
	// install flowplayers
	$("a.player").flowplayer("assets/js/flowplayer-3.1.5/flowplayer-3.1.5.swf");  

	$("a.audio").flowplayer("assets/js/flowplayer-3.1.5/flowplayer-3.1.5.swf",{
		plugins: { 
			audio: { 
				url: 'flowplayer.audio-3.1.2.swf' 
			} 
		},
		
		canvas: { 
			//backgroundColor:'#18b9ed', 
			backgroundImage: 'url(/assets/media/images/audio_splash.jpg)'
		}

	});
	
	
});		





