<!--
///////////////////////////
//
//  File Name: pgbannerin.js
//
//  Copyright (c) 2007-2011 Harvey Software, Inc.  All rights reserved.
//
//  Description: Randomly display banners ads on web pages for BusinessShipper.com only
//
//  Comments: Add banners by adding new if statement filling in variables.  
//            Each time a banner is added increase Counter by one
//
//  Assumptions: Banner art work stored in images/pagebann/ and are 468x60.
//
//  Written by: Bert Hamilton
//
//  Date written: 04/26/07
//
//  Last Revised by: BH
//
//  Date of Last Revision: 05/24/11
// 
//  Revision: Remove Old Listings
//
///////////////////////////

// Randomly select banner to display

curDate = new Date();
curSec = curDate.getSeconds();
banner = curSec % 5;           // Counter - Total Number of Banners + 1

// Build banner HTML for displaying

while (true) {
  if (banner == 0) {
    adHref = "http://www.u-pic.com/?harveysoftware";
    adImag = "http://www.businessshipper.com/images/banners/upicbanner.gif";
    adText = "Click Here to Visit U-PIC Insurance Services...";
    break;
  }
  if (banner == 1) {
    adHref = "http://www.peer1.com/hosting/managed.php#Harvey";
    adImag = "http://www.businessshipper.com/images/banners/Harvey_P1H_Banner_1.jpg";
    adText = "Click here to learn more about PEER 1 Hosting...";
    break;
  }
  if (banner == 2) {
    adHref = "http://www.magentocommerce.com/#Harvey";
    adImag = "http://www.businessshipper.com/images/banners/Magento468x60Banner.gif";
    adText = "Click here to learn more about Magento...";
    break;
  }
  if (banner == 3) {
    adHref = "http://www.shipsurance.com/harveysoft";
    adImag = "http://www.businessshipper.com/images/banners/468x60-shipsurance.gif";
    adText = "Click here to learn more about Shipsurance...";
    break;
  }
  adHref = "http://www.pipinsure.com/?harveysoftware";
  adImag = "http://www.businessshipper.com/images/banners/PIP Banner 468x60.jpg";
  adText = "Click here to Visit PIP Insurance Services...";
  break;
}
document.write('<a target="_blank" href="');
document.write(adHref);
document.write('"><img border="0" src="');
document.write(adImag);
document.write('" alt="');
document.write(adText);
document.write('" width="468" height="60"></a>');
// -->
