im_path = "images/"

main_menu = new Array("but_home_f2.gif", "but_research_f2.gif", "but_pubs_f2.gif", "but_members_f2.gif", "but_events_f2.gif", "but_about_f2.gif", "but_press_f2.gif", "but_links_f2.gif", "but_contact_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 email(who,dom,lev)
{
  dest = who + "@"
  dest = dest + dom + "." + lev + ""
  newWin('email.htm?'+dest, '400', '300')
}


function mout(id)
{
  document.images[id].src = im_path + id + ".gif"
}

function mover(id)
{
  document.images[id].src = im_path + id + "_f2.gif"
}