﻿window.onload = initAll;   //---do this when the page finishes loading---

function initAll() {
    //document.getElementById("ShowMessage").innerHTML = "What the heck?";
    //alert("Well, what happens");
    //var temp = confirm("Are you sure?"); alert(temp);
    if (document.getElementById("Header")) { document.getElementById("Header").onclick = loadText; }
    if (document.getElementById("Logo")) { document.getElementById("Logo").onclick = loadText; }
    if (document.getElementById("SmokePhoto")) { document.getElementById("SmokePhoto").onclick = loadText; }
    if (document.getElementById("P1")) { document.getElementById("P1").onclick = loadText; }
    if (document.getElementById("P2")) { document.getElementById("P2").onclick = loadText; }
    if (document.getElementById("P3")) { document.getElementById("P3").onclick = loadText; }
    if (document.getElementById("P4")) { document.getElementById("P4").onclick = loadText; }
    if (document.getElementById("CD1")) { document.getElementById("CD1").onclick = loadText; }
    if (document.getElementById("CD2")) { document.getElementById("CD2").onclick = loadText; }
    if (document.getElementById("CD3")) { document.getElementById("CD3").onclick = loadText; }
    if (document.getElementById("CD4")) { document.getElementById("CD4").onclick = loadText; }

    //---This gets the Welcome page loaded using the Welcome page's load routine---
    if (document.getElementById("Text1").innerHTML == "") {loadWelcome();}
}
function hello(showwhat) {
    alert(showwhat)
}
function loadText() 
{
    switch (this.id) {
        case undefined:
            break;
        case "Logo":
            window.location="WelcomePage.aspx";
            break;
        case "SmokePhoto":
            window.location="WelcomePage.aspx";
            break;
        case "P1":
            loadWelcome();
            break;
        case "P2":
            loadCDs();
            break;
        case "P3": 
            loadPersonnel();
            break;
        case "P4": 
            contactUs();
            break;
        case "P5":
            window.location = "TestPage.aspx";
            break;
        case "CD1" :
            loadGravity();
            break;
        case "CD2" :
            loadElectricity();
            break;
        case "CD3" :
            loadMagnetism();
            break;
        case "CD4" :
            loadSeeds();
            break;
        default:
            //alert(this.id);
            break;
    }
    return false;
}
function initRedirect() {
    window.location = this;
}
function doit() {
    switch(this.value) {
        case("Yo"):
            var ans = prompt("Enter a number", "");
            try {
                if (!ans || isNaN(ans) || ans<0) {
                    throw new Error("Busted!");
                }
                alert("Okay");
            }
            catch(errmsg) {
                    alert(errmsg.message);
             }
            break;
        case("Yes"):
            alert("And MORE yes!");
            break; 
        default:
    }
}
function loadWelcome() {
    document.getElementById("TextHeader").innerHTML = "Welcome";
    document.getElementById("main_pic").src="Images/home_img.cropped.jpg";
    document.getElementById("logo2").className = "";
    document.getElementById("main_pic").className = "";
    document.getElementById("cdcover").className = "hide";
    document.getElementById("ContactForm").className = "hide";
    document.getElementById("PayPalForm").className = "hide";
    clearTexts();
    document.getElementById("Text1").innerHTML = "Welcome to the Cheshire Bronze website! Yes, it's long overdue, but here it is at last.";
    document.getElementById("Text2").innerHTML = "Cheshire Bronze was a progressive rock band of the early 1980s, housed in Mar Vista, California. "
                + "We played many of the local Los Angeles clubs, including The Troubador, The Whiskey, The Roxy, Madame Wong's, The Palace, and The Country Club. "
                + "We have produced four CDs of our material which are available for purchase on this website. You can hear the "
                + "songs here, as well, but I hope you'll pick up the CDs if you enjoy the music, as they sound much better in WAV format than as MP3's.";
    document.getElementById("Text3").innerHTML = "Thanks for dropping in! If you would like to be notified when this site changes, please click on Contact Us. I promise "
                + "your email address won't be shared with anyone. If you saw CB back in the day, or you are enjoying this work, please say hello, thanks!";
    document.getElementById("Text4").innerHTML = "Sincerely yours, John Harwood";
    document.getElementById("Text5").innerHTML = "February 2010";
    clearCDs();
}
function loadCDs() {
    document.getElementById("TextHeader").innerHTML = "CDs";
    document.getElementById("main_pic").src="Images/Live%20Band%20Palace%20Rays.cropped.jpg";
    document.getElementById("logo2").className = "";
    document.getElementById("main_pic").className = "";
    document.getElementById("cdcover").className = "hide";
    document.getElementById("ContactForm").className = "hide";
    document.getElementById("PayPalForm").className = "";
    clearTexts();
    document.getElementById("Text1").innerHTML = "Mastering the music from cassettes has resulted in four CDs of material which we are proud to present here. "
        + "Using digital tools to clean and master these songs has revealed more than we had expected to find. "
        + "The CDs have been arranged with an emphasis on musical enjoyment rather than chronological documentation. "
        + "Even if you are familiar with the band's cassettes we think you will find much to enjoy on these re-mastered and "
        + "re-organized releases.";
    document.getElementById("Text2").innerHTML = "Click on a CD image to read more about the collection and hear the music, or use the Add to Cart button below to buy them through PayPal.";
    document.getElementById("CD1").width="200";
    document.getElementById("CD1").height="200";
    document.getElementById("CD2").width="200";
    document.getElementById("CD2").height="200";
    document.getElementById("CD3").width="200";
    document.getElementById("CD3").height="200";
    document.getElementById("CD4").width="200";
    document.getElementById("CD4").height="200";
}
function loadPersonnel() {
    document.getElementById("TextHeader").innerHTML = "Personnel";
    document.getElementById("main_pic").src="Images/Review%20Photo.cropped.jpg";
    document.getElementById("logo2").className = "";
    document.getElementById("main_pic").className = "";
    document.getElementById("cdcover").className = "hide";
    document.getElementById("ContactForm").className = "hide";
    document.getElementById("PayPalForm").className = "hide";
    clearTexts();
    document.getElementById("Text1").innerHTML = "Band members included Mark Harwood "
            + "(vocals, keyboards, acoustic guitar), John Harwood (guitars, vocals), "
            + "Chris Defranco (drums), Greg Mortimer (bass, bass pedals), Keith Wexsler "
            + "(keyboards 1980-1983), Scott Walton (keyboards 1983-1984).";
    document.getElementById("Text2").innerHTML = "Cheshire Bronze, as a live performance, included the hard work and creativity of "
                + " many other people, including: (lighting) John Booth & David Kaufman; (sound) David Heckerman & Steve Bruce; "
                + "(stage design) John Arbuckle; (equipment) Lou Lamar & Tiny and many others....";
    document.getElementById("Text3").innerHTML = "In the summer of 2001, Chris Defranco passed away, as all great drummers must do, "
                + "before his time. This precipitated a gathering to honor his life, and was the seed that resulted in the "
                + "remastering of the CDs, and this website. Chris will be missed, but thankfully we have these recordings "
                + "to remind us of what he did so well.";
    clearCDs();
}
function contactUs() {
    document.getElementById("TextHeader").innerHTML = "Contact Us";
    document.getElementById("main_pic").src="Images/clown.cropped.jpg";
    document.getElementById("logo2").className = "";
    document.getElementById("main_pic").className = "";
    document.getElementById("cdcover").className = "hide";
    document.getElementById("PayPalForm").className = "hide";
    clearTexts();
    document.getElementById("Text1").innerHTML = "If you are an old friend, we'd love to hear from you. Tell us how you know us to jog the memory. "
        + "If you are a new friend, we'd love to hear from you as well! How did you find us?";
    document.getElementById("Text2").innerHTML = "Sending us a message will put you on our email list, which of course we won't share with anyone and you can unsubscribe at any time.";
    document.getElementById("ContactForm").className = "";
    clearCDs();
}
function loadGravity() {
    document.getElementById("TextHeader").innerHTML = "Gravity";
    document.getElementById("logo2").className = "hide";
    document.getElementById("main_pic").className = "hide";
    document.getElementById("CDDisplay").src="Images/gravity.small.jpg";
    document.getElementById("CDDisplay").alt="Gravity CD Cover";  
    document.getElementById("cdcover").className = "";
    document.getElementById("ContactForm").className = "hide";
    document.getElementById("PayPalForm").className = "";
    showPlayer("Gravity");
    clearTexts();
    document.getElementById("Text1").innerHTML = "Gravity is our premiere collection of songs, the best CD for listeners new to Cheshire Bronze and/or not particularly interested in progressive rock. Songs included are:";
    document.getElementById("Text2").innerHTML = "1. Beggars Would Ride: recorded in 1983, this elegaic work was never performed live. It is now one of our favorites, so it landed in the #1 position.<br /><br />"
       + "2. Tapestry: recorded in 1983 and performed live quite a few times, featuring Greg Mortimer on the very silky bass-line.<br /><br />"
       + "3. Band of Pearls: this love song was recorded in 1979 and was never performed live. <br /><br />"
       + "4. Waiting for Them to Rise: recorded in 1982, this song was performed live a number of times.<br /><br />"
       + "5. Ragman Heroes: also recorded in 1982, this piece was also performed live a number of times.<br /><br />"
       + "6. Keeper of the Castle: this song had a number of incarnations. This version, our favorite, was recorded around 1982 and was performed live quite a few times.<br /><br />"
       + "7. Message to the King: recorded live in the Mar Vista studio in 1984, it was performed live twice. In the end, it is a missive to the A&R fellow who claimed to be interested in signing the band.<br /><br />"
       + "8. The Wolf (Reprise): when Mark & I started compiling the Bronze material, we were told by Scott Walton that he had Chris's drum tracks from another version of this song "
       + "available for us to use. So we set about re-constructing this song (the original is found on the Seeds CD), and it turned into a massive, 130-track behemoth. "
       + "When was it recorded? Well, Chris's drums were record in the late 1980s. The rest was laid down between 2003 and 2009. Go figure.";
    document.getElementById("Text3").innerHTML = "--     -- John Harwood";
    clearCDs();
    }
