var browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 )) || 
((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))

if (browser) {
document.write("<ul><li> <a href=games/rps.html>Rock, Paper and Sissors</a><br /> Play Rock, Paper, Scissors against our program.</li></ul>"); 
}
else {
document.write("<ul><li>The Rock, Paper, and Sissors Game is only supported by browsers version 4 and over.</li></ul>");
} 

if (browser) {
document.write("<ul><li><u>Play Snake</u><br />A one player game where the point is to direct the snake to the apples.  For each apple you eat, you earn points and the snake grows longer. Don't run into your own tail or the walls and see how many points you can earn!"); 

document.write("<form name=open-snake><p align=center> <input type=button value=\"Play Snake\" onclick=\"window.open('games/snake.html','snake','top=100,left=100,width=575,height=400');\" name=button></p></form></li></ul>");

}
else {
document.write("<ul><li>The Scouting Snake Game is only supported by browsers version 4 and over.</li></ul>");

}

if (browser) {
document.write("<ul><li><u>Play our rocket blaster game.</u><br />Use your mouse to aim and shoot at rockets that fly across the screen. It may require some practice timing the shots to compensate for the distances. Interestingly, the game never ends -- just play as long as you want."); 

document.write("<center><form name=open-rockets><input type=button value=\"Play Rocket Blaster\" onclick=\"window.open('games/rocket-blaster.html','Scouts','status,top=100,left=100,width=550,height=400');\" name=button2></form></center></li></ul>");
}
else {
document.write("<ul><li>The Rocket Blaster Game is only supported by browsers version 4 and over.</li></ul>");
} 
