<!-- Paste this code into an external JavaScript file named: banner.js.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Lee Underwood :: http://javascript.internet.com/ */

var imgs = new Array();
  // Enter the names of the images below
  imgs[0]="assets/banners/c6e-banner-tree.jpg";
  imgs[1]="assets/banners/c6e-banner-stream.jpg";
  imgs[2]="assets/banners/c6e-banner-croppedice.jpg";  
  //imgs[2]="assets/banners/c6e-banner-girl.jpg";
  //imgs[3]="assets/banners/c6e-banner-sydney.jpg";
  //imgs[4]="assets/banners/c6e-banner-engineer.jpg";

var newBanner = 0;
var totalBan = imgs.length;

function cycleBan() {
  newBanner++;
  if (newBanner == totalBan) {
    newBanner = 0;
  }
  document.banner.src=imgs[newBanner];
  
  if( readIEVer() >= 4.0 )
	{
		document.banner.style.filter = "blendTrans(duration=1.5) revealTrans(duration=1.0,transition=5)";
	
		/* revealTrans transition numbers
		1 	Reveal from inside out
		2 	Scroll in from outer parts
		3 	Scroll out from center
		4 	Scroll up from button
		5 	Scroll down from top
		6 	Scroll left to right
		7 	Scroll right to left
		8 	Vertical Blinds left to right
		9 	Horizontal Blinds top to bottom
		10 	Combination of 8 and 9
		11 	Looks a lot like 8
		12 	Comes in in pixels
		13 	Scroll in from outer parts
		14 	Scroll out from center
		15 	Close from both top and bottom
		16 	Open from center to top and bottom
		17 	Diagonal roll from right to left
		18 	Different angle diagonal roll right to left
		19 	Number 17: the other way
		20 	Number 18: the other way
		21 	Random horizontal lines
		22 	Random vertical lines
		23 	Completely Random */

		document.banner.filters(0).apply();
		document.banner.filters(1).apply();
		
 		//montageSelect( nextImage );
		
		document.banner.filters(0).play();
		document.banner.filters(1).play();
	}
  // set the time below for length of image display
  // i.e., "4*1000" is 4 seconds
  setTimeout("cycleBan()", 8*1000);
}
window.onload=cycleBan;
