Raw Source
marjo / FC Enhance--Jelly's Dev Version

// ==UserScript==
// @name        FC Enhance--Jelly's Dev Version
// @namespace   catastrophe.box.eggsal.com
// @description Adds functionality to FC | Creators: Marjo, uJellyBrah, Zhyrek, and ID36. Links to website by ID36, links to fc resource by sk89q, inspiration from FC++ by sk89q.
// @include     *fantasticcontraption.com*
// @exclude     *archive.org*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @version     4.0
// @updateURL   https://openuserjs.org/meta/Pravet/FC_Enhance--Jellys_Dev_Version.meta.js
// @grant       GM_xmlhttpRequest
// @grant       GM_setValue
// @grant       GM_getValue
// @grant       unsafeWindow
// ==/UserScript==
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////SCREEN SCALE/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var scale = screen.width/1920; // Used to scale elements by brute force for different resolutions
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////SWF LOCATION/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var locationBox = document.getElementsByClassName('left')[0].getBoundingClientRect(); // Get the pixel location of the centered div...used to position other elements relative to its location

//First we must detect if the page is simply the advertisement page and break here
if (unsafeWindow.location.href.search(/fantasticcontraption.com\/original/) < 0 && unsafeWindow.location.href.search(/fantasticcontraption.com\/\?/) < 0) {
    throw new Error(); //First try to stop script
}
try {
    if (window.constructor != unsafeWindow.constructor) window = unsafeWindow;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////MAKE ID//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function makeid(len) //Create random sequence of characters to use for username, email, password
    {
        var text = "";
        var possible = "abcdefghijklmnopqrstuvwxyz";
        for( var i=0; i < len; i++ )
            text += possible.charAt(Math.floor(Math.random() * possible.length));
        return text;
    }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////GET COOKIES//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function getCookie(cname) { //Get a cookie by its name
        var name = cname + "=";
        var ca = document.cookie.split(';');
        for(var i=0; i<ca.length; i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1);
            if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
        }
        return false;
    }

    //We must set a cookie to give each user a different ID. We must create a new account and store the id.
    if (!getCookie("userid")) {
        $.ajax({
            type: "POST",
            dataType: "xml",
            url: "newUser.php",
            data: {
                userName: Math.floor(Math.random() * 100000000000000),
                password: Math.floor(Math.random() * 100000000000000),
                email:    makeid(10) + "@gmail.com"
            },
            success: function(data){
                var newId;
                try {
                    newId = data.getElementsByTagName('userId')[0].innerHTML;
                }
                catch(err) {
                    unsafeWindow.location.reload();
                }
                if (newId) { //If the acount was created successfully
                    document.cookie = "userid=" + newId + "; expires=01 Jan 2999 00:00:00 UTC; path=/";
                }
                else {
                    unsafeWindow.location.reload();
                }
            }
        });
    }

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////GET FLASH////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function getFlash()
    {
        movieName = "contraption";
        if (unsafeWindow.document[movieName]) 
        {
            return unsafeWindow.document[movieName];
        }
        if (navigator.appName.indexOf("Microsoft Internet")==-1)
        {
            if (document.embeds && document.embeds[movieName])
                return document.embeds[movieName]; 
        }
        else 
        {
            return document.getElementById(movieName);
        }
    }

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////VARIABLES////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var inFullScreen = false;
    var pageLocked = false;
    var defaultOnBeforeUnload = window.onbeforeunload;
    var messageTimeout;
    var contraption = getFlash();
    var currentPageNumber = 0;
    var centered = document.getElementsByClassName("centered")[currentPageNumber]; //This is where we shall add the stuff for the main screen
    centered.setAttribute("data-pagedescription", "Fantastic Contraption");

    var randLevDisplayPlaceholder = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAYAAABRRIOnAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAeFUlEQVR4nO2deZxdVZXvv2vvc4eaq5JKIANJCBkgJCRMQaaAgODUErUFAV+LQDtj221L99PuT9PvoU8U+9moj1bUhygyyiQoowwiYyCEIciQiUwkKZKaq+695+zVf5yqUEmqknPuuffWTfT3+dxPUvees/c6e//O2muvvfbawj6IMU2ezBvj1190asO0Y5pzkzxfphfy2lSTddNq0ul5qoGn6gyqsuvdCmKdiDjFbOvL51/LFez6uozbuA1vw90r7YrvP96/Yf2mIFf5Jys/hmmQvQ/nLaDxa6dk5qV8ObIp7S9MpeTYupQbJ0pWBCsGQZGin1YBQdXhFPxATV9Hv77hVB7pLcjza4L0sm890P/q/X/y86V8rtHAXkmIM+anvcsWySGtKT291gveXZ/hiJTQaoTUKDyRBr7k8iob+wr6VHve3PX42+aR83/Rv67ikpQAew0hLl5kvU8eZud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LTA5LTI2VDA4OjMxOjQ5LTA1OjAw/E1fWQAAABF0RVh0anBlZzpjb2xvcnNwYWNlADG1fAQlAAAAGHRFWHRqcGVnOnNhbXBsaW5nLWZhY3RvcgAxeDEWroPbAAAAAElFTkSuQmCC";
    //Zones
    var bottomZone;
    var rightZone;
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //--------  BEGIN THE LONG FUNCTION THAT ALLOWS ME TO HAVE OTHER FUNCTIONS IN IT!  --------/////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    //Disable if no cookies
    if (!navigator.cookieEnabled) {
        alert("Sorry, you need cookies enabled to run FC Enhance.\nIf you think this is a mistake, please contact marjo.");
        return "Browser does not support cookies.";
    }

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////ADD ZONES////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function addZones() {
        //Bottom zone
        bottomZone = document.createElement("div");
        with (bottomZone) {
            style.position = "absolute";
            style.bottom = "1px";
            style.width = "99%";
            style.textAlign = "center";
            id = "bottomZone";
        }
        //document.body.appendChild(bottomZone);

        rightZone = document.createElement("div");
        with (rightZone) {
            style.position = "absolute";
            style.bottom = "0";
        }
        //document.body.appendChild(rightZone);
    }
    addZones();

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////RANDOM LEVEL HUB/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function addRandLevelStuff() {
        var randLevelHub = document.createElement('div');
        randLevelHub.style.position = "absolute";
        randLevelHub.style.top = 48*scale+"px";
        randLevelHub.style.right = 20*scale+"px";
        randLevelHub.style.width = 300*scale+"px";
        randLevelHub.style.borderStyle = "solid";
        randLevelHub.style.borderRadius = 25*scale+"px";
        randLevelHub.style.borderColor = "blue";
        randLevelHub.id = "randLevelHub";
        randLevelHub.style.fontSize = 1*scale+"em";
        randLevelHub.innerHTML = "<center><div id = 'innerHub'><legend>ID36 Random Unsolved Level Hub</legend></div><center>";
        centered.appendChild(randLevelHub);
        var innerHub = document.getElementById('innerHub');
        var display = document.createElement('img');
        display.src = randLevDisplayPlaceholder;
        display.style.height = 132*scale+"px";
        display.style.border = "none";
        display.id = "randLevelDisplay";
        innerHub.appendChild(display);
        innerHub.innerHTML += "<br />";
        var genButton = document.createElement('input');
        genButton.type = "button";
        genButton.value = "New level";
        genButton.style.padding = 3*scale+"px";
        genButton.id = "randLevelButton";
        genButton.addEventListener('click', function(event) {
            getRandLevel();
        });
        innerHub.appendChild(genButton);        
    }
    addRandLevelStuff();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////GET RANDOM LEVEL/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function getRandLevel() {
        document.getElementById('randLevelDisplay').removeEventListener('click', this.redirectToRandLevel);
        document.getElementById('randLevelButton').disabled = "true";
        document.getElementById('randLevelButton').value = "Loading...";
        document.getElementById('randLevelDisplay').src = randLevDisplayPlaceholder;
        document.getElementById('randLevelDisplay').style.border = "none";
        document.getElementById('randLevelDisplay').style.cursor = "auto";
        document.getElementById('randLevelDisplay').style.height = 132*scale+"px";
        GM_xmlhttpRequest({
            method: "GET",
            dataType: "text",
            url: "http://id36.ueuo.com/lvl-us.php",
            onload: function(response) {
                setRandLevel(response);
            } 
        });
        function setRandLevel(response) { 
            srcXML = response.responseText;
            //Find image data URL
            var dataURL = srcXML.match(/src='data:image.*?[\w=]'/g)[0]; //Match starting with the data: and ending in either an equals sign or a space. Nongreedy star.
            dataURL = dataURL.substring(5, dataURL.length-1);

            //Now find link
            var href = srcXML.match(/href='http:\/\/FantasticContraption.com\/\?levelId=\d*/g)[0];
            href = href.substring(6);
            var unsLevId = href.split("=")[1];
            document.getElementById('randLevelDisplay').src = dataURL;
            this.redirectToRandLevel = function(event) {
                //unsafeWindow.location.href = href;
                loadLvl(unsLevId);
            };
            document.getElementById('randLevelDisplay').addEventListener('click', this.redirectToRandLevel);
            document.getElementById('randLevelDisplay').style.border = "1px solid black";
            document.getElementById('randLevelDisplay').style.height = 130*scale+"px";
            document.getElementById('randLevelDisplay').style.cursor = "pointer";
            document.getElementById('randLevelButton').disabled = false;
            document.getElementById('randLevelButton').value = "New level";
        }
    }

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////CHAT HUB/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function addChatHub(changingNick) { //We will in this function add the default username box etc. This is the logic thatcontrols the chat
            //Add the base DIV
            var chatHub = document.createElement('div'); //Create the surrounding div
            chatHub.style.position = "absolute"; //Positioning
            chatHub.style.top = 258*scale+"px"; //etc.
            chatHub.style.right = 27*scale+"px"; //etc.
            chatHub.style.width = 284*scale+"px";
            chatHub.style.borderStyle = "none";
            chatHub.style.borderRadius = 25*scale+"px";
            chatHub.style.borderColor = "blue";
            chatHub.id = "chatHub"; //Set an id
            document.body.appendChild(chatHub); //Add the div to the document. It will not dissapear when other pages are requested       
            var startChatButton = document.createElement("img"); //Create the button to load the chat
            startChatButton.style.marginTop = 30*scale+"px"; //Offset it a little bit
            startChatButton.id = "startChatButton";
            startChatButton.style.width = 160*scale+"px";
            startChatButton.style.height = 56*scale+"px";
            startChatButton.src = chatButtonPic; //Set the image. This variable was defined in the variables section
            //We want to add a hover image, to make it clear you can click it.
            startChatButton.addEventListener('mouseover', function() { //When the mouse hovers on the button
                this.src = chatButtonHoverPic;
            });
            startChatButton.addEventListener('mouseout', function() { //When the mouse leaves the button
                this.src = chatButtonPic;
            });
            startChatButton.addEventListener('click', function() { //On click
                addChat(getCookie('chatusername'), chatHub); //Add the chat, passing in the username value, which is simply the value of the cookie, and chatHub as the element to put the chat inside
                document.getElementById("chatHub").removeChild(this);
            });

            //Add the button to the hub
            document.getElementById("chatHub").appendChild(startChatButton);

    }
    addChatHub();


    function addChat(userName, area) { //When this function is called, it will add the iframe and set the src to include the username
        var chatHub = area;
        //Take note of the area to put the chat in
        var chatFrame = document.createElement('iframe'); //Create the iframe
        chatFrame.src = "http://www3.yourshoutbox.com/shoutbox/sb.php?key=733328453"; //Set the source
        chatHub.appendChild(chatFrame); //Add in the iframe
        chatFrame.id = "chat"; //Set an id for the iframe

        window.addEventListener("resize", function() { //This is all just to make sure the iframe resizes based on the window dimensions
            var vw = unsafeWindow.innerWidth / 100;
            var vh = unsafeWindow.innerHeight / 100;
            var heightPercentage = 60; //Change this value to tune
            var chatWidth = 291*scale+"px";
            var chatHeight = (heightPercentage * vh) + "px";
            chatHub.style.width = chatWidth;
            chatHub.style.height = chatHeight;
            chatFrame.style.borderStyle = "solid";
            chatFrame.style.borderRadius = 25*scale+"px";
            chatFrame.style.borderColor = "#2550FF";
            chatFrame.width = chatWidth;
            chatFrame.height = chatHeight;
        });

        window.dispatchEvent(new Event('resize')); //Set initial sizes based on window size
    }

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////FULLSCREEN TOGGLE////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function addFullScreenButton() {
        plusIcon = 'data:image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sJL2fyoCE2Hh0ZLiwUNrYPByBdY3NN8zRmxgLRSCmdvq6fGJWfD9sz7pCja3fGqncGNaXfwUv4L3qVst06geUfByJlUomiR094E1pShGJ2Whjw4Ad9fg7up+V38SDaBAn4UE4M3fTr9MDH0nHBkYGRi6gR8d572lMfn5PQAAAABJRU5ErkJggg==';
        fullScreenToggle = document.createElement("img");
        with (fullScreenToggle) {
            setAttribute("src", plusIcon);
            id = "fullScreenButton";
            style.height = 32*scale+"px";
            title = "Toggle Fullscreen";
            style.width = 32*scale+"px";
            style.position = "absolute";
            style.top = 4*scale+"px";
            style.left = 4*scale+"px";
            style.cursor = "pointer";
        }
        //The toggle
        fullScreenToggle.addEventListener('click', function(event){
            if (!inFullScreen) {
                var game = contraption;
                with (game) {
                    style.position = "absolute";
                    style.top = "45px";
                    style.left = "calc(50% - "+540*scale+"px)";
                    style.border = 10*scale+"px solid #2550FF";
                    style.borderRadius = 25*scale+"px";
                    height = 771.42857*scale+"px";
                    width = 1080*scale+"px";
                }
                var freeLevel = document.getElementsByClassName("right")[0]; //Free level of the month
                with (freeLevel) {
                    style.display = "none";
                }
                var border = document.getElementsByClassName("border")[0]; //Blue border
                with (border) {
                    style.padding = "0px";
                    style.backgroundImage = "url('')";
                }
                var titlePic = document.getElementsByTagName("h1")[0]; //FC Logo
                with (titlePic) {
                    style.display = "none";
                }
                var topText = document.getElementsByTagName("h2")[0]; //Fun online physic... etc.
                with (topText) {
                    style.display = "none";
                }
                with (fullScreenToggle) {
                    setAttribute("src", minusIcon);
                }
                inFullScreen = true;
                document.cookie = "fullscreen=yes; expires=01 Jan 2999 00:00:00 UTC; path=/";
            }
            else {
                with (fullScreenToggle) {
                    setAttribute("src", plusIcon);
                }
                var game = contraption;
                var border = document.getElementById("maincontent");
                with (game) {
                    style.position = "initial";
                    style.left = "initial";
                    style.border = "";
                    style.borderRadius = "";
                    height = "500px";
                    width = "700px";
                }
                var freeLevel = document.getElementsByClassName("right")[0]; //Free level of the month
                with (freeLevel) {
                    style.display = "initial";
                }
                var border = document.getElementsByClassName("border")[0]; //Blue border
                with (border) {
                    style.padding = "20px 0px 0px 20px";
                    style.backgroundImage = "url('http://fantasticcontraption.com/images/fantastic_contraption_border.png')";
                }
                var titlePic = document.getElementsByTagName("h1")[0]; //FC Logo
                with (titlePic) {
                    style.display = "initial";
                }
                var topText = document.getElementsByTagName("h2")[0]; //Fun online physic... etc.
                with (topText) {
                    style.display = "block";
                }
                inFullScreen = false;
                document.cookie = "fullscreen=no; expires=01 Jan 2999 00:00:00 UTC; path=/";
            }

        });

        centered.appendChild(fullScreenToggle);
        if (getCookie("fullscreen") == "yes") {
            fullScreenToggle.click();
        }
    }
    addFullScreenButton();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////ADD LOCK BUTTON//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function addLockButton() {
        var lockToggle = document.createElement("img");
        with (lockToggle) {
            src = unlockPic;
            id = "lockButton";
            style.height = 32*scale+"px";
            title = "Lock Page";
            style.width = 32*scale+"px";
            style.position = "absolute";
            style.top = 4*scale+"px";
            style.left = 40*scale+"px";
            style.cursor = "pointer";
        }
        lockToggle.addEventListener("click", function(event) {
            if (!pageLocked) {
                pageLocked = true;
                (window || unsafeWindow).onbeforeunload = function() {
                    giveMessage("FC Enhance is locked.");
                    return "This page is locked by FC Enhance.";
                };
                giveMessage("Page locked.");
                this.src = lockPic;
                document.cookie = "locked=yes; expires=01 Jan 2999 00:00:00 UTC; path=/";
            }
            else {
                pageLocked = false;
                window.onbeforeunload = defaultOnBeforeUnload; //Likely a blank string, or null
                giveMessage("Page unlocked.");
                this.src = unlockPic;
                document.cookie = "locked=no; expires=01 Jan 2999 00:00:00 UTC; path=/";
            }
        });
        //Let's set it to locked if the cookie says so
        centered.appendChild(lockToggle);
        if (getCookie("locked") == "yes") {
            lockToggle.click();
            lockToggle.src = lockPic;
        }
    }
    addLockButton();

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////INFO BOX AND RATING SYSTEM///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function getUseFlashVars() { //For creating the info box, now based on flashvars
        var fvars = contraption.getAttribute("flashvars");; //Get the type (level, design) and the id
        var key = fvars.split("=")[0];
        if (!key) {return "No level/design to load info";} //Before we go on we should return if there is no key=value
        var value = fvars.split("=")[1].split("&")[0];
        //We don't want to do any more if we don't have something for the type that we can deal with
        key = key.toUpperCase(); //For no case sensativity
        if (key != "LEVELID" && key != "DESIGNID") {
            return "Not a recognized type";
        }
        var area = document.getElementsByClassName("centered")[0];
        //First delete previous zone
        var prevZone = document.getElementById('zone');
        if (prevZone)
        {
            area.removeChild(prevZone);
        }
        var zone = document.createElement("div");
        area.appendChild(zone); //Add the zone element which we will be putting stuff inside
        zone.id = "zone";
        var contentTitle = document.createElement("span");
        contentTitle.innerHTML = "<br><br><br><h1 style = 'font-size:1em;'>Current " + (key == "DESIGNID" ? "Design" : "Level") + "</h1>";
        zone.appendChild(contentTitle);
        //Name and author
        var contentName = document.createElement("span");
        contentName.id = "contentName";
        zone.appendChild(contentName); //This will be filled by an AJAX req later
        var contentAuthor = document.createElement("span");
        contentAuthor.id = "contentAuthor";
        zone.appendChild(contentAuthor); //This will be filled by an AJAX req later. Currently no way to do this
        var thumb = document.createElement("img");
        thumb.id = "thumbnail";
        thumb.style.width = "12%";
        thumb.style.display = "block";
        thumb.style.margin = "auto";
        thumb.style.border = "1px solid black";
        zone.appendChild(thumb);
        //FCR links now
        var links;
        switch (key) {
            case "LEVELID":
                links = "\
<div class = 'links'>\
<a href = 'http://fantasticcontraption.com/?levelId=" + value + "'>Reload this level</a><br />\
<a href = 'http://fc.sk89q.com/level?levelId=" + value + "'>Level on FCR</a><br />\
<a href = 'http://id36.ueuo.com/shw-dsgn-lvl.php?levelId=" + value + "'>Solutions</a><br />\
<a href = 'http://fc.sk89q.com/export?type=level&id=" + value + "&format=fcml'>FCML</a>\
</div>\
";
                break;

            case "DESIGNID":
                links = "\
<div class = 'links'>\
<a id = 'playLink' href = '#'>Play this level</a><br />\
<a href = 'http://fc.sk89q.com/design?designId=" + value + "'>Design on FCR</a><br />\
<a href = 'http://fc.sk89q.com/export?type=design&id=" + value + "&format=fcml'>FCML</a>\
</div>\
";
                break;
        }
        zone.innerHTML += links;
        with (document.getElementsByClassName('links')[0]) {
            style.textAlign = "left";
            style.display = "inline-block";
        }
        var emptyStarImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAASCAYAAACuLnWgAAAACXBIWXMAAA9hAAAPYQGoP6dpAAABmklEQVQ4jbXUsWpTYRTA8d9XaknTBmlSg4Pd1IqkCLq4CC7dnfoODuIr+BYO4gsILo4ahyq1bTahIlShs8akYk2CJM11+G7VtEluI3rgwnfO+Z/7vxcOX/BHJMldGbHIXJ3WOXwZB4bw8Nd5Kuutg1GqcSGhtDXJ1CSSFRrfWQo0Oqj8B0nxKTdW4vl6heKTfy25SrPLwpEQzYArpxmeHlLL4RIuE65RuElY5XwyiC0v8+k9/RccbJG8xYf06YyRFJ5xsBrBhUDpIvkcBcyGQXYpsCjy7Vs0PrLfjx84/xx3jsiBwXSFE26P+Mms6GEdScha4TKv0oFJBa+RlI93hknq9MtsTCDqifxhOc5nS1JRt8wmDk8h2BT5k4JxklQ09ZjPGZI6wqNRgiwJ5tbIZ0jymF8bR2RI2oWTks6xfBbts38rKdJuciZNv6Fa4x2q2zGHGbT3/b4OJpJUsEML6xvs/cA9vgbcZ68b6y2RG31hjpP0MM0uug+o51BLe9vUZ2J9V+RG7/s4yRvCSxoB1RFMNfZDVdzjofET5Zhz1MEgqqgAAAAASUVORK5CYII=";
        var fullStarImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAASCAYAAACuLnWgAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAB60lEQVQ4ja3UzU/TYBzA8e+zds86QbE6G92hEBAwZose/QPkaggm86wH0YPxIlfCWfwHDPGGkODLwaPCEYWpMRoSEzHEeEBjmehC3OjKHg/lsGpXWsKT9PB7ez59yyOUukmClaO643BEOwFsxB1KJRFYd8u83lKsu0tJxpIgRfJyi4sbgrysAYWDR765T7jvFAGYcgp8d+cOGjnLKdngRtWPrlfhpBTAmTjDekjOAPqBAeAcFe8CTTXEhz8q0LXwe5DioY9o4gXH9SXgPbC6e9VaW0Xg79r0nmHqQ8AqPxqCT7XTfHUN3tXh3vb/tzNmwPkM2LLOQPYzVroJ9PPLe85RfTgc8Zfi8hd4uhPnTQTXiAaPe0AgWtNh38TiUY8/kBSY6waB9W8pDHFIYTHbHR8a0WDWBk1YgBMH8SEpLB7acGkPaFiDaRtkKhSIQnyoqR5wrSsaudoFiql2wF4IVLwSa240suZCpVGKaolGTP0wb+rB3JgRjN/WwdQjHzcKOUan9pMZz48mO0D1lbljgepb5m6Hn5/2oFPbBMz9IAVghfEsuL2LlMxt4BZWWgC3uWI2cHsXGc8CrBBxYEYhHqAzmoO0mMDOGEB5t7aMnZGkxQSjOfCPJ28/yEtggbwUwHybnvmW+qt2G/0FAaiK7RPPbmEAAAAASUVORK5CYII=";
        var stars = document.createElement('div');
        stars.innerHTML = "<i>Your vote is being cast for the " + (key == "LEVELID" ? "level on the right" : "design on the right") + ".</i><br />";
        stars.style.display = "inline-block";
        stars.style.marginLeft = -3*scale+"px";
        var i;
        for (i = 0; i < 5; i++) {
            stars.innerHTML += "<img id = '" + i + "' src = '" + emptyStarImage + "' />";
        }
        zone.appendChild(stars);
        for (i = 0; i < 5; i++) {
            document.getElementById(i).addEventListener('mouseover', function(event) {
                var obj = event.target; //The star that caused this
                var i;
                for (i = Number(obj.id); i >= 0; i--) {
                    document.getElementById(i).src = fullStarImage;
                }
            });
            document.getElementById(i).addEventListener('mouseout', function(event) {
                var obj = event.target; //The star that caused this
                var i;
                for (i = Number(obj.id); i >= 0; i--) {
                    document.getElementById(i).src = emptyStarImage;
                }
            });
            document.getElementById(i).addEventListener('click', function(event) {
                var rate = Number(event.target.id) + 1; //The star that caused this. Add one because star starts at 0.
                $.ajax({
                    type: "POST",
                    url: "http://www.fantasticcontraption.com/setRating.php",
                    data: {
                        xml: "<setRating><" + (key == "LEVELID" ? "level" : "design") + "Id>" + value + "</" + (key == "LEVELID" ? "level" : "design") + "Id><qualityRating>" + rate + "</qualityRating><userId>" + getCookie("userid") + "</userId></setRating>"
                    }
                });
                giveMessage((key == "LEVELID" ? "Level" : "Design") + " rated " + rate + " " + (rate > 1 ? "stars" : "star") + ".");
            });
        }
        $.ajax({
            type: "POST",
            dataType: "xml",
            url: "http://fantasticcontraption.com/retrieveLevel.php",
            data: {
                id: value,
                loadDesign: (key == "DESIGNID" ? 1 : 0)
            },
            success: function(data) {
                document.getElementById('contentName').innerHTML = data.getElementsByTagName('name')[0].innerHTML;// + "<br />";
                document.getElementById('playLink').href = "http://fantasticcontraption.com/?levelId=" + data.getElementsByTagName('levelId')[0].innerHTML;
            }
        });

        //Now let's load a screenshot
        if (key == "LEVELID") {
            GM_xmlhttpRequest({
                method: "GET",
                dataType: "text",
                url: "http://id36.ueuo.com/shw-dsgn-lvl.php?levelId=" + value,
                onload: function(response) {
                    parse(response);
                } 
            });
        }
        function parse(response) {
            srcXML = response.responseText;
            var dataURL = srcXML.match(/src='data:image.*?[\w=]'/g)[0]; //Match starting with the data: and ending in either an equals sign or a space. Nongreedy star.
            dataURL = dataURL.substring(5, dataURL.length-1);
            document.getElementById('thumbnail').src = dataURL;
        }
    }
    getUseFlashVars();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////REFRESH FLASH////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    function createRefreshButton() {
        var refreshButton = document.createElement("img");
        with (refreshButton) {
            id = "refreshButton";
            title = "Refresh The Game!";
            style.position = "absolute";
            style.right = 4*scale+"px";
            style.top = 4*scale+"px";
            style.cursor = "pointer";
            style.width = 32*scale+'px';
            style.zIndex = "200";
            title = "Game lagging? Click here to make it run quickly again. Does not reload the page. You will not lose your progress.";
            src = refreshPic;
        }

        function refreshSWF() {
            var contrap = getFlash();
            contrap.Zoom(50);
            contrap.Zoom(0);
            giveMessage("Game refreshed.");
            this.blur(); //This will always work. So user doesn't reactivate upon hitting space to try to start contraption.
            contraption.focus(); //This only works for embed swf in IE.
        }

        refreshButton.addEventListener('click', refreshSWF);
        centered.appendChild(refreshButton);

    }
    createRefreshButton();

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////BACKSPACE NAVIGATION PREVENTION//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    $(document).unbind('keydown').bind('keydown', function (event) {
        var doPrevent = false;
        if (event.keyCode === 8) {
            var d = event.srcElement || event.target;
            if ((d.tagName.toUpperCase() === 'INPUT' && 
                 (
                d.type.toUpperCase() === 'TEXT' ||
                d.type.toUpperCase() === 'PASSWORD' || 
                d.type.toUpperCase() === 'FILE' || 
                d.type.toUpperCase() === 'SEARCH' || 
                d.type.toUpperCase() === 'EMAIL' || 
                d.type.toUpperCase() === 'NUMBER' || 
                d.type.toUpperCase() === 'DATE' )
                ) || 
                d.tagName.toUpperCase() === 'TEXTAREA'
                || d.tagName.toUpperCase() === 'EMBED'
                || d.tagName.toUpperCase() === 'OBJECT') {
                doPrevent = d.readOnly || d.disabled;
            }
            else {
                doPrevent = true;
            }
        }

        if (doPrevent) {
            event.preventDefault();
            giveMessage("Backspace denied.");
        }
    });
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////HIDE ELEMENTS ON SCROLL//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function hide(el) {
        if (el == centered) { //Main game section
            el.style.width = 1*scale+"px";
            el.style.height = 1*scale+"px";
            el.style.overflow = "hidden";

            //Hide position:absolute children
            var children = el.children;
            for (var i = 0; i < children.length; i++) {
                var child = children[i];
                if (child.style.position == "absolute") {
                    child.style.display = "none";
                }
            }
        }
        else {
            el.style.display = "none";
        }
    }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////SHOW PAGES ON SCROLL/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function show(el) {
        if (el == centered) {
            el.style.width = "900px";
            el.style.height = "initial";
            el.style.overflow = "visible";

            //Show position:absolute children
            var children = el.children;
            for (var i = 0; i < children.length; i++) {
                var child = children[i];
                if (child.style.position == "absolute") {
                    child.style.display = "initial";
                }
            }
        }
        else {
            el.style.display = "block";
        }
    }

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////ADD WEBPAGES/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function addPage(url, description, id, div) {
        var aPage = document.createElement("div");
        aPage.className = "centered";
        aPage.style.position = "absolute";
        aPage.id = div;
        aPage.style.left = "0";
        aPage.setAttribute("data-pagedescription", description);
        aPage.style.position = "absolute";
        aPage.style.top = 45*scale+"px";
        aPage.style.backgroundColor = "#2550FF";
        aPage.style.left = "calc(50% - "+540*scale+"px)";
        aPage.style.border = 15*scale+"px solid #2550FF";
        aPage.style.borderRadius = 25*scale+"px";
        aPage.style.height = 786.42857*scale+"px";
        aPage.style.width = 1100*scale+"px";
        var frame = document.createElement("iframe");
        frame.src = url;
        frame.id = id;
        frame.style.height = "100%";
        frame.style.width = "100%";
        frame.style.backgroundColor = "#FFFFFF";
        aPage.appendChild(frame);
        document.body.appendChild(aPage);
        hide(aPage);

        window.addEventListener("resize", function() { //This is all just to make sure the iframe resizes based on the window dimensions
            if (aPage == centered) return "We don't resize the main game page"; //If it is hidden, don't resize it

            var vw = unsafeWindow.innerWidth / 100;
            var vh = unsafeWindow.innerHeight / 100;

        });

        window.dispatchEvent(new Event('resize')); //Set initial sizes based on window size
    }
    addPage("http://fc.sk89q.com/webfcml/", "FCML Editor", "editor", "editdiv");
    addPage("http://id36.ueuo.com/", "Other Website", "otherSites", "otherdiv");
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////PAGE SCROLL CODE/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function getNextPage(direction) { //direction="right" or "left"
        var pages = document.getElementsByClassName("centered");
        var hub = 0;

        hide(pages[currentPageNumber]);

        if (direction == "right") {
            if (currentPageNumber + 1 >= pages.length) {
                currentPageNumber = 0;
            }
            else {
                currentPageNumber += 1;
            }
        }

        if (direction == "left") {
            if (currentPageNumber - 1 < 0) {
                currentPageNumber = pages.length - 1;
            }
            else {
                currentPageNumber -= 1;
            }
        }

        show(pages[currentPageNumber]);
        if (currentPageNumber == 0){
            if(document.getElementById("sHubs").checked){
                document.getElementById('lateHub').style.display = 'none';
                document.getElementById('TopHub').style.display = 'none';
                document.getElementById('dsgHub').style.display = 'none';
                document.getElementById('cAmt').style.display = 'none';
                document.getElementById('cInput').style.display = 'none';
                document.getElementById('ctitle').style.display = 'none';
                document.getElementById('cSubmit').style.display = 'none';
                document.getElementById('resetHub').style.display = "none";
            }else{
                document.getElementById('lateHub').style.display = 'block';
                document.getElementById('TopHub').style.display = 'none';
                document.getElementById('dsgHub').style.display = 'none';
                document.getElementById('cAmt').style.display = 'block';
                document.getElementById('cInput').style.display = 'block';
                document.getElementById('ctitle').style.display = 'block';
                document.getElementById('cSubmit').style.display = 'block';
                document.getElementById('resetHub').style.display = "block";
            }
            if(document.getElementById("sLvl").checked){
                document.getElementById("randLevelHub").style.display = 'none';
            }else{
                document.getElementById("randLevelHub").style.display = 'block';
            }
            if(document.getElementById("sChat").checked){
                document.getElementById("chatHub").style.display = 'none';
            }else{
                document.getElementById("chatHub").style.display = 'block';
            }

            if(document.getElementById("sScroll").checked){
                document.getElementById("leftBtn").style.display = 'none';
                document.getElementById("rightBtn").style.display = 'none';
                document.getElementById("pageDescription").style.display = 'none';
            }else{
                document.getElementById("leftBtn").style.display = 'block';
                document.getElementById("rightBtn").style.display = 'block';
                document.getElementById("pageDescription").style.display = 'block';
            }
            
        }
        if (currentPageNumber != 0){
            document.getElementById('chatHub').style.display = 'none';
            document.getElementById('tweakBtn').src = btnOff;
            btnState = "Off";
            document.getElementById('rArrow').style.display = 'none';
        }
        if (currentPageNumber == 1){            
            document.getElementById('fcmlHub').style.display = 'block';
            if(document.getElementById("editor").src == "http://fc.sk89q.com/webfcml/"){
                document.getElementById('fcmlHubE').style.display = 'block';
            }
        }
        if (currentPageNumber != 1){
            document.getElementById('fcmlHub').style.display = 'none';
            document.getElementById('fcmlHubE').style.display = 'none';            

        }
        if (currentPageNumber == 2){
            document.getElementById("iframeHub").style.display = "block";
            document.getElementById('rArrow').style.display = 'none';
        }
        if (currentPageNumber != 2){
            document.getElementById("iframeHub").style.display = "none";
        }


        if (currentPageNumber < 100){
            document.getElementById("leftBtn").style.display = "block";
            document.getElementById("rightBtn").style.display = "block";
            document.getElementById("pageDescription").style.display = "block";
            document.getElementById("sHub").style.display = 'none';
        }

        document.getElementById("pageDescription").innerHTML = pages[currentPageNumber].getAttribute("data-pagedescription");
    }




