 
function BrowserWelcome(theRoot) {
    var SafariMessage = "<IMG SRC=\""+theRoot+"img/brw/safari.gif\" ALT=\"WELCOME SAFARI USERS\">"
    var NetscapeMessage = "<IMG SRC=\""+theRoot+"img/brw/netscape.gif\" ALT=\"You're using Netscape, the grandaddy of all browsers!\">"
    var IEMessage = "<IMG SRC=\""+theRoot+"img/brw/ie.gif\" ALT=\"Alas, why Internet Exploder?\">"
    var Win32Message = "<IMG SRC=\""+theRoot+"img/brw/winblows.gif\" ALT=\"You're using Windows.  I'm so sorry.\">"
    var NoSafariMessage = ""
    if (navigator.userAgent.indexOf('Safari') != -1) 
        { document.write(SafariMessage);  }        
    else if (navigator.userAgent.indexOf('Netscape') != -1) 
        { document.write(NetscapeMessage); }   
    else if (navigator.userAgent.indexOf('MSIE') != -1) 
        { document.write(IEMessage);  }   
    else if (navigator.platform.indexOf('Win32') != -1) 
        { document.write(Win32Message); }             
    else 
        { document.write(NoSafariMessage); }
}

function topMenu(whichCurrent, theRoot) {
var currLink = "<li id=\"currentLink\">&nbsp;"+whichCurrent + "&nbsp;</li>";
var actLinkBegin = "<li><a href=\"" + theRoot;
var actLinkEnd = "</a></li>";

document.write('<table border="0" cellpadding="0" cellspacing="0"><tbody><tr height="62"><td valign="bottom"  nowrap>'
  + '<img src="'+theRoot+'img/layout/pix.gif" width="10" height="58" border="0"><img src="'+theRoot+'img/layout/logoname.gif">'
  + '<img src="'+theRoot+'img/layout/pix.gif" width="63" height=1>'  
  );
BrowserWelcome(theRoot);
document.write ('</td></tr></tbody></table>'
  + '<table width="99%" cellspacing=0 cellpadding=0 border=0><tr valign="top" ><td width=10> </td>'
  + '<td nowrap valign="top"><div id="navbar" nowrap><ul>'
  + '<li id="leftspacer">&nbsp;</li>');

document.write( (whichCurrent == "Home")?currLink:(actLinkBegin+'index.html">Home'+actLinkEnd) );
document.write( (whichCurrent == "OS X")?currLink:(actLinkBegin+'pages/en/OSX.html">OS X'+actLinkEnd) );
document.write( (whichCurrent == "OS 8-9")?currLink:(actLinkBegin+'pages/en/OS89.html">OS 8-9'+actLinkEnd) );
document.write( (whichCurrent == "RB Corner")?currLink:(actLinkBegin+'pages/en/rb.html">RB Corner'+actLinkEnd) );

document.write (
  '<li id="notAvailable">Chat</li>'
  + '<li id="notAvailable">Forum</li>'
  + '<li id="notAvailable"> </li>'
  + '</ul><em> </em></div></td></tr></table>');
}

function PutAddrLink(whichAddr,string2show) {
document.write('<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;');
document.write(whichAddr.replace(/@_@/g,"").replace(/@a@/g,"@").replace(/@d@/g,".") +'">'
  +string2show.replace(/@_@/g,"").replace(/@a@/g,"@").replace(/@d@/g,".")+'</a>');
}

function dlEntry(swname, reldate, langavail, platforms, descEng, descIta, dist, dlsize, mirrors, note)
{ //swname: url@@testo - mirrors: url@@testo##url@@testo##url@@testo - langavail:ItEn...
  //platforms: X98LW
 var td1='<TD id="';
 var td2='">';
 var tdend='</td>';

 document.write('<table width="100%" border=0 cellspacing=0 cellpadding=3 id="dl"><tbody><tr bgcolor="#f0f0f0">');
 document.write(td1+'sw'+td2);
  if (swname.indexOf("@@")>=0) { document.write('<a href="'+swname.replace(/@@/,'">')+'</A>'); }
  else { document.write(swname); }
  if (reldate != "") { document.write(' <small>'+reldate+'</small>'); }
 document.write(tdend);
 document.write(td1+'lang" width="100" align="right'+td2);
  if ( langavail.indexOf("IE")>=0) { document.write(' <img src="../../img/icns/usait.gif">'); }
  if ( langavail.indexOf("It")>=0) { document.write(' <img src="../../img/icns/italy.gif">'); }
  if ( langavail.indexOf("En")>=0) { document.write(' <img src="../../img/icns/USA.gif">'); }
 document.write(tdend);
 document.write(td1+'plat" width="100" align="right'+td2);
  if ( platforms.indexOf("W")>=0) { document.write(' <img src="../../img/icns/win.gif">'); }
  if ( platforms.indexOf("L")>=0) { document.write(' <img src="../../img/icns/linux.gif">'); }
  if ( platforms.indexOf("8")>=0) { document.write(' <img src="../../img/icns/os8.gif">'); }
  if ( platforms.indexOf("9")>=0) { document.write(' <img src="../../img/icns/os9.gif">'); }
  if ( platforms.indexOf("X")>=0) { document.write(' <img src="../../img/icns/osX.gif">'); }
  if ( platforms.indexOf("U")>=0) { document.write(' <img src="../../img/icns/ub.gif">'); }
 document.write(tdend+'</tr><tr>');
 document.write(td1+'desc" colspan="2'+td2);
  if (descEng != "")  { document.write('<P id="en">'+ descEng + '</P>'); }
  if (descIta != "")  { document.write('<P id="it">'+ descIta + '</P>'); }
 document.write(tdend);
 document.write(td1+'dl" valign="top" rowspan="2'+td2);
  if (mirrors != "" )
   {
     mirs = mirrors.split("##");
     for (i=0; i < mirs.length; i++) { document.write('<P id="mir"><a href="'+mirs[i].replace(/@@/,'">')+'</A></P>'); }
    }
 if ( note != "") { document.write('<P id="mir">'+note+'</P>'); }
 document.write(tdend);
 document.write('</tr><tr valign="top">');
 document.write(td1+'desc'+td2);
  if ( dist != "" ) { document.write('<p><b>License:</b> '+dist+'</p>'); }
 document.write(tdend);
 document.write(td1+'desc'+td2);
  if ( dlsize != "" ) { document.write('<p align="right"><span id="red"><b>File size:</b> '+dlsize+'</span></p>'); }
 document.write(tdend);
 document.write('</tr><tbody></table>');
}

