function fmOver(sel) {
  sel.src = "images/ball-green.gif"
}
function fmOut(sel) {
  sel.src = "images/ball2-blue.gif"
}


function fEntry (szHref, szTitle) {
  var fIsFix = (document.title == szTitle)
  if (fEntry.arguments.length > 2)
    fIsFix = (document.title == fEntry.arguments[2])

  if (fEntry.arguments.length < 1) {
    document.write("<tr><td>&nbsp;</td></tr>")
  }
  else {
    document.writeln ("<tr align=right><td>")

    if (!fIsFix) {
      document.write ("<a href=" + '"' + szHref + '"')
      document.write (" onMouseOver='fmOver(document[" + '"' + szTitle + '"' + "])'")
      document.writeln (" onMouseOut='fmOut(document[" + '"' + szTitle + '"' + "])'>")
    }
    var sz = szTitle
    var szOut = ""
    while (sz.length > 0) {
      var nBlank = sz.indexOf (" ")
      if (nBlank <= 0) nBlank = sz.length - 1
      var szWord = sz.substring (0, nBlank + 1).toUpperCase ()
      sz = sz.substring (nBlank + 1)
      szOut += szWord.charAt (0).bold ()
      szOut += szWord.substring (1).small ().bold ()
    }
    if (fIsFix) {
      document.writeln (szOut.fontcolor ("red") + "<img name=" + '"' + szTitle + '"' + " border=0 src=images/ball2-red.gif>")
    }
    else {
      document.write (szOut + "<img name=" + '"' + szTitle + '"' + " border=0 src=images/ball2-blue.gif>")
      document.writeln ("</a>")
    }
  }
}

function fMakeIndex () {
  document.write ("<table border=0 cellspacing=0 cellpadding=2 align=right>")

  fEntry ("index.html", "Home", "inconceivable.de")
  fEntry ("immo/", "Immobilien")
  fEntry ("public/dvd.html", "DVDs")
  fEntry ("public/video.html", "Videos")
  fEntry ("public/media.html", "Media")
  fEntry ("public/sports.html", "Sports")
  fEntry ("public/kultur.html", "Lifestyle")
  fEntry ("public/weather.html", "Weather")
  fEntry ("public/travel.html", "Travel")
  fEntry ("public/shopping.html", "Shopping")
  fEntry ("public/electronic.html", "Electronics")
  fEntry ("public/boerse.html", "Finance")
  fEntry ("public/munich.html", "Munich")
  fEntry ("public/prog.html", "Programming")
  fEntry ("public/construction.html", "Housing")
  fEntry ()
  fEntry ("http://www.dilbert.com", "Dilbert")
  fEntry ("http://www.sueddeutsche.de/", "Sueddeutsche")
  fEntry ("http://dict.leo.org/", "Dictionary")
  fEntry ()
  fEntry ("http://www.lufthansa.com/online/portal/lh/de/miles_and_more", "Miles & More")

  document.write("</table>")
}

