<!--
/*
   Funciones para la interace de los Videos de Youtube.
	dic/2009
*/
function vFooter () {
/*	return: string con la información de los canales propios en Youtube	*/
	html = "";
	html += '<div class="news_note_light">'+"\n";
	html += '  <h4>Canales de Videos en Youtube</h4><br />'+"\n";
	html += '  <p><a href="http://www.youtube.com/hijosdivinavoluntad" target="_blank">www.youtube.com/ hijosdivinavoluntad</a></p>'+"\n";
	html += '  <p><a href="http://www.youtube.com/horasdelapasion" target="_blank">www.youtube.com/ horasdelapasion</a></p>'+"\n";
	html += '</div>'+"\n";
	return html;
} // End function channelsInfo

function loadVideoInfo(VideoInfo) {
/* 
@VideInfo: Array
VideoInfo[0] = URL; 	VideoInfo[1] = TITLE; 	VideoInfo[2] = IMGURL; VideoInfo[3] = DESCRIPTION
*/
	Tit = VideoInfo[1];
	ImgUrl = VideoInfo[2];
	Des = VideoInfo[3];
	html = "";
	if (typeof vHeader == 'function')
		html += vHeader();
	html += '<div class="PlayInfo">'+"\n";
	html += '  <h4>' +Tit+ '</h4><br />'+"\n";
	html += '  <div class="img_container"><img src="' +ImgUrl+ '"/></div>'+"\n";
	html += '  <p>' +Des+ '</p>'+"\n";
	html += '</div>'+"\n";
	html += '<BR />'+"\n";
	html += vFooter();
	Obj = document.getElementById("play_info"); 
	Obj.innerHTML = html;
} // End function loadVideoInfo

function loadVideo(VideoInfo, autoplay) {
/* 
@VideInfo: Array
VideoInfo[0] = URL; 	VideoInfo[1] = TITLE; 	VideoInfo[2] = IMGURL; VideoInfo[3] = DESCRIPTION
@Autoplay: Boolean
*/
	PlayUrl = VideoInfo[0];
	swfobject.embedSWF(
		PlayUrl + '&amp;rel=0&amp;border=0&amp;fs=1&amp;hl=es_ES&amp;autoplay=' + 
		(autoplay?'1':'0'), 'player', glo_video_with, glo_video_height, '9.0.0', false, 
		false, {allowfullscreen: 'true', allowscriptaccess: 'always'});

	loadVideoInfo(VideoInfo);
} // End function loadVideo
-->