var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var ie4 = document.all;
offsetX = 10;
offsetY = 10;
var toolTipSTYLE="";
function initToolTips()
{
  if(ns4||ns6||ie4)
  {
    if(ns4) toolTipSTYLE = document.toolTipLayer;
    else if(ns6) toolTipSTYLE = document.getElementById("toolTipLayer").style;
    else if(ie4) toolTipSTYLE = document.all.toolTipLayer.style;
    if(ns4) document.captureEvents(Event.MOUSEMOVE);
    else
    {
      toolTipSTYLE.visibility = "visible";
      toolTipSTYLE.display = "none";
    }
    document.onmousemove = moveToMouseLoc;
  }
}
function toolTip(msg, fg, bg)
{
  if (msg==6)
  {
  	msg="trail is suitable for quad bikes !"
  }
  else if (msg==2)
  {
  	msg="requires some 4x4 experience, a four-wheel drive vehicle advisable !"
  }
  else if (msg==1)
  {
  	msg="suitable for novices, a 4x4 soft-roader and 4x2s with a diff-lock !"
  }
  else if (msg==3)
  {
  	msg="requires 4x4 experience, low-range and a diff-lock are highly advisable !"
  }
  else if (msg==4)
  {
  	msg="experienced drivers only, low range is essential. recovery equipment and a diff-lock are highly recommended !"
  }
  else if (msg==5)
  {
  	msg="off-road specialists only, serious 4x4s with a diff-lock and recovery equipment essential !"
  }
  else if (msg==7)
  {
  	msg="full access is an initiatve aimed at offering mobility impaired travellers detailed information relating to accommodation. By clicking here (after selecting the various search criteria), a user will be able to view ONLY those establishments or venues that have participated in our accessibility survey."
  }
  if(toolTip.arguments.length < 1) // hide
  {
    if(ns4) toolTipSTYLE.visibility = "hidden";
    else toolTipSTYLE.display = "none";
  }
  else // show
  {
    if(!fg) fg = "#000000";
    if(!bg) bg = "#F7941D";
    var content =
    '<table border="0" width="0" height="0" cellspacing="0" cellpadding="8"><td style="background-color: #000000; color: #f7941d; font: xx-small Verdana">' + msg + '</td></table>';
    if(ns4)
    {
      toolTipSTYLE.document.write(content);
      toolTipSTYLE.document.close();
      toolTipSTYLE.visibility = "visible";
    }
    if(ns6)
    {
      document.getElementById("toolTipLayer").innerHTML = content;
      toolTipSTYLE.display='block'
    }
    if(ie4)
    {
      document.all("toolTipLayer").innerHTML=content;
      toolTipSTYLE.display='block'
    }
  }
}
function moveToMouseLoc(e)
{
  if(ns4||ns6)
  {
    x = e.pageX;
    y = e.pageY;
  }
  else
  {
    x = event.x + document.body.scrollLeft;
    y = event.y + document.body.scrollTop;
  }
  toolTipSTYLE.left = x + offsetX;
  toolTipSTYLE.top = y + offsetY;
  return true;
}