var agt=navigator.userAgent.toLowerCase(); 

    // *** BROWSER VERSION *** 
    // Note: On IE5, these return 4, so use is_ie5up to detect IE5. 
    var is_major = parseInt(navigator.appVersion); 
    var is_minor = parseFloat(navigator.appVersion); 

    // Note: Opera and WebTV spoof Navigator.  We do strict client detection. 
    // If you want to allow spoofing, take out the tests for opera and webtv. 
    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 
                && (agt.indexOf('webtv')==-1)); 
    var is_nav2 = (is_nav && (is_major == 2)); 
    var is_nav3 = (is_nav && (is_major == 3)); 
    var is_nav4 = (is_nav && (is_major == 4)); 
    var is_nav4up = (is_nav && (is_major >= 4)); 
    var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) || 
                          (agt.indexOf("; nav") != -1)) ); 
    var is_nav5 = (is_nav && (is_major == 5)); 
    var is_nav5up = (is_nav && (is_major >= 5)); 

    var is_ie   = (agt.indexOf("msie") != -1);
    var is_ie3  = (is_ie && (is_major < 4)); 
    var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) ); 
    var is_ie4up  = (is_ie  && (is_major >= 4)); 
    var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) ); 
    var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4);

    var is_firefox = (agt.indexOf("firefox") != -1);
    var is_opera = (agt.indexOf("opera") != -1); 
    var is_webtv = (agt.indexOf("webtv") != -1); 
    var is_mac    = (agt.indexOf("mac")!=-1);

var rest_width;
var punt_width;
var diff_punti_x;
var diff_punti_y;

if (is_nav) {rest_width="26"; punt_width="2"};
if (is_ie) {rest_width="50"; punt_width="4";};
if (is_opera) {rest_width="52"; punt_width="6";};

var ref1, ref2, winref;
winref = 'window.self.';
window.moveTo(0,0);
window.focus();

if (is_ie4up){					//Explorer 4, 5, 5.5
ref1 = 'document.all[\'';
ref2 = '\'].style';
}
else {
if (document.getElementById){			//Netscape 6
      ref1 = 'document.getElementById(\'';
      ref2 = '\').style'}
      else {if (is_nav){			//Netscape 4
           ref1 = 'document.layers[\'';
           ref2 = '\']';
           }
      }
}

function ShowPoint(x,y,text,e){
var sottrai;

  todo=eval(winref + ref1 + 'punto' + ref2);
  diff_punti_x = x;
  diff_punti_y = y;

if (agt.indexOf("msie 7.0")!=-1 || agt.indexOf("msie 6.0")!=-1 || agt.indexOf("msie 5.0")!=-1 || agt.indexOf("msie 4.0")!=-1 || agt.indexOf("msie 3.0")!=-1) {
diff_punti_x = diff_punti_x - 98;
}
else
{
diff_punti_x = diff_punti_x;
}

	var obj = document.getElementById('bubble_tooltip');
	var obj2 = document.getElementById('bubble_tooltip_content');
	obj2.innerHTML = text;
	obj.style.display = 'block';
	var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	todo.left= x + diff_punti_x + 'px';
	todo.top= y + diff_punti_y + 'px';
	todo.visibility = "visible";
}

function HidePoint(){
todo=eval(winref + ref1 + 'punto' + ref2);
todo.visibility="hidden";
}





