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 }

function ExplorerFix()
{ for (a in document.links) document.links[a].onfocus = document.links[a].blur }

if (document.all) document.onmousedown = ExplorerFix;

PreloadImages('home', 54, 27, 'gif')
PreloadImages('about_us', 71, 27, 'gif')
PreloadImages('choice', 61, 27, 'gif')
PreloadImages('contact', 61, 27, 'gif')
PreloadImages('innovation', 71, 27, 'gif')
PreloadImages('security', 61, 27, 'gif')

function openWindow( url, winname, width, height ) {
  xPos = (screen.width - width) / 2
  yPos = (screen.height - height) / 2
  window.open( url, winname, 'width=' + width + ',height=' + height + ',!scrollbars,!menubar,resizable,!status,left=' + xPos + ',top=' + yPos)
}
