
/* =================================================== *
 * 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(82); // adjust for however many banners you have


BANNERGRP[0] = new bannerObj("http://www.nbuy.com/books/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-books.gif","468","175","Auto Showroom");
BANNERGRP[1] = new bannerObj("http://www.nbuy.com/garage/lease.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-lease.gif","468","175","Auto Leasing");
BANNERGRP[2] = new bannerObj("http://www.webreader.com/download/student/aid-map.pdf","_top","http://www.nbuy.com/ads-student/ad-time.gif","468","150","Need Extra Money");
BANNERGRP[3] = new bannerObj("http://www.nbuy.com/vacation/rentals.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-carrental.gif","468","175","Car Rental Discounts");
BANNERGRP[4] = new bannerObj("http://www.nbuy.com/vacation/lodging.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-hotrate.gif","468","175","Hot Rate Hotel Deals");
BANNERGRP[5] = new bannerObj("http://www.nbuy.com/improvement/bed-bath.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-bath.gif","468","175","Shop Bed and Bath");
BANNERGRP[6] = new bannerObj("http://saylendingcenter.com/saystudent/index-saystudent-start-app.html","_top","http://www.nbuy.com/ads-student/ad-pullmenu.gif","468","150","Loan Eligibility Amount");
BANNERGRP[7] = new bannerObj("http://www.cardoffers.com/partners/links/cards/details.asp?id=1761&tempid=535051","_top","http://www.nbuy.com/ads-student/card-chase.gif","468","150","Chase Card");
BANNERGRP[8] = new bannerObj("http://www.nbuy.com/vacation/lastminute.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-lastminute.gif","468","175","Last Minute Deals");
BANNERGRP[9] = new bannerObj("http://www.nbuy.com/vacation/cruise.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-cruise.gif","468","175","Travel Cruises");
BANNERGRP[10] = new bannerObj("http://saylendingcenter.com/saystudent/index-saystudent-start-app.html","_top","http://www.nbuy.com/ads-student/ad-pullmenu.gif","468","150","Loan Eligibility Amount");
BANNERGRP[11] = new bannerObj("http://www.saystudent.com/private-student-loans.html","_top","http://www.nbuy.com/ads-student/ad-extra.gif","468","150","No Time to Spare?");
BANNERGRP[12] = new bannerObj("http://www.nbuy.com/party/partykit.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-partykits.gif","468","175","Party Planning Kits");
BANNERGRP[13] = new bannerObj("http://www.nbuy.com/garage/care.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-autocare.gif","468","175","Auto Care Guides");
BANNERGRP[14] = new bannerObj("http://www.nbuy.com/improvement/garden.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-garden.gif","468","175","Shop Garden and Landscaping");
BANNERGRP[15] = new bannerObj("http://www.nbuy.com/vacation/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-travel.gif","468","175","Discount Travel Center");
BANNERGRP[16] = new bannerObj("http://www.nbuy.com/wiredhome/home-theater.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-homewire.gif","468","175","Home Theater Guide");
BANNERGRP[17] = new bannerObj("http://www.nbuy.com/wiredhome/video.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-television.gif","468","175","Home Televisions");
BANNERGRP[18] = new bannerObj("http://www.nbuy.com/bargain/bargain-wear.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-tshirts.gif","468","175","Design Your Own T-Shirt");
BANNERGRP[19] = new bannerObj("http://saylendingcenter.com/saystudent/index-saystudent-start-app.html","_top","http://www.nbuy.com/ads-student/ad-pullmenu2.gif","468","150","Loan Eligibility Amount");
BANNERGRP[20] = new bannerObj("http://www.nbuy.com/funhouse/toys.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-toys.gif","468","175","Shop Our Toy Funhouse");
BANNERGRP[21] = new bannerObj("http://saylendingcenter.com/saystudent/index-saystudent-start-app.html","_top","http://www.nbuy.com/ads-student/ad-pullmenu.gif","468","150","Loan Eligibility Amount");
BANNERGRP[22] = new bannerObj("http://www.nbuy.com/student","_top","http://www.nbuy.com/ads-student/ad-shop.gif","468","150","Shopping for College");
BANNERGRP[23] = new bannerObj("http://www.nbuy.com/improvement/appliances.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-appliance.gif","468","175","Shop Appliances");
BANNERGRP[24] = new bannerObj("http://www.webreader.com/download/student/college-budget.xls","_top","http://www.nbuy.com/ads-student/ad-budget.gif","468","150","College Budgeting Worksheet");
BANNERGRP[25] = new bannerObj("http://www.nbuy.com/environment/pharmacies.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-pharmacy.gif","468","175","Shop Our Online Pharmacy Center");
BANNERGRP[26] = new bannerObj("http://www.nbuy.com/improvement/home-decor.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-decor.gif","468","175","Shop Home Decor");
BANNERGRP[27] = new bannerObj("http://www.nbuy.com/environment/weightloss.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-weightloss.gif","468","175","Weight Loss Programs");
BANNERGRP[28] = new bannerObj("http://saylendingcenter.com/saystudent/index-saystudent-start-app.html","_top","http://www.nbuy.com/ads-student/ad-pullmenu.gif","468","150","Loan Eligibility Amount");
BANNERGRP[29] = new bannerObj("http://www.nbuy.com/closet/casualwear.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-clothes.gif","468","175","Hot Fashions");
BANNERGRP[30] = new bannerObj("http://www.nbuy.com/wiredhome/computers.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-pc.gif","468","175","Computer Store");
BANNERGRP[31] = new bannerObj("http://www.nBuy.com","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy.gif","468","175","Shop the nBuy Shopping Center");
BANNERGRP[32] = new bannerObj("http://www.nbuy.com/student/schoolsupplies.php","_top","http://www.nbuy.com/ads-student/ad-supplies.gif","468","150","College Supplies");
BANNERGRP[33] = new bannerObj("http://saylendingcenter.com/saystudent/index-saystudent-start-app.html","_top","http://www.nbuy.com/ads-student/ad-pullmenu.gif","468","150","Loan Eligibility Amount");
BANNERGRP[34] = new bannerObj("http://www.nbuy.com/improvement/home-projects.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-projects.gif","468","175","Shop Home Projects");
BANNERGRP[35] = new bannerObj("http://www.nBuy.com/bargain/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-bargain.gif","468","175","Basement Bargain Center");
BANNERGRP[36] = new bannerObj("http://www.saystudent.com/private-student-loans.html","_top","http://www.nbuy.com/ads-student/ad-enough.gif","468","150","College Costs Keep Rising");
BANNERGRP[37] = new bannerObj("http://www.nbuy.com/party/partykit.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-partykits.gif","468","175","Party Planning Kits");
BANNERGRP[38] = new bannerObj("http://www.sayrelocate.com/index-menu-tools.html","_top","http://www.sayplanning.com/ads-sayeducate/ad-moving.gif","468","175","Moving Checklist and Budget Plan");
BANNERGRP[39] = new bannerObj("http://www.nBuy.com/garage/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-showroom.gif","468","175","Auto Showroom");
BANNERGRP[40] = new bannerObj("http://www.nbuy.com/health","_top","http://www.sayplanning.com/ads-sayeducate/ad-health.gif","468","175","For Your Good Health Guide");
BANNERGRP[41] = new bannerObj("http://www.nbuy.com/improvement/home-living.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-living.gif","468","175","Shop Living Furniture");
BANNERGRP[42] = new bannerObj("http://www.webreader.com/download/college-shopping.pdf","_top","http://www.nbuy.com/ads-student/ad-shoplist.gif","468","150","College Shopping List");
BANNERGRP[43] = new bannerObj("http://www.nbuy.com/finances","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuyfinance.gif","468","175","Get a Financial Checkup");
BANNERGRP[44] = new bannerObj("http://www.nbuy.com/garage/ebaymotors.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-ebaymotors.gif","468","175","eBay Motors");
BANNERGRP[45] = new bannerObj("http://www.nbuy.com/jobcenter/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-jobdepot.gif","468","175","Job Depot Center");
BANNERGRP[46] = new bannerObj("http://www.nbuy.com/environment/exercise.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-exercise.gif","468","175","Exercise Health");
BANNERGRP[47] = new bannerObj("http://www.nbuy.com/improvement/kitchen.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-kitchen.gif","468","175","Shop Kitchen");
BANNERGRP[48] = new bannerObj("http://www.nbuy.com/garage/care.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-autocare.gif","468","175","Auto Care Guides");
BANNERGRP[49] = new bannerObj("http://www.nbuy.com/improvement/ebay.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-ebay.gif","468","175","Shop eBay Home");
BANNERGRP[50] = new bannerObj("http://www.nbuy.com/party/partykit.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-partykits.gif","468","175","Party Planning Kits");
BANNERGRP[51] = new bannerObj("http://www.nbuy.com/student/dorm.php","_top","http://www.nbuy.com/ads-student/ad-dorm.gif","468","150","Dorm Shopping");
BANNERGRP[52] = new bannerObj("http://www.nbuy.com/closet/formalwear.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-formal.gif","468","175","Formal Wear Needs");
BANNERGRP[53] = new bannerObj("http://www.nbuy.com/closet/seasonalwear.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-function.gif","468","175","Functional Wear Needs");
BANNERGRP[54] = new bannerObj("http://www.saystudent.com/private-student-loans.html","_top","http://www.nbuy.com/ads-student/ad-45.gif","468","150","Get up to $45,000 to pay for college");
BANNERGRP[55] = new bannerObj("http://www.nbuy.com/closet/shoes.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-shoes.gif","468","175","Discount Shoe Center");
BANNERGRP[56] = new bannerObj("http://www.nbuy.com/bargain/coupons.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-coupons.gif","468","175","Shopping Online Coupons");
BANNERGRP[57] = new bannerObj("http://www.nbuy.com/bargain/earn-rebates.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-rebates.gif","468","175","Rebate Programs");
BANNERGRP[58] = new bannerObj("http://www.nbuy.com/funhouse/classic-toys.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-classictoys.gif","468","175","Classic Toys");
BANNERGRP[59] = new bannerObj("http://saylendingcenter.com/saystudent/index-saystudent-start-app.html","_top","http://www.nbuy.com/ads-student/ad-pullmenu2.gif","468","150","Loan Eligibility Amount");
BANNERGRP[60] = new bannerObj("http://www.nbuy.com/funhouse/electronic-games.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-games.gif","468","175","Electronic Games");
BANNERGRP[61] = new bannerObj("http://www.nbuy.com/funhouse/game-room.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-gameroom.gif","468","175","Game Room");
BANNERGRP[62] = new bannerObj("http://www.nbuy.com/student/techgadgets.php","_top","http://www.nbuy.com/ads-student/ad-pc.gif","468","150","PC Shopping");
BANNERGRP[63] = new bannerObj("http://www.nbuy.com/funhouse/bikes.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-trike.gif","468","175","trikes, bikes");
BANNERGRP[64] = new bannerObj("http://www.nbuy.com/funhouse/backyard-fun.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-backyard.gif","468","175","Backyard Fun");
BANNERGRP[65] = new bannerObj("http://www.nbuy.com/party/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-party.gif","468","175","Party Planning");
BANNERGRP[66] = new bannerObj("http://www.nbuy.com/school/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-schoolroom.gif","468","175","School Room");
BANNERGRP[67] = new bannerObj("http://www.nbuy.com/party/partykit.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-partykits.gif","468","175","Party Planning Kits");
BANNERGRP[68] = new bannerObj("http://saylendingcenter.com/saystudent/index-saystudent-start-app.html","_top","http://www.nbuy.com/ads-student/ad-pullmenu.gif","468","150","Loan Eligibility Amount");
BANNERGRP[69] = new bannerObj("http://www.nbuy.com/school/language.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-language.gif","468","175","Learn a Language");
BANNERGRP[70] = new bannerObj("http://www.nbuy.com/gifts/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-gift.gif","468","175","Perfect Gift");
BANNERGRP[71] = new bannerObj("http://www.nbuy.com/wiredhome/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-tech.gif","468","175","Home Tech Needs");
BANNERGRP[72] = new bannerObj("http://www.nbuy.com/food/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-food.gif","468","175","Shop Food Online");
BANNERGRP[73] = new bannerObj("http://saylendingcenter.com/saystudent/index-saystudent-start-app.html","_top","http://www.nbuy.com/ads-student/ad-pullmenu2.gif","468","150","Loan Eligibility Amount");
BANNERGRP[74] = new bannerObj("http://saylendingcenter.com/saystudent/index-saystudent-start-app.html","_top","http://www.nbuy.com/ads-student/ad-pullmenu2.gif","468","150","Loan Eligibility Amount");
BANNERGRP[75] = new bannerObj("http://www.nbuy.com/success/success.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-success.gif","468","175","Building Success");
BANNERGRP[76] = new bannerObj("http://www.nbuy.com/antiques/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-collect.gif","468","175","Collections and Antiques");
BANNERGRP[77] = new bannerObj("http://www.nbuy.com/party/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-party.gif","468","175","Party Planning");
BANNERGRP[78] = new bannerObj("http://saylendingcenter.com/saystudent/index-saystudent-start-app.html","_top","http://www.nbuy.com/ads-student/ad-pullmenu.gif","468","150","Loan Eligibility Amount");
BANNERGRP[79] = new bannerObj("http://www.nbuy.com/finances/index.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-moneyguide.gif","468","175","Money Guide");
BANNERGRP[80] = new bannerObj("http://www.nbuy.com/student/transportation.php","_top","http://www.nbuy.com/ads-student/ad-trans.gif","468","150","Transportation for College");
BANNERGRP[81] = new bannerObj("http://www.nbuy.com/party/partykit.php","_top","http://www.sayplanning.com/ads-sayeducate/ad-nbuy-partykits.gif","468","175","Party Planning Kits");




// 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>');
	}