﻿function makepageHome() {
    var d = "images/Button Labels/";
    var right = "464px";
    var left = "8px";
    var mainImage = document.getElementById("MainContainer");

    new Button("bBack", d + "Back2.png", d + "Back2-H.png", null, null,
                "14px", "44px", "90", mainImage,
                false,
                function() { Button.popHistory(); }
                );

    new Button("bHome", "images/Logo-55x44-black-and-white.png", "images/Logo-55x44.png", null, null,
                "5px", "7px", "89", mainImage,
                false,
                function() {
                    Projector.screen.swap("images/homepage image 400x540.jpg");
                    Button.disableAll();
                    clearTextAreas();
                    if (Button.hasHistory) if (Button.hasHistory()) buttons["bBack"].enable();
                    buttons["blHome"].enable();
                    buttons["bCakes"].enable("bHome");
                    buttons["bCompany"].enable("bHome")
                });

    new Button("blHome", d + "L-Home.png", d + "L-Home-H.png", null, null,
                "48px", "421px", "79", mainImage,
                false,
                function() { buttons["bHome"].click(); });

    new Button("bCakes", d + "Cakes.png", d + "Cakes-H.png", null, null,
                left, "100px", "80", mainImage,
                false,
                function() {
                    Projector.screen.swap("images/2255_girl_and_calf_1020.jpg");
                    clearTextAreas();
                    Button.disableAll();
                    buttons["bHome"].enable("bCakes");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["blCakes"].enable();
                    buttons["bWedding"].remoteOff();
                    buttons["bCustom"].remoteOff();
                    buttons["bSeasonal"].remoteOff();
                    buttons["bOrdering"].remoteOff();
                    buttons["bComments"].remoteOff();
                    buttons["bPictures"].enable("bCakes");
                    buttons["bOrdering"].enable("bCakes");
                    buttons["bComments"].enable("bCakes");
                });

    new Button("blCakes", d + "L-Cakes.png", d + "L-Cakes-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bCakes"].click(); });

    new Button("bCompany", d + "Company.png", d + "Company-H.png", null, null,
                right, "60px", "80", mainImage,
                false,
                function() {
    Projector.screen.swap("images/flour-8d14161r.jpg");
    clearTextAreas();
                    Button.disableAll();
                    buttons["bHome"].enable("bCompany");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["blCompany"].enable();
                    buttons["bHistory"].remoteOff();
                    buttons["bContact"].remoteOff();
                    buttons["bLocation"].remoteOff();
                    buttons["bHistory"].enable("bCompany");
                    buttons["bPeople"].enable("bCompany");
                    buttons["bLocation"].enable("bCompany");
                    buttons["bContact"].enable("bCompany");
                    leftText.innerHTML = elvwText;
                });

    new Button("blCompany", d + "L-Company.png", d + "L-Company-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bCompany"].click(); });
}
