var popUpWin=0;
function playFlash(URLStr, width, height){
  if(popUpWin){
    if(!popUpWin.closed) popUpWin.close();
  }  
  var left = (screen.width - width.valueOf())/2;
	var top =(screen.height - height.valueOf())/2;
   popUpWin = open("http://www.pocketmacgames.com/scripts/flashplayer.php?path=" + URLStr + "&w=" + width + "&h=" + height, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width='+width+',height='+height+',top='+top+'px,left='+left+'px');
}
function popUp(url, w, h) {
	var left = (screen.width - w.valueOf())/2;
	var top =(screen.height - h.valueOf())/2;
	newwindow=window.open(url.href, '','toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=' + w + ',height=' + h +',top='+top+'px,left='+left+'px');
	if (window.focus) {newwindow.focus()}
	return false;
}