function showFreeVideo(videoname,alias){
	document.getElementById('vidName').innerHTML = videoname;
	$("#memberPlayer").fadeIn(1000, function () {	
											  
		document.getElementById('flashVideo').innerHTML = '<object width="480" height="360"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2843185&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=7d95b6&amp;fullscreen=1&amp;autoplay=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=' + alias + '&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=7d95b6&amp;fullscreen=1&amp;autoplay=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="480" height="360"></embed></object>';
		
		document.getElementById('flashVideo').style.display = 'block';		
	});	
}
function closeFreePlayer(){
	document.getElementById('flashVideo').innerHTML = '';
	$("#memberPlayer").fadeOut();
}

/*function showFullVideo(videoname,alias){
	document.getElementById('vidName').innerHTML = videoname;
	$("#memberPlayer").fadeIn(1000, function () {
		document.getElementById('flashVideo').style.display = 'block';
		
		$f("flashVideo", "/flowplayer-3.1.0.swf", {
			
			clip: {
				url: alias,
				// configure clip to use influxis as our provider, it uses our rtmp plugin
				provider: 'edgecast'
			},
		
			// streaming plugins are configured under the plugins node
			plugins: {
		
				// here is our rtpm plugin configuration
				edgecast: {
					url: 'flowplayer.rtmp-3.1.0.swf',
		
					// netConnectionUrl defines where the streams are found
					netConnectionUrl: 'rtmp://flash.edgecastcdn.net/000B9A/videos/'
				}
			}
		});
	});	
}*/

function showFullVideo(videoname,alias){
	document.getElementById('vidName').innerHTML = videoname;
	$("#memberPlayer").fadeIn(1000, function () {
		document.getElementById('flashVideo').style.display = 'block';
		
		$f("flashVideo", "/flowplayer-3.1.0.swf", {
			
			clip: {
				url: alias,
				// configure clip to use influxis as our provider, it uses our rtmp plugin
				provider: 'amazon'
			},
		
			// streaming plugins are configured under the plugins node
			plugins: {
		
				// here is our rtpm plugin configuration
				amazon: {
					url: 'flowplayer.rtmp-3.1.0.swf',
		
					// netConnectionUrl defines where the streams are found
					//netConnectionUrl: 'rtmp://stream.surfcoach.com/cfx/st/'
					netConnectionUrl: 'rtmp://stream.surfcoach.com/cfx/st/'
				}
			}
		});
	});	
}

function closeFullPlayer(){
	document.getElementById('flashVideo').style.display = 'none';
	flowplayer("flashVideo", ""); 
	$("#memberPlayer").fadeOut();	
}
