var picLoader = new Array();
picLoader[1] = new Image(162, 200);
picLoader[1].src = "./img/1.gif";
picLoader[2] = new Image(300, 200);
picLoader[2].src = "./img/2.gif";
picLoader[3] = new Image(300, 200);
picLoader[3].src = "./img/3.gif";

function slideShow(position) {
	count = eval(position)
	
	if( count == 3 ){
		count = 1	
	}else{
		count++
	}
	
	var output = '<img border=0 id="majik" name="majik" src="">'
	
	document.getElementById("theShow").innerHTML = output

	document.getElementById("majik").src = picLoader[count].src

  	// run this function again in half a second
  	the_timeout = setTimeout("slideShow(count)",5000)
}
