$(function() {

	// setup overlay actions to buttons
	$(".videowidgeta").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.wv_player").flowplayer(0).load();
		},
		
		onClose: function(content) {
			$f().unload();
		}
	});				
	
	flowplayer("a.wv_player", "/public/flash/players/flow/flowplayer-3.2.4.swf", {
		clip: {
		// stop at the first frame and start buffering
		autoPlay: true
		},
		// this is the player configuration. You'll learn on upcoming demos.
		plugins:  {
			controls:  {
				volume: true		
			}
		}
	});
});
