	<!--
	// -----------------------------------------------------------------------------------------
	// Title:	Slide Show v2.0
	// Author:	Demetrius Francis  dem_@hotmail.com  http://www.angelfire.com/de/draf/index.html
	// Legal:	© 1998-2000, Draf Web Designs
	// EULA:	Open Source - These lines must always accompany this script 
	// -----------------------------------------------------------------------------------------
	// Content:	Performs a slide show of images.
	// Created:	July 7, 2000
	// Revised: July 8, 2000
	//
	// Notes:	You can start manually or automatically with the <body onLoad="startslide()">

	//------------------------------------------------------------------------------------------
	//	slide	=	the current image in the array that is being displayed.
	//	inc		=	the speed of the image rotation. 1000 = 1 second. this determines the mode.
	//	amax	=	the maximum number of images.
	//	mode	=	Animate, Manual, Slide : if animate, no filter effects are displayed
	//	bblend	=	true if blendTrans used otherwise revealTrans is used. Used only when inc != 0
	//  rv		=	the revealTrans option variable. 	 
	//
	// 	Designed using Microsoft ie 5.0
	// -----------------------------------------------------------------------------------------
 	var cslide	= 0;
	var inc		= 7000;
	var loaded	= 0;
	var rv		= 0;			
	var timerID 	= null;
	var isOn	= false;
	var mode	= false;
	var bblend	= 1;	// optionally can be set to automatically change by time, day of week, etc... 	
	var afiles 	= new Array('main1.jpg','main2.jpg','main3.jpg','main4.jpg');
	var amax	= afiles.length;
	var aImg	= new Array(afiles.length);
	var alabel	= new Array(afiles.length);
	var alink	= new Array(afiles.length);

	function startslide(){
		stopslide();
			
		for (var i=0; i<afiles.length; i++){
			aImg[i]= new Image();
			aImg[i].src = 'images/adler/'+ afiles[i];
			alabel[i]='';
			// start the slideshow after x images have loaded.
			if (i == 3) {Imgroll();}
		}
	}


   	function stopslide(){if(isOn) clearTimeout(timerID); isOn=false;}
	function img_count(){++loaded; if (loaded ==3){Imgroll()}}

	function Imgroll(){
		if (cslide == afiles.length) cslide=0;

		//document.getElementById("slide").width=aImg[cslide].width * .96
  		//document.getElementById("slide").height=(aImg[cslide].height * .96)
		document.getElementById("slide").width=520
		document.getElementById("slide").height=368;
		document.getElementById("slide").title=alabel[cslide];
		document.getElementById("slide").alt=alabel[cslide];

		if (inc!=0 && document.all){
			if (!bblend){
				//if (rv == 30) rv=1; else ++rv;
				rv =((rv==30) ? 1 : ++rv)
				document.getElementById("slide").filters.revealTrans.Transition=rv
				document.getElementById("slide").filters.revealTrans.apply();
 			}
			else
				document.getElementById("slide").filters.blendTrans.apply()
		}

		document.images.slide.src=aImg[cslide].src;	//update image src.


		if (inc != 0 && document.all){
			if (!bblend)
				document.getElementById("slide").filters.revealTrans.play()
			else
				document.getElementById("slide").filters.blendTrans.play()
		}

		timerID=setTimeout("Imgroll()",inc);
		isOn=true;
		++cslide;
	}