var urlArray = new Array(); //for URL's, increase size as necessary
var banArray = new Array(); //for banners, increase size as necessary
var titleArray = new Array(); //for image titles

j = 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1079.jpg";
urlArray[j] = "1079.htm";
titleArray[j] = "Messenger Groove Pack";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1086.jpg";
urlArray[j] = "1086.htm";
titleArray[j] = "D'Italia Note Jotter";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/12177.jpg";
urlArray[j] = "12177.htm";
titleArray[j] = "Grocery Tote";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1227.jpg";
urlArray[j] = "1227.htm";
titleArray[j] = "Nurse's Fanny Pack";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1351.jpg";
urlArray[j] = "1351.htm";
titleArray[j] = "Spa Tote-Pack";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1372.jpg";
urlArray[j] = "1372.htm";
titleArray[j] = "X-tra Light Garment Bag";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/14124.jpg";
urlArray[j] = "14124.htm";
titleArray[j] = "Carry All";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1520.jpg";
urlArray[j] = "1520.htm";
titleArray[j] = "Picture Your Trips";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1602.jpg";
urlArray[j] = "1602.htm";
titleArray[j] = "Waist Apron";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1603.jpg";
urlArray[j] = "1603.htm";
titleArray[j] = "Bib Apron";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/16115.jpg";
urlArray[j] = "16115.htm";
titleArray[j] = "Urban Shoulder Bag";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1748.jpg";
urlArray[j] = "1748.htm";
titleArray[j] = "Platinum Passport Wallet";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1764.jpg";
urlArray[j] = "1764.htm";
titleArray[j] = "Mesh Drawstring / Backpack";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1769.jpg";
urlArray[j] = "1769.htm";
titleArray[j] = "Micro Mesh Shopper";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1874.jpg";
urlArray[j] = "1874.htm";
titleArray[j] = "Platinum Jr. Padfolio";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1880.jpg";
urlArray[j] = "1880.htm";
titleArray[j] = "Memories Padfolio";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1881.jpg";
urlArray[j] = "1881.htm";
titleArray[j] = "D'Italia Doctor's Orders";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/1885.jpg";
urlArray[j] = "1885.htm";
titleArray[j] = "Wheeled Duffler";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/2229.jpg";
urlArray[j] = "2229.htm";
titleArray[j] = "Mini-Pouch";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/2326.jpg";
urlArray[j] = "2326.htm";
titleArray[j] = "Supermarket Shopper";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/577.jpg";
urlArray[j] = "577.htm";
titleArray[j] = "Computer Sleeve";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/623.jpg";
urlArray[j] = "623.htm";
titleArray[j] = "D'Italia  Luggage Tag";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/803.jpg";
urlArray[j] = "803.htm";
titleArray[j] = "Tradeshow Tote";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/804.jpg";
urlArray[j] = "804.htm";
titleArray[j] = "X-Tra Light Shopper";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/805.jpg";
urlArray[j] = "805.htm";
titleArray[j] = "2-Tone Zip Tote";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/809.jpg";
urlArray[j] = "809.htm";
titleArray[j] = "Zipper 3-Ring Binder";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/817.jpg";
urlArray[j] = "817.htm";
titleArray[j] = "Drawstring / Sling Backpack";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/951.jpg";
urlArray[j] = "951.htm";
titleArray[j] = "Folio On The Go";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/961.jpg";
urlArray[j] = "961.htm";
titleArray[j] = "D'Italia Toiletry Bag";

j = j + 1;

banArray[j] = "http://www.rbag.com/images/JPG-120w/962.jpg";
urlArray[j] = "962.htm";
titleArray[j] = "D'Italia PDA Case";


function changeBanner() //banner changer function
{

  var imagenumber = banArray.length - 1;
  var randomnumber = Math.random() ;
  var counter = Math.round( (imagenumber-1) * randomnumber) + 1; //add one so as not to have 0

  url = urlArray[counter]; //sets a new URL to the banner
  document.images.banner1.src = banArray[counter]
  //document.images.banner1.title = "whatever"
  document.images.banner1.title = titleArray[counter]

}

//calls the changeBanner() function every specified amount of seconds :: change the timer as necessary (minutes * 60000) or (seconds * 1000)
var timer = window.setInterval("changeBanner()", 1000);

//document.write('<a href=# onClick=location.href(url);><img src=http://www.rbag.com/images/spacer.gif border=0 name=banner1></a>')
document.write('<a href=specials.htm><img src=http://www.rbag.com/images/spacer.gif border=0 name=banner1></a>')

changeBanner()


