im_path = "im/"

images_menu = new Array("but_home_f2.gif", "but_about_f2.gif", "but_apply_f2.gif",  "but_countact_f2.gif")

function preload(arr)
{
  im = new Array()
  for (n=0; n<arr.length; n++)
  {
    im[n] = new Image()
    im[n].src = im_path + arr[n]
  }
}

var win1
function newWin(url,w,h) 
{
  if (win1 && win1.open || win1 && !win1.closed){win1.close()}
  win1 = window.open(url,'win1', 'width='+w+', height='+h+', toolbar=no, location=no, menubar=no, status=no, scrollbars=no, resizable=no')
}

function swap1(id, name)
{
  document.images[id].src = im_path + name
}

function email(who,dom,lev)
{
  dest = who + "@"
  dest = dest + dom + "." + lev + ""
  newWin('email.htm?'+dest, '400', '300')
}