﻿
function makepageCakes() {
    var d = "images/Button Labels/";
    var right = "464px";
    var left = "8px";
    var mainImage = document.getElementById("MainContainer");

    new Button("bBirthdays", d + "Birthdays.png", d + "Birthdays-H.png", d + "Birthdays-S.png", d + "Birthdays-SH.png",
                right, "280px", "80", mainImage,
                pBirthdays.glideAway,
                function() {
                    if (!fullyCompatibleBrowser()) {
                        buttons["bWeddings"].remoteOff();
                        buttons["bEvents"].remoteOff();
                        buttons["bCelebrations"].remoteOff();
                    }
                    pBirthdays.stop();
                    pBirthdays.startRollDown();
                });

    new Button("bWeddings", d + "Weddings.png", d + "Weddings-H.png", d + "Weddings-S.png", d + "Weddings-SH.png",
                right, "30px", "80", mainImage,
                pWeddings.glideAway,
                function() {
                    if (!fullyCompatibleBrowser()) {
                        buttons["bBirthdays"].remoteOff();
                        buttons["bEvents"].remoteOff();
                        buttons["bCelebrations"].remoteOff();
                    }
                    pWeddings.stop();
                    pWeddings.startRollDown();
                });

    new Button("bEvents", d + "Events.png", d + "Events-H.png", d + "Events-S.png", d + "Events-SH.png",
                left, "100px", "80", mainImage,
                pEvents.glideAway,
                function() {
                    if (!fullyCompatibleBrowser()) {
                        buttons["bBirthdays"].remoteOff();
                        buttons["bWeddings"].remoteOff();
                        buttons["bCelebrations"].remoteOff();
                    }
                    pEvents.stop();
                    pEvents.startRollDown();
                });

    new Button("bCelebrations", d + "Celebrations.png", d + "Celebrations-H.png", d + "Celebrations-S.png", d + "Celebrations-SH.png",
                left, "280px", "80", mainImage,
                pCelebrations.glideAway,
                function() {
                    if (!fullyCompatibleBrowser()) {
                        buttons["bBirthdays"].remoteOff();
                        buttons["bWeddings"].remoteOff();
                        buttons["bEvents"].remoteOff();
                    }
                    pCelebrations.stop();
                    pCelebrations.startRollDown();
                });

    new Button("bPictures", d + "Pictures.png", d + "Pictures-H.png", null, null,
                left, "110px", "80", mainImage,
                false,
                function() {
                    Projector.screen.swap("images/1790_walker_garden_420.jpg");
                    clearTextAreas();
                    Button.disableAll();
                    buttons["bHome"].enable("bPictures");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["blPictures"].enable();
                    buttons["bBirthdays"].enable();
                    buttons["bWeddings"].enable();
                    buttons["bEvents"].enable();
                    buttons["bCelebrations"].enable();
                });

    new Button("blPictures", d + "L-Pictures.png", d + "L-Pictures-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bPictures"].click(); });

    new Button("bWedding", d + "Wedding.png", d + "Wedding-H.png", d + "Wedding-S.png", d + "Wedding-SH.png",
                right, "100px", "80", mainImage,
                function() { leftText.innerHTML = ""; rightText.innerHTML = ""; },
                function() {
                    Projector.screen.swap("images/13147_mcdonell_farm_1020.jpg");
                    clearTextAreas();
                    //                    Button.disableAll();
                    buttons["bHome"].enable("bWedding");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["blWedding"].enable();
                    buttons["blOrdering"].disable();
                    buttons["bCustom"].remoteOff();
                    buttons["bSeasonal"].remoteOff();
                    leftText.innerHTML = "<p class='pricesheet'>Chocolate<br/>Vanilla<br/><div class='price'>$3.75</div></p>" +
                    "<p class='pricesheet'>Vanilla Raspberry<br/>Lemon Poppyseed<br/>Vanilla & Chocolate<br/>Coconut Cream<br/><div class='price'>$4.25</div></p>" +
                    "<p class='pricesheet'>Chocolate Raspberry<br/>Mocha<br/>Chocolate Peanut Butter Mousse<br/><div class='price'>$4.75</div></p>" +
                    "<p class='pricesheet'>Carrot<br/>Almond Amaretto Cream<br/>Chocolate Mint<br/>Chocolate Ganache<br/>Raspberry Chambord<br/><div class='price'>$5.50</div></p>" +
                    "<p class='pricesheet'>Cassata<br/>Strawberries & Cream<br/>Red Velvet<br/><div class='price'>$6.50</div></p>";
                    rightText.innerHTML = "<p>Wedding cakes are priced per person, in increments of twenty five people</p>" +
                    "<p>Prices include delivery up to 20 miles with a $2.00 per mile charge for additional miles</p>" +
                    "<p>Wedding cakes can be decorated with fresh flowers for an additional charge</p>" +
                    "<p>We can create any cake design, so please show us your ideas and pictures and we’ll work with you to bring your dream cake to life</p>";
                });

    new Button("blWedding", d + "L-Ordering.png", d + "L-Ordering-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bWedding"].click(); });


    new Button("bCustom", d + "Custom.png", d + "Custom-H.png", d + "Custom-S.png", d + "Custom-SH.png",
                left, "100px", "80", mainImage,
                function() { leftText.innerHTML = ""; rightText.innerHTML = ""; },
                function() {
                    Projector.screen.swap("images/milk-8a12137r.jpg");
                    clearTextAreas();
                    //                    Button.disableAll();
                    buttons["bHome"].enable("bCustom");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["bWedding"].remoteOff();
                    buttons["bSeasonal"].remoteOff();
                    leftText.innerHTML =
                        "<p class='cakeName'>Chocolate Chocolate <span class='cakePrice'>$54.95</span></p><p class='cakeDescription'>Moist chocolate cake layered with chocolate mousse then covered with ganache, chocolate shavings & truffles.</p>" +
                        "<p class='cakeName'>Matilda’s Chocolate Chambord <span class='cakePrice'>$54.95</span></p><p class='cakeDescription'>It’s back! Chocolate cake layered with raspberry Chambord mousse then finished with ganache.</p>" +
                        "<p class='cakeName'>Matilda’s Chocolate Bourbon Pecan Torte <span class='cakePrice'>$54.95</span></p><p class='cakeDescription'>The original dense bourbon flavored chocolate torte with toasted pecans and ganache. Very rich.</p>" +
                        "<p class='cakeName'>Chocolate Peanut Butter Mousse <span class='cakePrice'>$49.95</span></p><p class='cakeDescription'>Chocolate cake & peanut butter mousse coated with chocolate buttercream and drizzled with ganache.</p>" +
                        "<p class='cakeName'>Mint Chocolate Chip Cream <span class='cakePrice'>$44.95</span></p><p class='cakeDescription'>Vanilla cake loaded with mini chocolate chips, layered with mint filling then coated in chocolate buttercream.</p>" +
                        "<p class='cakeName'>White Chocolate Coconut <span class='cakePrice'>$44.95</span></p><p class='cakeDescription'>Vanilla cake with white chocolate coconut filling, vanilla buttercream & toasted coconut.</p>" +
                        "<p class='cakeName'>Matilda’s Vanilla Raspberry <span class='cakePrice'>$44.95</span></p><p class='cakeDescription'>Vanilla cake, raspberry preserve and raspberry mousse with vanilla buttercream.</p>" +
                        "<p class='cakeName'>Matilda’s Almond Amaretto <span class='cakePrice'>$54.95</span></p><p class='cakeDescription'>Almond cake, ground almonds, amaretto liquor and your choice of vanilla or chocolate buttercream.</p>" +
                        "<p class='cakeName'>Samantha’s Tiramisu <span class='cakePrice'>$59.95</span></p><p class='cakeDescription'>Vanilla chiffon genoise cake, espresso marscapone mousse, chocolate shavings topped with fresh whipped cream & cocoa.</p>" +
                        "<p class='cakeName'>Spice Cake <span class='cakePrice'>$44.95</span></p><p class='cakeDescription'>Spice cake, caramel apple filling with swiss buttercream.</p>" +
                        "<p class='cakeName'>Matilda’s Banana Praline <span class='cakePrice'>$44.95</span></p><p class='cakeDescription'>Another Matilda’s classic - banana cake, hazelnut liquor with praline buttercream.</p>" +
                        "<p class='cakeName'>Matilda’s Carrot Cake <span class='cakePrice'>$44.95</span></p><p class='cakeDescription'>Super moist with freshly grated carrots, raisins, nuts and a variety of spices with buttercream icing.</p>" +
                        "<p class='cakeName'>San Francisco Cheesecake <span class='cakePrice'>$34.95</span></p><p class='cakeDescription'>Creamy cheesecake with a graham cracker crust and sour cream topping.</p>" +
                        "<p class='cakeName'>Cappuccino Cheesecake <span class='cakePrice'>$37.95</span></p><p class='cakeDescription'>Coffee & cream cheesecake topped with chocolate ganache.</p>" +
                        "<p class='cakeName'>Raspberry Swirl Cheesecake <span class='cakePrice'>$37.95</span></p><p class='cakeDescription'>Raspberry swirl cheesecake topped with raspberry cream.</p>";
                    rightText.innerHTML =
                        "<p>All cakes are 10\" and will serve at least 16 farmhands - for dainty eaters, maybe twice that.</p>" +
                        "<p>Everything is made to order, so please try to give us a few days' notice.</p>";
                });

                new Button("bSeasonal", d + "Seasonal.png", d + "Seasonal-H.png", d + "Seasonal-S.png", d + "Seasonal-SH.png",
                left, "300px", "80", mainImage,
                function() { leftText.innerHTML = ""; rightText.innerHTML = ""; },
                function() {
                    Projector.screen.swap("images/16110_picking_apples_520.jpg");
                    clearTextAreas();
                    //                    Button.disableAll();
                    buttons["bHome"].enable("bSeasonal");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["bWedding"].remoteOff();
                    buttons["bCustom"].remoteOff();
                    leftText.innerHTML =
                        "<p class='cakeName'>Fresh Rasberry and Champagne Mousse Tiramisu <span class='cakePrice'>$64.95</span></p><p class='cakeDescription'>Layers of chiffon cake, chambord, raspberry mousse and champagne mousse wrapped in white chocolate dipped lady fingers and a big red bow.</p>" +
                        "<p class='cakeName'>Heart Shaped Triple Chocolate Turtle Cake <span class='cakePrice'>$59.95</span></p><p class='cakeDescription'>Rich chocolate cake filled with chocolate caramel swirl cream, topped with chocolate buttercream and ganache drilled with pecans.</p>" +
                        "<p class='cakeName'>Cherry Almond Linzer Tart <span class='cakePrice'>$39.95</span></p><p class='cakeDescription'>Homemade cherry filling with almond frangipane in a linzer crust.</p>" +
                        "<p class='cakeName'>Red Velvet <span class='cakePrice'>$59.95</span></p><p class='cakeDescription'>Classic red velvet cake coated in swissbuttercream inside and out, decorated with red roses</p>";
                    rightText.innerHTML =
                        "<p>Seasonal specials are \"just here for the meanwhile.\"</p>" +
                        "<p>Please try to order early if it's a holiday because we can get really busy and we might have to say \"no\" if you wait too long.</p>";
                });


    new Button("bOrdering", d + "Ordering.png", d + "Ordering-H.png", d + "Ordering-S.png", d + "Ordering-SH.png",
                right, "50px", "80", mainImage,
                function() { leftText.innerHTML = ""; rightText.innerHTML = ""; },
                function() {
                    Projector.screen.swap("images/cake-8b06233r.jpg");
                    clearTextAreas();
                    Button.disableAll();
                    buttons["bHome"].enable("bOrdering");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["bWedding"].enable();
                    buttons["bCustom"].enable();
                    buttons["bSeasonal"].enable();
                    buttons["blOrdering"].enable();
                    rightText.innerHTML = "<p>Please try to order at least one week in advance. While we often accommodate orders placed with less notice there's a much greater chance that we can't - and that's not good for anyone.</p>" +
                        "<p>If you're ordering a wedding cake just call Michelle at 610-984-5978 to schedule a consultation and complimentary tasting.</p>" +
                        "<p>While some guidelines suggest ordering your wedding cake three months in advance, that may limit your options as some dates do get completely filled before that. Many of our cakes are booked one and even two years ahead. We are often at capacity a year in advance for popular dates so don't hesitate to call and get started.</p>";
                    //                    "<p>If you're ordering a wedding cake just <a href=''onclick=\"alert()\">call Michelle </a>to schedule a consultation and complimentary tasting.</p>";
                });
    //function contact() { buttons["bContact"].enable("bOrdering"); buttons["bContact"].toggle(); };

    new Button("blOrdering", d + "L-Ordering.png", d + "L-Ordering-H.png", null, null,
                "47px", "418px", "79", mainImage,
                false,
                function() { buttons["bOrdering"].click(); });

    new Button("bComments", d + "Comments.png", d + "Comments-H.png", d + "Comments-S.png", d + "Comments-SH.png",
                left, "320px", "80", mainImage,
                function() { leftText.innerHTML = ""; rightText.innerHTML = ""; },
                function() {
                    Projector.screen.swap("images/6637_boys_at_pump_520.jpg");
                    clearTextAreas();
                    // Button.disableAll();
                    buttons["bHome"].enable("bComments");
                    if (Button.hasHistory) buttons["bBack"].enable();
                    buttons["bWedding"].remoteOff();
                    buttons["bOrdering"].remoteOff();

                    leftText.innerHTML = leftComments;
                    rightText.innerHTML = rightComments;                    
                });                
}
