var g_Keys=null;var keys=new Array;var direction=null;var g_ID=0;var g_dataLoader=null;var g_drawList=null;var debugBuffer=null;var debugBufferContext2D=null;smooth=0.2;function theGame(){this.gtX=0;this.gtY=0;this.xScroll=0;this.yScroll=0;this.scrollX=1;this.scrollY=10;this.canvas=null;this.context2D=null;this.backBuffer=null;this.backBufferContext2D=null;this.fields=Array();this.buildings=Array();this.Date=new Date}var gTime=(new Date).getTime();var theGameObj=null;var g_tof=0; var g_dataLoader=null;var g_preloaderTO=20;function loading(){g_preloaderTO--;if(g_dataLoader.isLoading()&&g_preloaderTO>0)setTimeout(function(){loading()},100);else{document.getElementById("p01").style.opacity=1;document.getElementById("loading").style.display="none"}}window.onload=init;function init(){g_dataLoader=(new DataLoader).start();theGameObj=(new theGame).start();setTimeout(function(){loading()},100)};
