$j = jQuery.noConflict(); // jQuery/prototype compatibility

$j(function()
{
  // raiz, classes, callback
  //doImports( "js/", [ "Timer", "Main", "LastResults", "sections.SectionManager", "sections.Section", "sections.Home", "sections.Game" ], init );
  init();
  resize();
});
$j(window).resize(function(){resize()});

function resize()
{
  if( $j(window).height() > 614 )
  {
    var dif = ( $j(window).height() - 614 ) / 2;
    $j("#wrap").css( "margin-top", dif );
    $j("body").css( "background-position", "center " + parseInt( dif - 195 ) + "px" );
  }
}

var main;
this.gameReady = false;

function init()
{
  main = new Main;
}

function onGameReady()
{
  this.gameReady = true;
}

function gameLoaded()
{
  main.game.onGameLoaded();
}
