/**
 * video.js 
 * setup for FlowPlayer
 *
 * @author Jason Ware 1/11/2012
 */
 $(document).ready(function (){
 
    flowplayer("player", {src:"/swf/flowplayer.commercial-3.2.7.swf", wmode: 'opaque'}, {
        key: FLOWPLAYER_KEY,
		clip:{ 
			autoPlay: true,
			autoBuffering: true,

			// track start event for this clip
			onStart: function(clip) {
				_gaq.push(['_trackEvent', 'videoplayback', 'Play', clip.url]);
			},
			// track pause event for this clip. time (in seconds) is also tracked
			onPause: function(clip) {
				_gaq.push(['_trackEvent', 'videoplayback', 'Pause', clip.url, parseInt(this.getTime())]);
			},
			// track stop event for this clip. time is also tracked
			onStop: function(clip) {
				_gaq.push(['_trackEvent', 'videoplayback', 'Stop', clip.url, parseInt(this.getTime())]);
			},
			// track finish event for this clip
			onFinish: function(clip) {
				_gaq.push(['_trackEvent', 'videoplayback', 'Finish', clip.url]);
			}
		}
	});

 		
});
