// Java Document
var bwconf = {
	bwcheck: {
		url: 'flowplayer.bwcheck-3.1.0.swf',    
		netConnectionUrl: 'reference256.swf', 
		bitrates: [56, 256, 512, 768], 
		defaultBitrate: 256,
		rememberBitrate: false,
		urlPattern: '{0}-{1}.{2}', //{0} refers to the clip basename, {1} is the mapped bitrate, {2} is file extension. 
	 
		// this method is called when the bandwidth check is done 
		onBwDone: function(url, chosenBitrate, bitrate) { 
			var el = document.getElementById("bwInfo"); 
			if(chosenBitrate == 56) {
				el.innerHTML = "Your bandwidth class is " +chosenBitrate+ "kbps.  Playing very low bandwidth version."; 
			};
			if(chosenBitrate == 256) {
				el.innerHTML = "Your bandwidth class is " +chosenBitrate+ "kbps.  Playing low bandwidth version."; 
			};
			if(chosenBitrate == 512) {
				el.innerHTML = "<p>Your bandwidth class is " +chosenBitrate+ "kbps.  Playing medium bandwidth version.</p>";
			};
			if(chosenBitrate == 768) {
				el.innerHTML = "<p>Your bandwidth class is " +chosenBitrate+ "kbps.  Playing high bandwidth version.</p>";
			};
			if(chosenBitrate == 1000) {
				el.innerHTML = "<p>Your bandwidth class is " +chosenBitrate+ "kbps.  Playing very high bandwidth version.</p>"; 
			};
		} 
	} 
}

