var pause;
pause = 0;
function startMegapod() {
	setTimeout("nextSlide(1)",5000);
}
function nextSlide(current) {
	if (pause == 0) {
		next = 	current + 1;
		if (next == 4) next = 1;
		changepod(next);
		setTimeout("nextSlide("+ next +")",5000);
	}
	else
	{
		setTimeout("nextSlide("+ current +")",5000);
	}
}
function changepod(next) {
	if (next == 1) {
		document.getElementById("podimage1").className = 'image-on';
		document.getElementById("podimage2").className = 'image-off';
		document.getElementById("podimage3").className = 'image-off';
		document.getElementById("podtext1").className = 'pod-on';
		document.getElementById("podtext2").className = 'pod-off';
		document.getElementById("podtext3").className = 'pod-off';
	}
	if (next == 2) {
		document.getElementById("podimage1").className = 'image-off';
		document.getElementById("podimage2").className = 'image-on';
		document.getElementById("podimage3").className = 'image-off';
		document.getElementById("podtext1").className = 'pod-off';
		document.getElementById("podtext2").className = 'pod-on';
		document.getElementById("podtext3").className = 'pod-off';
	}
	if (next == 3) {
		document.getElementById("podimage1").className = 'image-off';
		document.getElementById("podimage2").className = 'image-off';
		document.getElementById("podimage3").className = 'image-on';
		document.getElementById("podtext1").className = 'pod-off';
		document.getElementById("podtext2").className = 'pod-off';
		document.getElementById("podtext3").className = 'pod-on';
	}
}
function megapodLinkOver(pod) {
	changepod(pod);
	pause = 1;
}
function megapodLinkOut(pod) {
	pause = 0;
}
