	function ss(w) {
		window.status = w;
		return true;
	}
	function cs(){
		window.status='';
	}
	function ca(dir) {
	  window.open(dir,'','');	  
	 }	
	// This function displays the ad results.
    // It must be defined above the script that calls show_ads.js
    // to guarantee that it is defined when show_ads.js makes the call-back.

    function google_ad_request_done(google_ads) {
        // Proceed only if we have ads to display!
        if (google_ads.length < 1 ) {
            return;
        }
        var texto_google = "";
		
        // Display ads in a table
        texto_google = texto_google  + "<div class='google' id='google' align='center' style='width:100%; hight:40px float:left;'>";
        texto_google = texto_google  + "<table width='100%' border='0' cellpadding='0' cellspacing='0'>";

        // Print "Ads By Google" -- include link to Google feedback page if available
   /*     texto_google = texto_google  + "<tr><td valign='top' align='rigth' class='adg' colspan='2'>";
        if (google_info.feedback_url) {
            texto_google = texto_google  + "<a target='_new' href='" + google_info.feedback_url + "' class='copy_right'></a>";
        } else {
            texto_google = texto_google  + "Ads by Google";
        }
        texto_google = texto_google  + "</td></tr><tr>";
*/
        for(i = 0; i < google_ads.length; ++i) {				
            if (google_ads[i].type == 'text') {  
                
                    texto_google = texto_google  + "<td style='cursor:pointer; cursor:hand' onFocus=\"ss('"+  google_ads[i].visible_url+ "')\" onMouseOver=\"ss('"+  google_ads[i].visible_url+ "')\" onMouseOut=\"cs()\" onClick=\"ca('"+  google_ads[i].url.replace(/client\=pub\-/, "client=ca-pub-") + "')\" >" +
                "<font class='ppal'/>" + google_ads[i].line1 + "</font><br>" +
                    google_ads[i].line2 + " " + google_ads[i].line3 + "<br>" +
                    "<font class='enlace'/>" +                
                    google_ads[i].visible_url +
                    "</font></td>";

            } else if (google_ads[i].type == 'image') {
                // For an image ad, display the image; there will be only one .
                texto_google = texto_google  + "<tr><td align=\"center\">" +
                "<a target='_new' href='" + google_ads[i].url + "\">" +
                "<img src='" + google_ads[i].image_url +
                "' height='" + google_ads[i].height +
                "' width='" + google_ads[i].width +
                "' border='0'></a></td></tr>";
            }
        }
        texto_google = texto_google  +"</tr></table>";
        texto_google = texto_google  +"</div>";
        document.write(texto_google);
    }

    function google_ad_set_params(lang, cant, sitio) {
        if (sitio == undefined) {
            google_sitio = 'home';
        } else {
            google_sitio = sitio;
        }
        
        google_adtest = 'off'; // para pruebas
        // google_ad_client = "pub-9498798600460979";
		google_ad_client = "pub-9139858272174552";
		google_ad_channel = lang;
		
        google_ad_output = "js";
        if (cant > 0) { google_max_num_ads = cant; } 
        else { google_max_num_ads = 4; }
        
        // google_encoding = 'sjis'
        // if (lang == "es")      { google_language = "es"; google_encoding = "utf8"; google_ad_channel ="1606830551"; } 
        // else if (lang == "de") { google_language = "de"; google_encoding = "utf8"; google_ad_channel ="4815398017"; } 
        // else if (lang == "fr") { google_language = "fr"; google_encoding = "utf8"; google_ad_channel ="4755396255"; } 
        // else if (lang == "it") { google_language = "it"; google_encoding = "utf8"; google_ad_channel ="4606265826"; }
        // else if (lang == "nl") { google_language = "nl"; google_encoding = "utf8"; google_ad_channel ="7374605741"; }
        // else if (lang == "ja") { google_language = "ja"; google_encoding = 'utf8'; google_ad_channel ="2553084830"; }
        // else if (lang == "pt") { google_language = "pt"; google_encoding = "utf8"; google_ad_channel ="3932831397"; }
        // else                   { google_language = "en"; google_encoding = "utf8"; google_ad_channel ="1251781548"; }
		
        google_language = "de"; google_encoding = "utf8"; google_ad_channel ="1430000960";
        

        google_safe     = "medium";
        google_feedback = "on";
        google_ad_type  = "text";
        google_color_line = "ff0000";
		
		google_ad_width = 700;
        google_ad_height = 60;
        google_ad_format = "468x60_as";
        google_ad_type = "text_image";
		
		google_page_url = document.location;
    }
    

