﻿$(function() {
	
	// setup player without "internal" playlists
	$f("player2", "/VideoPlayer/flowplayer.commercial-3.1.5.swf", {	
	   
	   key: '#@8107db23127880f7638',
	   
    // rest of the Flowplayer configuration     

    contextMenu: [
'TV Player',
{ 'Go to 13strides': function() {
    location.href = 'http://www.13strides.com';
}
}
],

    screen: {
        top: 0,
        left: 0,
        width: '100%',
        height: '100%'
    },
	
	
	plugins: {
        /*smil: { url: 'VideoPlayer/flowplayer.smil-3.1.3.swf' },
        rtmp: { url: 'VideoPlayer/flowplayer.rtmp-3.1.3.swf' },*/

        controls: { autoHide: "always",
            hideDelay: 1000,
            bottom: 0,
            width: '100%',
            alpha: 0.8,
            stop: true
        }

    },


    clip: {

        onStart: function(clip) {
            pageTracker._trackPageview("start: " + clip.url + parseInt(this.getTime()));
        },


        // track Pause event for this clip         
        onPause: function(clip) {
            pageTracker._trackPageview("pause: " + clip.url + parseInt(this.getTime()));
        },

        // track Stop event for this clip         
        onPause: function(clip) {
            pageTracker._trackPageview("stop: " + clip.url + parseInt(this.getTime()));
        },

        // track finish event for this clip         
        onFinish: function(clip) {
            pageTracker._trackPageview("finish: " + clip.url + parseInt(this.getTime()));

        },

        autoPlay: true,
		autoBuffering : true
       /* provider: 'rtmp'*/

    }
	
		
	// use playlist plugin. again loop is true
	}).playlist("div.petrol", {loop:true});
	
});
