var myBanner1 = new BannerRotator();
myBanner1.add('http://www.winstormdp.com/CCLships/index.php?client=CCLships&projectName=main&emercialID=80','http://www.cruisebrothers.com/images/home/Carnival-boston-500.jpg');
myBanner1.add('http://my.cruisebrothers.com/travel/cruise/search.rvlx?search_type=cruise_search&DestinationID=78&cruise_month=6&cruise_year=2012&cruise_duration=3-6&VendorID%5B%5D=1&portid=333&PIN=HomPic','http://www.cruisebrothers.com/images/home/wb-carnival-canada2012.jpg');
myBanner1.add('http://my.cruisebrothers.com/travel/cruise/search.rvlx?DestinationID=&cruise_month=9&cruise_year=2012&cruise_duration=6-14&VendorID%5B%5D=2&PIN=HomPic','http://www.cruisebrothers.com/images/home/WB-CelebrityGenericWithLogo.jpg');
myBanner1.add('http://my.cruisebrothers.com/travel/cruise/search.rvlx?DestinationID=&cruise_month=10&cruise_year=2012&cruise_duration=7-20&VendorID%5B%5D=17&PIN=HomPIc','http://www.cruisebrothers.com/images/home/CunardSale.jpg');
myBanner1.add('http://my.cruisebrothers.com/travel/cruise/search.rvlx?DestinationID=2&cruise_month=0&cruise_year=2012&cruise_duration=7-9&VendorID%5B%5D=6&portid=352&PIN=HomePic','http://www.cruisebrothers.com/images/home/PrincessAlaska.jpg');
myBanner1.add('http://my.cruisebrothers.com/travel/cruise/search.rvlx?search_type=cruise_search&DestinationID=45&cruise_month=10&cruise_year=2012&cruise_duration=7-9&VendorID%5B%5D=8&PIN=HomPic','http://www.cruisebrothers.com/images/home/RCCLGenericv2-500-250.jpg');
myBanner1.add('http://www.cruisebrothers.com/land-vacations.php','http://www.cruisebrothers.com/images/home/WB-TNTVacaWebBanner500Fixed.jpg');
myBanner1.timer = 8;// 5 secs between images

// Set-up display

addLoadEvent(function(){
  myBanner1.bind('banner1');// match to ID of element.
  myBanner1.startTimer();
});

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

