
<!--
	checkbr = (parseInt(navigator.appVersion) > 2)?true:false;
	if (checkbr)
		{
		id = new Array ("swp0", "swp1","_mainLogin_LoginImageButton")
		nome = new Array ("b", "registrati","a")
		source = new Array ();
		sourceoff = new Array ();
		for (conta in nome)
			{
			    source[conta] = new Image();
			    source[conta].src = "immagini/" + nome[conta]+"_over.jpg";
			    sourceoff[conta] = new Image();
			    sourceoff[conta].src = "immagini/" + nome[conta]+".jpg";
			}
		}

		
function swp(numero)
	{
	if (checkbr)
		{
		    document.getElementById(String(id[numero])).src=source[numero].src;
		}
	}

function UNswp(numero)
	{
	if (checkbr)
		{
		    document.getElementById(String(id[numero])).src=sourceoff[numero].src;
		}
	}
	
	
function Chiudi()
	{
	self.close()
	}	
	
//substitute footnotes for tooltips
function ShowFootNote(NomeNota){
	var htmlText = document.getElementById(NomeNota).innerHTML;
	document.getElementById('ContenutoTooltip').innerHTML = htmlText;
	var Tooltip = document.getElementById('ToolTip');
			
	if (Tooltip.style.display != 'block')
	{		               
	    var posleft = cursor.x + 5;
	    var postop = cursor.y + 20;
	    Tooltip.style.left = posleft + 'px';
	    Tooltip.style.top = postop + 'px'; 		    
	    Tooltip.style.display = 'block';		   
    }
}

function HideFootNote(){
	var Tooltip = document.getElementById('ToolTip');
	Tooltip.style.display = 'none';
}

function ZoomImage(small, big) {
var source = document.getElementById('docimage');
if (source.alt == "small")
{
source.alt = 'big';
source.src = big;
}
else
{
source.alt = 'small';
source.src = small;
}

}

function ZoomImage(small, big, sourceName) {
var source = document.getElementById(sourceName);
if (source.alt == "small")
{
source.alt = 'big';
source.src = big;
}
else
{
source.alt = 'small';
source.src = small;
}

}


document.onmousemove = getPosition;
var cursor = {x:0, y:0};
 
function getPosition(e) 
{   
    e = e || window.event;    
    if (e)
    { 
    if (e.pageX || e.pageY) 
        {
        cursor.x = e.pageX;
        cursor.y = e.pageY;
        } 
        else 
        {
        try 
            {        
                var de = document.documentElement;
                var b = document.body; 
                cursor.x = e.clientX + (de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0);
                cursor.y = e.clientY + (de.scrollTop || b.scrollTop) - (de.clientTop || 0);
            }
        catch (ex)
            {}
        }   
    }   
}

function ChangeFontSize(fontsize,root)
{   
    document.body.className = fontsize;
    if (fontsize=='body1')
    {
        document.getElementById('fontsize_normal').src= root + 'immagini/fontsize_normal_h.gif';
        document.getElementById('fontsize_middle').src= root + 'immagini/fontsize_middle.gif';
        document.getElementById('fontsize_big').src= root + 'immagini/fontsize_big.gif';
    }
    if (fontsize=='body2')
    {
        document.getElementById('fontsize_normal').src= root + 'immagini/fontsize_normal.gif';
        document.getElementById('fontsize_middle').src= root + 'immagini/fontsize_middle_h.gif';
        document.getElementById('fontsize_big').src= root + 'immagini/fontsize_big.gif';
    }    
    if (fontsize=='body3')
    {
        document.getElementById('fontsize_normal').src= root + 'immagini/fontsize_normal.gif';
        document.getElementById('fontsize_middle').src= root + 'immagini/fontsize_middle.gif';
        document.getElementById('fontsize_big').src= root + 'immagini/fontsize_big_h.gif';
    }    
    return false;
}

function aprivar(str) {
	popupWin = window.open(str,'PopupPradaxa','scrollbars=yes,resizable=yes,width=460,height=650,status=no,location=no,toolbar=no');
	popupWin.focus();
	return false;
}
//-->