// This script sets the attributes for requesting ads.
google_ad_client = "ca-idg_bioitworld_js";
google_ad_output = "js";
google_max_num_ads = 5;
google_safe     = "medium";
google_feedback = "on";
google_ad_type  = "text";
google_color_line = "ff0000";

// Note: The following line is for testing purposes only.
// Remove this line to have ads targeted correctly for your pages.
//google_page_url = 'http://www.bio-itworld.com/index.html';         

// Note: The following lines are for testing purposes only.
// Uncomment them to test image ads.
google_kw = "biotechnology, bio, biotech, biotherapeutics, bioengineering, immunotechnology, dna, information technology trends, bioinformatics, drug discovery, BIO-IT, Genome,  genomics, microarray, SNPs, proteomics, gene expression, pharmacogenomics, DNA, sequencing, genetics, biochip, drug discovery, mass spectrometry, PCR, polymerase chain reaction, Bioinformatics, Proteomics, Microarrays, Drug Discovery";
google_kw_type = "exact";
google_image_size = "120x600";

// 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;

  // Display ads in a table
  document.write("<table border='0'>");

  // Print "Ads By Google" - include link to Google feedback page if available
  document.write("<tr><td align=\"center\"><font color=\"#6f6f6f\" size=\"-2\">");

  document.write("</font></td></tr>");  

  // For text ads, display each ad in turn.
  // In this example, each ad goes in a new row in the table.
  if (google_ads[0].type == 'text') {
    for(i = 0; i < google_ads.length; ++i) {
      document.write("<tr><td valign=\"top\"><font size=\"-2\">" +
        "<a href=\"" +  google_ads[i].url + "\">" +
        google_ads[i].line1 + "</a><br/>" +
        google_ads[i].line2 + "<br/>" +
        google_ads[i].line3 + "<br/>" + 
        "<a href=\"" + google_ads[i].url + "\" >" + 
        "<font color=\"green\" size=\"-2\">" +
        google_ads[i].visible_url +
        "</a></font></td></tr>"); 
    }
  }

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

  // Finish up anything that needs finishing up
  document.write ("</table>");
}
