if (!document.layers&&!document.all)
  event="test"


function textTip(pagename) {
  var textTip

  if (pagename=="index")
    textTip = "HomePage"
  else if (pagename=="sviluppo")
    textTip = "La guida per programmare l\'S25 in java"
  else if (pagename=="esempio1")
    textTip = "Esempio di lettura porte seriali/parallele PC"
  else if (pagename=="esempio2")
    textTip = "Esempio di invio comandi AT da codice java all\'S25"
  else if (pagename=="sendfile")
    textTip = "Come inviare loghi e melodie all\'S25"
  else if (pagename=="s25_hyperterminal")
    textTip = "Configurazione e invio comandi AT al modem del cellulare"
  else if (pagename=="internetConnection")
    textTip = "Navigazione Internet da portatile con S25"
  else if (pagename=="programmi")
    textTip = "I programmi migliori..."
  else if (pagename=="tips")
    textTip = "I trucchetti per i pi&ugrave; smailiziati"
  else if (pagename=="cable")
    textTip = "Come autocostruirsi un cavo seriale"
  else if (pagename=="wap")
    textTip = "Il mancato funzionamento del Microbrowser..."
  else if (pagename=="files")
    textTip = "Loghi, melodie e altro ancora"
  else if (pagename=="links")
    textTip = "I siti pi&ugrave; belli dove andare"
  else if (pagename=="email")
    textTip = "Scrivimi!"
  else if (pagename=="index_en")
    textTip = "HomePage"
  else if (pagename=="sviluppo_en")
    textTip = "The guide for programming S25 with java"
  else if (pagename=="esempio1_en")
    textTip = "Example of read serial/parallel port of PC"
  else if (pagename=="esempio2_en")
    textTip = "Example of send AT commands from java code to S25"
  else if (pagename=="sendfile_en")
    textTip = "How to send logs and tones to S25"
  else if (pagename=="s25_hyperterminal_en")
    textTip = "Configuration and send AT commands to S25 modem"
  else if (pagename=="internetConnection_en")
    textTip = "Internet from notebook with S25"
  else if (pagename=="programmi_en")
    textTip = "The best programs..."
  else if (pagename=="tips_en")
    textTip = "The tips for the plus smalicius"
  else if (pagename=="cable_en")
    textTip = "How buildself a serial cable"
  else if (pagename=="wap_en")
    textTip = "The lacked operation MicroBrowser..."
  else if (pagename=="files_en")
    textTip = "Logs, melody and another..."
  else if (pagename=="links_en")
    textTip = "The sites"
  else if (pagename=="email_en")
    textTip = "Write me!"


  return textTip 
}

function showtip2(current,e,pagename){

  var text = textTip(pagename) 

  if (document.all&&document.readyState=="complete"){
    document.all.tooltip2.innerHTML='<marquee style="border:1px solid     black">'+text+'</marquee>'
    document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+10
    document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+10
    document.all.tooltip2.style.visibility="visible"
  }

  else if (document.layers){
    document.tooltip2.document.nstip.document.write('<b>'+text+'</b>')
    document.tooltip2.document.nstip.document.close()
    document.tooltip2.document.nstip.left=0
    currentscroll=setInterval("scrolltip()",100)
    document.tooltip2.left=e.pageX+10
    document.tooltip2.top=e.pageY+10
    document.tooltip2.visibility="show"
  }
}

function hidetip2(){
  if (document.all)
    document.all.tooltip2.style.visibility="hidden"
  else if (document.layers){
    clearInterval(currentscroll)
    document.tooltip2.visibility="hidden"
  }
}

function scrolltip(){
  if (document.tooltip2.document.nstip.left>=-document.tooltip2.document.nstip.document.width)
    document.tooltip2.document.nstip.left-=5
  else
    document.tooltip2.document.nstip.left=150
}
