var flow = {		
	key: '#$1d759cd2c32a098eefa',
			
	clip:{ 
		initialScale: 'orig',
		initialVolumePercentage: 100,
		onBegin: function(clip){
			$('.player_loading').remove();
			$('.download_playing').show();
			stats(clip);
		},
		onStart: function(clip){
			stats(clip);
		},
		onResume: function(clip){
			stats(clip);
		}
	},
		
	logo:{
		url:'http://www.resonate.org.nz/assets/4313cc73-8090-41a4-a658-db9c4b421d12/files/flash/flowplayer/resonate_logo_player_white.png',  
		top: 10, 
		right: 10, 
		opacity: 0.5, 
	    fullscreenOnly: false,     
		fadeSpeed: 0, 
	 	linkUrl: 'http://admin.resonate.org.nz'
	},
	
	plugins: { 
    	controls: { 
        	url: 'http://www.resonate.org.nz/assets/4313cc73-8090-41a4-a658-db9c4b421d12/files/flash/flowplayer/flowplayer.controls-air-3.2.1.swf', 
        	"timeColor":"#01DAFF",
        	"borderRadius":"0px",
        	"bufferGradient":[0.5,0.4,0.3,0.2,0,0,0,0],
        	"backgroundColor":"rgba(37, 53, 60, 0.7)",
        	"volumeSliderGradient":"none",
        	"progressGradient":"medium",
        	"time":true,
        	"height":24,
        	"tooltips":{
				"marginBottom":5,
				"volume":true,
				"scrubber":true,
				"buttons":false
			},
			"opacity":1,
			"border":"0px",
			"bufferColor":"#6c9cbc",
			"volumeSliderColor":"#000000",
			"buttonColor":"rgba(162, 169, 171, 1)",
			"mute":true,
			"autoHide":{
				"enabled":true,
				"hideDelay":500,
				"mouseOutDelay":500,
				"hideStyle":"fade",
				"hideDuration":400,
				"fullscreenOnly":true
			},
			"backgroundGradient":[0.6,0.3,0,0,0],
			"width":"100pct",
			"display":"block",
			"buttonOverColor":"#728B94",
			"fullscreen":true,
			"timeBgColor":"#555555",
			"scrubberBarHeightRatio":1,
			"bottom":0,
			"stop":false,
			"zIndex":1,
			"sliderColor":"#000000",
			"scrubberHeightRatio":0.4,
			"tooltipTextColor":"#ffffff",
			"sliderGradient":"none",
			"timeBgHeightRatio":0.7,
			"volumeSliderHeightRatio":0.4,
			"name":"controls",
			"volumeBarHeightRatio":1,
			"left":"50pct",
			"tooltipColor":"#5F747C",
			"playlist":false,
			"durationColor":"#ffffff",
			"play":true,
			"fastForward":true,
			"timeBorder":"1px solid rgba(0, 0, 0, 0.3)",
			"progressColor":"#015B7A",
			"scrubber":true,
			"volume":true,
			"builtIn":false

		},
		
		resonate: {
            url: 'http://www.resonate.org.nz/assets/4313cc73-8090-41a4-a658-db9c4b421d12/files/flash/flowplayer/flowplayer.rtmp-3.2.3.swf',
            // make the rtmp plugin query the stream length from the server 
            durationFunc: 'getStreamLength',
          	netConnectionUrl:'rtmp://s3i8kg7s323e06.cloudfront.net/cfx/st'
        },	
		
		resonatelive: {
            url: 'http://www.resonate.org.nz/assets/4313cc73-8090-41a4-a658-db9c4b421d12/files/flash/flowplayer/flowplayer.rtmp-3.2.3.swf', 
    		objectEncoding:0
        },
       
		audio: { 
            url: 'http://www.resonate.org.nz/assets/4313cc73-8090-41a4-a658-db9c4b421d12/files/flash/flowplayer/flowplayer.audio-3.2.1.swf' 
        },
        
        // bandwidth check plugin
        bwcheck: {  
      	    url: 'http://www.resonate.org.nz/assets/4313cc73-8090-41a4-a658-db9c4b421d12/files/flash/flowplayer/flowplayer.bwcheck-3.2.1.swf',
      	    serverType: 'fms',
      	    // we use dynamic switching, the appropriate bitrate is switched on the fly
      	    dynamic: true,
      	    netConnectionUrl:'rtmp://s3i8kg7s323e06.cloudfront.net/cfx/st',
      	          	            	
            // show the selected file in the content box. This is not used in real installations.
            onStreamSwitch: function(bitrate, streamName) {
        		//alert('switched: '+bitrate+' :: '+streamName);
            }
        }
	},
	
	canvas: {
		backgroundColor: '#aaaaaa'
	},

	contextMenu: [ 
		{'About Resonate': function() { 
	    	location.href = "http://resonate.org.nz/";  
		}}, 
		{'Report this file': function() { 
			reportme();
		}}, 
		'-', 
		'&copy; Hope Ministries'  
	]
};

/*        	
backgroundGradient: [0.6,0.3,0,0,0],
opacity: 0.9,
autoHide: 'fullscreen', 
	progressColor: '#015B7A',
	timeColor: 'rgba(255, 255, 255, 1)',
	bufferGradient: [0.5,0,0.3],
	durationColor: 'rgba(108, 156, 188, 1)',
	backgroundColor: 'rgba(37, 53, 60, 0.7)',
	progressGradient: "medium",
	bufferColor: "rgba(125, 48, 45, 1)",
	buttonColor:"#5F747C",
	buttonOverColor:"#728B94",
	timeBgColor: "#555555",
	timeBorder: "1px solid rgba(0, 0, 0, 0.3)",
	height: 24,
	play:true,      
volume:true, 
mute:true,
stop:false, 
playlist:false,
scrubber: true,
tooltipColor: '#5F747C',
tooltips:{
	"play":"Play",
	"buttons":true,
	"unmute":"Unmute",
	"pause":"Pause",
	"fullscreen":"Fullscreen",
	"marginBottom":5,
	"fullscreenExit":"Exit fullscreen",
	"volume":true,
	"scrubber":true,
	"mute":"Mute"
}
*/
