﻿function startGame(game, res, w, h) {
 var leftPos = (screen.width)?((screen.width - w)/2):0;
 var topPos = (screen.height)?((screen.height - h)/2):0;
 var URL = "http://www.chickensoft.com/games.play.php?game=" + game + "&res=" + res;
 var Params = "width=" + w + ",height=" + h + ",scrollbars=0,left=" + leftPos + ",top=" + topPos;
 window.open(URL,"",Params);
}
