ll;
			
			ressourceLoaded();
			
			// main loop, gets called by the imageLoaded() function, when all images are loaded and the game is ready
			function mainLoop()
			{
				
				// time stuff and fps output
				newTime = new Date().getTime();
				timeDiff = (newTime - timestamp) / 1000;
				timestamp = newTime;
				
				// fps calculation
				timestampArchives.push(timestamp);
				if(Math.random() < 0.1)
					fps = Math.floor(10 * 1000 / (timestamp - timestampArchives[0]));
				timestampArchives.splice(0,