function popUpGame(URL){
winpops=window.open(URL,"","width=800,height=600,left=0,top=0,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0")
}
function popReportGame(URL){
winpops=window.open(URL,"","width=375,height=250,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0")
}
function myprintln(s) { document.writeln(s); }

var currentindex=1;
var stopswitch=0;

function changeslides(which){
	var imghtml=""
	var text=""
	currentindex=which
	var which=numberslide[which]
	imghtml='<a href="'+which[1]+'"><img src="'+which[0]+'" width="291" height="250" border="0" alt="'+which[2]+'" /></a>';
	text='<span class="feattexttitle">'+which[2]+'</span><br />'+which[3]
	document.getElementById("featimg").innerHTML=imghtml
	document.getElementById("feattext").innerHTML=text

}
 
function goforward(){
	currentindex++;
	if (currentindex > 4) { currentindex= 1 }
	changeslides(currentindex)
	stopswitch=1;
}
 
function goback(){
	currentindex--;
	if (currentindex < 1) { currentindex= 4 }
	changeslides(currentindex)
	stopswitch=1;
}

function autoforward(){
	if (stopswitch == 0) {
		currentindex++;
		if (currentindex > 4) { currentindex= 1 }
		changeslides(currentindex)
	}	
	else {
		stopswitch = 0;	
	}
}

setInterval("autoforward()",5000);