//random image arrays
top_image_array = new Array("ey2_03.jpg")
bottom_image_array = new Array("ey2_13.jpg")

var win1
function newWin1(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')
}

im_path = "im/"

function getRandomImage(which) 
{
  if (which == "top") seed = top_image_array.length - 1
  else seed = bottom_image_array.length - 1

  im = Math.round(seed*Math.random())

  if (which == "top") document.write('<img name="' + which + '_image" src="' + im_path + top_image_array[im] + '">')
  else  document.write('<img name="' + which + '_image" src="' + im_path + bottom_image_array[im] + '">')
}

function no_flash_divert(where)
{
  if ((!is_Flash || is_FlashVersion < 5) && location.search.substring(1) != "f") location.href = where
}

function flash_back(where)
{
if (document.referrer.indexOf(where) == -1 && location.search.substring(1) != "f") location.replace(where) 
}