busy		= false;

/**
 * Display given video
 *
 * @param string    url
 * @param string	videoId
 */
function getVideo(url, videoId)
{
	if (busy)
	{
		alert('Busy handling requests');
		return;
	}

    busy = true;
    
	var getVideoUrl	= url + '/id/' + videoId;

	xmlHttp 		= initAJAX();

	xmlHttp.onreadystatechange = function()
	{
		if(xmlHttp.readyState == 4)
		{
			var videoTpl = String(xmlHttp.responseText);

			document.getElementById('video').innerHTML = videoTpl;

            busy = false;
		}
	}

	xmlHttp.open("GET", getVideoUrl, true);
	xmlHttp.send(null);
} // end func getVideo()
