var public_release_video_rules = {
	'.youtube' : function(el) 
	{
		swfobject.embedSWF('http://www.youtube.com/v/'+el.id, el.id, 425, 340, "8");
	},

	'.vimeo' : function(el)
	{
	 	var flashvars = {
	        clip_id: el.id,
	        show_portrait: 1,
	        show_byline: 1,
	        show_title: 1,
			js_api: 1, // required in order to use the Javascript API
			js_onLoad: '', // moogaloop will call this JS function when it's done loading (optional)
			js_swf_id: 'moogaloop' // this will be passed into all event methods so you can keep track of multiple moogaloops (optional)
	    };
		var params = {
			allowscriptaccess: 'always',
			allowfullscreen: 'true'
		};
		var attributes = {};

		swfobject.embedSWF("http://vimeo.com/moogaloop.swf", el.id, 425, 340, "9.0.0", null, flashvars, params, attributes);
	}
};
Behaviour.register(public_release_video_rules);
