<!--
var dom=(document.createTextNode && document.firstChild && document.getElementsByTagName && document.createElement) ? true:false

// Add a help text to the cache
function __addhelp(title, text)
{
  if (!dom) return false;

  pos=help_title.length

  help_title[pos]=title
  help_text[pos]=text

  return pos
}

// Create the html content for the tooltip
function __gethtml(id)
{
  if (help_title.length < id) return false

  var head = "<h2>" + help_title[id] + "</h2>"
  var text = "<p>" + help_text[id] + "</p>"

  return head + text
}

// repositioning helplayer to mouse position
function __mousepos(event)
{
  if (!dom) return false;

  if (document.all) {
    posx=window.event.x+document.body.scrollLeft;
    posy=window.event.y+document.body.scrollTop;
    winx=document.body.offsetWidth
    winy=document.body.offsetHeight
  } else {
    posx=event.pageX;
    posy=event.pageY;
    winx=window.innerWidth
    winy=window.innerHeight
  }

  if (posx < (winx/2))
  {
    help_layer.style.left=posx + HelpOffsetLeft
    help_layer.style.top=posy + HelpOffsetTop
  }
  else
  {
    help_layer.style.left=posx - HelpOffsetLeft - HelpWidth
    help_layer.style.top=posy + HelpOffsetTop
  }
}

// render help layer and show it
function __showhelp(id) {
  if (!dom) return false;

  html=__gethtml(id)
  if (html)
  {
    help_layer.innerHTML=html
    help_layer.style.width=HelpWidth+"px"
    help_layer.style.visibility="visible"
  }
}

// hide help layer, delete content and resize
function __hidehelp() {
  if (!dom) return false;

  help_layer.style.visibility="hidden"
  help_layer.innerHTML="&nbsp;"
  help_layer.style.width="5px"
}

// settings
HelpWidth=350
HelpOffsetLeft=-30
HelpOffsetTop=-110

// global variables
help_text = new Array()
help_title = new Array()

if (dom)
{
  help_layer = document.getElementById("help")

  // a some texts
  __addhelp("ENGLISH", "English-Version is coming soon.")
  __addhelp("ESPA&Ntilde;OL", "Si Ud. quiere más información sobre nuestras excursiones en bicicleta, caminatas y demás actividades, puede enviarnos un email en español.")
  __addhelp("FRAN&Ccedil;AIS", "Si vous voulez plus d' information sur nôtres excursions au vèlo, à pie et des autres activités, vous pouvez nous envoyer un email in français.")
  __addhelp("ITALIANO", "Se vuole più informazioni sulle nostre escursioni in bicicletta, a piedi, o delle altre attività, può mandare un email in italiano.")

  // only activate if one or more tool tips defined
  if (help_text.length > 0) document.onmousemove=__mousepos
}

//--->