////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////SCROLL ELEMENTS//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function addScrollElements() {
        var leftButton = document.createElement("img");
        var rightButton = document.createElement("img");

        var centerDescOffset = 13*scale;

        leftButton.style.width = 2.5*scale+"em";
        rightButton.style.width = 2.5*scale+"em";
        leftButton.id = "leftBtn";
        rightButton.id = "rightBtn";
        leftButton.style.cursor = "pointer";
        rightButton.style.cursor = "pointer";
        leftButton.style.position = "absolute";
        rightButton.style.position = "absolute";
        leftButton.style.top = 0*scale+"px";
        leftButton.style.right = 275*scale+"px";
        rightButton.style.top = 0*scale+"px";
        rightButton.style.right = 90*scale+"px";
        leftButton.src = leftArrowPic;
        rightButton.src = rightArrowPic;

        var pageName = document.createElement("div");
        pageName.style.position = "absolute";
        pageName.style.width = 160*scale+"px";
        pageName.style.top = "0px";
        pageName.style.right = 120*scale+"px";
        pageName.style.fontSize = 0.9*scale+"em";
        pageName.id = "pageDescription";
        pageName.innerHTML = centered.getAttribute("data-pagedescription");
        pageName.style.textAlign = "center";

        leftButton.addEventListener("click", function() {
            getNextPage("left");
        });

        rightButton.addEventListener("click", function() {
            getNextPage("right");
        });

        centered.appendChild(leftButton);
        centered.appendChild(pageName);
        centered.appendChild(rightButton);
    }
    addScrollElements();

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////TEXTFIELD BUTTON WIDGET//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function addInputWidget(leftAmount, topAmount, titleText, actionText, callback) {
        //Add the base DIV
        var section = document.createElement('div'); //Create the surrounding div
        section.style.position = "absolute"; //Positioning
        section.style.top = topAmount*scale; //etc.
        section.style.left = leftAmount*scale; //etc.
        section.style.width = 284*scale+"px";
        section.style.textAlign = "center"; //Center everything
        document.body.appendChild(section); //Add the div to the document. It will not dissapear when other pages are requested

        //Add a title
        var title = document.createElement("h4"); //Just a text element
        title.innerHTML = titleText; //Text to show
        section.appendChild(title);

        //Create a box to enter some input!
        var input = document.createElement("input"); //Create the input
        input.type = "text"; //Textbox
        input.style.padding = 5*scale+"px"; //Just some styles
        input.style.borderRadius = 5*scale+"px";
        input.style.border = "none";
        input.style.height = 30*scale+"px";

        //Now create a button to save the info
        var submit = document.createElement("input"); //Create the button. May want to replace with an image later because images>buttons
        submit.type = "button"; //Button
        submit.value = actionText; //What the button says
        submit.style.marginLeft = 5*scale+"px";
        submit.style.padding = 5*scale+"px";
        submit.style.border = "none";
        submit.style.borderRadius = 5*scale+"px";
        submit.style.height = 40+scale+"px";
        submit.style.cursor = "pointer"; //Set cursor to pointer, to make it obvious it is clickable

        input.addEventListener("keypress", function(event) { //So pressing ENTER submits the thing
            if (event.keyCode == 13) {
                submit.click();
            }
        });

        //Now create an invisible submit button so by default pressing ENTER will 

        submit.addEventListener('click', function() {
            if (!input.value) return false; //If blank was entered
            callback(input.value);
        });

        //Now add the things
        section.appendChild(input);
        section.appendChild(submit);
    }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////RED ARROW BLOCKER////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function addRedArrowBlocker()
    {
        var blocker = document.createElement("div");
        var boundingSWF = document.getElementById('contraption').getBoundingClientRect();
        with (blocker)
        {
            style.width = 90*scale+"px";
            style.height = 90*scale+"px";
            style.left = (boundingSWF.right - 60*scale) + "px";
            style.top = (boundingSWF.top + 15*scale) + "px";
            style.backgroundImage = "url('http://i.imgur.com/FXfHqwG.png')";
            style.backgroundSize= "100% auto";
            style.borderRadius = 35*scale+"px";
            style.position = "absolute";
            style.display = "none";
            style.zIndex = "200";
            id = "rArrow";
        }

        function drag(e)
        {
            var diffX = cursorOffsetX - (e.clientX - Number(blocker.style.left.split('p')[0]));
            var diffY = cursorOffsetY - (e.clientY - Number(blocker.style.top.split('p')[0]));
            var dist = Math.sqrt(Math.pow(diffX, 2) + Math.pow(diffY, 2));
            if (dist > 20)
            {
                blocker.style.top = e.clientY - cursorOffsetY + "px";
                blocker.style.left = e.clientX - cursorOffsetX + "px";
            }
        }

        function addDrag(e)
        {
            window.addEventListener("mousemove", drag);
        }

        document.body.appendChild(blocker);
        blocker.addEventListener("mousedown", function(e) {
            cursorOffsetX = e.clientX - Number(blocker.style.left.split('p')[0]);
            cursorOffsetY = e.clientY - Number(blocker.style.top.split('p')[0]);
            addDrag(e);
        });
        window.addEventListener("mouseup", function() {
            window.removeEventListener('mousemove', drag);
        });
    }
    addRedArrowBlocker();



