$(document).ready(function() {
	$("#flowpanes").scrollable({size: 1}).circular().navigator({
		navi: "#flowtabs",
		naviItem: 'a',
		activeClass: 'current'
	});
	
	$("#flowpanes2").scrollable({size: 1}).circular().navigator({
		navi: "#flowtabs2",
		naviItem: 'a',
		activeClass: 'current'
	});
	
	$("#flowpanes3").scrollable({size: 4}).circular().navigator({
		navi: "#flowtabs3"
	});
	
	
});

$(function() {
	// setup overlay actions to buttons
	$("#presentation img[rel]").overlay({
		// use the Apple effect for overlay
		effect: 'apple',
		expose: '#fff',
		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("flowplayer/flowplayer-3.1.5.swf"); 
});

