<!--
///////////////////////////
//
//  File Name: pgbannerLG.js
//
//  Copyright (c) 2010 Harvey Software, Inc.  All rights reserved.
//
//  Description: Randomly display banners ads on web pages for any web site...
//
//  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 663x179.
//
//  Written by: Bert Hamilton
//
//  Date written: 05/18/10
//
//  Last Revised by: BH
//
//  Date of Last Revision: 06/28/10
// 
//  Revision: Adding listings
//
///////////////////////////

// Randomly select banner to display

curDate = new Date();
curSec = curDate.getSeconds();
banner = curSec % 6;           // Counter - Total Number of Banners + 1

// Build banner HTML for displaying

while (true) {
  if (banner == 0) {
	adHref = "http://www.harveysoft.com/savcalc/calc.htm";		// Not used but here to let you know what is loaded
	adImag = "http://www.harveysoft.com/images/homepage/screens/PricedRightSC.gif";
	adText = "See How CPS Shipping Software Saves You Money With Our CPs Saving Calculator...";
	break;
  }
  if (banner == 1) {
	adHref = "http://www.harveysoft.com/specials.htm";
	adImag = "http://www.harveysoft.com/images/homepage/screens/CPSShippingSoftwareLimitTimeOffer2.gif";
	adText = "Try CPS Shipping Software......";
	break;
  }
  if (banner == 2) {
	adHref = "http://www.harveysoft.com/special1.htm";
	adImag = "http://www.harveysoft.com/images/homepage/screens/CPS_Endicia60DaysFree.gif";
	adText = "Try Endicia with CPS Shipping Software for 60 Days Free...";
	break;
  }
  if (banner == 3) {
	adHref = "http://www.harveysoft.com/special2.htm";
	adImag = "http://www.harveysoft.com/images/homepage/screens/CPS_AVM60DaysFree.gif";
	adText = "Try CPS Shipping Software with Address Verification for 60 Days Free...";
	break;
  }
  if (banner == 4) {
	adHref = "http://www.harveysoft.com/special3.htm";
	adImag = "http://www.harveysoft.com/images/homepage/screens/ShippingSystemTuneUp.gif";
	adText = "Get Your Free CPS Shipping Software Tune-Up...";
	break;
  }
  adHref = "http://www.harveysoft.com/cps.htm";
  adImag = "http://www.harveysoft.com/images/homepage/screens/CPS_MadeInUSA.gif";
  adText = "Why Ship with CPS Shipping Software?";
  break;
}
if (banner == 0) {
	document.write('<a href=\"#\" onclick="SCProcess(\'CSLOAD\')\">');
	document.write('<img border=\"0\" src=\"');
	document.write(adImag);
	document.write('\" alt=\"');
	document.write(adText);
	document.write('\" width=\"663\" height=\"17\9"></a>');
}
else
{
	document.write('<a href="');
	document.write(adHref);
	document.write('"><img border="0" src="');
	document.write(adImag);
	document.write('" alt="');
	document.write(adText);
	document.write('" width="663" height="179"></a>');

}
// -->