<!--
function getVideoId(url){

    var match = url.lastIndexOf('=');
    if (match) {
      id = url.substring(match+1);
      return id;
    }
}

function listVideos(data) 
	{
	       var html = '';
	       if(data.feed.openSearch$totalResults.$t > 0)
		{
		         var entries = data.feed.entry;
		         for(var i=0;i<entries.length;i++)
				{
			var vid='';
			vid=getVideoId(entries[i].link[1].href);
			if (vid.indexOf('respons') != -1) 
				{
					vid=getVideoId(entries[i].link[0].href);
				}    
			html += '<div style="text-align: center; font-size: 120%;"><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/'+vid+'" ></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/'+vid+'" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350" ></embed></object></div><hr>';

				}
	        }
	         else
		{
		         html += "<p>Доступ к видео отсутствует!</p>";
	        }
       document.getElementById("result").innerHTML = html;
     }
//-->
