im_path = "http://www.volunteeringireland.ie/im/"

im1 = new Image(); im1.src = "im/wait_msg.gif"

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

buttons1 = new Array('but_home', 'but_we_need', 'but_i_want', 'but_training', 'but_man_vol', 'but_about_vol')
buttons2 = new Array('but_about_us', 'but_contact', 'but_news', 'but_events', 'but_downloads', 'but_stories', 'but_facts', 'but_resources', 'but_links', 'but_membership', 'but_volt', 'but_facts', 'but_evs', 'but_vol4all', 'but_involved', 'but_safeguard', 'but_more_details', 'but_prev_page')

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 gload(arr)
{
  im = new Array()
  for (n=0; n<arr.length; n++)
  {
    im[n] = new Image()
    im[n].src = im_path + arr[n] + "_f2.gif"
  }
}

function gmover(id, page_id)
{
  im = id + page_id
  document.images[im].src = im_path + id + "_f2.gif"
}

function gmout(id, page_id)
{
  im = id + page_id
  document.images[im].src = im_path + id + ".gif"
}

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

function jmover(id, page_id)
{
  im = id + page_id
  document.images[im].src = im_path + id + "_f2.jpg"
}

function jmout(id, page_id)
{
  im = id + page_id
  document.images[im].src = im_path + id + ".jpg"
}


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

//CUSTOM TOOLTIP
//Copyright 2004, Sandeep Gangadharan
//For more free scripts go to http://sivamdesign.com/scripts/

(document.getElementById) ? dom = true : dom = false;

function hideIt(add) {
  if (dom) {document.getElementById('tooltip'+add).style.visibility='hidden';}
  if (document.layers) {document.layers["tooltip"+add].visibility='hide';}
 }
function showIt(add) {
 if (dom) {
  if (document.getElementById('tooltip'+add).style.visibility=='visible') { hideIt(add); }
  else {document.getElementById('tooltip'+add).style.visibility='visible'} }

 if (document.layers) {
  if (document.layers["tooltip"+add].visibility=='show') { hideIt(add); }
  else {document.layers["tooltip"+add].visibility='show'}  }
 }
 //end custom tool tip
