
/* =================================================== *
 * 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(18); // adjust for however many banners you have

BANNERGRP[0] = new bannerObj("http://www.anrdoezrs.net/kj122js0ys-FHLHMOHHFHGKJNJOK","_top","http://shop.nbuy.com/feature-ads/images/banner-ad-science-wiley.gif","728","90","nBuy Advertisement");
BANNERGRP[1] = new bannerObj("http://www.jdoqocy.com/n5101biroiq57B7CE77576B6EAAA","_top","http://shop.nbuy.com/feature-ads/images/banner-ad-science-wbook.gif","728","90","nBuy Advertisement");
BANNERGRP[2] = new bannerObj("http://www.kqzyfj.com/ag106zw41w3JLPLQSLLJLKPRMKSM","_top","http://www.awltovhc.com/8k101h48x20MOSOTVOOMONSUPNVP","728","90","nBuy Advertisement");
BANNERGRP[3] = new bannerObj("http://www.anrdoezrs.net/k798ft1zt0GIMINPIIGIHLLNMHI","_top","http://shop.nbuy.com/feature-ads/images/banner-ad-science-dummy.gif","728","90","nBuy Advertisement");
BANNERGRP[4] = new bannerObj("http://www.kqzyfj.com/ds70zw41w3JLPLQSLLJLKOOQOTS","_top","http://shop.nbuy.com/feature-ads/images/banner-ad-science-cliff.gif","728","90","nBuy Advertisement");
BANNERGRP[5] = new bannerObj("http://www.jdoqocy.com/96117lnwtnvACGCHJCCACBDJBKEH","_top","http://shop.nbuy.com/feature-ads/images/banner-ad-science-hobby.gif","728","90","nBuy Advertisement");
BANNERGRP[6] = new bannerObj("http://www.kqzyfj.com/38102ft1zt0GIMINPIIGIHLJOOHQ","_top","http://www.lduhtrp.net/eg108g04tzxIKOKPRKKIKJNLQQJS","728","90","nBuy Advertisement");
BANNERGRP[7] = new bannerObj("http://www.kqzyfj.com/1n104gv30v2IKOKPRKKIKJOPLRRJ","_top","http://www.tqlkg.com/7081kpthnl68C8DF88687CD9FF7","728","90","nBuy Advertisement");
BANNERGRP[8] = new bannerObj("http://www.tkqlhce.com/3074ox52x4KMQMRTMMKMLQUUUSM","_top","http://www.awltovhc.com/51106bosgmk57B7CE77576BFFFD7","728","90","nBuy Advertisement");
BANNERGRP[9] = new bannerObj("http://www.dpbolvw.net/kt72lnwtnvACGCHJCCACBIDEKCE","_top","http://www.lduhtrp.net/ct70p59y31NPTPUWPPNPOVQRXPR","728","90","nBuy Advertisement");
BANNERGRP[10] = new bannerObj("http://www.tkqlhce.com/eo101vpyvpxCEIEJLEECEDIILKML","_top","http://www.awltovhc.com/h9115uuymsqBDHDIKDDBDCHHKJLK","728","90","nBuy Advertisement");
BANNERGRP[11] = new bannerObj("http://www.tkqlhce.com/e1100vpyvpxCEIEJLEECEDIIJKFI","_top","http://www.awltovhc.com/3566c37w1-LNRNSUNNLNMRRSTOR","728","90","nBuy Advertisement");
BANNERGRP[12] = new bannerObj("http://www.kqzyfj.com/l8122dlurlt8AEAFHAA8A9EEG9AI","_top","http://www.awltovhc.com/2f81ax0pvtEGKGLNGGEGFKKMFGO","728","90","nBuy Advertisement");
BANNERGRP[13] = new bannerObj("http://www.tkqlhce.com/d8102ft1zt0GIMINPIIGIHMKQJQI","_top","http://www.lduhtrp.net/lq118wquiom79D9EG99798DBHAH9","728","90","nBuy Advertisement");
BANNERGRP[14] = 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[15] = 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[16] = 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[17] = 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");




// 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>');
	}
