<!--
YOffset=0; // Margine dal top al caricamento
staticYOffset=0; // y dopo aver scrollato
slideSpeed=20 // no quotes!!
waitTime=1000; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
hdrFontFamily="Verdana";
hdrFontSize="3";
hdrFontColor="white";
hdrBGColor="#a4a4a4";
hdrAlign="right";
hdrVAlign="center";
hdrHeight="5";
linkBGColor="a4a4a4";
linkOverBGColor="#ffffff";
linkTarget="_self";
linkAlign="left";
menuBGColor="black";
menuIsStatic="yes";
menuWidth=180; // Must be a multiple of 10! no quotes!!
barBGColor="#313131";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="white";
barVAlign="top";
barWidth=18; // no quotes!!
barHeight=480;
NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
moving=setTimeout('null',1)
function moveOut() {
if ((NS6 && parseInt(ssm.left)<0)||(IE && ssm.pixelLeft<0)||(NS && ssm.left<0)) {
clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed)
if (NS6) {theleft+=10;ssm.left = theleft;}
if (IE) {ssm.pixelLeft += 10;}
if (NS) {ssm.left += 10;ssm.clip.left-=10}}
else {clearTimeout(moving);moving=setTimeout('null',1)}};
function moveBack() {
clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime)}
function moveBack1() {
if ((NS6 && parseInt(ssm.left)>(-menuWidth))||(IE && ssm.pixelLeft>(-menuWidth))||(NS && ssm.left>(-menuWidth))) {
clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);
if (NS6) {theleft-=10;ssm.left = theleft;}
if (IE) {ssm.pixelLeft -= 10;}
if (NS) {ssm.left -= 10;ssm.clip.left+=10}}
else {clearTimeout(moving);moving=setTimeout('null',1)}};
lastY = 0;
function makeStatic() {
if (IE) {winY = document.body.scrollTop;}
if (NS||NS6) {winY = window.pageYOffset;}
if (NS6||IE||NS) {
if (winY!=lastY&&winY>YOffset-staticYOffset) {
smooth = .3 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .3 * (winY - lastY);}
else {smooth=0}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (NS6) ssm.top=parseInt(ssm.top)+smooth;
if (IE) ssm.pixelTop+=smooth;
if (NS) bssm.top+=smooth;
lastY = lastY+smooth;
setTimeout('makeStatic()', 1)}}
function initSlide() {
if (NS6){ssm=document.getElementById("thessm").style;
ssm.visibility="visible";ssm.left = -menuWidth;}
else if (IE) {ssm=document.all("thessm").style;
ssm.visibility = "visible";ssm.pixelLeft = -menuWidth;}
else if (NS) {bssm=document.layers["basessm1"];
ssm=bssm.document.layers["basessm2"].document.layers["thessm"];
ssm.clip.left = menuWidth;ssm.left = -menuWidth;ssm.visibility = "show";}
if (menuIsStatic=="yes") makeStatic();}
function startMenu(menuHeader, barText) {
if (IE||NS6) {document.write('<DIV ID="thessm" style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size:10px;visibility:hidden;Position : Absolute ;Left : 0 ;Top : '+YOffset+' ; Z-Index : 20;width:1px;clip:" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS) {document.write('<LAYER name="basessm1" top="'+YOffset+'" LEFT=0 visibility="show" width="'+(menuWidth+barWidth+10)+'"><ILAYER name="basessm2" width="'+(menuWidth+barWidth+20)+'"><LAYER visibility="hide" name="thessm" bgcolor="'+menuBGColor+'" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><TR><TD valign="top">')}
document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'">');tempBar='';addHdr(menuHeader);
if(barText.indexOf('<IMG')>-1) {tempBar=barText}
else{for (i=0;i<barText.length;i++) {
tempBar+=barText.substring(i, i+1)+"<BR>"}}
document.write('<td align="center" rowspan="14" width="'+barWidth+'" height="'+barHeight+'" valign="'+barVAlign+'" class="barra">'+tempBar+'</TD></tr>')
theleft=-menuWidth}
function endMenu() {
document.write('<tr><td bgcolor="'+hdrBGColor+'" HEIGHT="'+hdrHeight+'">&nbsp;</td></tr>');
document.write('</table>')
if (NS6){document.write('</TD></TR></TABLE>')}
if (IE||NS6) {document.write('</DIV>')}
if (NS) {document.write('</LAYER></ILAYER></LAYER>')}
if (NS6||IE||NS) setTimeout('initSlide();', 1)}
function addHdr(text) {
document.write('<tr HEIGHT="'+hdrHeight+'"><td bgcolor="'+hdrBGColor+'" HEIGHT="'+hdrHeight+'" WIDTH="'+(menuWidth-1)+'">&nbsp;<b>'+text+'</b></td>'+((!tempBar)?"":"</TR>"))}
function addItem(text, link, target) {
if (!target) {target=linkTarget}
document.write('<TR HEIGHT="'+hdrHeight+'"><TD BGCOLOR="'+linkBGColor+'" HEIGHT="'+hdrHeight+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><DIV  ALIGN="'+linkAlign+'">&nbsp;&nbsp;<A HREF="'+link+'" target="'+target+'" CLASS="ssmItems">'+text+'</DIV></TD></TR>')}
//-->