$f("fms", "http://www.amazingfacts.org/resources/flowplayer/flowplayer.commercial.swf", {
		
	key: '#@9d8749511482c20d94b',
		
	clip: {

		autoPlay: false,
		
		// track start event for this clip         
		onStart: function(clip) {             
			google._trackEvent("Videos", "Play", $("#spnProgramTitle").text());         
		}, 
		 
		// track pause event for this clip. time (in seconds) is also tracked        
		onPause: function(clip) {             
			google._trackEvent("Videos", "Pause", $("#spnProgramTitle").text());         
		},

		onResume: function(clip) {
			google._trackEvent("Videos", "Resume", $("#spnProgramTitle").text());
		},
		
		onSeek: function(clip) {
			google._trackEvent("Videos", "Seek", $("#spnProgramTitle").text());
		},                 
		 
		// track stop event for this clip. time is also tracked         
		onStop: function(clip) {             
			google._trackEvent("Videos", "Stop", $("#spnProgramTitle").text()); 
		},                  
		 
		// track finish event for this clip         
		onFinish: function(clip) {             
			google._trackEvent("Videos", "Finish", $("#spnProgramTitle").text());         
		},
		
		provider: 'pseudo'
	},
	
	// streaming plugins are configured under the plugins node
	plugins: {
		pseudo: {
			url: 'http://www.amazingfacts.org/resources/flowplayer/plugins/flowplayer.pseudostreaming.swf',
			queryString: escape('?starttime=${start}')
		},
		
		controls: { 
			stop: true     
		} 
	}
}).ipad();

// get the links and alter their click behaviour
var els=['trailer1','trailer2']
for (var i_tem = 0; i_tem < els.length; i_tem++) {

	if (document.getElementById(els[i_tem]) != null) 
	{
		document.getElementById(els[i_tem]).onclick = function() {
			$f().play(this.getAttribute("href", 2));
			return false;
		}
	}
}

