
var position=0;
function GetStyleObject(id) {
  if (document.getElementById) 
    return document.getElementById(id).style;
  else if (document.layers) 
     return document.layers[id];
  else if (document.all)
     return document.all[id].style;
  else {
     alert("DHTML support not found.");
	 return false;
  }
}

function lancio(URL){
location = URL
}

function pop(URL){
window.open(URL,"nm","width=350px, height=225px, left=300px, top=100px")
}


function apri(url) { 
newin = window.open(url,'titolo','scrollbars=no,resizable=yes,width=600,height=500, status=no,location=no,toolbar=no');
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}



//Main Nav

function Browser() {

  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isNS    = false;  // Netscape
  this.version = null;

  ua = navigator.userAgent;

  s = "MSIE";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }



  // Treat any other "Gecko" browser as NS 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }
}

var browser = new Browser();

function removeClassName(el, name) {

  var i, curList, newList;

  if (el.className == null)
    return;

  // Remove the given class name from the element's className property.

  newList = new Array();
  curList = el.className.split(" ");
  for (i = 0; i < curList.length; i++)
    if (curList[i] != name)
      newList.push(curList[i]);
  el.className = newList.join(" ");
}
