// Sets the video player up as well as the now playing area
function playVideo( id ) {
	$.ajax({
	  url: "/turbonick/ajax.php?a=2&vID="+id+"&ads=false",
	  cache: false,
	  async: false,
	  dataType: 'html',
	  success: function(html){
		$("#flash").html('');
		$("#flashjs").html(html);
	  },
	  beforeSend: function() {
		$("#flash").html("<div style=\"text-align:center;padding-top: 170px;\"><img src=\"/turbonick/imgs/ajax-loader.gif\" alt=\"loading\" align=\"center\" \/></div>");
	  }
	});
	//recordTHE( 'video' , id );
}

function playImage( sPath , iID ) {
	$("#flash").html('<img src="'+sPath+'" width="100%" height="100%" />');
	var sThumb       = $("#video-"+iID+" .video-thumb").attr( 'src' );
	var sTitle       = $("#video-"+iID+" .video-title").html();
	var sDescription = $("#video-"+iID+" .video-description").html();
	
	var sHTML_NowPlaying = '';
	
	sHTML_NowPlaying += '<img src="'+sThumb+'" alt="sTitle" width="72" height="60">';
	sHTML_NowPlaying += "<strong>"+sTitle+"</strong><br>";
	sHTML_NowPlaying += "<p>"+sDescription+"</p>";
	
	$('#nowplay').html( sHTML_NowPlaying );
}