var pageName;

var previewIndex = 1;

var bigshotWin;



function bigShot(){

	pageName="Previews/German/game_0" + previewIndex + ".html";

	if (previewIndex==1 || previewIndex==2 || previewIndex==3){

		varWidth=500;

		varHeight=450;

	}else if (previewIndex==4 || previewIndex==5){

		varWidth=500;

		varHeight=450;

	}else if (previewIndex==6 || previewIndex==7 || previewIndex==8){

		varWidth=500;

		varHeight=450;

	}else if (previewIndex==9 || previewIndex==11 || previewIndex==12){

		varWidth=500;

		varHeight=450;

		}

	

	//start new code

	if (!window.bigshotWin) {

        // has not yet been defined

        bigshotWin=window.open(pageName,'fullShotWin','toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,width=' + varWidth + ' ,height=' + varHeight + '');

    } else {

        // has been defined

        if (!bigshotWin.closed) {

            // still open

            bigshotWin.focus();

			bigshotWin.close();

			bigshotWin=window.open(pageName,'fullShotWin','toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,width=' + varWidth + ' ,height=' + varHeight + '')

        } else {

            bigshotWin=window.open(pageName,'fullShotWin','toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,width=' + varWidth + ' ,height=' + varHeight + '')

        }}

	//end new code

		

	//bigshotWin=window.open(pageName,'fullShotWin','toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,width=' + varWidth + ' ,height=' + varHeight + '')

}

function screenPreview(direction){

	if(!document.images)

		return;

			

	if(direction == 'forward')

		previewIndex = previewIndex + 1;

	else

		previewIndex = previewIndex - 1;

			

	if(previewIndex == 7)

		previewIndex = 1;

	else if(previewIndex == 0)

		previewIndex = 6;

			

	document["gamePreview"].src = "Previews/German/images/sshot_0" + previewIndex + ".jpg";

	document["title"].src = "Previews/German/images/title_0" + previewIndex + ".gif";

	document["description"].src = "Previews/German/description/desc_0" + previewIndex + ".gif";
}
