// <![CDATA[
/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  Copyright 2001-4 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

// for preloading images
imageHandler.path = "/images/";
// put images to preload here
imageHandler.preload("dwc-w-btn.gif",	"dot-com-btn.gif", "slogan-btn.gif");

function initBanner() {
	// arguments: id, delay (amount of time in milliseconds you linger on each item)
  // set up pause onmouseover and resume onmouseout? (boolean) 
  var ban1 = new bannerObj('bannerDiv', 7000, true);
	// put your items here
	ban1.addItem('<a href="/true.aspx"><img src="/images/banner_468x60_1.jpg" width="468" height="60" alt="" /></a>');
	ban1.addItem('<a href="/true.aspx"><img src="/images/banner_468x60_2.jpg" width="468" height="60" alt="" /></a>');
	ban1.addItem('<a href="/true.aspx"><img src="/images/banner_468x60_3.jpg" width="468" height="60" alt="" /></a>');
	ban1.addItem('<a href="/true.aspx"><img src="/images/banner_468x60_4.jpg" width="468" height="60" alt="" /></a>');
	
	ban1.addItem('<a href="/true.aspx"><img src="/images/banner_468x60_1a.jpg" width="468" height="60" alt="" /></a>');
	ban1.addItem('<a href="/true.aspx"><img src="/images/banner_468x60_2a.jpg" width="468" height="60" alt="" /></a>');
	ban1.addItem('<a href="/true.aspx"><img src="/images/banner_468x60_3a.jpg" width="468" height="60" alt="" /></a>');
	ban1.addItem('<a href="/true.aspx"><img src="/images/banner_468x60_4a.jpg" width="468" height="60" alt="" /></a>');
	
	ban1.addItem('<a href="/true.aspx"><img src="/images/banner_468x60_1b.jpg" width="468" height="60" alt="" /></a>');

	ban1.rotate();  // Begin the rotation 
}

function initBusyWait() {
	var busy1 = new bannerObj('busyWaitDiv', 500, true);
	
	busy1.addItem('<img src="/images/busy1.jpg" width="150" height="15" alt="" />');
	busy1.addItem('<img src="/images/busy2.jpg" width="150" height="15" alt="" />');
	busy1.addItem('<img src="/images/busy3.jpg" width="150" height="15" alt="" />');
	busy1.addItem('<img src="/images/busy4.jpg" width="150" height="15" alt="" />');
	busy1.addItem('<img src="/images/busy5.jpg" width="150" height="15" alt="" />');
	busy1.addItem('<img src="/images/busy6.jpg" width="150" height="15" alt="" />');
	busy1.addItem('<img src="/images/busy7.jpg" width="150" height="15" alt="" />');
	
	busy1.rotate();
}

if (document.getElementById) initBanner(); 
if (document.getElementById('busyWaitDiv')) initBusyWait();   
// ]]>	