function loadElectricity() {
    document.getElementById("TextHeader").innerHTML = "Electricity";
    document.getElementById("logo2").className = "hide";
    document.getElementById("main_pic").className = "hide";
    document.getElementById("CDDisplay").src="Images/electricity.small.jpg";
    document.getElementById("CDDisplay").alt="Electricity CD Cover";  
    document.getElementById("cdcover").className = "";
    document.getElementById("ContactForm").className = "hide";
    document.getElementById("PayPalForm").className = "";
    showPlayer("Electricity");
    clearTexts();
    document.getElementById("Text1").innerHTML = "Electricity is a collection of more progressive and energetic (loud?) songs, a good follow-up to the more refined Gravity collection. Songs included are:";
    document.getElementById("Text2").innerHTML = "1. Black & White: recorded in 1982, this signature work was performed live possibly more than any other of our songs, for what I think are obvious reasons. "
       + "In the various tape collections it was included on it was typically one of the last songs--but now it is the opener. Hold on to your hat, and turn it up!<br /><br />"
       + "2. Dormant Season: was recorded in 1983 and was first performed at The Roxy on the Sunset Strip. A piece of drama and social commentary, it also has some of our most elegaic orchestral moments.<br /><br />"
       + "3. Poured Over Ice: the logical follower of Dormant Season, it was also performed live, both at the Roxy and at the Country Club. This beautiful reflection on the nature of life's cycles is one of my favorites of Mark's work. <br /><br />"
       + "4. Do What I Can: was recorded in 1984, in the live-in-studio group of recordings, and was performed at the Palace in our last club show.<br /><br />"
       + "5. Out on a Limb: recorded in 1980, was in fact the raw material that Chris, Greg, Mark and I used to decide if we should be a band, in his parents garage, as I recall. It was performed live many times over the years of the band.<br /><br />"
       + "6. High & Mighty: another of the songs recorded live-in-studio in the winter of 1984. It was also performed at The Palace show. <br /><br />"
       + "7. Busy Day: recorded around 1981-2 it was performed live many times. One of our liveliest numbers.<br /><br />"
       + "8. Dawg with the End of the Leash: another of the live-in-studio recordings. The lyrics hadn't settled down yet, but it is quite a bleak picture. Robert Plant watch out! This was performed live at The Palace.<br /><br />"
       + "9. Framework: written by Scott Walton with Greg Mortimer and Chris Defranco, this song was also recorded live-in-studio in 1984. ";
    document.getElementById("Text3").innerHTML = "--     -- John Harwood";
    clearCDs();
    document.getElementById("electricityplayer").autoload="True";
    }
