function flip(target, idNum) {
	if(idNum < 1) return; // we need a positive idNum
	var idx=1;
	for(;;) {
		var game = document.getElementById(target + idx);
		if(!game) break; 
		if(idx != idNum) game.style.display = "none"; // no need to hide the one we want to show
		idx++;
	}
	if(idx > idNum) // make sure idNum is valid
	document.getElementById(target + idNum).style.display = "block";
}

/*TABLE GAMES                */ function show_tablegames(    		idNum){ flip('game', idNum); }
/*TARGET SLOTS               */ function show_targetslots(    	    idNum){ flip('game', idNum); }
/*SUPER SLOTS                */ function show_superslots(    		idNum){ flip('game', idNum); }
/*DRAGONS LAIR               */ function show_dragonslair(   		idNum){ flip('game', idNum); }
/*GOLD CUP SWEEPSTAKES	     */ function show_goldcupsweepstakes(	idNum){ flip('game', idNum); }
/*MARTIAN LANDING            */ function show_martianlanding(		idNum){ flip('game', idNum); }
/*BEST OF SHOW               */ function show_bestofshow(    		idNum){ flip('game', idNum); }
/*CARNIVALE                  */ function show_carnivale(     		idNum){ flip('game', idNum); }
/*ARCTIC ADVENTURE           */ function show_arcticadventure(  idNum){ flip('game', idNum); }
/*VIDEO SLOTS                */ function show_videoslots(    		idNum){ flip('game', idNum); }
/*SUPER 7                    */ function show_super7(        		idNum){ flip('game', idNum); }
/*FRUITY LOOT                */ function show_fruityloot(    		idNum){ flip('game', idNum); }
/*ATLANTIS                   */ function show_atlantis(      		idNum){ flip('game', idNum); }
/*REEL SLOTS                 */ function show_reelslots(     		idNum){ flip('game', idNum); }
/*MAD PROFESSOR              */ function show_madprofessor(  		idNum){ flip('game', idNum); }
/*PAY DAY                    */ function show_payday(        		idNum){ flip('game', idNum); }
/*ROULETTE RICHES            */ function show_rouletteriches(		idNum){ flip('game', idNum); }
/*CHICKEN RANCH              */ function show_chickenranch(  		idNum){ flip('game', idNum); }
/*VIDEO POKER                */ function show_videopoker(    		idNum){ flip('game', idNum); }
/*LOTTERY GAMES              */ function show_lotterygames(  		idNum){ flip('game', idNum); }
/*SCRATCH                    */ function show_scratch(       		idNum){ flip('game', idNum); }
/*3D SPORTS                  */ function show_3dsports(      		idNum){ flip('game', idNum); }
/*ARCADE SPORTS	             */ function show_arcade(			idNum){ flip('game', idNum); }
/*HORSE RACING               */ function show_goldcup(       		idNum){ flip('game', idNum); }
/*DOWNLOAD PAGE              */ function download1(          		idNum){ flip('downloadscreen', idNum); }
/*DOWNLOAD PAGE Setup section*/ function download2(          		idNum){ flip('screen_setup', idNum); }




