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 url = this.location;
var title = document.title;
function bookmark()
{
	if(document.all)
		window.external.AddFavorite(url,title)
	else if (window.sidebar)
	    window.sidebar.addPanel(title, url, "")
}


function setHome()
{
   document.body.style.behavior='url(#default#homepage)';
   document.body.setHomePage(window.location.href);
}

var currentindex=1;
var stopswitch=0;

function changeslides(which){
	var imghtml=""
	var text=""
	var placement=""
	currentindex=which
	var which=numberslide[which]
	imghtml='<a href="'+which[1]+'"><img src="'+which[0]+'" width="405" height="250" border="0" alt="'+which[2]+'" /></a>'
	placement='<img src="http://www.solidgames.com/selected.png" style="position:absolute; top:'+which[3]+'; left:397px" width="72px" height="64px" border="0" alt="Selection '+which[2]+'" />'
	document.getElementById("featimg").innerHTML=imghtml
	document.getElementById("featselect").innerHTML=placement

}
 
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 goslide1(){
	currentindex=1;
	changeslides(currentindex)
	stopswitch=1;
}

function goslide2(){
	currentindex=2;
	changeslides(currentindex)
	stopswitch=1;
}

function goslide3(){
	currentindex=3;
	changeslides(currentindex)
	stopswitch=1;
}

function goslide4(){
	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);