function loadMagnetism() {
    document.getElementById("TextHeader").innerHTML = "Magnetism";
    document.getElementById("logo2").className = "hide";
    document.getElementById("main_pic").className = "hide";
    document.getElementById("CDDisplay").src="Images/magnetism.small.jpg";
    document.getElementById("CDDisplay").alt="Magnetism CD Cover";  
    document.getElementById("cdcover").className = "";
    document.getElementById("ContactForm").className = "hide";
    document.getElementById("PayPalForm").className = "";
    showPlayer("Magnetism");
    clearTexts();
    document.getElementById("Text1").innerHTML = "Magnetism is a collection of our best live recordings. If you have enjoyed Electricity, you need to check out Magnetism. Songs included are:";
    document.getElementById("Text2").innerHTML = "1. The Wild Hills of Molera: recorded live at The Roxy in 1983, this was a regular staple of our live shows, if anything for a "
        + "break in the more intensive work of our other pieces. It was not titled at the time, but in the late 1980s I came to visit "
        + "Big Sur a great deal, feeling deeply moved by the... yes, the wild hills of Andrew Molera, which this piece fits to a tee.<br /><br />"
        + "2. Cinema Suite #5: yes, this is a small medley of Genesis instrumental sections, with some joining material we wrote for the occasion. "
        + "I have titled it #5 because we had countless versions of Genesis medleys. A tip of the hat to some great music. This was recorded "
        + "live at The Whiskey in 1983, I believe, one of our more memorable shows. Keith Wexsler was on the backing keyboards, with Mark cutting a nice job of the lead, "
        + "tuning the moody Moog mid-stride as you can hear.<br /><br />"
        + "3. Intro #3: For a few of our thirteen shows at The Troubador we recorded some music to open the show--without notifying the audience. "
        + "This was one of the more successful of those recordings. You can hear the sound guys adjusting volumes as the band starts the show. "
        + "This probably dates from 1982 or 1983.<br /><br /> "
        + "4. The Fish: yes, this is an instrumental work by Yes, from their famous Fragile album. We liked to add a little more edge to it. "
        + "Keith Wexsler adds some nice keyboards along with Mark. This was recorded at The Troubador probably in '82.<br /><br /> "
        + "5. Dusk on the Lanais: this was a later solo guitar work, also recorded live at The Roxy. It, too, had no title at the time, "
        + "but upon reflection it reminded me of a lovely lanais (I had no idea what a lanais was until I sat on this one) that Mark and I "
        + "enjoyed sitting on which belonged to a friend's parents in San Marino and overlooked a lovely, serene garden with a cool swimming pool.<br /><br />"
        + "6. Cage: this was our early magnum opus, an epic journey which won us most of our fan base at the time. This version was recorded "
        + "live at The Troubador. The miking is weak, but the performance is quite solid.<br /><br />"
        + "7. Six Eight: this piece was Scott Walton's first contribution to the repertoire, with a little assistance from yours truly. "
        + "This recording was made... at a location unknown. My best bet is Madame Wong's West.";
    document.getElementById("Text3").innerHTML = "--     -- John Harwood";
    clearCDs();
    }
