/*******************************************************************************
* DHTML image slideshow script
* Extension written by David G. Miles (http://www.z3roadster.net/dreamweaver/)
* based in part on code written by Thomas Brattli (http://www.bratta.com)
* Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
*******************************************************************************/

//Please note that some of the code within this file has been changed.

if(document.images) { 
	currentslide=1; 
	maxslides=8;  // number of images in the slideshow
	slide = new Array(maxslides+1); 
	for(var n=1;n<=maxslides;n++) { 
		slide[n]=new Image(140,120);// width, height
		slide[n].src='http://www.alphabse.co.uk/images/generalpic/'+n+'.gif';
	} 
} 

function prevSlide() { 
	if(document.images) { 
		currentslide--; 
		if(currentslide<1) currentslide=maxslides; 
			document.images['slide'].src=slide[currentslide].src; 
	} 
} 

function nextSlide() { 
	if(document.images) { 
		currentslide++; 
		if(currentslide>maxslides) currentslide=1; 
			document.images['slide'].src=slide[currentslide].src; 
	} 
}