function sideMenu(whichMenu, theRoot) {
var theLinkBegin = "<a href=\"" + theRoot;

if (whichMenu == "Home") {
  document.write('<div id="links"><h1>home</h1>');
  document.write(theLinkBegin+'pages/en/h_about.html">About<span>Some info about JAW Software and its activities</span></a>');
  document.write(theLinkBegin+'pages/en/h_news.html">News<span>What\'s new on this site (what else?)</span></a>');
  document.write(theLinkBegin+'pages/en/h_register.html">Register<span>Register my shareware</span></a>');
  document.write(theLinkBegin+'pages/en/h_donate.html">Donate<span>Help a developer from starving!</span></a>');
  document.write(theLinkBegin+'pages/en/h_contact.html">Contact<span>All addresses for contacting JAW Software</span></a>');
  document.write(theLinkBegin+'pages/en/h_links.html">Links<span>Useful links</span></a>');
  AppleAd2(20,500);
  document.write('</div>');
  

  }
else if (whichMenu == "OS X") {
  document.write('<div id="links"><h1>OS X</h1>');
  document.write(theLinkBegin+'pages/en/x_mp2s.html">MPEG2Splitter<span>Splits your MPEG2 streams</span></a>');
  document.write(theLinkBegin+'pages/en/x_setkbd.html">SetKbd<span>Set your keyboard layout for the last time!</span></a>');
  document.write(theLinkBegin+'pages/en/x_fileslicer.html">FileSlicer<span>Splits/Joins files of any size</span></a>');
  document.write(theLinkBegin+'pages/en/x_shamanx.html">ShaManX<span>Explore Unix man pages, execute shell commmands, and more</span></a>');
  document.write(theLinkBegin+'pages/en/x_misc.html">miscellanea<span>More OS X software</span></a>');
  document.write(theLinkBegin+'pages/en/h_register.html">Register<span>Register my shareware</span></a>');
  document.write(theLinkBegin+'pages/en/h_donate.html">Donate<span>Help a developer from starving!</span></a>');
 AppleAd2(20,410);
  document.write('</div>');
  

  }
else if (whichMenu == "OS 8-9") {
  document.write('<div id="links"><h1>OS 8.x-9.x</h1>');
  document.write(theLinkBegin+'pages/en/x_mp2s.html">MPEG2Splitter<span>Splits your MPEG2 streams</span></a>');
  document.write(theLinkBegin+'pages/en/x_fileslicer.html">FileSlicer<span>Splits/Joins files of any size</span></a>');
  document.write(theLinkBegin+'pages/en/c_dn.html">DeltaNovember<span>Computes checksum of files in a volume or folder. Handy for disc burning.</span></a>');
  document.write(theLinkBegin+'pages/en/c_ClEqEd.html">ClarisWorks Equation Editor Fix<span>Elimina un bug PostScript di Equation Editor 5 italiano.</span></a>');
  document.write(theLinkBegin+'pages/en/c_happyMik.html">Happy Mik<span>Fixes Adobe PageMill 3.0 incompatibility with recent OSs.</span></a>');
  document.write(theLinkBegin+'pages/en/c_happyLasso.html">Happy Lasso<span>Fix a Claris Home Page 3.0 problem with Lasso commands</span></a>');
  document.write(theLinkBegin+'pages/en/c_loreto.html">Loreto<span>Programma di sintesi vocale in italiano per disabili vocali (o motori).</span></a>');
  document.write(theLinkBegin+'pages/en/c_gigaViewer.html">GigaViewer<span>View very large files with no memory problems.</span></a>');
  document.write(theLinkBegin+'pages/en/h_register.html">Register<span>Register my shareware</span></a>');
  document.write(theLinkBegin+'pages/en/h_donate.html">Donate<span>Help a developer from starving!</span></a>');
   AppleAd2(20,510);
 document.write('</div>');


  }
else if (whichMenu == "RB Corner") {
  document.write('<div id="links"><h1>RB Corner</h1>');
  document.write(theLinkBegin+'pages/en/r_rbp.html">Plugins<span>Plugins for REALBasic</span></a>');
  document.write(theLinkBegin+'pages/en/r_rbc.html">Classes<span>Classes for REALBasic</span></a>');
  document.write(theLinkBegin+'pages/en/h_register.html">Register<span>Register my shareware</span></a>');
  document.write(theLinkBegin+'pages/en/h_donate.html">Donate<span>Help a developer from starving!</span></a>');
  AppleAd2(20,350);  
  document.write('</div>');


  }
}

function AppleAd(leftpos,vertpos) {
var uri = 'http://impit.tradedoubler.com/imp?type(img)g(181807)a(1084542)' + new String (Math.random()).substring (2, 11);

  document.write('<div style="position: absolute; top: ' +vertpos+ 'px; left: ' +leftpos+ 'px; border: solid 0px; width:120px; height: 70px; text-align: center;">');
	document.write('<a href="http://clk.tradedoubler.com/click?p=16987&a=1084542&g=181807" target="_blank"><img src="'+uri+'" border=0 height=60></a>');
  document.write('</div>');

}

function AppleAd2(leftpos,vertpos) {
var uri = 'http://impit.tradedoubler.com/imp?type(inv)g(181807)a(1084542)' + new String (Math.random()).substring (2, 11);

document.write('<div style="position: absolute; top: ' +vertpos+ 'px; left: ' +leftpos+ 'px; border: solid 0px; width:140px; height: 70px; text-align: center;">');
document.write('<a href="http://clk.tradedoubler.com/click?p=16987&a=1084542&g=181807" target="_blank"><img src="'+uri+'" border=0 height=60></a>');
  document.write('</div>');
}

function textAd(leftpos, vertpos) {
	var uri = 'http://impit.tradedoubler.com/imp?type(js)g(17676692)a(1084542)' + new String (Math.random()).substring (2, 11);
document.write('<div style="position: absolute; top: ' +vertpos+ 'px; left: ' +leftpos+ 'px; border: solid 0px; width:140px; text-align: center;">');
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
  document.write('</div>');
}