function loadSeeds() {
    document.getElementById("TextHeader").innerHTML = "Electricity";
    document.getElementById("logo2").className = "hide";
    document.getElementById("main_pic").className = "hide";
    document.getElementById("CDDisplay").src="Images/seeds.small.jpg";
    document.getElementById("CDDisplay").alt="Seeds CD Cover";  
    document.getElementById("cdcover").className = "";
    document.getElementById("ContactForm").className = "hide";
    document.getElementById("PayPalForm").className = "";
    showPlayer("Seeds");
    clearTexts();
    document.getElementById("Text1").innerHTML = "Seeds is a collection of recordings that did not fit in the other three CDs. Many of them are recordings made by Mark or "
        + "Mark and myself in the years before the band was formed. It also includes the original version of The Wolf. "
        + "Songs included are:";
    document.getElementById("Text2").innerHTML = "1. Guitar & Musique Concrete: this was a very early work by Mark on the four-track Teac 3340-S which was used in all of our subsequent multi-track recordings. "
        + "It borrows some sound effects from other records and then embarks on a lovely electric guitar overlay. (I should have made him play electric guitar more often.)<br /><br />"
        + "2. Paradise Sailor Medley: another solo construction by Mark on the Teac. One of my favorites.<br /><br />"
        + "3. 12-String Fantasy: this was one of our first joint ventures, recorded up at Harwood Lodge near the top of Mount Baldy, a Sierra Club Lodge we settled into "
        + "with all our instruments during the week. You can hear the sound of the lodge in the recording.<br /><br />"
        + "4. Upside Down: one of the subsequent songs we constructed at Harwood Lodge. Also one of my faves.<br /><br />"
        + "5. The Wolf (Original): recorded in 1983, around the same time as Tapestry, this is the first version of this haunting story that Mark devised "
        + "while watching the snow fall somewhere a couple of hours north of L.A.";
    document.getElementById("Text3").innerHTML = "--     -- John Harwood";
    clearCDs();
    }
