var header = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>';
   header+='	<td bgcolor="#333333"><A href="http://www.digitalinsight.com"><img src="images/digitalinsight.gif" width="362" height="24" alt="DIGITAL INSIGHT. Beyond Internet Banking" border="0"></a></td>';
   header+='	<td bgcolor="#FF9700" width="100%" align="center"></td>';
   header+='	<td bgcolor="#000000"><img src="images/separator_photo.gif" width="259" height="23" alt="" border="0"></td>';
   header+='</tr></table>';

   
   
function openGame(name,wide,tall) {
    var halfwide = (wide/2);
    var halftall = (tall/2);
    var pWidth = ( ((parseInt(screen.width) / 2)) - halfwide);
    var pHeight = (((parseInt(screen.height) / 2)) - halftall);
    var game = 'gamescalcs/'+name;
    var features = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+wide+',height='+tall+',top='+pHeight+',left='+pWidth;
    if(name=='kids-check-bank.html'||name=='kids-check-cu.html'||name=='kids-puzzle.html'){
        var features = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+wide+',height='+tall+',top='+pHeight+',left='+pWidth;
        var game = name;
        }  
    window.open(game,'KidsGames',features);
	}

/*  
<a href="javascript:openGame('kids-check-bank.html','650','550');"></a>
<a href="javascript:openGame('kids-check-cu.html','650','550');"></a>
<a href="javascript:openGame('kids-puzzle.html','650','550');"></a>


<a href="javascript:openGame('game-additup.swf','640','450');"></a>
<a href="javascript:openGame('game-critters.swf','600','500');"></a>
<a href="javascript:openGame('game-dollargame.swf','600','400');"></a>
<a href="javascript:openGame('game-dressmeup.swf','500','400');"></a>
<a href="javascript:openGame('game-insectopia.swf','600','500');"></a>
<a href="javascript:openGame('game-make_moneygame.swf','552','400');"></a>
<a href="javascript:openGame('game-matrioshka.swf','500','500');"></a>
<a href="javascript:openGame('game-memory.swf','400','400');"></a>
<a href="javascript:openGame('game-statesncapitals.swf','750','400');"></a>
<a href="javascript:openGame('game-triviagame.swf','550','400');"></a>

<a href="javascript:openGame('calc-car-index.html','525','400');"></a>
<a href="javascript:openGame('calc-college-index.html','500','400');"></a>
<a href="javascript:openGame('calc-fido-index.html','446','362');"></a>
<a href="javascript:openGame('calc-mathorama-index.html','400','450');"></a>
<a href="javascript:openGame('calc-savingup.swf','460','400');"></a>
<a href="javascript:openGame('calc-ilovetoys-index.html','400','350');"></a>

*/    
    

function keys(name) {
    var halfwide = 350;
    var halftall = 300;
    var pWidth = ( ((parseInt(screen.width) / 2)) - halfwide);
    var pHeight = (((parseInt(screen.height) / 2)) - halftall);
    var game = 'keys.html?'+name;
    var features = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=750,height=600,top='+pHeight+',left='+pWidth;
    window.open(game,'keyins',features);
	}
  
function openLayout(name) {
    var wide=770;
    var tall=550;
    var halfwide = (wide/2);
    var halftall = (tall/2);
    var pWidth = ( ((parseInt(screen.width) / 2)) - halfwide);
    var pHeight = (((parseInt(screen.height) / 2)) - halftall);
    var features = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+wide+',height='+tall+',top='+pHeight+',left='+pWidth;
    window.open(name,'kidslayouts',features);
	}
   
   
   
   
   
   
   
   