Event.observe(window, 'load', initTour);

function initTour ()
{
    var p, t, kids, i;

    // Add tour text
    p = document.createElement('p');
    t = document.createTextNode('To begin the tour, click the photo on the right. You can then progress through the tour by pressing the right arrow key.');
    p.appendChild(t);
    getElementsByClassName($('paras'), 'div', 'inner')[0].appendChild(p);

    // Hide all but first photo
    kids = $('slideshow').getElementsByTagName('li');
    for ( i = 1; i < kids.length; i ++ )
        kids[i].className = 'hidden';
}
