
function showVideo($,value, title, img_close, img_logo){

      var url = "<table border='0' cellpadding='0' align=\"left\">";
        url = url + "<tr><td colspan=\"2\">&nbsp;<br /></td></tr><tr><td colspan=\"2\">";
        url = url + "<OBJECT id='rvocx' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' width=\"320\" height=\"240\">";
        url = url + "<param name='src' value=\"" + value + "\">";
        url = url + "<param name='autostart' value=\"false\">";
        url = url + "<param name='controls' value='imagewindow'>";
        url = url + "<param name='console' value='video'>";
        url = url + "<param name='loop' value=\"false\">";
        url = url + "<EMBED src=\"" + value + "\" width=\"320\" height=\"240\"";
        url = url + "loop=\"true\" type='audio/x-pn-realaudio-plugin' controls='imagewindow' console='video' autostart=\"false\">";
        url = url + "</EMBED></OBJECT></td></tr><tr><td>";
        url = url + "<OBJECT id='rvocx' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' width=\"320\" height='30'>";
        url = url + "<param name='src' value=\"" + value + "\">";
        url = url + "<param name='autostart' value=\"false\">";
        url = url + "<param name='controls' value='ControlPanel'>";
        url = url + "<param name='console' value='video'>";
        url = url + "<EMBED src=\"" + value + "\" width=\"320\" height='30'";
        url = url + "controls='ControlPanel' type='audio/x-pn-realaudio-plugin' console='video' autostart=\"false\">";
        url = url + "</EMBED></OBJECT></td></tr><tr><td align='center'>";
        url = url + "<a href=\"" + value + "\" style='font-size: 85%;' target='_blank'>Ver en reproductor externo</a>";
        url = url + "<br /><br /></td></tr><tr><td><div style=\"float:left; width:160px;\"><img src=\"" + img_logo + "\" /></div><div style=\"float:left;\"><span class=\"xsmall_text\"><div style=\"color:#990000;\"><b>Haz clic en el botón de play para iniciar el video.</b></div> Si no puedes ver el video, descarga gratuitamente el <a href=\"http://mexico.real.com/player/win/?&src=ZG.mx.player\" target=\"_blank\">Real Player</a></span></div></td></tr></table>";

var code = "";

code += "<div id=\"videoWindow\">";
code += "<div><div style=\"float:left; margin:3px;\"><span class=\"title_text\">" + title + "</span></div><div style=\"float:right; margin:3px;\"><img id=\"closeVideo\" src=\"" + img_close + "\" alt=\"Cerrar la ventana\" style=\"cursor:pointer;\" /></div></div><br />";
code += "<div style=\"float:left; margin:3px;\"><br />" + url + "</div>";
code += "</div>";

var d=document;
var el=d.getElementById?d.getElementById("VideoUtility"):d.all?d.all["VideoUtility"]:d.layers["VideoUtility"];
el.innerHTML = code;



jQuery(function($) {	
 $().ajaxStop($.unblockUI);
    //$('#main').tabs();

        // cache the question element
        var question = $('#videoWindow')[0];
        $.blockUI(question, { width: '330px' });
				
        $('#closeVideo').click(function(){
				hideVideo();
				$.unblockUI();
		}); //return false;
		
});

}	


function hideVideo(){
	var d = document;
	var e=d.getElementById?d.getElementById("VideoUtility"):d.all?d.all["VideoUtility"]:d.layers["VideoUtility"];
	e.innerHTML = "";
	e.style.display = "none";
}

function showGuia($,value, title, img_close, img_logo){

      var url = "<table border='0' cellpadding='0' align=\"left\">";
        url = url + "<tr><td colspan=\"2\">&nbsp;<br /></td></tr><tr><td colspan=\"2\">";
        url = url + "<OBJECT id='rvocx' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' width=\"320\" height=\"240\">";
        url = url + "<param name='src' value=\"" + value + "\">";
        url = url + "<param name='autostart' value=\"false\">";
        url = url + "<param name='controls' value='imagewindow'>";
        url = url + "<param name='console' value='video'>";
        url = url + "<param name='loop' value=\"true\">";
        url = url + "<EMBED src=\"" + value + "\" width=\"320\" height=\"240\"";
        url = url + "loop=\"true\" type='audio/x-pn-realaudio-plugin' controls='imagewindow' console='video' autostart=\"false\">";
        url = url + "</EMBED></OBJECT></td></tr><tr><td>";
        url = url + "<OBJECT id='rvocx' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' width=\"320\" height='30'>";
        url = url + "<param name='src' value=\"" + value + "\">";
        url = url + "<param name='autostart' value=\"false\">";
        url = url + "<param name='controls' value='ControlPanel'>";
        url = url + "<param name='console' value='video'>";
        url = url + "<EMBED src=\"" + value + "\" width=\"320\" height='30'";
        url = url + "controls='ControlPanel' type='audio/x-pn-realaudio-plugin' console='video' autostart=\"false\">";
        url = url + "</EMBED></OBJECT></td></tr><tr><td align='center'>";
        url = url + "<a href=\"" + value + "\" style='font-size: 85%;' target='_blank'>Ver en reproductor externo</a>";
		url = url + "<br /><br /><a href=\"guia.html\" style='font-size: 85%;' target='_self'>Versión texto</a>";
        url = url + "<br /><br /></td></tr><tr><td><div style=\"float:left; width:150px;\"><img src=\"" + img_logo + "\" /></div><div style=\"float:left;\"><span class=\"xsmall_text\">Si no puedes ver el video, descarga gratuitamente el <a href=\"http://mexico.real.com/player/win/?&src=ZG.mx.player\" target=\"_blank\">Real Player</a></span></div></td></tr></table>";

var code = "";

code += "<div id=\"videoWindow\">";
code += "<div><div style=\"float:left; margin:3px;\"><span class=\"title_text\">" + title + "</span></div><div style=\"float:right; margin:3px;\"><img id=\"closeVideo\" src=\"" + img_close + "\" alt=\"Cerrar la ventana\" style=\"cursor:pointer;\" /></div></div><br />";
code += "<div style=\"float:left; margin:3px;\"><br />" + url + "</div>";
code += "</div>";

var d=document;
var el=d.getElementById?d.getElementById("VideoUtility"):d.all?d.all["VideoUtility"]:d.layers["VideoUtility"];
el.innerHTML = code;



jQuery(function($) {	
 $().ajaxStop($.unblockUI);
    //$('#main').tabs();

        // cache the question element
        var question = $('#videoWindow')[0];
        $.blockUI(question, { width: '330px' });
				
        $('#closeVideo').click(function(){
				hideVideo();
				$.unblockUI();
		}); //return false;
		
});

}	


function hideVideo(){
	var d = document;
	var e=d.getElementById?d.getElementById("VideoUtility"):d.all?d.all["VideoUtility"]:d.layers["VideoUtility"];
	e.innerHTML = "";
	e.style.display = "none";
}