
var message="CALL 386-345-0052 for more Info!";
var changeSpeed=5000;
var n=0;
var whichWay=0;
var whoCalled=0;
var imgTimer=null;
var imageCount=r.length;
var speedControl=0;
<!-----------------------------------------------------------------!>
function click(e) {
	if (document.all) {
		if (event.button==2||event.button==3) {
			alert(message);
			return false;
		}
	}
	if (document.layers) {
		if (e.which == 3) {
			alert(message);
			return false;
		}
	}
	}
	if (document.layers) {
		document.captureEvents(Event.MOUSEDOWN);
	}
	document.onmousedown=click;
<!-----------------------------------------------------------------!>
<!-- This function sets the timer and calls the autochange function --!>
function timeAgain(){
	if(document.images){
		if(whoCalled==0){
			imgTimer=window.setTimeout("autoChange()", changeSpeed);
			}
		if(whoCalled==1){
		
			}
		}
}
<!-----------------------------------------------------------------!>
<!-- This function changes the picture --!>
function autoChange(){
	if(document.images){
		if (whichWay==0){
			if(n==0){
					n=1;
				}
			else{
					++n;
				}
			}
			if (n>=imageCount){
				n=0;
				}

			if (whichWay==1){
					--n;
				}
			if (n<0){
					n=(imageCount-1);
				}
		window.clearTimeout(imgTimer);
		document.images.imgchange.src="images/slideshow/"+r[n];
		changeText();
	}
}
<!-----------------------------------------------------------------!>
<!-- This function changes the TEXT --!>
function changeText(){
	if (document.getElementById)		//A test for Netscape Nav6 or greater
	{	
		document.getElementById("iTextcell").innerHTML = ''; // Null the value of iTextcell 
		document.getElementById("iTextcell").innerHTML = t[n];// change the value of iTextcell
	}
	else if (document.all)	//A test for Internet Explorer
	{	
		document.all.iTextcell.innerHTML = t[n];	//output the result to iTextcell
	}
	else if (document.layers && document.layers["iTextcell"] != null) //A test for earlier than Netscape Nav6  
	{  
		text2 = '&lt;P &gt;' + t[n] + '&lt;/P&gt;;';  //build the paragraph tags 
		document.layers["iTextcell"].document.open(); //<P> and the text then the end
		document.layers["iTextcell"].document.write(text2); //paragraph </P> tags then
		document.layers["iTextcell"].document.close();	//output the result to iTextcell
	 }
}
<!-----------------------------------------------------------------!>
function changeImage(){
	if (whichWay==0){
		++n;
		}
	if(n>=imageCount){
		n=0;
		}
	
	if (whichWay==1){
		--n;
		}
	if (n<0){
		n=(imageCount-1);
		}
	window.clearTimeout(imgTimer);
	document.images.imgchange.src="images/slideshow/"+r[n];
	changeText();
}
<!-----------------------------------------------------------------!>
function setSpeed(){
	if (speedControl==0){    
		if (changeSpeed>500){   
			changeSpeed=changeSpeed-500;
			} 
		}
	if (speedControl==1){
		if (changeSpeed>=500){  
			changeSpeed=changeSpeed+500;
			}  
		}
}
