/**
 * 
 * @param datos
 * @return conección y posterior muestra de datos con api de youtube
 */
function data(datos) {
	id = datos.feed.entry[0].media$group.media$content[0].url;
	video = '<object width="364" height="219"><param name="movie" value="'+id+'&hl=es_ES&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="'+id+'&hl=es_ES&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="364" height="219"></embed></object>';
	$("#ContVideoYoutube").html(video);
}

/**
 * function data(myObj) { myObj = eval( '(' + myObj + ')' );
 * 
 * video = '<object width="364" height="219"><param name="movie"
 * value="http://www.youtube.com/v/' + idVideo + '&hl=es_ES&fs=1&"></param><param
 * name="allowFullScreen" value="true"></param><param name="allowscriptaccess"
 * value="always"></param><embed src="http://www.youtube.com/v/' + idVideo +
 * '&hl=es_ES&fs=1&" type="application/x-shockwave-flash"
 * allowscriptaccess="always" allowfullscreen="true" width="364" height="219"></embed></object>';
 * $("#it").html(video); }
 * 
 * 
 * 
 * $.getJSON(data(), function(data){ $.each(data.items, function(i,item){ $("<img/>").attr("src",
 * item.media.m).appendTo("#it"); if ( i == 3 ) return false; }); });
 * 
 * $(document).ready(function(){ $.ajax({
 * url:"http://gdata.youtube.com/feeds/api/videos?&orderby=published&start-index=1&max-results=1&author=artetecnologiachile&alt=json&callback=jsyoutube",
 * dataType : "json", success: function(jsyoutube){ $("#it").html(jsyoutube); }
 * }); });
 * 
 * 
 * $.ajax({ url:
 * "http://gdata.youtube.com/feeds/api/videos?&orderby=published&start-index=1&max-results=1&author=artetecnologiachile",
 * dataType: "xml", success: function(xml){ $(xml).find("id").each(function() {
 * $("#it").html($(this).html); }); } });
 */
