indexQuotes = Array(

"\"We found ourselves transported in time and place with the music and art. The guides you provided were excellent crib sheets for a layman like myself.\" -- Victoria Chilcott, award winning children's author",

"\"I'm fairly hard to please when it comes to music, and I can honestly say I could have spent many more hours listening to their virtuosic, gorgeous playing.\"  -- Jenny Ball, Young Entrepreneurs Association",

"\"The venue was fabulous, and so suitable for the wonderful music that was so uplifting and interesting, with the cards to inform us ignoramuses of the composer and local history of the time, made interesting reading and all added to the experience.\" -- Ecademy.com",

"\"Loads of our clients and partners thanked us profusely for the evening, and raved about the music, even people who don't normally appreciate classical music.\"  -- Tom Ball, Director, Cognac.co.uk",

"\"I haven't had such an enjoyable cultural evening like that in years. I hadn't realized how much I needed that 'fix'. ... Penelope was fantastic and made the really difficult parts look like she was really enjoying herself, and she plays with such feeling and passion.\" -- A.W., Ecademy.com",

"\"It was thoroughly enjoyable in every respect. I will spread the word about Realm of Music!\" -- Anthony Simpson, Managing Director, Merrill Lynch",

"\"The combination of food, drink, socializing, and music is a winner. Liked the relaxed, friendly atmosphere. Many people also liked seeing the instruments up close, and mingling with the musicians afterward.\" -- Eric Beinhocker, Partner, McKinsey & Company");

corpQuotes = Array(

"\"I really wanted to thank you for last night.  It was truly amazing; thank you so much for letting us bring our contacts along.\" - Jenny Ball, Young Entrepreneurs Association",

"\"Loads of our clients and partners thanked us profusely for the evening and raved about the music, even people who normally don't appreciate classical music.  The favourite was definitely the improvisation at the end.\"- Jenny Ball, Young Entrepreneurs Association",

"\"I just wanted to say thanks for yet another fantastic evening of music.  The setting was divine, the playing fantastic and the commentary by you all about the composers, the history and your instruments made a perfect evening.\" - Susanne Hounslow, Partner, Data2Impact",

"\"Thanks very much for an enjoyable evening. Much appreciated.\" - Justin Speake, CEO Bloor Rresearch",

"\"Thank you for a great evening.  The performance was truly wonderful.\" - Eugene Lawlor, Positive Solutions Financial Services",

"\"Just a quick note to say, yet again, thank you for a fantastic evening last night - every one I spoke to thoroughly enjoyed it and I have had several emails from our clients complimenting your performance and the layout of the event.\" Helen McKintyre, events organiser, Christie's",

"\"Thanks so much for giving us such a brilliant evening. Everyone loved it!\" - Joy Park, Events Organiser, McKinsey & Company" );

privQuotes = Array("\"Thank you for a most enjoyable evening. It was a nicely conceived event. Realm of Music was superb and combination with the Christie Old Masters sale worked so well.\" -- Tim Donlevy",

"\"...the feedback that I have received has been excellent, everyone enjoyed the evening immensely, and it is certainly hoped that we will repeat it.\" -- Alistair Telfer, Secretary, Carlton Club");

/* The currently selected venue */
var curVenue = null;

// When loading page or resizing browser, circulate between different quotes
function loadpage(pageName)
{
    // Pick random quote (selected pages only)
    if ( pageName == 'index' )
        quotes = indexQuotes;
    else if ( pageName == 'corp' )
        quotes = corpQuotes;
    else if ( pageName == 'private' )
        quotes = privQuotes;
    else
        quotes = null;
    if ( quotes ) {
        var q = document.getElementById("quote");
        var i = Math.floor(Math.random() * quotes.length);
        q.innerHTML = quotes[i];
    }

    // Pick a random banner image (front page only)
    if ( pageName == "index" ) {
        var numBanners = 6;
        i = Math.floor(Math.random() * numBanners);
        var c = document.getElementById("banner");
        c.style.backgroundImage = "url(images/banners/banner" + i + ".jpg)"; 
    }
}



// Mouse over a menu item: change font and image, maybe style
function menuOver(evt)
{
   /*evt.target.style.color = "black";
   evt.target.style.background = "#ccc";*/
   evt.target.style.className = "selected";
}

// Mouse out menu item: restore font and image
function menuOut(evt)
{
   /*evt.target.style.color = "white";
   evt.target.style.background = "#71a6ab"; */
   evt.target.style.className = "normal";
}

function showText(which)
{
    var t1 = document.getElementById("text1"),
        t2 = document.getElementById("text2");
    if ( which == 1 ) {
        t2.style.visibility = "hidden";
        t1.style.visibility = "visible";
    }
    else {
        t1.style.visibility = "hidden";
        t2.style.visibility = "visible";
    }
}

// This function changes the image on the venues page
function venueImage(evt)
{
    // Get event target (different for IE, of course)
    var tgt = evt.target;
    if ( ! tgt )  // IE hack
        tgt = evt.toElement;

    // Swap the image
    var v = document.getElementById("venue");
    v.src = 'images/venues/' + tgt.id + ".jpg";
    v.style.visibility = "visible";

    // Unhighight the previously selected venue
    if ( curVenue ) {
        curVenue.style.color = "#555";
        curVenue.style.fontWeight = "normal";
    }

    // Highlight the current venue text
    curVenue = tgt;
    curVenue.style.color = "#71a6ab";
    curVenue.style.fontWeight = "bold";
}