function clearTexts() {
    document.getElementById("Text1").innerHTML = "";
    document.getElementById("Text2").innerHTML = "";
    document.getElementById("Text3").innerHTML = "";
    document.getElementById("Text4").innerHTML = "";
    document.getElementById("Text5").innerHTML = "";
}
function clearCDs() {
    document.getElementById("CD1").width="0";
    document.getElementById("CD1").height="0";
    document.getElementById("CD2").width="0";
    document.getElementById("CD2").height="0";
    document.getElementById("CD3").width="0";
    document.getElementById("CD3").height="0";
    document.getElementById("CD4").width="0";
    document.getElementById("CD4").height="0";
}
function showPlayer(who) {
    document.getElementById("gravityplayer").className="hide";
    document.getElementById("electricityplayer").className="hide";
    document.getElementById("magnetismplayer").className="hide";
    document.getElementById("seedsplayer").className="hide";
    switch (who) {
        case "Gravity" :
            document.getElementById("gravityplayer").className="";
            break;
        case "Electricity" :
            document.getElementById("electricityplayer").className="";
            break;
        case "Magnetism" :
            document.getElementById("magnetismplayer").className="";
            break;
        case "Seeds" :
            document.getElementById("seedsplayer").className="";
            break;
        default:
    }
}
function showCopyright() {
    alert("Copyright 1984, 2009 Mark & John Harwood");
    //return false;
}

