im_path = "/im/"
im1 = new Image(); im1.src = "common/im/wait_msg.gif"
page_loaded = 0

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function show_wait_msg(x)
{
  image_name = "wait_msg" + x
  document.images[image_name].src = "common/im/wait_msg.gif"
}

buttons1 = new Array('but_home', 'but_gallery', 'but_golf', 'but_things', 'but_contact', 'but_tariffs')


function do_load()
{
	page_loaded = 1;
	im_preload(buttons1, "jpg");
//	load_popups(ddmenu_P7_arr);
//	raiseMenuButton();
}

function goJump(sel)
{
  location.href = sel.options[sel.selectedIndex].value
}

function goJump2(sel)
{
  if (sel.options[sel.selectedIndex].value != "" && sel.options[sel.selectedIndex].value != 0) location.href = "page.php?id=" + sel.options[sel.selectedIndex].value
}

function im_preload(arr, itype)
{
  im = new Array()
  for (n=0; n<arr.length; n++)
  {
    im[n] = new Image()
    im[n].src = im_path + arr[n] + "_f2." + itype
  }
}

function raiseMenuButton() 
{
  if (raised_button) document.images[raised_button].src = im_path + raised_button + '_f2.gif'
}


function jmover(id)
{
  page_id = jmover.arguments[1]
  ext = jmover.arguments[2]
  if (page_id) im = id + "_" + page_id; else im = id
  if (!ext) ext = "_f2"
  document.images[im].src = im_path + id + ext + ".jpg"
}

function jmout(id)
{
  page_id = jmout.arguments[1]
  ext = jmout.arguments[2]
  if (!ext) ext = ""
  if (page_id) im = id + "_" + page_id; else im = id
  document.images[im].src = im_path + id + ext + ".jpg"
//  raiseMenuButton() 
}

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=yes,resizable=yes")
}

