
/* =================================================== *
 * TITLE  : NBuy            | banners.js               *
 * AUTHOR : Kevin Scholl    | kscholl@comcast.net      *
 * CREATED: 01 Nov 2006     | UPDATED: 01 Nov 2006     *
 * =================================================== */

/* =================================================== *
// CREATE BANNER OBJECTS AND GROUP
 * =================================================== */

function bannerObj(url,target,loc,width,height,title) {
	this.target  = target; // link target
	this.url     = url;    // link URL
	this.loc     = loc;    // path and filename for image
	this.width   = width;  // width of image
	this.height  = height; // height of image
	this.desc    = title;  // alt and title attribute for image
	}

// =================================================== *
// EDIT START HERE

var BANNERGRP = new Array(13); // adjust for however many banners you have


BANNERGRP[0] = new bannerObj("http://www.kqzyfj.com/o665xdmjdl02627922021643645","_top","http://shop.nbuy.com/feature-ads/images/banner-ad-antique-fire.gif","728","90","nBuy Advertisement");
BANNERGRP[1] = new bannerObj("http://shop.nbuy.com/feature-ads/travel-guide.php","_top","http://nbuy.com/feature-ads/images/banner-ad-travel-guide.gif","728","90","nBuy Advertisement");
BANNERGRP[2] = new bannerObj("http://buy-idshield.at/nBuy?CTY=2&amp;CID=14883","_top","http://b1.perfb.com/o1.php?ID=14883&amp;PURL=buy-idshield.at/nBuy","728","90","ID Theft");
BANNERGRP[3] = new bannerObj("http://buy-idshield.at/nBuy?CTY=2&amp;CID=12843","_top","http://b1.perfb.com/o1.php?ID=12843&amp;PURL=buy-idshield.at/nBuy","728","90","nBuy Advertisement");
BANNERGRP[4] = new bannerObj("http://www.res99.com/hotel/deals/10012630/127/nassau_hotels.html","_top","http://images.wctravel.com/wct-images/partners/images-banners/caribbean/ca728x90_scuba.jpg","728","90","nBuy Advertisement");
BANNERGRP[5] = new bannerObj("http://www.kqzyfj.com/gs79r09608OQUQVXQQOQPUSQVRY","_top","http://www.ftjcfx.com/jr75bosgmk57B7CE77576B97C8F","728","90","nBuy Advertisement");
BANNERGRP[6] = new bannerObj("http://www.anrdoezrs.net/op72tenkem13738A331326929A7?cm_mmc=CJ-_-1089770-_-1516811-_-Special%20Offers%20-%20FREE%20Gifts%20with%20Purchase%20","_top","http://www.lduhtrp.net/sq112vvzntrCEIEJLEECEDHKDKLI","728","90","nBuy Advertisement");
BANNERGRP[7] = new bannerObj("http://www.tkqlhce.com/9898p-85-7NPTPUWPPNPOTOXVQO","_top","http://www.awltovhc.com/8i115jy1qwuFHLHMOHHFHGLGPNIG","728","90","nBuy Advertisement");
BANNERGRP[8] = new bannerObj("http://www.tkqlhce.com/8d102uoxuowBDHDIKDDBDCIDCLHE","_top","http://shop.nbuy.com/feature-ads/images/banner-ad-antique-charisma.gif","728","90","nBuy Advertisement");
BANNERGRP[9] = new bannerObj("http://www.tkqlhce.com/p979lnwtnvACGCHJCCACBGDIBKB","_top","http://shop.nbuy.com/feature-ads/images/banner-ad-antique-betty.gif","728","90","nBuy Advertisement");
BANNERGRP[10] = new bannerObj("http://www.dpbolvw.net/3k116efolfn24849B44243998347","_top","http://shop.nbuy.com/feature-ads/images/banner-ad-antique-acorn.gif","728","90","nBuy Advertisement");
BANNERGRP[11] = new bannerObj("http://www.kqzyfj.com/kd116shqnhp46A6BD664659B58DE","_top","http://shop.nbuy.com/feature-ads/images/banner-ad-antique-govmint.gif","728","90","nBuy Advertisement");
BANNERGRP[12] = new bannerObj("http://www.dpbolvw.net/p3101nmvsmu9BFBGIBB9BAEDIGFB","_top","http://shop.nbuy.com/feature-ads/images/banner-ad-antique-ammint.gif","728","90","nBuy Advertisement");





// EDIT END HERE
// =================================================== */

/* =================================================== *
// GET RANDOM NUMBER 
 * =================================================== */

function getRandomNum() {
	return (Math.floor(Math.random() * BANNERGRP.length));
  }

/* =================================================== *
// DYNAMICALLY WRITE OUT CONTENTS OF BANNERMAIN 
 * =================================================== */

function displayBanner() {
	var ranNum    = getRandomNum();
	var theBanner = BANNERGRP[ranNum];

	document.write('<a ');
	document.write('href="' + theBanner.url + '" target="' + theBanner.target + '"><img ');
	document.write('src="' + theBanner.loc + '" alt="' + theBanner.desc + '" title="' + theBanner.desc + '" width="' + theBanner.width + '" height="' + theBanner.height + '" border="0">');
	document.write('</a>');
	}
