﻿function makepageCompany() {
    var d = "images/Button Labels/";
    var right = "464px";
    var left = "8px";
    var mainImage = document.getElementById("MainContainer");

    new Button("bHistory", d + "History.png", d + "History-H.png", d + "History-S.png", d + "History-SH.png",
                left, "330px", "80", mainImage,
                function() {
                    leftText.innerHTML = elvwText;
                    rightText.innerHTML = "";
                },
                function() {
                    Projector.screen.swap("images/2296_hay_into_barn_520.jpg");
                    clearTextAreas();
                    buttons["bHome"].enable("bHistory");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["blHistory"].enable();
                    buttons["blContact"].disable();
                    buttons["blLocation"].disable();
                    buttons["bContact"].remoteOff();
                    buttons["bLocation"].remoteOff();
                    leftText.innerHTML = "<p>Granny Schmidt’s bakery opened in September 2006 to bring best-in-class bakery products to customers who enjoy the marriage of high style and century-old goodness.</p><p>We don’t produce cakes by adding flavorings to factory supplied base mixes.  We make every cake from scratch, often one at a time, using nothing you wouldn’t have found at the corner grocery a hundred years ago.</p>" +
                        "<p>We bake our wedding cakes using the exact same recipes we use for our specialty and custom cakes.  These recipes are designed for flavor and texture, not for ease of handling, structural strength or shelf life.</p>";
                    rightText.innerHTML = "<p>OK, so that's not exactly history... just ask Michelle and she'll fill you in.</p>";
                });

    new Button("blHistory", d + "L-History.png", d + "L-History-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bHistory"].click(); });

    new Button("bContact", d + "Contact.png", d + "Contact-H.png",  d + "Contact-S.png",  d + "Contact-SH.png",
                left, "100px", "80", mainImage,
                function() { leftText.innerHTML = elvwText; rightText.innerHTML = ""; },
                function() {
                    Projector.screen.swap("images/2276_taking_a_break_1020.jpg");
                    clearTextAreas();
                    buttons["bHome"].enable("bContact");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["blContact"].enable();
                    buttons["blHistory"].disable();
                    buttons["blLocation"].disable();
                    buttons["bHistory"].remoteOff();
                    buttons["bLocation"].remoteOff();
                    leftText.innerHTML = leftContactText + elvwText;
                    rightText.innerHTML = rightContactText;
                });

    new Button("blContact", d + "L-Contact.png", d + "L-Contact-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bContact"].click(); });

    new Button("bPeople", d + "People.png", d + "People-H.png", null, null,
                right, "280px", "80", mainImage,
                false,
                function() {
                    Projector.screen.swap("images/16115_workers_w_crop_1020.jpg");
                    clearTextAreas();
                    Button.disableAll();
                    buttons["bHome"].enable("bPeople");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["blPeople"].enable();
                    buttons["bSamantha"].remoteOff();
                    buttons["bArt"].remoteOff();
                    buttons["bMichelle"].remoteOff();
                    buttons["bTammy"].remoteOff();
                    buttons["bSamantha"].enable();
                    buttons["bArt"].enable();
                    buttons["bMichelle"].enable();
                    buttons["bTammy"].enable();
                });

    new Button("blPeople", d + "L-People.png", d + "L-People-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bPeople"].click(); });

    new Button("bSamantha", d + "Samantha.png", d + "Samantha-H.png", d + "Samantha-S.png", d + "Samantha-SH.png",
                left, "100px", "80", mainImage,
                function() { centerText.hide(); },
                function() {
                    Projector.screen.swap("images/16115_workers_w_crop_1020.jpg");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["blArt"].disable();
                    buttons["blTammy"].disable();
                    buttons["blMichelle"].disable();
                    buttons["blSamantha"].enable();
                    buttons["bArt"].remoteOff();
                    buttons["bMichelle"].remoteOff();
                    buttons["bTammy"].remoteOff();
                    centerText.show(SamanthaBio);
                });

    new Button("blSamantha", d + "L-Samantha.png", d + "L-Samantha-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bSamantha"].click(); });

    new Button("bArt", d + "Art.png", d + "Art-H.png", d + "Art-S.png", d + "Art-SH.png",
                left, "340px", "80", mainImage,
                function() { centerText.hide(); },
                function() {
                    Projector.screen.swap("images/16115_workers_w_crop_1020.jpg");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["blSamantha"].disable();
                    buttons["blTammy"].disable();
                    buttons["blMichelle"].disable();
                    buttons["blArt"].enable();
                    buttons["bSamantha"].remoteOff();
                    buttons["bMichelle"].remoteOff();
                    buttons["bTammy"].remoteOff();
                    centerText.show("<p class='people'>Art Schmidt grew up here on the property where we are located and where Granny Schmidt lived. He is our official 'jack of all trades, master of none'. His hats include website developer, cake photographer, equipment manager, marketing, accounting, etc. If only we could get him to do something USEFUL...</p>");
                });

    new Button("blArt", d + "L-Art.png", d + "L-Art-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bArt"].click(); });

    new Button("bMichelle", d + "Michelle.png", d + "Michelle-H.png", d + "Michelle-S.png", d + "Michelle-SH.png",
                right, "30px", "80", mainImage,
                function() { centerText.hide(); },
                function() {
                    Projector.screen.swap("images/16115_workers_w_crop_1020.jpg");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["blArt"].disable();
                    buttons["blTammy"].disable();
                    buttons["blSamantha"].disable();
                    buttons["blMichelle"].enable();
                    buttons["bSamantha"].remoteOff();
                    buttons["bArt"].remoteOff();
                    buttons["bTammy"].remoteOff();
                    centerText.show("<p class='people'>Michelle Quier is our heart and soul.</p>"+
                    "<p class='people'>With genuine care and appreciation she lets each of you, our customers, know how special you are.</p>"+
                    "<p class='people'>Michelle has been working with brides since the early 90's when she was assistant to the owner of Jon's Bridal in Trexlertown. Currently on the Board of Directors of Elegant Lehigh Valley Weddings and Special Events, the area's premier wedding resource, Michelle works tirelessly to help everyone succeed.</p>"+
                    "<p class='people'>Whether you know exactly what you need or haven't even started to think about it, Michelle will work for as long as it takes so you get exactly what you want.</p>");
                });

    new Button("blMichelle", d + "L-Michelle.png", d + "L-Michelle-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bMichelle"].click(); });

    new Button("bTammy", d + "Tammy.png", d + "Tammy-H.png", d + "Tammy-S.png", d + "Tammy-SH.png",
                right, "250px", "80", mainImage,
                function() { centerText.hide(); },
                function() {
                    Projector.screen.swap("images/16115_workers_w_crop_1020.jpg");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["blArt"].disable();
                    buttons["blSamantha"].disable();
                    buttons["blMichelle"].disable();
                    buttons["blTammy"].enable();
                    buttons["bSamantha"].remoteOff();
                    buttons["bMichelle"].remoteOff();
                    buttons["bArt"].remoteOff();
                    centerText.show("<p class='people'>Once upon a time she skated for Disney on Ice, where attention must be paid to every detail. Later, as lead decorator at Matilda's Bake Shop, she cultivated a taste for decorating perfection." +
                                    "Then for seven years she was Bethlehem's beloved Gingerbread Lady, offering impeccable houses and cookies to holiday shoppers at the corner of Main and Broad.</p>" +
                                    "<p class='people'>As luck would have it, now chained to her messy husband and three riotous little boys, Tammy Schmidt's only indulgence in detailed perfection comes as she decorates wedding cakes for us!</p>");
                });

    new Button("blTammy", d + "L-Tammy.png", d + "L-Tammy-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bTammy"].click(); });

    new Button("bLocation", d + "Location.png", d + "Location-H.png", d + "Location-S.png", d + "Location-SH.png",
                right, "30px", "80", mainImage,
                function() { leftText.innerHTML = elvwText; rightText.innerHTML = ""; },
                function() {
                    Projector.screen.swap("images/treesnowview.jpg");
                    clearTextAreas();
                    buttons["bHome"].enable("bLocation");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["blLocation"].enable();
                    buttons["blHistory"].disable();
                    buttons["blContact"].disable();
                    buttons["bContact"].remoteOff();
                    buttons["bHistory"].remoteOff();
                    leftText.innerHTML =
"<p><div class=directionHeading>From the Poconos<br/></div>" +
"• Route 33 South to the end (33 ends at Route 78)<br/>" +
"• 78 West toward Allentown<br/>" +
"• Follow 78 West to Cedar Crest Blvd (Exit 55)<br/>" +
"• Turn left (South) onto Cedar Crest.<br/>" +
"• Continue with Local Directions on right side of this page<br/></p>" +
"<p><div class=directionHeading>From Reading<br/></div>" +
"• 222 East to 309 South toward Quakertown<br/>" +
"• 309 South to Cedar Crest Blvd (Exit 55).<br/>" +
"• Turn right (South) onto Cedar Crest.<br/>" +
"• Continue with Local Directions on right side of this page<br/></p>" +
"<p><div class=directionHeading>From Points East<br/></div>" +
"• I-78 West to Allentown Area<br/>" +
"• Take Cedar Crest Blvd Exit 55.<br/>" +
"• Turn left (South) onto Cedar Crest.<br/>" +
"• Continue with Local Directions on right side of this page<br/></p>" +
"<p><div class=directionHeading>From Scranton<br/></div>" +
"• I-476 South (NE Ext. of PA Turnpike)<br/>" +
"to Exit 33 (Lehigh Valley)<br/>" +
"• 22 East toward Allentown<br/>" +
"• Follow 22 East approximately 300 yards to<br/>" +
"309 South toward Quakertown<br/>" +
"• 309 South to Cedar Crest Blvd (Exit 55).<br/>" +
"• Turn right (South) onto Cedar Crest.<br/>" +
"• Continue with Local Directions on right side of this page<br/></p>" +
"<p><div class=directionHeading>From Philadelphia<br/></div>" +
"• I-476 North (NE Ext. of PA Turnpike)<br/>" +
"to Exit 33 (Lehigh Valley)<br/>" +
"• 22 East toward Allentown (300 yd)<br/>" +
"• 309 South (toward Quakertown)<br/>" +
"to Cedar Crest Blvd (Ext 55)<br/>" +
"• Turn right (South) onto Cedar Crest<br/>" +
"• Continue with Local Directions on right side of this page<br/></p>";
                    rightText.innerHTML =
"<p><div class=directionHeading>Local Directions<br/></div>" +
"• Follow Cedar Crest Blvd. South from I78 (at Lehigh Valley Hospital) to the end (approximately 3 miles).</br>" +
"• The end of Cedar Crest makes a ‘T’ with Chestnut Street.<br/>" +
"• Turn right onto Chestnut St.<br/>" +
"• 1/3 mile on Chestnut, Granny Schmidt's is on the right, in the barn just behind the Farmhouse restaurant.<br/></p>" +
"<p><div class=directionHeading>Street Address:<br/></div>" +
"1449 Chestnut Street<br/>" +
"Emmaus, PA  18049</p>";

                });

    new Button("blLocation", d + "L-Location.png", d + "L-Location-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bLocation"].click(); });
}

var leftContactText =
"<p>&nbsp;</p>" +
"<p>Michelle is our one-person communications center. </p>" +
"<p>Call her any time for wedding and specialty cake orders: 610-984-5978.</p>" +
"<p>You can always reach her (even when she’s on vacation in the Caribbean <span style='FONT-FAMILY: Wingdings; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-char-type: symbol; mso-symbol-font-family: Wingdings'><span style='mso-char-type: symbol; mso-symbol-font-family: Wingdings'>J<font face='Times New Roman'>) </font></span></span>via email: <a href='mailto:michelle@grannyschmidts.com' style='color:#C00'>michelle@grannyschmidts.com</a></p>" +
"<p>Our showroom hours are by appointment only so if you’d like to visit please call ahead – we don’t want to miss you.</p>";
var rightContactText =
"<p>&nbsp;</p>" +
"<p>Our mailing address is:<br />" +
"<div class='address'>" +
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;       Granny Schmidt’s<br />" +
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;       PO Box 743<br />" +
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;       Emmaus, PA 18049<br /></div></p>" +
"<p>Our street address is:<br />" +
"<div class='address'>" +
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;       1449 Chestnut Street<br />" +
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;       Emmaus, PA 18049<br /></div></p>";