var count = 1
function PreloadImages(image, width, height, ext)
{
  eval("a" + count + "=new Image(" + width + "," + height + ");" + "a" + count + ".src='/images/" + image + "_off." + ext + "';")
  count++
  eval("a" + count + "=new Image(" + width + "," + height + ");" + "a" + count + ".src='/images/" + image + "_on." + ext + "';")
  count++
}

function ChangeImage(img, imageSrc)
{ document.images[img].src = '/images/' + imageSrc }

PreloadImages('about_us', 74, 18, 'gif')
PreloadImages('our_team', 64, 18, 'gif')
PreloadImages('our_work', 62, 18, 'gif')
PreloadImages('our_clients', 68, 18, 'gif')
PreloadImages('news', 46, 18, 'gif')
PreloadImages('contact_us', 69, 18, 'gif')
PreloadImages('careers', 53, 18, 'gif')

function ChangeTitle(img)
{
  if (typeof(img) != 'undefined') {
    document.images['grid_title'].src = '/images/' + img
  } else {
    document.images['grid_title'].src = '/images/spacer.gif'
  }
}

function PreloadImage(image, width, height)
{
  eval("a" + count + "=new Image(" + width + "," + height + ");" + "a" + count + ".src='/images/" + image + "';")
  count++
}
PreloadImage('home_title_outdoor.gif', 159, 13)
PreloadImage('home_title_tv.gif', 159, 13)
PreloadImage('home_title_radio.gif', 159, 13)
PreloadImage('home_title_print_press.gif', 159, 13)
PreloadImage('home_title_id.gif', 159, 13)
PreloadImage('home_title_internet.gif', 159, 13)
PreloadImage('home_title_direct.gif', 159, 13)
PreloadImage('download_on.gif', 36, 18)

function ExplorerFix()
{ for (a in document.links) document.links[a].onfocus = document.links[a].blur }

if (document.all) document.onmousedown = ExplorerFix;