<!--
// compruebo si es ie o netscape
var ie = (document.all)?1:0;
var n = (document.layers)?1:0;


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function mOvr(src,clrOver) {
	if (!src.contains(event.fromElement)) {
		src.style.cursor = 'default';
		src.bgColor = clrOver;
	}
}
function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
		src.style.cursor = 'default';
		src.bgColor = clrIn;
	}
}
function mOvrVotar(src) {
	if (!src.contains(event.fromElement))
		src.style.cursor = 'hand';
}
function mOvrCate(src) {
	if (!src.contains(event.fromElement)) {
		src.style.cursor = 'hand';
	}
}
function mOutCate(src,clrIn) {
	if (!src.contains(event.toElement)) {
		src.bgColor = clrIn;
	}
}


function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


var NS4=false;
 
 if( eval("this.netscape") && parseInt(navigator.appVersion) < 5)
      NS4=true;
      
 function mypopup(args) {
     if (NS4)
	window.open("http://chat.radiocaracol.com.co/besame/frameset.html" + args, "jschat_popup", 'width=760,height=500,status=no,scrollbars=no,titlebar=no,menubar=no,toolbar=no,resizable=no');
     else
	window.open("http://chat.radiocaracol.com.co/besame/frameset.html" + args, "jschat_popup", 'width=760,height=500,status=no,scrollbars=no,titlebar=no,menubar=no,toolbar=no,resizable=yes');
   }	   
   
  function myopen(frm) {
      var args="?nick="+escape(frm.nick.value)+"&chan="+escape(frm.chan.value);
      mypopup(args);
      return false;
   }

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function opcionChange (form)
	{ var myindex=form.opcion.selectedIndex
	if (form.opcion.options[myindex].value)
	{ window.location.href='rd.asp?url='+form.opcion.options[myindex].value;}}

function lstdiasChange (form)
	{ var myindex=form.opcion.selectedIndex
	if (form.opcion.options[myindex].value)
	{ window.location.href='/edicion.asp?input_FechaConsulta='+form.opcion.options[myindex].value;}}

function oirenvivo(){
	window.open("/envivo.htm", "jsvivo", 'width=500,height=500,status=no,scrollbars=no,titlebar=no,menubar=no,toolbar=no,resizable=no');	
}

function oirarchi(id){
	window.open("/realarchi2.asp?id="+id, "jsarchi", 'width=520,height=500,status=no,scrollbars=yes,titlebar=no,menubar=no,toolbar=no,resizable=no');	
}

function oirpro(cad){
	window.open(cad, "jsarchi", 'width=520,height=500,status=no,scrollbars=yes,titlebar=no,menubar=no,toolbar=no,resizable=no');	
}
function legal(){
	window.open("/copy.htm", "jslega", 'width=620,height=220,status=no,scrollbars=no,titlebar=no,menubar=no,toolbar=no,resizable=no');	
}

function sncorreo(asunto,mail){

	window.location.href='mail.asp?asunto='+escape(asunto)+'&mail='+escape(mail);
	      return false;
}

function verf(id,cat){
window.name='fdia'; 
window.open('galeriades.asp?C='+cat+'&id='+id,'Besame','width=420,height=380,toolbar=no,menubar=no,resizable=no,location=no,directories=no,status=no,scrollbars=yes,copyhistory=no');
}




function audio() {
  window.open('/envivo.htm','_re','width=470,height=180');
}

function Envivo (form)
	{ var myindex=form.lista.selectedIndex
	if (form.lista.options[myindex].value)
	{ window.location.href=form.lista.options[myindex].value;}}

function letra(id) {
	location.href='letras.asp?id='+id;}

function openchat()
{
	window.open("/chat.asp", "jschat", 'width=200,height=100,status=no,scrollbars=no,titlebar=no,menubar=no,toolbar=no,resizable=no');	
	}
//-->

