var x = 0;

function rotate(num){
	x=num%document.slideForm.slide.length;
	if(x<0){
		x=document.slideForm.slide.length-1;
	}
	var breakstring=document.slideForm.slide.options[x].value.split("|");
	//window.document.links.showLink.href=breakstring[1];
	document.getElementById('showLink').setAttribute('href',breakstring[1]);
	document.images.show.src=breakstring[0];
	document.images.show.alt=breakstring[2];
	document.slideForm.slide.selectedIndex=x;
}

function apRotate() {
	if(document.slideForm.slidebutton.value == ""){
		rotate(++x);window.setTimeout("apRotate()", 5000);
	}
}