////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////VARIABLES FOR HUBS///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var topLvlListId = [];
    var topLvlListName = [];
    var lateLvlListId = [];
    var lateLvlListName = [];
    var dsgId = [];
    var dsgName = [];
    var dsgUser = [];
    var topItr = 0;
    var lateItr = 0;
    var maxL = 5;
    var contHolder = "";
    var lBtn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA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4uCjEFF8khDLBpY6kDVEKJn5fe+akNK0YaRqUHfgYoqcsprTa9zcWv2aAfljypRLo0QoVwWtCEZXhNOjuuGR3OmNWVPzPGwtMfcV+XTCdsyi1XcogyWm7lG9IbpM6y0IrYaWds9rJWermLOQZuTXSTo/IEDlmac2bLV+TQN/7c/BFs/+5BLUJUZq6qbrRIj0ZojTUlp56ztSXGIvDgQqvJkYdTcvBFCSnKc5wABo5iu/m60A/ZPl8gA++N6ZpQwxNa8CDpfFADxO/2XTRM3rY7topJFHEKlRuuWEMpPHRE+fRtxiavTu9P1fZ14H+Csjn52CpNk6M+Q/z3C1/t/RGFEeLKBAth2RNVsGExspW06QyCfck9+vdzVS5f4bHm90y8bjyNQf0F/yOA3J4RYhN8sP856YvUXH4s95TTXlYgZUfBA0OAGvcmwdLthzBBvN1oP+QxPvmmGIPezHHN3ydzEuCIvENQB809Wtpk34XaPwuUQ9Ks5Qo0D1uueJXuXzNA/0GhZuDFLlruCVqv/D/waEC6xG5d380YP4jAXTTsq95D3Por9aD7TY25HDm8yA76Evh5KAAOsxVOcyX/4b5SNKjiWO/FuRrH+ivy7Hka+Ns8HV5YPm/AJorRI1NDJrtAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA5LTE5VDE1OjEyOjIxLTA1OjAwzJgfcQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0wOS0xOVQxNToxMjoyMS0wNTowML3Fp80AAAARdEVYdGpwZWc6Y29sb3JzcGFjZQAyLHVVnwAAACB0RVh0anBlZzpzYW1wbGluZy1mYWN0b3IAMXgxLDF4MSwxeDHplfxwAAAAAElFTkSuQmCC";
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////LATEST HUB///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var lateHub = document.createElement("div");
    lateHub.style.position = "absolute";
    lateHub.style.display = "block";
    lateHub.style.borderStyle = "solid";
    lateHub.style.borderRadius = 25*scale+"px";
    lateHub.style.borderColor = "blue";
    lateHub.style.top = 48*scale+"px";
    lateHub.style.left = 20*scale+"px";
    lateHub.style.backgroundImage = "url('http://i67.tinypic.com/w6w514.jpg')";
    lateHub.style.width = locationBox.left - 50+"px";
    if(locationBox.left - 50 > 320){
        lateHub.style.width = "320px"
    }
    lateHub.style.height="85%";
    lateHub.id = "lateHub";
    lateHub.innerHTML = "<img src ='http://i68.tinypic.com/2m5hvh1.gif' width='100%' title= 'Switch to Top Levels' id='displayTop'>";
    centered.appendChild(lateHub);
    //------Create Area where Levels Generate
    var lateInnerHub = document.createElement("div");
    lateInnerHub.style.position = "absolute";
    lateInnerHub.id = "lateInnerHub";
    lateInnerHub.style.width = locationBox.left - 50+"px";
    if(locationBox.left - 50 > 320){
        lateInnerHub.style.width = "320px"
    }
    lateInnerHub.style.overflowY = "auto";
    lateInnerHub.style.maxHeight="85%";
    lateHub.appendChild(lateInnerHub);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////TOP HUB//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var TopHub = document.createElement("div");
    TopHub.style.position = "absolute";
    TopHub.style.display = "none";
    TopHub.style.borderStyle = "solid";
    TopHub.style.borderRadius = 25*scale+"px";
    TopHub.style.borderColor = "blue";
    TopHub.style.top = 48*scale+"px";
    TopHub.style.left = 20+scale+"px";
    TopHub.style.backgroundImage = "url('http://i67.tinypic.com/w6w514.jpg')";
    TopHub.style.width = locationBox.left - 50+"px";
    if(locationBox.left - 50 > 320){
        TopHub.style.width = "320px"
    }
    TopHub.style.height="85%";
    TopHub.id = "TopHub";
    TopHub.innerHTML = "<img src='http://i63.tinypic.com/2uixhg8.gif' width='100%' title='Switch to Latest Levels' id='displayLatest'>";
    centered.appendChild(TopHub);
    //-----Create area where levels generate
    var lateTopHub = document.createElement("div");
    lateTopHub.style.position = "absolute";
    lateTopHub.id = "TopInnerHub";
    lateTopHub.style.overflowY = "auto";
    lateTopHub.style.width = locationBox.left - 50+"px";
    if(locationBox.left - 50 > 320){
        lateTopHub.style.width = "320px"
    }
    lateTopHub.style.maxHeight="85%";
    TopHub.appendChild(lateTopHub);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////DESIGN HUB///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var dsgHub = document.createElement("div");
    dsgHub.style.position = "absolute";
    dsgHub.style.display = "none";
    dsgHub.style.borderStyle = "solid";
    dsgHub.style.borderRadius = "25px";
    dsgHub.style.borderColor = "blue";
    dsgHub.style.backgroundImage = "url('http://i67.tinypic.com/w6w514.jpg')";
    dsgHub.style.top = 48*scale+"px";
    dsgHub.style.left = 20*scale+"px";
    dsgHub.style.width = locationBox.left - 50+"px";
    if(locationBox.left - 50 > 320){
        dsgHub.style.width = "320px"
    }
    dsgHub.style.height="85%";
    dsgHub.id = "dsgHub";
    dsgHub.innerHTML = "<img src='http://i67.tinypic.com/imjmzo.gif' width='100%' title='Click to go Back' id='backBtn'>";
    centered.appendChild(dsgHub);
    //-----Create area where designs generate
    var dsgInnerHub = document.createElement("div");
    dsgInnerHub.style.position = "absolute";
    dsgInnerHub.id = "dsgInnerHub";
    dsgInnerHub.style.overflowY = "auto";
    dsgInnerHub.style.maxHeight="85%";
    dsgInnerHub.style.width = locationBox.left - 50+"px";
    if(locationBox.left - 50 > 320){
        dsgInnerHub.style.width = "320px"
    }
    dsgInnerHub.style.textAlign="left";
    dsgHub.appendChild(dsgInnerHub);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////HUB TOGGLE CODE//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    document.getElementById("displayLatest").onclick = function(){
        document.getElementById('lateHub').style.display = 'block';
        document.getElementById('TopHub').style.display = 'none';
        document.getElementById('dsgHub').style.display = 'none';
    };
    document.getElementById("displayTop").onclick = function(){
        document.getElementById('TopHub').style.display = 'block';
        document.getElementById('lateHub').style.display = 'none';
        document.getElementById('dsgHub').style.display = 'none';
    };
    document.getElementById("backBtn").onclick = function(){
        document.getElementById('lateHub').style.display = 'block';
        document.getElementById('TopHub').style.display = 'none';
        document.getElementById('dsgHub').style.display = 'none';
    };

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////HUB REFRESH BUTTON///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var reset = document.createElement("input");
    reset.type = "image";
    reset.src = hBtn;
    reset.title = "Reset Hub";
    reset.style.height = 40*scale+"px";
    reset.style.width = 40*scale+"px";
    reset.style.padding = "0px";
    reset.id = "resetHub";
    reset.style.position = "absolute";
    reset.style.top = "0px";
    reset.style.left = 72*scale+"px";
    reset.style.display = "none";
    centered.appendChild(reset);
    document.getElementById("resetHub").onclick = function(){
        if (pageLocked)
        {
            giveMessage("You cannot do that while the page is locked.");
        }
        else
        {
            var r = confirm("Refreshing the Hub will refresh the game. All current designs will be lost. Are you sure you want to continue?");
            if(r == true){
                contHolder = ctr.innerHTML;
                document.getElementsByClassName("border")[0].style.backgroundImage = "url('http://fantasticcontraption.com/images/fantastic_contraption_border.png')";
                ctr.innerHTML = "<center><br><br><h1>Please Wait While Hubs Load</h1><br><br><h2>This may take a minute depending on the size of the levels.<br>Thank you for your patience!</h2><br><br><br><h4>--FC Enhance Development Team</h4></center>";
                lateItr = 0;
                topItr = 0;
                resetHub();
            }else{
                giveMessage("The Hub Was Not Refreshed");
            }
        }
    };
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////SETTINGS BOX/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var settingFC = document.createElement("input");
    settingFC.type = "image";
    settingFC.src = settingsBtn;
    settingFC.title = "Settings";
    settingFC.style.height = 40*scale+"px";
    settingFC.style.width = 40*scale+"px";
    settingFC.style.padding = "0px";
    settingFC.id = "settingsHub";
    settingFC.style.position = "absolute";
    settingFC.style.top = "0px";
    settingFC.style.right = 45*scale+"px";
    centered.appendChild(settingFC);
    var sHub = document.createElement("div");
    sHub.style.position = "absolute";
    sHub.id = "sHub";
    sHub.style.top = "0px";
    sHub.style.left = 25*scale+"%";
    sHub.style.zIndex = "202";
    sHub.style.height = "234px";
    sHub.style.width = "900px";
    sHub.style.backgroundSize="cover";
    sHub.style.backgroundImage = "url('http://i.imgur.com/UIFAk04.png')";
    sHub.style.display = "none";
    sHub.class = "centered";
    centered.appendChild(sHub);
    document.getElementById("settingsHub").onclick = function (){
        if (sHub.style.display == "none"){
            sHub.style.display = "block";
        }else{
            sHub.style.display = "none";
        }    
    };
    sHub.innerHTML = '<br><form action="" id="sForm"><h1>Hide Features On Page</h1><br><input type="checkbox" value="hubs" id="sHubs">Level Hubs <input type="checkbox" value="rLvl" id="sLvl">Random Level Hub <input type="checkbox" value="chat" id="sChat">Chat Hub <input type="checkbox" value="lvlScroll" id="sScroll">Feature Scroll</form>';
    //Start doing stuff when boxes are checked
    document.getElementById("sHubs").onclick = function (){
        if(document.getElementById("sHubs").checked){
            document.getElementById('lateHub').style.display = 'none';
            document.getElementById('TopHub').style.display = 'none';
            document.getElementById('dsgHub').style.display = 'none';
            document.getElementById('cAmt').style.display = 'none';
            document.getElementById('cInput').style.display = 'none';
            document.getElementById('ctitle').style.display = 'none';
            document.getElementById('cSubmit').style.display = 'none';
            document.getElementById('resetHub').style.display = "none";
        }else{
            document.getElementById('lateHub').style.display = 'block';
            document.getElementById('TopHub').style.display = 'none';
            document.getElementById('dsgHub').style.display = 'none';
            document.getElementById('cAmt').style.display = 'block';
            document.getElementById('cInput').style.display = 'block';
            document.getElementById('ctitle').style.display = 'block';
            document.getElementById('cSubmit').style.display = 'block';
            document.getElementById('resetHub').style.display = "block";
        }
    };
    document.getElementById("sLvl").onclick = function (){
        if(document.getElementById("sLvl").checked){
            document.getElementById("randLevelHub").style.display = 'none';
        }else{
            document.getElementById("randLevelHub").style.display = 'block';
        }

    };
    document.getElementById("sChat").onclick = function (){
        if(document.getElementById("sChat").checked){
            document.getElementById("chatHub").style.display = 'none';
        }else{
            document.getElementById("chatHub").style.display = 'block';
        }

    };
    document.getElementById("sScroll").onclick = function (){
        if(document.getElementById("sScroll").checked){
            document.getElementById("leftBtn").style.display = 'none';
            document.getElementById("rightBtn").style.display = 'none';
            document.getElementById("pageDescription").style.display = 'none';
        }else{
            document.getElementById("leftBtn").style.display = 'block';
            document.getElementById("rightBtn").style.display = 'block';
            document.getElementById("pageDescription").style.display = 'block';
        }

    };


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////FCML EXPORT HUB//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var fcmlHub = document.createElement("div");
    fcmlHub.style.position = "absolute";
    fcmlHub.style.display = "none";
    fcmlHub.style.borderStyle = "solid";
    fcmlHub.style.borderRadius = 25*scale+"px";
    fcmlHub.style.borderColor = "blue";
    fcmlHub.style.backgroundImage = "url('http://i67.tinypic.com/w6w514.jpg')";
    fcmlHub.style.top = 48*scale+"px";
    fcmlHub.style.right = 20*scale+"px";
    fcmlHub.style.width = 320*scale+"px";
    fcmlHub.style.height="85%";
    fcmlHub.id = "fcmlHub";
    centered.appendChild(fcmlHub);
    fcmlHub.innerHTML = "<center><div id = 'fcmlInnerHub'><h1>FCML EXPORT HUB</h1></div><center>";
    document.getElementById("fcmlInnerHub").style.height = "100%";
    document.getElementById("fcmlInnerHub").style.overflowY = "auto";
    var exportInput = document.createElement("input");
    exportInput.type = "text";
    exportInput.id = "exportInput";
    exportInput.style.width = "95%";
    exportInput.style.borderRadius = 5*scale+"px";
    exportInput.style.border = 5*scale+"px";
    exportInput.style.textAlign = "center";
    exportInput.style.height = 30*scale+"px";
    document.getElementById("fcmlInnerHub").appendChild(exportInput);
    var exportButton = document.createElement("input");
    exportButton.type = "submit";
    exportButton.id = "exportButton";
    exportButton.style.width = "95%";
    exportButton.style.borderRadius = 5*scale+"px";
    exportButton.style.border = 5*scale+"px";
    exportButton.value = "Enter Level ID and Click for FCML Export";
    document.getElementById("fcmlInnerHub").appendChild(exportButton);
    var exportFrame = document.createElement("iframe");
    exportFrame.id = "exportFrame";
    exportFrame.src = "";
    exportFrame.width = "90%";
    exportFrame.height = 575*scale+"px";
    exportFrame.style.overflowY = "auto";
    document.getElementById("fcmlInnerHub").appendChild(exportFrame);
    var exportClear = document.createElement("input");
    exportClear.type = "submit";
    exportClear.id = "exportClear";
    exportClear.style.width = "95%";
    exportClear.value = "Clear FCML";
    exportClear.style.borderRadius = 5*scale+"px";
    exportClear.style.border = 5*scale+"px";
    exportClear.style.display = "none";
    document.getElementById("fcmlInnerHub").appendChild(exportClear);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////EDITOR TOGGLE BUTTON/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var switchEditor = document.createElement("input");
    switchEditor.type = "submit";
    switchEditor.id = "switchEditor";
    switchEditor.style.width = "95%"; 
    switchEditor.style.height= '30px';
    switchEditor.style.margin = "5px";
    switchEditor.value = "Switch Editors";
    switchEditor.style.borderRadius = 5*scale+"px";
    switchEditor.style.border = 5*scale+"px";
    document.getElementById("fcmlHub").appendChild(switchEditor);
    //Do stuff to load the FCML export
    document.getElementById("exportButton").onclick = function() {
        var exportId = document.getElementById("exportInput").value;
        if (exportId % 1 === 0 && !isNaN(exportId) && exportId.length > 0){
            $.ajax({
                type: "POST",
                dataType: "xml",
                url: "http://fantasticcontraption.com/retrieveLevel.php",
                data: {
                    id: exportId,
                },
                error: function(data){
                    alert("Unabale to load FCML for ID: "+exportId+" due to corrupted level data!\nIf you feel this is an error, please contact FC Enhance development team.");
                    document.getElementById("exportFrame").src = "";
                },
                success: function(data) {
                    var x = data.getElementsByTagName('levelId');
                    var y  = x[0].innerHTML;
                    if(y == exportId){
                        document.getElementById("exportFrame").src = "http://fc.sk89q.com/export?type=level&id=" + exportId + "&format=fcml";
                        document.getElementById("exportFrame").style.backgroundColor = "#87BEF1";
                        document.getElementById("exportClear").style.display = "block";
                    }else{
                        alert("ID does not Exist!");
                        document.getElementById("exportFrame").src = "";
                    }
                }
            });
        }else{
            alert("Please Enter A Valid ID!");
        }
    };
    //Do stuff to clear FCML
    document.getElementById("exportClear").onclick = function() {
        document.getElementById("exportFrame").src = "";
        document.getElementById("exportFrame").style.backgroundColor = "";
        document.getElementById("exportClear").style.display = "none";
        document.getElementById("exportInput").value = "";

    };
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////SWITCH EDITORS///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    document.getElementById("switchEditor").onclick = function() {
        var currentEditor = document.getElementById("editor").src;
        var conf = confirm("Switching Editors Will Result In Loss of Work!\n\n Do You Wish To Continue?");
        if(conf){
            if(currentEditor == "http://fc.sk89q.com/webfcml/"){
                document.getElementById("fcmlInnerHub").style.display = 'none';
                document.getElementById("fcmlHub").style.height = '35px';
                document.getElementById("fcmlHubE").style.display = 'none';
                document.getElementById("editor").src = 'http://editor.eu5.org/';
                document.getElementById("editdiv").style.left = "calc(50% - "+840*scale+"px)";
                document.getElementById("editdiv").style.width = 1400*scale+"px";
            }else{
                document.getElementById("fcmlHub").style.height = '85%';
                document.getElementById("fcmlInnerHub").style.display = 'block';
                document.getElementById("fcmlHubE").style.display = 'block';
                document.getElementById("editor").src = 'http://fc.sk89q.com/webfcml/';
                document.getElementById("editdiv").style.left = "calc(50% - "+540*scale+"px)";
                document.getElementById("editdiv").style.width = 1100*scale+"px";
            }
        }
    }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////FCML CONVERSION HUB//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var fcmlHubE = document.createElement("div");
    fcmlHubE.style.position = "absolute";
    fcmlHubE.style.display = "none";
    fcmlHubE.style.borderStyle = "solid";
    fcmlHubE.style.borderRadius = 25*scale+"px";
    fcmlHubE.style.borderColor = "blue";
    fcmlHubE.style.backgroundImage = "url('http://i67.tinypic.com/w6w514.jpg')";
    fcmlHubE.style.top = 48*scale+"px";
    fcmlHubE.style.left = 20*scale+"px";
    fcmlHubE.style.width = 360*scale+"px";
    fcmlHubE.style.height="85%";
    fcmlHubE.id = "fcmlHubE";
    centered.appendChild(fcmlHubE);
    fcmlHubE.innerHTML = "<center><div id = 'fcmlInnerHubE'><h1>FCML Special Piece Conversion</h1></div><center>";
    document.getElementById("fcmlInnerHubE").style.height = "100%";
    document.getElementById("fcmlInnerHubE").style.width = "90%";
    document.getElementById("fcmlInnerHubE").style.overflowY = "auto";
    var hr1 = document.createElement("hr");
    hr1.style.borderStyle = "inset";
    hr1.style.borderWidth = 5*scale+"px";
    hr1.style.borderColor = "#87BEF1";
    document.getElementById("fcmlInnerHubE").appendChild(hr1);
    var pgpTitle = document.createElement("h4"); //Just a text element
    pgpTitle.innerHTML = "Powered wheels &#10142; Powered goal pieces"; //Text to show
    pgpTitle.id = "pgpTitle";
    document.getElementById("fcmlInnerHubE").appendChild(pgpTitle);
    var exportPGP = document.createElement("input");
    exportPGP.type = "text";
    exportPGP.value = "Enter an ID";
    exportPGP.id = "exportPGP";
    exportPGP.style.width = "35%";
    exportPGP.style.borderRadius = 5*scale+"px";
    exportPGP.style.border = 5*scale+"px";
    exportPGP.style.textAlign = "center";
    exportPGP.style.height = 20*scale+"px";
    document.getElementById("fcmlInnerHubE").appendChild(exportPGP);
    var PGPButton = document.createElement("input");
    PGPButton.type = "submit";
    PGPButton.id = "PGPButton";
    PGPButton.style.borderRadius = 5*scale+"px";
    PGPButton.style.border = 5*scale+"px";
    PGPButton.value = "Convert!";
    PGPButton.style.height = 20*scale+"px";
    document.getElementById("fcmlInnerHubE").appendChild(PGPButton);
    var exportPGP2 = document.createElement("input");
    exportPGP2.type = "text";
    exportPGP2.id = "exportPGP2";
    exportPGP2.style.width = "35%";
    exportPGP2.style.borderRadius = 5*scale+"px";
    exportPGP2.style.border = 5*scale+"px";
    exportPGP2.style.textAlign = "center";
    exportPGP2.style.height = 20*scale+"px";
    document.getElementById("fcmlInnerHubE").appendChild(exportPGP2);
    document.getElementById("PGPButton").onclick = function(){        
        var levelId = document.getElementById("exportPGP").value;
        if (levelId % 1 === 0 && !isNaN(levelId) && levelId.length > 0){
            GM_xmlhttpRequest({
                method: "POST",
                dataType: "xml",
                url: "http://id36.ueuo.com/ver-fcml-pgp.php",
                data: "levelid="+levelId+"",
                headers: {
                    "Content-Type": "application/x-www-form-urlencoded"
                },
                onload: function(response) {
                    var x = response.responseText;
                    var y = x.match(/<div.+?(?=<\/div>)/g);
                    if(y){
                        x = x.split(y[0]).pop();
                        x = x.split("<img").pop();
                        x = x.split("</div>").pop();
                        x.split("\n").pop();
                        document.getElementById("exportPGP2").value = x;
                        document.getElementById("exportPGP").value = "SUCCESS!!!!";
                        setTimeout(function(){ document.getElementById("exportPGP").value = "Enter an ID"; }, 1000);
                    }else{
                        document.getElementById("exportPGP2").value = x;
                        document.getElementById("exportPGP").value = "SUCCESS!!!!";
                        setTimeout(function(){ document.getElementById("exportPGP").value = "Enter an ID"; }, 1000);
                    }
                } 
            });
        }else{
            alert("Please Enter A Valid ID!");
        }
    };
    var PinTitle = document.createElement("h4"); //Just a text element
    PinTitle.innerHTML = "(Powered) wheels &#10142; Pins"; //Text to show
    PinTitle.id = "PinTitle";
    document.getElementById("fcmlInnerHubE").appendChild(PinTitle);
    var exportPin = document.createElement("input");
    exportPin.type = "text";
    exportPin.value = "Enter an ID";
    exportPin.id = "exportPin";
    exportPin.style.width = "35%";
    exportPin.style.borderRadius = 5*scale+"px";
    exportPin.style.border = 5*scale+"px";
    exportPin.style.textAlign = "center";
    exportPin.style.height = 20*scale+"px";
    document.getElementById("fcmlInnerHubE").appendChild(exportPin);
    var PinButton = document.createElement("input");
    PinButton.type = "submit";
    PinButton.id = "PinButton";
    PinButton.style.borderRadius = 5*scale+"px";
    PinButton.style.border = 5*scale+"px";
    PinButton.value = "Convert!";
    PinButton.style.height = 20*scale+"px";
    document.getElementById("fcmlInnerHubE").appendChild(PinButton);
    var exportPin2 = document.createElement("input");
    exportPin2.type = "text";
    exportPin2.id = "exportPin2";
    exportPin2.style.width = "35%";
    exportPin2.style.borderRadius = 5*scale+"px";
    exportPin2.style.border = 5*scale+"px";
    exportPin2.style.textAlign = "center";
    exportPin2.style.height = 20*scale+"px";
    document.getElementById("fcmlInnerHubE").appendChild(exportPin2);
    document.getElementById("PinButton").onclick = function(){        
        var levelId = document.getElementById("exportPin").value;
        if (levelId % 1 === 0 && !isNaN(levelId) && levelId.length > 0){
            GM_xmlhttpRequest({
                method: "POST",
                dataType: "xml",
                url: "http://id36.ueuo.com/ver-fcml-pin.php",
                data: "levelid="+levelId+"",
                headers: {
                    "Content-Type": "application/x-www-form-urlencoded"
                },
                onload: function(response) {
                    var x = response.responseText;
                    var y = x.match(/<div.+?(?=<\/div>)/g);
                    if(y){
                        x = x.split(y[0]).pop();
                        x = x.split("<img").pop();
                        x = x.split("</div>").pop();
                        x.split("\n").pop();
                        document.getElementById("exportPin2").value = x;
                        document.getElementById("exportPin").value = "SUCCESS!!!!";
                        setTimeout(function(){ document.getElementById("exportPin").value = "Enter an ID"; }, 1000);
                    }else{
                        document.getElementById("exportPin2").value = x;
                        document.getElementById("exportPin").value = "SUCCESS!!!!";
                        setTimeout(function(){ document.getElementById("exportPin").value = "Enter an ID"; }, 1000);
                    }
                } 
            });
        }else{
            alert("Please Enter A Valid ID!");
        }
    };
    var GhostTitle = document.createElement("h4"); //Just a text element
    GhostTitle.innerHTML = "Dynamic pieces &#10142; Ghost pieces"; //Text to show
    GhostTitle.id = "GhostTitle";
    document.getElementById("fcmlInnerHubE").appendChild(GhostTitle);
    var exportGhost = document.createElement("input");
    exportGhost.type = "text";
    exportGhost.value = "Enter an ID";
    exportGhost.id = "exportGhost";
    exportGhost.style.width = "35%";
    exportGhost.style.borderRadius = "5px";
    exportGhost.style.border = "5px";
    exportGhost.style.textAlign = "center";
    exportGhost.style.height = "20px";
    document.getElementById("fcmlInnerHubE").appendChild(exportGhost);
    var GhostButton = document.createElement("input");
    GhostButton.type = "submit";
    GhostButton.id = "GhostButton";
    GhostButton.style.borderRadius = "5px";
    GhostButton.style.border = "5px";
    GhostButton.value = "Convert!";
    GhostButton.style.height = "20px";
    document.getElementById("fcmlInnerHubE").appendChild(GhostButton);
    var exportGhost2 = document.createElement("input");
    exportGhost2.type = "text";
    exportGhost2.id = "exportGhost2";
    exportGhost2.style.width = "35%";
    exportGhost2.style.borderRadius = "5px";
    exportGhost2.style.border = "5px";
    exportGhost2.style.textAlign = "center";
    exportGhost2.style.height = "20px";
    document.getElementById("fcmlInnerHubE").appendChild(exportGhost2);
    document.getElementById("GhostButton").onclick = function(){        
        var levelId = document.getElementById("exportGhost").value;
        if (levelId % 1 === 0 && !isNaN(levelId) && levelId.length > 0){
            GM_xmlhttpRequest({
                method: "POST",
                dataType: "xml",
                url: "http://id36.ueuo.com/ver-fcml-dgp.php",
                data: "levelid="+levelId+"",
                headers: {
                    "Content-Type": "application/x-www-form-urlencoded"
                },
                onload: function(response) {
                    var x = response.responseText;
                    var y = x.match(/<div.+?(?=<\/div>)/g);
                    if(y){
                        x = x.split(y[0]).pop();
                        x = x.split("<img").pop();
                        x = x.split("</div>").pop();
                        x.split("\n").pop();
                        document.getElementById("exportGhost2").value = x;
                        document.getElementById("exportGhost").value = "SUCCESS!!!!";
                        setTimeout(function(){ document.getElementById("exportGhost").value = "Enter an ID"; }, 1000);
                    }else{
                        document.getElementById("exportGhost2").value = x;
                        document.getElementById("exportGhost").value = "SUCCESS!!!!";
                        setTimeout(function(){ document.getElementById("exportGhost").value = "Enter an ID"; }, 1000);
                    }
                } 
            });
        }else{
            alert("Please Enter A Valid ID!");
        }
    };
    var PhantomTitle = document.createElement("h4"); //Just a text element
    PhantomTitle.innerHTML = "Static pieces &#10142; Phantom pieces"; //Text to show
    PhantomTitle.id = "PhantomTitle";
    document.getElementById("fcmlInnerHubE").appendChild(PhantomTitle);
    var exportPhantom = document.createElement("input");
    exportPhantom.type = "text";
    exportPhantom.value = "Enter an ID";
    exportPhantom.id = "exportPhantom";
    exportPhantom.style.width = "35%";
    exportPhantom.style.borderRadius = "5px";
    exportPhantom.style.border = "5px";
    exportPhantom.style.textAlign = "center";
    exportPhantom.style.height = "20px";
    document.getElementById("fcmlInnerHubE").appendChild(exportPhantom);
    var PhantomButton = document.createElement("input");
    PhantomButton.type = "submit";
    PhantomButton.id = "PhantomButton";
    PhantomButton.style.borderRadius = "5px";
    PhantomButton.style.border = "5px";
    PhantomButton.value = "Convert!";
    PhantomButton.style.height = "20px";
    document.getElementById("fcmlInnerHubE").appendChild(PhantomButton);
    var exportPhantom2 = document.createElement("input");
    exportPhantom2.type = "text";
    exportPhantom2.id = "exportPhantom2";
    exportPhantom2.style.width = "35%";
    exportPhantom2.style.borderRadius = "5px";
    exportPhantom2.style.border = "5px";
    exportPhantom2.style.textAlign = "center";
    exportPhantom2.style.height = "20px";
    document.getElementById("fcmlInnerHubE").appendChild(exportPhantom2);
    document.getElementById("PhantomButton").onclick = function(){        
        var levelId = document.getElementById("exportPhantom").value;
        if (levelId % 1 === 0 && !isNaN(levelId) && levelId.length > 0){
            GM_xmlhttpRequest({
                method: "POST",
                dataType: "xml",
                url: "http://id36.ueuo.com/ver-fcml-spp.php",
                data: "levelid="+levelId+"",
                headers: {
                    "Content-Type": "application/x-www-form-urlencoded"
                },
                onload: function(response) {
                    var x = response.responseText;
                    var y = x.match(/<div.+?(?=<\/div>)/g);
                    if(y){
                        x = x.split(y[0]).pop();
                        x = x.split("<img").pop();
                        x = x.split("</div>").pop();
                        x.split("\n").pop();
                        document.getElementById("exportPhantom2").value = x;
                        document.getElementById("exportPhantom").value = "SUCCESS!!!!";
                        setTimeout(function(){ document.getElementById("exportPhantom").value = "Enter an ID"; }, 1000);
                    }else{
                        document.getElementById("exportPhantom2").value = x;
                        document.getElementById("exportPhantom").value = "SUCCESS!!!!";
                        setTimeout(function(){ document.getElementById("exportPhantom").value = "Enter an ID"; }, 1000);
                    }
                } 
            });
        }else{
            alert("Please Enter A Valid ID!");
        }
    };
    var NinjaTitle = document.createElement("h4"); //Just a text element
    NinjaTitle.innerHTML = "Static pieces &#10142; Ninja pieces"; //Text to show
    NinjaTitle.id = "NinjaTitle";
    document.getElementById("fcmlInnerHubE").appendChild(NinjaTitle);
    var exportNinja = document.createElement("input");
    exportNinja.type = "text";
    exportNinja.value = "Enter an ID";
    exportNinja.id = "exportNinja";
    exportNinja.style.width = "35%";
    exportNinja.style.borderRadius = "5px";
    exportNinja.style.border = "5px";
    exportNinja.style.textAlign = "center";
    exportNinja.style.height = "20px";
    document.getElementById("fcmlInnerHubE").appendChild(exportNinja);
    var NinjaButton = document.createElement("input");
    NinjaButton.type = "submit";
    NinjaButton.id = "NinjaButton";
    NinjaButton.style.borderRadius = "5px";
    NinjaButton.style.border = "5px";
    NinjaButton.value = "Convert!";
    NinjaButton.style.height = "20px";
    document.getElementById("fcmlInnerHubE").appendChild(NinjaButton);
    var exportNinja2 = document.createElement("input");
    exportNinja2.type = "text";
    exportNinja2.id = "exportNinja2";
    exportNinja2.style.width = "35%";
    exportNinja2.style.borderRadius = "5px";
    exportNinja2.style.border = "5px";
    exportNinja2.style.textAlign = "center";
    exportNinja2.style.height = "20px";
    document.getElementById("fcmlInnerHubE").appendChild(exportNinja2);
    document.getElementById("NinjaButton").onclick = function(){        
        var levelId = document.getElementById("exportNinja").value;
        if (levelId % 1 === 0 && !isNaN(levelId) && levelId.length > 0){
            GM_xmlhttpRequest({
                method: "POST",
                dataType: "xml",
                url: "http://id36.ueuo.com/ver-fcml-snp.php",
                data: "levelid="+levelId+"",
                headers: {
                    "Content-Type": "application/x-www-form-urlencoded"
                },
                onload: function(response) {
                    var x = response.responseText;
                    var y = x.match(/<div.+?(?=<\/div>)/g);
                    if(y){
                        x = x.split(y[0]).pop();
                        x = x.split("<img").pop();
                        x = x.split("</div>").pop();
                        x.split("\n").pop();
                        document.getElementById("exportNinja2").value = x;
                        document.getElementById("exportNinja").value = "SUCCESS!!!!";
                        setTimeout(function(){ document.getElementById("exportNinja").value = "Enter an ID"; }, 1000);
                    }else{
                        document.getElementById("exportNinja2").value = x;
                        document.getElementById("exportNinja").value = "SUCCESS!!!!";
                        setTimeout(function(){ document.getElementById("exportNinja").value = "Enter an ID"; }, 1000);
                    }
                } 
            });
        }else{
            alert("Please Enter A Valid ID!");
        }
    };
    var hr2 = document.createElement("hr");
    hr2.style.borderStyle = "inset";
    hr2.style.borderWidth = "5px";
    hr2.style.borderColor = "#87BEF1";

    document.getElementById("fcmlInnerHubE").appendChild(hr2);
    var noteTitle = document.createElement("h4"); //Just a text element
    noteTitle.innerHTML = "Note: For more information on pieces, how the convertors work, and the requirements for the conversions please visit ID36's website at <a href='http://id36.ueuo.com/fcml-conv.php' target='_blank'>http://id36.ueuo.com/fcml-conv.php</a><br><br>All credit to the FCML conversions go to ID36 and all parties involved in its creation. This hub is merely an ease of access used in the addon."; //Text to show
    noteTitle.id = "noteTitle";
    document.getElementById("fcmlInnerHubE").appendChild(noteTitle);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////OTHER RESOURCE IFRAME////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var iframeHub = document.createElement("div");
    iframeHub.style.position = "absolute";
    iframeHub.style.display = "none";
    iframeHub.style.borderStyle = "solid";
    iframeHub.style.borderRadius = 25*scale+"px";
    iframeHub.style.borderColor = "blue";
    iframeHub.style.backgroundImage = "url('http://i67.tinypic.com/w6w514.jpg')";
    iframeHub.style.top = 48*scale+"px";
    iframeHub.style.right = 20*scale+"px";
    iframeHub.style.width = 320*scale+"px";
    iframeHub.style.height="85%";
    iframeHub.id = "iframeHub";
    centered.appendChild(iframeHub);
    iframeHub.innerHTML = "<center><div id = 'iframeInnerHub'><h1>Other Website Hub</h1></div><center>";
    document.getElementById("iframeInnerHub").style.height = "100%";
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////ID36 BUTTON//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var id36Button = document.createElement("input");
    id36Button.type = "image";
    id36Button.id = "id36Button";
    id36Button.src = "http://i.imgur.com/iGWIDjI.gif";
    id36Button.style.width = "85%";
    id36Button.style.borderRadius = "5px";
    id36Button.style.border = "5px";
    id36Button.value = "ID36's Website";
    document.getElementById("iframeInnerHub").appendChild(id36Button);
    var br = document.createElement("br");
    document.getElementById("iframeInnerHub").appendChild(br);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////FCR BUTTON///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var fcrButton = document.createElement("input");
    fcrButton.type = "image";
    fcrButton.id = "fcrButton";
    fcrButton.style.width = "85%";
    fcrButton.style.borderRadius = "5px";
    fcrButton.style.border = "5px";
    fcrButton.value = "Fantastic Contraption Resource";
    fcrButton.src = "http://i.imgur.com/3KHnMxW.gif";
    document.getElementById("iframeInnerHub").appendChild(fcrButton);
    document.getElementById("iframeInnerHub").appendChild(br);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////FORUM BUTTON/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var forumButton = document.createElement("input");
    forumButton.type = "image";
    forumButton.id = "forumButton";
    forumButton.style.width = "85%";
    forumButton.style.borderRadius = "5px";
    forumButton.style.border = "5px";
    forumButton.value = "Fantastic Contraption Resource";
    forumButton.src = "http://i.imgur.com/ahpcfYU.gif";
    document.getElementById("iframeInnerHub").appendChild(forumButton);
    document.getElementById("iframeInnerHub").appendChild(br);
