var bannerAds = new Array();

bannerAds["Windows"] = new Array(
  // Symantec
  new GenericBannerAd('http://www.anrdoezrs.net/click-2436642-10531551','http://www.tqlkg.com/image-2436642-10531551','10% Off Top Norton Products'),
  new GenericBannerAd('http://www.tkqlhce.com/click-2436642-10543447','http://www.lduhtrp.net/image-2436642-10543447','New Norton Internet Security 2010 - 468x60'),
  new QuickenAd('http://www.anrdoezrs.net/click-2436642-10515604','http://www.lduhtrp.net/image-2436642-10515604',480),
  new QuickenAd('http://www.jdoqocy.com/click-2436642-10505656','http://www.tqlkg.com/image-2436642-10505656',468),
  // Zone Alarm
  new GenericBannerAd('http://www.tkqlhce.com/click-2436642-10658824','http://www.tqlkg.com/image-2436642-10658824','ZoneAlarm Extreme Security'),
  new GenericBannerAd('http://www.kqzyfj.com/click-2436642-9925657','http://www.ftjcfx.com/image-2436642-9925657','ZoneAlarm Firewall'),
  // Blockbuster
  new GenericBannerAd('http://www.dpbolvw.net/click-2436642-10464413','http://www.awltovhc.com/image-2436642-10464413','Blockbuster Advertisement')
);

bannerAds["Mac"] = new Array(
  new GoogleBannerAd()
);

bannerAds["PDA"] = new Array(
  new GoogleBannerAd()
);


/******************************************************/

function ImgBannerAd(mediaURI, destinationURL, title) {
  this.mediaURI = mediaURI;
  this.destinationURL = destinationURL;
  this.title = title;

  this.renderHTML = function() {
    document.write("<a href=\"" + this.destinationURL + "\" target=\"_top\" >");
    document.write("<img src=\"" + this.mediaURI + "\" border=\"0\" width=\"468\" height=\"60\" alt=\"" + this.title + "\" />");
    document.write("</a>");
  }
}

function FlashBannerAd(mediaURI, destinationURL, title) {
  this.mediaURI = mediaURI;
  this.destinationURL = destinationURL;
  this.title = title;

  this.renderHTML = function() {
    document.write("<object type=\"application/x-shockwave-flash\" data=\"" + this.mediaURI + "\" width=\"468\" height=\"60\">");
    document.write("<param name=\"movie\" value=\"" + this.mediaURI + "\" />");
    document.write("</object>");
  }
}

function GoogleReferrerAd(cpaChoice) {
  this.cpaChoice = cpaChoice;

  this.renderHTML = function() {
    google_ad_client = "pub-3005764380140633";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as_rimg";
    google_cpa_choice = this.cpaChoice;
    document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
  }
}

function GoogleBannerAd() {
    this.renderHTML = function() {
	google_ad_client = "pub-3005764380140633";
	google_ad_width = 468;
	google_ad_height = 60;
	google_ad_slot = "5394014262";
	document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
    }
}

function GenericBannerAd(linkUrl,imageUrl,altText) {
    this.linkUrl = linkUrl;
    this.imageUrl = imageUrl;
    this.altText = altText;

    this.renderHTML = function() {
	document.write('<a href="' + this.linkUrl + '" target="_blank"><img src="' + this.imageUrl + '" width="468" height="60" alt="' + this.altText + '" border="0"/></a>');
    }
}

function QuickenAd(linkUrl, imageUrl, width) {
    this.linkUrl = linkUrl;
    this.imageUrl = imageUrl;
    this.width = width;

    this.renderHTML = function() {
	document.write('<a href="' + this.linkUrl + '" target="_blank"><img src="' + this.imageUrl + '" width="' + this.width + '" height="60" alt="" border="0"/></a>');
    }
}


function getBannerAd(section) {
    var displayAd = bannerAds[section][(Math.round(Math.random()*(bannerAds[section].length-1)))];
    displayAd.renderHTML();
}

/**
  new ImgBannerAd("/Windows/ads/banners/rmconvert468x60.gif", "/Windows/Music/AudioEncodersandConverters/real_rm_converter.html", "Real RM Converter"),
  new ImgBannerAd("/Windows/ads/banners/iPodVCBanner468x60.jpg", "/Windows/Utilities/Video-Editors-Utilities/movkit_ipod_video_converter.html", "Movkit iPod Video Converter"),
  new ImgBannerAd("/Windows/ads/banners/DVD2iPodBanner468x60.jpg", "/Windows/Utilities/Video-Editors-Utilities/movkit_dvd_to_ipod_ripper.html", "Movkit DVD to iPod Ripper"),
  new ImgBannerAd("/Windows/ads/banners/iPodSuiteBanner468x60.jpg", "/Windows/Utilities/Video-Editors-Utilities/movkit_ipod_suite.html", "Movkit iPod Suite"),
  new ImgBannerAd("/Windows/ads/banners/frootzbanner_468x60.jpg", "/Windows/Games/Puzzle/frootz.html", "Frootz"),
  new ImgBannerAd("/Windows/ads/banners/gemshop468x60.gif", "/Windows/Games/Puzzle/gem_shop.html", "Gem Shop"),
  new ImgBannerAd("/Windows/ads/banners/wheelracer2_468x60.jpg", "/Windows/Games/Vehicle/wheelracer.html", "WheelRacer2"),
  new ImgBannerAd("/Windows/ads/banners/crazyminesweeper.gif", "/Windows/Games/Logic/crazy_minesweeper.html", "Crazy Minesweeper"),
  new ImgBannerAd("/Windows/ads/banners/sagacdripper.gif", "/Windows/Music/AudioEncodersandConverters/saga_cd_ripper.html", "Saga CD Ripper"),
  new ImgBannerAd("/Windows/ads/banners/powercdtomp3maker.gif", "/Windows/Music/AudioEncodersandConverters/power_cd_to_mp3_maker.html", "Power CD to MP3 Maker"),
  new ImgBannerAd("/Windows/ads/banners/powermp3cutterjoiner.gif", "/Windows/Music/MP3PlayersandUtilities/power_mp3_cutter_joiner.html", "Power MP3 Cutter Joiner"),
  new ImgBannerAd("/Windows/ads/banners/powermp3wavconverter.gif", "/Windows/Music/AudioEncodersandConverters/power_mp3_wav_converter.html", "Power MP3 WAV Converter"),
**/
