function ChangeImage(imgName, buttonType)
{ document.images[imgName].src = '/images/' + imgName + (typeof(buttonType) != 'undefined' ? '_' + buttonType : '') + '.gif' }

function PreloadImage(imgSrc, width, height)
{
  img = new Image(width, height)
  img.src = '/images/' + imgSrc
}

PreloadImage('home_on.gif', 52, 20)
PreloadImage('tiaras_on.gif', 58, 20)
PreloadImage('crowns_on.gif', 61, 20)
PreloadImage('accessories_on.gif', 89, 20)
PreloadImage('catalogue_on.gif', 79, 20)
PreloadImage('ordering_on.gif', 76, 20)
PreloadImage('whats_new_on.gif', 88, 20)
PreloadImage('about_us_on.gif', 73, 20)
PreloadImage('contact_us_on.gif', 85, 20)
PreloadImage('link_on.gif', 51, 20)