// JavaScript Document

$(function() {

	// setup overlay actions to buttons
	$("a[rel]").overlay({

		// use the Apple effect for overlay
		
		// effect: 'apple',
		
		speed: 'fast',
		
			// some mask tweaks suitable for modal dialogs
	mask: {
		color: '#000',
		loadSpeed: 50,
		opacity: 0.9
	},
			
		
		onLoad: function(content) {
			// find the player contained inside this overlay and load it
			this.getOverlay().find("a.player").flowplayer(0).load();
		},
		
		onClose: function(content) {
			$f().unload();
		}
	});				
	
	// install flowplayers
	$("a.player").flowplayer("http://releases.flowplayer.org/swf/flowplayer-3.2.5.swf"); 
});	
