function oes_google_ad(num, pos, css, channel, client)
{
	google_max_num_ads = num!=''?num:3; /* numero de ads, 3 por defecto */
	google_ad_pos = pos!=''?pos:'h'; /* valores posibles: h --> horizontal; v --> vertical. por defecto h */
	google_ad_css = css; /* hoja de estilos */
	google_ad_channel = channel; /* canal */
	google_ad_client = client; // substitute your client_id
	
	var wr='<SCR'+'IPT SRC="http://pagead2.googlesyndication.com/pagead/show_ads.js"></SCR'+'IPT>';
	document.write(wr);
}

function google_ad_request_done(google_ads) {
var s = '';
var i;

if (google_ads.length == 0){
return;
}

var fc = (google_ad_pos == 'h' ) ?  true : false; /*Variable que define el numero de columnas*/

if (google_ads[0].type == "text") {

	if(google_ad_css) s += '<link rel="stylesheet" href="' + google_ad_css + '" type="text/css">';

	s +='<table class="adwords" cellpadding="0" cellspacing="0">';
	
	/*Coloca cabecera si es vertical de una columna*/
	if( !fc) s += '<tr><td class="cab">Anuncios Google</td></tr>';
		
	s+= '<tr>';
	
	for(i=0; i < google_ads.length; ++i){

		s += '<td><a href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'ir a ' +
		google_ads[i].visible_url + '\';return true"  class="lnk"><span  class="ttbdy">' + '<b>' + google_ads[i].line1 + '</b></span><br><span  class="txbdy">' +	google_ads[i].line2 + google_ads[i].line3 + '</span><br><span class="lnkrel">' +	google_ads[i].visible_url + '</span></a></td>';

		if(!fc) s+= '</tr><tr>'; /*Cierra y abre fila si es vertical de una columna*/
		
	}/*Fin FOR*/
	
	s += '</tr>';	
	/*Coloca pie si es de mas de una columna*/
	if(fc) 	s += '<tr><td class="pie" colspan="' + google_ads.length + '">Anuncios Google</td></tr>';
			
	s += '</table>';
}
document.write(s);
return;
}

google_image_size = '';
google_ad_output = 'js';
google_ad_type = 'text';
google_language = 'es';
google_encoding = 'utf8';
google_safe = 'high';
google_adtest = 'off';
google_hints = '';
google_ad_section = 'default';
// -->
