	 google_ad_client = 'pub-5735904389221983'; // substitute your client_id
	 google_ad_channel = '8656375849';
	 google_ad_output = 'js';
	 google_max_num_ads = '3';
	 google_language = 'es';
	 google_encoding = 'latin1';
	 google_safe = 'high';
	 google_hints = '';
	 google_kw = '';
	 google_kw_type = '';
	 google_contents = '';
	 google_ad_section = 'default';
	 
	 // E-planning

	var eplDoc = document; 
	var eplLL = false;
	var eS1 = sitioEplanning1;
	var eplArgs = {sV:sitioEplanning2,vV:"4",sI:"39aa",sec:seccionEplanning,eIs:arrayPosiciones,kVs:kwsEpl};

	function eplCheckStart() {
		if (document.epl) {
			var e = document.epl;
			if (e.eplReady()) {
				return true;
			} else {
				e.eplInit(eplArgs);
				return e.eplReady();		
			}
		} else {
			if (eplLL) return false;
			if (!document.body) return false; var eS2; var dc = document.cookie; var ci = dc.indexOf("EPLSERVER=");
			if (ci != -1) {
				ci += 10; var ce = dc.indexOf(';', ci);
				if (ce == -1) ce = dc.length;
				eS2 = dc.substring(ci, ce);
			}
			
			var eIF = document.createElement('IFRAME');
			eIF.src = 'about:blank'; eIF.id = 'epl4iframe'; eIF.name = 'epl4iframe';
			eIF.width=0; eIF.height=0; eIF.style.width='0px'; eIF.style.height='0px';
			eIF.style.display='none'; document.body.appendChild(eIF);
			var eIFD = eIF.contentDocument ? eIF.contentDocument : eIF.document;
			eIFD.open();eIFD.write('<html><head><title>e-planning</title><scri'+'pt>inIframe=true</scri'+'pt></head><body></body><html>');eIFD.close();
			var s = eIFD.createElement('SCRIPT'); s.src = 'http://'+ (eS2?eS2:eS1) +'/layers/epl-41.js';
			eIFD.body.appendChild(s);
			if (!eS2) {
				var ss = eIFD.createElement('SCRIPT');
				ss.src = sitioEplanning3;
				eIFD.body.appendChild(ss);
			}
			eplLL = true; return false;
		}
	}
	eplCheckStart();
	function eplSetAd(eID) {
		if (eplCheckStart()) {
			document.epl.showSpace(eID);
		} else {
			var efu = 'eplSetAd("'+eID+'");';
			setTimeout(efu, 250);	
		}
	}

	function eplAD4M(eID) {
		document.write('<div id="eplAdDiv'+eID+'"></div>');
		eplSetAd(eID);
	}

	function eplAD(eID, ol)
	{
		eplAD4M(eID);
	}

	// Fin E-planning

	 function google_ad_request_done(google_ads) {
    /*
     * This function is required and is used to display
     * the ads that are returned from the JavaScript
     * request. You should modify the document.write
     * commands so that the HTML they write out fits
     * with your desired ad layout.
     */
    var s = '';
    var i;

    /*
     * Verify that there are actually ads to display.
     */
    if (google_ads.length == 0) {
      return;
    }
    if (google_ads[0].type="text") {
        s += '<div class="google"><div class="anuncios floatFix"><div class="izquierda">Ads by Google</div><div class="derecha"><a href="https://adwords.google.com/select/Login?hl=es">Anuncie aquí</a></div></div><div class="floatFix" style="padding:10px 10px 0 10px;">';
            /*
             * For text ads, append each ad to the string.
             */
            for(i=0; i < google_ads.length && i < 3; ++i) {
                s += '<div class="link"><a href="' + google_ads[i].url + '" ' +
					'target="_new" onmouseout="window.status=\'\'" ' +
					'onmouseover="window.status=\'go to ' +
					google_ads[i].visible_url + '\'"><span class="title">'+ google_ads[i].line1 +
					'</span><br /><span class="gris">' + google_ads[i].line2 +' '+ google_ads[i].line3 + 
					'</span><br /><span class="url">'+
					google_ads[i].visible_url +
					'</span></a></div>';
            }
		s += '</div></div>';

		var adsenseTercera = YAHOO.util.Dom.get('adsenseTercera');
		adsenseTercera.innerHTML = s;

		s = "";	
        s += '<div class="google"><div class="anuncios floatFix"><div class="izquierda">Ads by Google</div><div class="derecha"><a href="https://adwords.google.com/select/Login?hl=es">Anuncie aquí</a></div></div><div class="floatFix" style="padding:10px 10px 0 10px;">';
            /*
             * For text ads, append each ad to the string.
             */
            for(i=3; i < google_ads.length; ++i) {
                s += '<div class="link"><a href="' + google_ads[i].url + '" ' +
					'target="_new" onmouseout="window.status=\'\'" ' +
					'onmouseover="window.status=\'go to ' +
					google_ads[i].visible_url + '\'"><span class="title">'+ google_ads[i].line1 +
					'</span><br /><span class="gris">' + google_ads[i].line2 +' '+ google_ads[i].line3 + 
					'</span><br /><span class="url">'+
					google_ads[i].visible_url +
					'</span></a></div>';
            }
		s += '</div></div>';
		var adsenseBottom = YAHOO.util.Dom.get('adsenseBottom');

		if(adsenseBottom != null)
		adsenseBottom.innerHTML = s;

	}

//    document.write(s);
    return;
 }
 
