<blockquote><font face="Lucida Console, Monaco, mono" size="-2"><A href="//www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" target="_self">This site requires Macromedia Flash to be properly installed in a capable browser.<BR> Follow this link, and you'll find out everything you need to know.</A></font></blockquote>
"); traceWindow.document.close(); } function window_onload() { LEGO.GameManager.GamePlayer.gameObject = document.getElementById("GameObject"); var gameLoaded = (thisGame() != null && thisGame().name != null); if (gameLoaded) { try { if (LEGO.GameManager.GamePlayer.screenWidth < 1024 || LEGO.GameManager.GamePlayer.screenHeight < 768) { if (thisGame().width > 600) { gameWidth = 600; } else { gameWidth = thisGame().width; } if (thisGame().height > 400) { gameHeight = 400; } else { gameHeight = thisGame().height; } } else { gameWidth = thisGame().width; gameHeight = thisGame().height; } } catch (err) { // If something fails, we force a small display. if (thisGame().width > 600) { gameWidth = 600; } else { gameWidth = thisGame().width; } if (thisGame().height > 400) { gameHeight = 400; } else { gameHeight = thisGame().height; } } aspectRatio = gameHeight / gameWidth; window.onresize = window_onresize; gameHeight = gameHeight; } LEGO.GameManager.GameFrameLoaded(gameLoaded, gameWidth, gameHeight); } function window_onresize() { var gameContainer = window.parent.document.getElementById("GameFrame"); var width = gameContainer.offsetWidth; var height = gameContainer.offsetHeight; // This is required as the game object gets cut off in Firefox. if (Sys.Browser.agent != Sys.Browser.InternetExplorer) height = Math.max(height - 20, 0); if (LEGO.GameManager.GamePlayer.screenWidth < 1024 || LEGO.GameManager.GamePlayer.screenHeight < 768) { if (thisGame().width > 600) { width = 600; } else { width = thisGame().width; } if (thisGame().height > 400) { height = 400; } else { height = thisGame().height; } } if (width >= 400 && height >= 300) { if (height > (width * aspectRatio)) { height = width * aspectRatio; } else { width = height * (1 / aspectRatio); } thisGame().width = width; thisGame().height = height; } }