var mate_ads_url = '';
var iframe_mate_name = "mate_ads" + Math.round(Math.random()*999);

function quoted(str) 
{
  return (str != null) ? '"' + str + '"' : '""';
}

function show_ads()
{
  document.write('<iframe '+
                 ' name="'+ iframe_mate_name +'" '+
                 ' id="'+ iframe_mate_name +'" '+
                 ' width=' + quoted(mate_ads_width) +
                 ' height=' + quoted(mate_ads_height) +
                 ' frameborder=' + quoted(mate_ads_frameborder) +
                 ' src=' + quoted(mate_ads_url) +
                 ' marginwidth="0"' +
                 ' marginheight="0"' +
                 ' vspace="0"' +
                 ' hspace="0"' +
                 ' allowtransparency="true"' +
                 ' scrolling="no">'+
                 '</iframe>');
}

function reload_ads()
{
  var mate_ads_iframe = document.getElementById(iframe_mate_name);
  if(typeof(mate_ads_iframe) != -1)
  {
    mate_ads_iframe.src = 'http://www.radiomaldonado.com/ads.js.php?'+
                          'size='+mate_ads_size+
                          '&ad_keywords='+mate_ads_keywords;
  
  }
}


show_ads();
reload_ads();