////////////////////////////////////////////////////
///////////////FEEDBACK BUTTON//////////////////////
////////////////////////////////////////////////////
    var feedbackButton = document.createElement("input");
    feedbackButton.type = "image";
    feedbackButton.id = "feedbackButton";
    feedbackButton.style.width = "85%";
    feedbackButton.style.borderRadius = "5px";
    feedbackButton.style.border = "5px";
    feedbackButton.value = "Fantastic Contraption Resource";
    feedbackButton.src = "http://i.imgur.com/Y9EgMW6.gif";
    document.getElementById("iframeInnerHub").appendChild(feedbackButton);
    document.getElementById("iframeInnerHub").appendChild(br);
    document.getElementById("id36Button").onclick = function(){
        document.getElementById("otherSites").src = "http://id36.ueuo.com/index.php";
    };
    document.getElementById("fcrButton").onclick = function(){
        document.getElementById("otherSites").src = "http://fc.sk89q.com/";
    };
    document.getElementById("forumButton").onclick = function(){
        document.getElementById("otherSites").src = "http://fc2.boards.net/";
    };
    document.getElementById("feedbackButton").onclick = function(){
        document.getElementById("otherSites").src = "http://fc2.boards.net/conversation/new/110,12,96,3";
    };

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////HUB REFRESH AREA/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var cAmt = document.createElement("div");
    cAmt.style.position = "absolute";
    cAmt.id = "cAmt";
    cAmt.style.top="89%";
    cAmt.style.left=10*scale+"px";
    cAmt.style.textAlign="left";
    centered.appendChild(cAmt);

    var ctitle = document.createElement("h4"); //Just a text element
    ctitle.innerHTML = "<center><table><tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>Change How Many Levels <br>Per Hub To Load:</td></tr></table></center>"; //Text to show
    ctitle.id = "ctitle";
    ctitle.style.fontSize = 0.9*scale+"em";
    ctitle.style.display = "none";
    document.getElementById("cAmt").appendChild(ctitle); //Must use the id and not the variable name becaue if changingNick the var is not defined

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////HUB REFRESH INPUT////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var cInput = document.createElement("input"); //Create the input
    cInput.type = "number"; //Textbox
    cInput.id = "cInput";
    cInput.style.padding = "5px"; //Just some styles
    cInput.style.borderRadius = "5px";
    cInput.style.border = "none";
    cInput.style.display = "none";
    cInput.style.height = 30*scale+"px";
    cInput.style.width = 45*scale+"px";
    cInput.style.position = "absolute";
    cInput.style.top="95%";
    cInput.style.left=64*scale+"px";
    centered.appendChild(cInput);

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////HUB REFRESH BUTTON///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var cSubmit = document.createElement("input"); //Create the button. May want to replace with an image later because images>buttons
    cSubmit.type = "button"; //Button
    cSubmit.value = "Go!"; //What the button says
    cSubmit.id = "cSubmit";
    cSubmit.style.marginLeft = "5px";
    cSubmit.style.padding = "5px";
    cSubmit.style.display = "none";
    cSubmit.style.border = "none";
    cSubmit.style.borderRadius = "5px";
    cSubmit.style.position = "absolute";
    cSubmit.style.top="95%";
    cSubmit.style.left=120*scale+"px";
    cSubmit.style.height = 40*scale+"px";
    cSubmit.style.cursor = "pointer"; //Set cursor to pointer, to make it obvious it is clickable
    centered.appendChild(cSubmit);
    document.getElementById("cSubmit").onclick = function(){
        var hMany = document.getElementById("cInput").value;
        if(!isNaN(hMany) && hMany > 0 && hMany < 101 && hMany % 1 === 0){
            if (pageLocked)
            {
                giveMessage("You cannot do that while the page is locked.");
            }
            else
            {
                var r = confirm("Refreshing the Hub will refresh the game. All current designs will be lost. Are you sure you want to continue?");
                if(r == true){
                    maxL = hMany;
                    contHolder = ctr.innerHTML;
                    ctr.innerHTML = "<center><br><br><h1>Please Wait While Hubs Load</h1><br><br><h2>This may take a minute depending on the size of the levels.<br>Thank you for your patience!</h2><br><br><br><h4>--FC Enhance Development Team</h4></center>";
                    lateItr = 0;
                    topItr = 0;
                    t = new Date();
                    console.log(t);
                    document.getElementById('dsgHub').style.display = 'none';
                    document.getElementById('lateHub').style.display = 'block';
                    document.getElementById('TopHub').style.display = 'none';
                    resetHub();
                }else{
                    giveMessage("The Hub Was Not Refreshed");
                }
            }
        }else{
            alert("Please Enter a Number between 1-100!");
        }
    };


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////HIDE SWF WHILE HUBS LOAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var ctr = document.getElementById("maincontent");
    contHolder = ctr.innerHTML;
    document.getElementsByClassName("border")[0].style.backgroundImage = "url('http://fantasticcontraption.com/images/fantastic_contraption_border.png')";
    ctr.innerHTML = "<center><br><br><h1>Please Wait While Hubs Load</h1><br><br><h2>This may take a minute depending on the size of the levels.<br>Thank you for your patience!</h2><br><br><br><h4>--FC Enhance Development Team</h4></center>";
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////LOAD SWF WHEN HUBS LOAD//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function hubsLoaded(){
        if(topItr == maxL && lateItr == maxL){            
            ctr.innerHTML = contHolder;
            contraption = getFlash();
            if(inFullScreen){
                document.getElementsByClassName("border")[0].style.backgroundImage = "url('')";
            }
            getUseFlashVars();
            if(currentPageNumber == 0){
                reset.style.display = "block";
                ctitle.style.display = "block";
                cSubmit.style.display = "block";
                cInput.style.display = "block";
            }
        }
    }

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////KEYDOWN CODING///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var trueFull = false;
    var oldW;
    var oldH;
    var checkHub;
    var checkLvl;
    var checkChat;
    var checkScroll;
    function KeyPress(e) {
        //SHIFT + LEFT ARROW
        if(e.keyCode == 37 && e.shiftKey == true){
            if(!trueFull){
                getNextPage("left");
            }else{
                giveMessage("Can't Do This In FullScreen Mode!");
            }
        }
        //SHIFT + RIGHT ARROW
        if(e.keyCode == 39 && e.shiftKey == true){
            if(!trueFull){
                getNextPage("right");
            }else{
                giveMessage("Can't Do This In FullScreen Mode!");
            }
        }
        //TRUE FULSCREEN MODE
        //SHIFT + CONTROL + F
        if (e.keyCode == 70 && e.shiftKey == true && (e.ctrlKey == true || e.metaKey == true)) {
            if(currentPageNumber == 0){
                var w = screen.width;
                var h = screen.height;
                contHolder = ctr.innerHTML;
                if(window.innerHeight != document.getElementById("contraption").height){
                    oldH = document.getElementById("contraption").height;
                    oldW = document.getElementById("contraption").width;
                    checkHub = document.getElementById("sHubs").checked;
                    checkLvl = document.getElementById("sLvl").checked;
                    checkChat = document.getElementById("sChat").checked;
                    checkScroll = document.getElementById("sScroll").checked;
                    document.getElementById("contraption").style.position = "absolute";
                    document.getElementById("contraption").style.top = "0px";
                    document.getElementById("contraption").style.left = "0px";
                    document.getElementById("contraption").style.backgroundColor = "green";
                    document.getElementById("contraption").height = window.innerHeight;
                    document.getElementById("contraption").width = window.innerWidth;
                    document.getElementById("contraption").style.border = "";
                    document.getElementById('lateHub').style.display = 'none';
                    document.getElementById('TopHub').style.display = 'none';
                    document.getElementById('dsgHub').style.display = 'none';
                    document.getElementById('cAmt').style.display = 'none';
                    document.getElementById('cInput').style.display = 'none';
                    document.getElementById('ctitle').style.display = 'none';
                    document.getElementById('cSubmit').style.display = 'none';
                    document.getElementById('resetHub').style.display = "none";
                    document.getElementById("randLevelHub").style.display = 'none';
                    document.getElementById("chatHub").style.display = 'none';
                    document.getElementById("leftBtn").style.display = 'none';
                    document.getElementById("rightBtn").style.display = 'none';
                    document.getElementById("pageDescription").style.display = 'none';
                    document.getElementById("settingsHub").style.display = 'none';
                    document.getElementById("sHub").style.display = 'none';
                    document.getElementById("fullScreenButton").style.display = 'none';
                    document.getElementById("tweakBtn").style.right = 45*scale+'px';                            
                    giveMessage("TRUE FULLSCREEN ACTIVATED");
                    trueFull = true;
                }else{
                    document.getElementById("contraption").height = oldH;
                    document.getElementById("contraption").width = oldW;
                    document.getElementById("settingsHub").style.display = 'block';
                    document.getElementById("fullScreenButton").style.display = 'block';
                    document.getElementById("tweakBtn").style.right = 315*scale+'px'; 
                    giveMessage("TRUE FULLSCREEN DEACTIVATED");
                    if(document.getElementById("sHubs").checked){
                        document.getElementById('lateHub').style.display = 'none';
                        document.getElementById('TopHub').style.display = 'none';
                        document.getElementById('dsgHub').style.display = 'none';
                        document.getElementById('cAmt').style.display = 'none';
                        document.getElementById('cInput').style.display = 'none';
                        document.getElementById('ctitle').style.display = 'none';
                        document.getElementById('cSubmit').style.display = 'none';
                        document.getElementById('resetHub').style.display = "none";
                    }else{
                        document.getElementById('lateHub').style.display = 'block';
                        document.getElementById('TopHub').style.display = 'none';
                        document.getElementById('dsgHub').style.display = 'none';
                        document.getElementById('cAmt').style.display = 'block';
                        document.getElementById('cInput').style.display = 'block';
                        document.getElementById('ctitle').style.display = 'block';
                        document.getElementById('cSubmit').style.display = 'block';
                        document.getElementById('resetHub').style.display = "block";
                    }
                    if(document.getElementById("sLvl").checked){
                        document.getElementById("randLevelHub").style.display = 'none';
                    }else{
                        document.getElementById("randLevelHub").style.display = 'block';
                    }
                    if(document.getElementById("sChat").checked){
                        document.getElementById("chatHub").style.display = 'none';
                    }else{
                        document.getElementById("chatHub").style.display = 'block';
                    }

                    if(document.getElementById("sScroll").checked){
                        document.getElementById("leftBtn").style.display = 'none';
                        document.getElementById("rightBtn").style.display = 'none';
                        document.getElementById("pageDescription").style.display = 'none';
                    }else{
                        document.getElementById("leftBtn").style.display = 'block';
                        document.getElementById("rightBtn").style.display = 'block';
                        document.getElementById("pageDescription").style.display = 'block';
                    }
                    if(inFullScreen){
                        document.getElementById("contraption").style.position = "absolute";
                        document.getElementById("contraption").style.top = "45px";
                        document.getElementById("contraption").style.left = "calc(50% - "+540*scale+"px)";
                        document.getElementById("contraption").style.border = 10+scale+"px solid #2550FF";
                        document.getElementById("contraption").style.borderRadius = 25*scale+"px";
                    }else{
                        document.getElementById("contraption").style.position = "initial";
                        document.getElementById("contraption").style.top = "initial";
                        document.getElementById("contraption").style.left = "initial";
                        document.getElementById("contraption").style.border = "initial";
                    }
                    trueFull = false;
                }
            }else{
                giveMessage("Need to be on Game Page!");
            }
        }
    }

    document.onkeydown = KeyPress;


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////RED ARROW BLOCKER////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    var btnOff = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABIAAAASABGyWs+AAAHaklEQVRYw7VXa2xUxxX+Zubu3n0/7PXaix/YxgY7OBAHjCEERIyiQCFRpUSBiKqkKa4IkIjShoaKBIUmLlKUtKVOi0WBRiikUaBRI6Q0EBrAvGIK2GbB2Mb4idfGXq93fdf7uvdOfxgSv7Z2Cv2k+XE1Z845853vnpkhmCRM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rkz8T8kwfADP34tbRpvX1Uyh5bCo54wgnE78NAgMCDiXYFRyc4jOsdmIxuxQBACaDq0TP4su58wKqASl2t2LV141dpPHFQStrrOEAYDG4iwY2kn85NGJwNaYawMeAcgGomkBsa+NvVNeu9c1K1oXQq3tkPlRsl9Y7cw/1UzgK+oTOREOR4+87PqD38OLPKXXvf3jXU4rT649hZ8ePzGcGBt6xMN78JbA7AYcY92UZkk1z1l66/790NYPhGVFt/Fk0vboHS0dwkpKbNC9hSZjJy564lHIDGDFbg63ljyYHXqqItPbz6n5/eJAAA93g64XviF1Fnb9vpsOIo0q3yDHYHboUcgGQaZnp48E/Fl2q29cycH3t929abVbl1wmOvV8EZ8ecHcgt2tStpjwzdD7++JhzcCGf4+qucnU1bTUULfPjr50b9HzfFDcdqQM585mp15z1/1Tl17aCkOo3h43oyDxOAQOQmpsaDHdPCA9sfvNK8L56eE1+39pkx/sJ4QWr++i7mF82OOhs/P+lQ1DqJQpEEms0E0WYOP1E4CAgh4MNaISAQAKjcZI6ovz/V2787t+vi8/s2Pnss/9Aec8vm7eMSnjCh1QDcL78E0nLBFi9ZPD/ozl7m01JLvUTKt1kk93/DMYdVoNxpsw4YeuKay4i2uiP+fwvdbdWBox9dCmXlmUcOH51wxSatsiUChWAy8p01T0iDM4rdhJCs4+3dOXZJNJcVFbT39vcNfLutzvPzj0+ZGoDQJOP+D3WWDZbdU2xTAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA5LTI4VDEzOjIwOjU0LTA1OjAwVGWaOwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0wOS0yOFQxMzoyMDo1NC0wNTowMCU4IocAAAAASUVORK5CYII=";
    var tweakBtn = document.createElement("input");
    var btnState = "Off";
    tweakBtn.type = "image";
    tweakBtn.src = btnOff;
    tweakBtn.title = "Toggle Red Arrow Blocker";
    tweakBtn.style.width = 2.5*scale+"em";
    tweakBtn.id = "tweakBtn";
    tweakBtn.style.cursor = "pointer";
    tweakBtn.style.position = "absolute";
    tweakBtn.style.top = "0px";
    tweakBtn.style.right = 315*scale+"px";
    centered.appendChild(tweakBtn);
    document.getElementById("tweakBtn").onclick = function(){
        if(btnState == "Off"){
            tweakBtn.src = btnOn;
            btnState = "On";
            giveMessage("Red Arrow Blocker On");
            document.getElementById('rArrow').style.display = "block";

        }else{
            tweakBtn.src = btnOff;
            btnState = "Off";
            giveMessage("Red Arrow Blocker Off");
            document.getElementById('rArrow').style.display = "none";
        }
    };

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////CREATE THUMBNAILS////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function createCanvas(id,itr,hub){
        var levelId = id;
        var itr = itr;
        var wHub;
        var cId;
        var cId = "img"+levelId+"";
        if(hub == "top"){
            wHub = document.getElementById("TopInnerHub");        
        } else{
            wHub = document.getElementById("lateInnerHub");
        }
        $.ajax({
            type: "POST",
            dataType: "xml",
            url: "http://fantasticcontraption.com/retrieveLevel.php",
            data: {
                id: levelId
            },
            error: function() { 
                console.log("Error on ajax for: "+levelId+"...skipping Id");
                if(hub == "top"){
                    wHub.innerHTML += "<h4>Level ID: "+levelId+" skipped due to error</h4><br>";
                    topItr++
                    setTop();

                }else{
                    wHub.innerHTML += "<h4>Level ID: "+levelId+" skipped due to error</h4><br>";
                    lateItr++
                    setLate();
                }
            },  
            success: function(data) {  
                //GET ALL THE ELEMENTS
                var sR = data.getElementsByTagName('StaticRectangle');
                var sC = data.getElementsByTagName('StaticCircle');
                var dR = data.getElementsByTagName('DynamicRectangle');
                var dC = data.getElementsByTagName('DynamicCircle');
                var bA = data.getElementsByTagName('start');
                var gA = data.getElementsByTagName('end');
                var uW = data.getElementsByTagName('NoSpinWheel');
                var gR = data.getElementsByTagName('JointedDynamicRectangle');
                var gC = [];
                var NongC = [];
                for (i = 0; i < uW.length; i++){
                    if(uW[i].getElementsByTagName('goalBlock')[0].innerHTML=='true'){
                        gC.push(uW[i]);
                    }else{
                        NongC.push(uW[i]);
                    }
                }
                var cW = data.getElementsByTagName('ClockwiseWheel');
                var ccW = data.getElementsByTagName('CounterClockwiseWheel');
                //Try and get the centers of a level
                var xx = data.getElementsByTagName('x');
                var xNum = [];
                for(i = 0; i < xx.length; i++){
                    xNum[i] = xx[i].innerHTML;
                }
                var yy = data.getElementsByTagName('y');
                var yNum = [];
                for(i = 0; i < yy.length; i++){
                    yNum[i] = yy[i].innerHTML;
                }
                var xMin = Math.min.apply(null, xNum);
                var xMax = Math.max.apply(null, xNum);
                var xCenter = (xMax + xMin)/2;
                var yMin = Math.min.apply(null, yNum);
                var yMax = Math.max.apply(null, yNum);
                var yCenter = (yMax + yMin)/2;
                //START TO CREATE CANVAS
                var defaultWidth = 1800;
                var defaultHeight = 1440;
                var scale = 1/6;
                var canvasWidth = defaultWidth * scale;
                var canvasHeight = defaultHeight * scale;
                wHub.innerHTML += '<canvas id="'+cId+'" width="'+canvasWidth+'" height="'+canvasHeight+'" style="border:1px solid #d3d3d3;"><br>';
                var canvas = document.getElementById(cId);
                var centerX = (canvasWidth * 0.5);
                var centerY = (canvasHeight * 0.5);
                canvas.style.visibility = "hidden";
                canvas.style.zIndex = "1000";
                var ctx = canvas.getContext("2d");
                ctx.strokeStyle = "#85AFF3";
                ctx.strokeRect(0,0,900,720);
                ctx.fillStyle = "#85AFF3";
                ctx.fillRect(0,0,900,720);
                for(i = 0; i < bA.length; i++){
                    var x = (bA[i].getElementsByTagName('x')[0].innerHTML);
                    var y = (bA[i].getElementsByTagName('y')[0].innerHTML);
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = bA[i].getElementsByTagName('width')[0].innerHTML;
                    var h = bA[i].getElementsByTagName('height')[0].innerHTML;
                    var type = 1;
                    drawObject(x*scale,y*scale,w*scale,h*scale,0,type);
                }
                for(i = 0; i < bA.length; i++){
                    var x = bA[i].getElementsByTagName('x')[0].innerHTML;
                    var y = bA[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = bA[i].getElementsByTagName('width')[0].innerHTML;
                    var h = bA[i].getElementsByTagName('height')[0].innerHTML;
                    var type = 1;
                    fillObject(x*scale,y*scale,w*scale,h*scale,0,type);
                }
                for(i = 0; i < gA.length; i++){
                    var x = gA[i].getElementsByTagName('x')[0].innerHTML;
                    var y = gA[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = gA[i].getElementsByTagName('width')[0].innerHTML;
                    var h = gA[i].getElementsByTagName('height')[0].innerHTML;
                    var type = 2;
                    drawObject(x*scale,y*scale,w*scale,h*scale,0,type);
                }
                for(i = 0; i < gA.length; i++){
                    var x = gA[i].getElementsByTagName('x')[0].innerHTML;
                    var y = gA[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = gA[i].getElementsByTagName('width')[0].innerHTML;
                    var h = gA[i].getElementsByTagName('height')[0].innerHTML;
                    var type = 2;
                    fillObject(x*scale,y*scale,w*scale,h*scale,0,type);
                }
                for(i = 0; i < sR.length; i++){
                    var x = sR[i].getElementsByTagName('x')[0].innerHTML;
                    var y = sR[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = sR[i].getElementsByTagName('width')[0].innerHTML;
                    var h = sR[i].getElementsByTagName('height')[0].innerHTML;
                    var a = sR[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 3;
                    drawObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < sC.length; i++){
                    var x = sC[i].getElementsByTagName('x')[0].innerHTML;
                    var y = sC[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = sC[i].getElementsByTagName('width')[0].innerHTML;
                    if(w < 8){
                        w = 8.001;
                    }
                    var h = sC[i].getElementsByTagName('height')[0].innerHTML;
                    var a = sC[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 4;
                    drawObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < dR.length; i++){
                    var x = dR[i].getElementsByTagName('x')[0].innerHTML;
                    var y = dR[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = dR[i].getElementsByTagName('width')[0].innerHTML;
                    var h = dR[i].getElementsByTagName('height')[0].innerHTML;
                    var a = dR[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 5;
                    drawObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < dC.length; i++){
                    var x = dC[i].getElementsByTagName('x')[0].innerHTML;
                    var y = dC[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = dC[i].getElementsByTagName('width')[0].innerHTML;
                    if(w < 8){
                        w = 8.001;
                    }
                    var h = dC[i].getElementsByTagName('height')[0].innerHTML;
                    var a = dC[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 6;
                    drawObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < gR.length; i++){
                    var x = gR[i].getElementsByTagName('x')[0].innerHTML;
                    var y = gR[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = gR[i].getElementsByTagName('width')[0].innerHTML;
                    var h = gR[i].getElementsByTagName('height')[0].innerHTML;
                    var a = gR[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 7;
                    drawObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < gC.length; i++){
                    var x = gC[i].getElementsByTagName('x')[0].innerHTML;
                    var y = gC[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = gC[i].getElementsByTagName('width')[0].innerHTML;
                    if(w < 8){
                        w = 8.001;
                    }
                    var h = gC[i].getElementsByTagName('height')[0].innerHTML;
                    var a = gC[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 8;
                    drawObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < NongC.length; i++){
                    var x = NongC[i].getElementsByTagName('x')[0].innerHTML;
                    var y = NongC[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = NongC[i].getElementsByTagName('width')[0].innerHTML;
                    if(w < 8){
                        w = 8.001;
                    }
                    var h = NongC[i].getElementsByTagName('height')[0].innerHTML;
                    var a = NongC[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 9;
                    drawObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < cW.length; i++){
                    var x = cW[i].getElementsByTagName('x')[0].innerHTML;
                    var y = cW[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = cW[i].getElementsByTagName('width')[0].innerHTML;
                    if(w < 8){
                        w = 8.001;
                    }
                    var h = cW[i].getElementsByTagName('height')[0].innerHTML;
                    var a = cW[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 10;
                    drawObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < ccW.length; i++){
                    var x = ccW[i].getElementsByTagName('x')[0].innerHTML;
                    var y = ccW[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = ccW[i].getElementsByTagName('width')[0].innerHTML;
                    if(w < 8){
                        w = 8.001;
                    }
                    var h = ccW[i].getElementsByTagName('height')[0].innerHTML;
                    var a = ccW[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 11;
                    drawObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                //Start Filling Objects

                for(i = 0; i < sR.length; i++){
                    var x = sR[i].getElementsByTagName('x')[0].innerHTML;
                    var y = sR[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = sR[i].getElementsByTagName('width')[0].innerHTML;
                    var h = sR[i].getElementsByTagName('height')[0].innerHTML;
                    var a = sR[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 3;
                    fillObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < sC.length; i++){
                    var x = sC[i].getElementsByTagName('x')[0].innerHTML;
                    var y = sC[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = sC[i].getElementsByTagName('width')[0].innerHTML;
                    if(w < 8){
                        w = 8.001;
                    }
                    var h = sC[i].getElementsByTagName('height')[0].innerHTML;
                    var a = sC[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 4;
                    fillObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < dR.length; i++){
                    var x = dR[i].getElementsByTagName('x')[0].innerHTML;
                    var y = dR[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = dR[i].getElementsByTagName('width')[0].innerHTML;
                    var h = dR[i].getElementsByTagName('height')[0].innerHTML;
                    var a = dR[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 5;
                    fillObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < dC.length; i++){
                    var x = dC[i].getElementsByTagName('x')[0].innerHTML;
                    var y = dC[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = dC[i].getElementsByTagName('width')[0].innerHTML;
                    if(w < 8){
                        w = 8.001;
                    }
                    var h = dC[i].getElementsByTagName('height')[0].innerHTML;
                    var a = dC[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 6;
                    fillObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < gR.length; i++){
                    var x = gR[i].getElementsByTagName('x')[0].innerHTML;
                    var y = gR[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = gR[i].getElementsByTagName('width')[0].innerHTML;
                    var h = gR[i].getElementsByTagName('height')[0].innerHTML;
                    var a = gR[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 7;
                    fillObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < gC.length; i++){
                    var x = gC[i].getElementsByTagName('x')[0].innerHTML;
                    var y = gC[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = gC[i].getElementsByTagName('width')[0].innerHTML;
                    if(w < 8){
                        w = 8.001;
                    }
                    var h = gC[i].getElementsByTagName('height')[0].innerHTML;
                    var a = gC[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 8;
                    fillObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < NongC.length; i++){
                    var x = NongC[i].getElementsByTagName('x')[0].innerHTML;
                    var y = NongC[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = NongC[i].getElementsByTagName('width')[0].innerHTML;
                    if(w < 8){
                        w = 8.001;
                    }
                    var h = NongC[i].getElementsByTagName('height')[0].innerHTML;
                    var a = NongC[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 9;
                    fillObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < cW.length; i++){
                    var x = cW[i].getElementsByTagName('x')[0].innerHTML;
                    var y = cW[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = cW[i].getElementsByTagName('width')[0].innerHTML;
                    if(w < 8){
                        w = 8.001;
                    }
                    var h = cW[i].getElementsByTagName('height')[0].innerHTML;
                    var a = cW[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 10;
                    fillObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                for(i = 0; i < ccW.length; i++){
                    var x = ccW[i].getElementsByTagName('x')[0].innerHTML;
                    var y = ccW[i].getElementsByTagName('y')[0].innerHTML;
                    x = x-xCenter;
                    y = y-yCenter;
                    var w = ccW[i].getElementsByTagName('width')[0].innerHTML;
                    if(w < 8){
                        w = 8.001;
                    }
                    var h = ccW[i].getElementsByTagName('height')[0].innerHTML;
                    var a = ccW[i].getElementsByTagName('rotation')[0].innerHTML;
                    var type = 11;
                    fillObject(x*scale,y*scale,w*scale,h*scale,a,type);
                }
                //Convert Canvas to Image
                var dataURL = canvas.toDataURL();
                wHub.removeChild(canvas);
                //Top Hub
                if (hub == "top"){
                    wHub.innerHTML += "<img src='"+dataURL+"' alt='' border='1' width='95%' style='display:inline;vertical-align: middle'></img><br>";
                    wHub.innerHTML += "<span style='vertical-align: middle;'><strong><font size='3'>" + (itr + 1) + ") " + topLvlListName[itr] + "  </strong></font></span>";
                    //Create Load Button
                    var genButtonLoad = document.createElement("input");
                    genButtonLoad.type = "image";
                    genButtonLoad.src = lBtn;
                    genButtonLoad.style.verticalAlign = "middle";
                    genButtonLoad.style.padding = "1px";
                    genButtonLoad.id = topLvlListId[itr];
                    genButtonLoad.title = "Play Level";
                    genButtonLoad.setAttribute("class", "loadClass");
                    wHub.appendChild(genButtonLoad);
                    //Add space between buttons
                    wHub.innerHTML += "  ";
                    //Create Design Button
                    var genButtonDesign = document.createElement("input");
                    genButtonDesign.type = "image";
                    genButtonDesign.title = "See Designs";
                    genButtonDesign.src = dBtn;
                    genButtonDesign.width = "30";
                    genButtonDesign.height = "30";
                    genButtonDesign.style.verticalAlign = "middle";
                    genButtonDesign.style.padding = "1px";
                    genButtonDesign.id = "designId="+topLvlListId[itr];
                    genButtonDesign.setAttribute("class", "designClass");
                    wHub.appendChild(genButtonDesign);
                    wHub.innerHTML += "<br>";
                    topItr++
                    setTop();
                }else{
                    wHub.innerHTML += "<img src='"+dataURL+"' alt='' border='1' width='95%' style='display:inline;vertical-align: middle'></img><br>";
                    wHub.innerHTML += "<span style='vertical-align: middle;'><strong><font size='3'>" + (itr + 1) + ") " + lateLvlListName[itr] + "  </strong></font></span>";
                    //Create Load Button
                    var genButtonLoad = document.createElement("input");
                    genButtonLoad.type = "image";
                    genButtonLoad.src = "http://i66.tinypic.com/9kzatg.png";
                    genButtonLoad.style.verticalAlign = "middle";
                    genButtonLoad.title = "Play Level";
                    genButtonLoad.style.padding = "1px";
                    genButtonLoad.id = lateLvlListId[itr];
                    genButtonLoad.setAttribute("class", "loadClass");
                    wHub.appendChild(genButtonLoad);
                    //Add space between buttons
                    wHub.innerHTML += "  ";
                    //Create Design Button
                    var genButtonDesign = document.createElement("input");
                    genButtonDesign.type = "image";
                    genButtonDesign.title = "See Designs";
                    genButtonDesign.src = "http://i68.tinypic.com/eleiv7.png";
                    genButtonDesign.width = "30";
                    genButtonDesign.height = "30";
                    genButtonDesign.style.verticalAlign = "middle";
                    genButtonDesign.style.padding = "1px";
                    genButtonDesign.id = "designId="+lateLvlListId[itr];
                    genButtonDesign.setAttribute("class", "designClass");
                    wHub.appendChild(genButtonDesign);
                    wHub.innerHTML += "<br>";
                    lateItr++
                    setLate();
                }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////DRAW THUMBNAIL OBJECTS///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                //Start Awesome Functions Created by Zhyrek to draw canvas
                function drawObject(x, y, w, h, a, type)
                {
                    w -= 8 * scale;
                    h -= 8 * scale;
                    var ca = Math.cos(a);
                    var sa = Math.sin(a);
                    ctx.transform(1,0,0,1,x+centerX,y+centerY);
                    ctx.transform(ca,sa,-sa,ca,0,0);
                    ctx.lineJoin="round";
                    ctx.lineWidth = 4 * scale;
                    if(type == 1)//buildArea
                    {
                        ctx.strokeStyle = "#7F66ED";
                        ctx.strokeRect(-w/2,-h/2,w,h);
                    }
                    else if(type == 2)//goalArea
                    {
                        ctx.strokeStyle = "#B46268";
                        ctx.strokeRect(-w/2,-h/2,w,h);
                    }
                    else if(type == 3)//staticRect
                    {
                        ctx.strokeStyle = "#1D8501";
                        ctx.strokeRect(-w/2,-h/2,w,h);
                    }
                    else if(type == 4)//staticCircle
                    {
                        ctx.strokeStyle = "#1D8501";
                        ctx.arc(0,0,w,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                    }
                    else if(type == 5)//dynamicRect
                    {
                        ctx.strokeStyle = "#BD5420";
                        ctx.strokeRect(-w/2,-h/2,w,h);
                    }
                    else if(type == 6)//dynamicCircle
                    {
                        ctx.strokeStyle = "#BD5420";
                        ctx.arc(0,0,w,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                    }
                    else if(type == 7)//goalRect
                    {
                        ctx.strokeStyle = "#BD5420";
                        ctx.strokeRect(-w/2,-h/2,w,h);
                    }
                    else if(type == 8)//goalCircle
                    {
                        ctx.strokeStyle = "#B46268";
                        ctx.arc(0,0,w/2,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                    }
                    else if(type == 9)//blueWheel
                    {
                        ctx.strokeStyle = "#4452FC";
                        ctx.arc(0,0,w/2,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                    }
                    else if(type == 10)//yellowWheel
                    {
                        ctx.strokeStyle = "#F37E22";
                        ctx.arc(0,0,w/2,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                    }
                    else if(type == 11)//pinkWheel
                    {
                        ctx.strokeStyle = "#CB2EA5";
                        ctx.arc(0,0,w/2,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                    }
                    ctx.setTransform(1,0,0,1,0,0);
                }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////FILL THUMBNAIL OBJECTS///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                function fillObject(x, y, w, h, a, type)
                {
                    w -= 8 * scale;
                    h -= 8 * scale;
                    var ca = Math.cos(a);
                    var sa = Math.sin(a);
                    ctx.transform(1,0,0,1,x+centerX,y+centerY);
                    ctx.transform(ca,sa,-sa,ca,0,0);
                    ctx.lineJoin="round";
                    ctx.lineWidth = 4 * scale;
                    if(type == 1)//buildArea
                    {
                        ctx.fillStyle = "#BFD8F8";
                        ctx.fillRect(-w/2,-h/2,w,h);
                    }
                    else if(type == 2)//goalArea
                    {
                        ctx.fillStyle = "#EA8C92";
                        ctx.fillRect(-w/2,-h/2,w,h);
                    }
                    else if(type == 3)//staticRect
                    {
                        ctx.fillStyle = "#2BC500";
                        ctx.fillRect(-w/2,-h/2,w,h);
                    }
                    else if(type == 4)//staticCircle
                    {
                        ctx.fillStyle = "#2BC500";
                        ctx.arc(0,0,w,0,Math.PI*2);
                        ctx.fill();
                        ctx.beginPath();
                    }
                    else if(type == 5)//dynamicRect
                    {
                        ctx.fillStyle = "#F2DF37";
                        ctx.fillRect(-w/2,-h/2,w,h);
                    }
                    else if(type == 6)//dynamicCircle
                    {
                        ctx.fillStyle = "#F0873A";
                        ctx.arc(0,0,w,0,Math.PI*2);
                        ctx.fill();
                        ctx.beginPath();
                    }
                    else if(type == 7)//goalRect
                    {
                        ctx.fillStyle = "#F65D6A";
                        ctx.fillRect(-w/2,-h/2,w,h);
                        ctx.lineWidth = 2 * scale;
                        ctx.strokeStyle = "#828282";
                        ctx.arc(0,0,1.5,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                        ctx.arc(w/2,h/2,3*scale,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                        ctx.arc(w/2,-h/2,3*scale,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                        ctx.arc(-w/2,-h/2,3*scale,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                        ctx.arc(-w/2,h/2,3*scale,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                    }
                    else if(type == 8)//goalCircle
                    {
                        ctx.fillStyle = "#F65D6A";
                        ctx.arc(0,0,w/2,0,Math.PI*2);
                        ctx.fill();
                        ctx.beginPath();
                    }
                    else if(type == 9)//blueWheel
                    {
                        ctx.fillStyle = "#94FEE1";
                        ctx.arc(0,0,w/2,0,Math.PI*2);
                        ctx.fill();
                        ctx.beginPath();
                    }
                    else if(type == 10)//yellowWheel
                    {
                        ctx.fillStyle = "#F9F316";
                        ctx.arc(0,0,w/2,0,Math.PI*2);
                        ctx.fill();
                        ctx.beginPath();
                    }
                    else if(type == 11)//pinkWheel
                    {
                        ctx.fillStyle = "#FBC9CC";
                        ctx.arc(0,0,w/2,0,Math.PI*2);
                        ctx.fill();
                        ctx.beginPath();
                    }
                    if(type > 7)
                    {
                        w += 4;
                        h += 4;
                        ctx.lineWidth = 2 * scale;
                        ctx.strokeStyle = "#828282";
                        ctx.arc(0,h*scale,3*scale,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                        ctx.arc(w*scale,0,3*scale,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                        ctx.arc(0,-h*scale,3*scale,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                        ctx.arc(-w*scale,0,3*scale,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                        ctx.strokeStyle = "#FFFFFF";
                        ctx.arc(0,0,3*scale,0,Math.PI*2);
                        ctx.stroke();
                        ctx.beginPath();
                    }
                    ctx.setTransform(1,0,0,1,0,0);
                }
            }
        });
    }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////RESET THE HUB////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function resetHub(){
        lateInnerHub.innerHTML = "";
        lateTopHub.innerHTML = "";
        reset.style.display = "none";
        ctitle.style.display = "none";
        cSubmit.style.display = "none";
        cInput.style.display = "none";
        getTop();
        getLatest();
    }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////GET TOP LEVELS///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function getTop(){
        $.ajax({
            type: "POST",
            dataType: "xml",
            url: "http://fantasticcontraption.com/getUserGenLevels.php",
            data: {
                limitCount: maxL
            },
            success: function(data) {
                var str = new XMLSerializer().serializeToString(data);                
                topLvlListId = str.match(/levelId......./g);
                topLvlListName = str.match(/levelName>.+?(?=<)/g);
                for(var j = 0; j < topLvlListId.length; j++) {
                    var holder = topLvlListId[j];
                    holder = holder.split(">").pop();
                    topLvlListId[j] = holder;
                }
                for(var i = 0; i < topLvlListName.length; i++) {
                    var holder = topLvlListName[i];
                    holder = holder.split(">").pop();
                    topLvlListName[i] = holder;
                }
                setTop();
            }
        });
    }
    getTop();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////TOP HUB THUMBNAIL////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function setTop(){
        var lateTopHub = document.getElementById('TopInnerHub');
        if(topItr < maxL){
            createCanvas(topLvlListId[topItr], topItr, "top");
        }else{
            hubsLoaded();
        }
    }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////GET LATEST LEVELS////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function getLatest(){
        $.ajax({
            type: "POST",
            dataType: "xml",
            url: "http://fantasticcontraption.com/getUserGenLevels.php",
            data: {
                limitCount: maxL,
                orderBy: "date"
            },
            success: function(data) {
                var str = new XMLSerializer().serializeToString(data);
                lateLvlListId = str.match(/levelId......./g);
                lateLvlListName = str.match(/levelName>.+?(?=<)/g);
                for(var j = 0; j < lateLvlListId.length; j++) {
                    var holder = lateLvlListId[j];
                    holder = holder.split(">").pop();
                    lateLvlListId[j] = holder;
                }
                for(var i = 0; i < lateLvlListName.length; i++) {
                    var holder = lateLvlListName[i];
                    holder = holder.split(">").pop();
                    lateLvlListName[i] = holder;
                }
                setLate();
            }
        });
    }
    getLatest();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////LATEST HUB THUMBNAIL/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function setLate(){
        var lateInnerHub = document.getElementById('lateInnerHub');
        if(lateItr < maxL){
            createCanvas(lateLvlListId[lateItr], lateItr, "late");
        }else{
            hubsLoaded();
        }
    }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////GET DESIGNS//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    function getDsg(id){
        var levelId = id.split("=").pop();
        dsgId = [];
        dsgName = [];
        dsgUser = [];
        dsgInnerHub.innerHTML = "";
        $.ajax({
            type: "POST",
            dataType: "xml",
            url: "http://fantasticcontraption.com/getUserDesigns.php",
            data: {
                levelId: levelId,
                onlyPublished: 1,
                userId: 1672546,
                limitOffset: 0,
                limitCount: 2000000000
            },
            success: function(data) {
                var str = new XMLSerializer().serializeToString(data);
                dsgId = str.match(/designId>.+?(?=<)/g);
                if (dsgId)
                {
                    document.getElementById('dsgHub').style.display = 'block';
                    document.getElementById('lateHub').style.display = 'none';
                    document.getElementById('TopHub').style.display = 'none';
                    for (i = 0; i < dsgId.length; i++){
                        dsgId[i] = dsgId[i].split(">").pop();
                    }
                    dsgName = str.match(/name>.+?(?=<)/g);
                    for (i = 0; i < dsgName.length; i++){
                        dsgName[i] = dsgName[i].split(">").pop();
                    }
                    dsgUser = str.match(/userName>.+?(?=<)/g);
                    for (i = 0; i < dsgUser.length; i++){
                        dsgUser[i] = dsgUser[i].split(">").pop();
                    }
                    for (i = 0; i < dsgId.length; i++){
                        dsgInnerHub.innerHTML += "<span style='text-align: left;'><strong><font size='3'><left>Name: </strong></font><b>" + dsgName[i] + "</b><br><strong><font size='3'>Author: </strong></font><b>"+ dsgUser[i] +"</b><br></strong></font></left></span>";
                        var genButtonDesign = document.createElement("input");
                        genButtonDesign.type = "image";
                        genButtonDesign.src = "http://i66.tinypic.com/9kzatg.png";
                        genButtonDesign.title = "Load Design";
                        genButtonDesign.style.padding = "3px";
                        genButtonDesign.id = dsgId[i];
                        genButtonDesign.setAttribute("class", "designLoad");
                        dsgInnerHub.appendChild(genButtonDesign);
                        dsgInnerHub.innerHTML += "<br /><br>";
                    }
                }else{
                    alert("There are no designs for this level.");
                }
            }
        });
    }

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////LEVEL/DESIGN LOADING BUTTONS//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    document.onclick=function(event){
        if(event.target.getAttribute("class") == "loadClass"){
            loadLvl(event.target.id);
        }
        else if(event.target.getAttribute("class") == "designClass"){
            getDsg(event.target.id);
        }
        else if(event.target.getAttribute("class") == "designLoad"){
            setDsg(event.target.id);
        }
    };
    function setDsg(id){
        if (pageLocked)
        {
            giveMessage("You cannot do that while the page is locked.");
        }
        else
        {
            var h = document.getElementById("contraption").height;
            var w = document.getElementById("contraption").width;
            document.getElementById("maincontent").innerHTML = '<embed type="application/x-shockwave-flash" src="/game/Contraption.swf" width="'+w+'" height="'+h+'" id="contraption" name="contraption" quality="high" allowfullscreen="true" allowscriptaccess="always" flashvars="designId=' + id + '&wMode=true" swliveconnect="true">';
            setTimeout(function(){
                document.elementFromPoint(10*scale, 10*scale).click();
            }, 1);
            document.elementFromPoint(10*scale, 10*scale).click();
            contraption=getFlash();
            getUseFlashVars();
        }
    }
    function loadLvl(id){
        if (pageLocked)
        {
            giveMessage("You cannot do that while the page is locked.");
        }
        else
        {
            var h = document.getElementById("contraption").height;
            var w = document.getElementById("contraption").width;
            document.getElementById("maincontent").innerHTML = '<embed type="application/x-shockwave-flash" src="/game/Contraption.swf" width="'+w+'" height="'+h+'" id="contraption" name="contraption" quality="high" allowfullscreen="true" allowscriptaccess="always" flashvars="levelId=' + id + '&wMode=true" swliveconnect="true">';
            setTimeout(function(){
                document.elementFromPoint(10, 10).click();
            }, 1);
            document.elementFromPoint(10, 10).click();
            contraption = getFlash();
            getUseFlashVars();
        }
    }

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////MESSAGE BOX//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    //Create a way of showing messages
    //Let's reserve the bottom left corner for messages
    function setupMessageSpace() {
        var messageSpace = document.createElement('div');
        with (messageSpace) {
            id = "msg";
            style.position = "absolute";
            style.right = 40*scale+"px";
            style.bottom = 8*scale+"px";
            style.fontSize = 1.5*scale+"em";
        }
        document.body.appendChild(messageSpace);
    }
    setupMessageSpace();

    //Now the function to display a message!
    function giveMessage(message) {
        var msgSpace = document.getElementById('msg');
        msgSpace.innerHTML = message;
        //Now fade out the message
        clearTimeout(messageTimeout); //First clear the old one if we are overriting it
        messageTimeout = setTimeout(fadeText, "2000");
        function fadeText() {$(msgSpace).stop(true, true).fadeOut( "slow", function() {msgSpace.innerHTML = ""; msgSpace.style.display = 'initial';} );}
    }


    //Setup the SWF to interact with javascript
    contraption.setAttribute("swliveconnect", true); //Don't think this actually does anything, but alas


    //})();

} //End try
catch(err) {
    alert("It looks like an error occured:\n> " + err.message + "\nIf you would like, please let marjo know.");
}