ss_menu_01 = '<div id="menu_02" align="left"><ul><li><a href="chi_siamo.htm">Chi siamo</a></li>|<li><a href="lavora.htm">Lavora con noi</a></li></ul></div>';
ss_menu_02 = '<div id="menu_02"><ul><li><a href="prodottifin_compris.htm">Finanziamenti "Service Compris"</a></li>|<li><a href="new_deal.htm">New Deal</a></li>|<li><a href="lldoverlease.htm">Noleggio</a></li>|<li><a href="Leasing.htm">Leasing</a></li></ul></div>';
ss_menu_03 = '<ul></ul>';
ss_menu_04 = '<ul></ul>';
ss_menu_05 = '<ul></ul>';
function li_hover(id) {
	nb = 5;
	//Test de compatibilité navigateur
	if (document.getElementById) {
		op = "getElementById";
	}
	else if (document.all) {
		op = "all";
	}
	//////////////////////////////////
	for (i=1; i<=nb; i++) {
		eval("document."+op+"(i)").style.backgroundColor = "#E6E6E4";
	}
	eval("document."+op+"(id)").style.backgroundColor = "#C1D9EE";
	eval("document."+op+"('menu02')").innerHTML = eval("ss_menu_0"+id);
}
function li_out(id) {
	if (eval("document."+op+"('menu02')").innerHTML == "<UL></UL>") {
		eval("document."+op+"(id)").style.backgroundColor = "#E6E6E4";
	}
}

function show_home(i){
  if (old_hr!=i){
   if(old_hr>-1){
    document.images["hr_"+old_hr].src = rimgs_home[3*old_hr].src;
    eval("_sh_"+t3+"(_obj_"+t1+"('r_"+old_hr+"'), 0)");
   }
   eval("_sh_"+t3+"(_obj_"+t1+"('r_"+i+"'), 1)");
   document.images["hr_"+i].src = rimgs_home[3*i+1].src;
   document.images["ht"].src = rimgs_home[3*i+2].src;
  }
  old_hr = i;
  }

 function swap_home(i,j){
  if (document.images)
   document.images["h_"+i].src = phimgs_home[2*i+j].src;
  }

 function swap_h(i,j){
  if (document.images)
   document.images["h_"+i].src = phimgs_h[2*i+j].src;
  }

 function swap_r(i,j){
  if (document.images)
   document.images["r_"+i].src = phimgs_r[2*i+j].src;
  }

 function _locate_0(_objn){
  var _lobj = document.getElementById(_objn);
  var _lx = _lobj.offsetLeft, _ly = _lobj.offsetTop;
  while(_lobj.offsetParent){
   _lx += _lobj.offsetParent.offsetLeft;
   _ly += _lobj.offsetParent.offsetTop;
   _lobj = _lobj.offsetParent;
  }
  return new Array(_lx, _ly);
 }

 function _locate_1(_objn){
  var _lobj = document.all[_objn];
  var _lx = _lobj.offsetLeft, _ly = _lobj.offsetTop;
  while(_lobj.offsetParent){
   _lx += _lobj.offsetParent.offsetLeft;
   _ly += _lobj.offsetParent.offsetTop;
   _lobj = _lobj.offsetParent
  }
  return new Array(_lx, _ly);
 }

 function _locate_3(_objn){
  _p = document.layers[_objn];
  return new Array(_p.pageX, _p.pageY);
 }

 function _build_0(x, y){
  res = "";
  for(i=0;i<_rcontent.length;i++){
   res += "<div id=r_"+i+" style='position:absolute;top:"+y+"px;left:"+x+"px;z-index:1;visibility:hidden' align=left>"+_rcontent[i]+"</div>";
  }
  return res;
 }

 function _build_1(x, y){
  res = "";
  for(i=0;i<_rcontent.length;i++){
   res += "<layer name=r_"+i+" top="+y+" left="+x+" zindex=1 visibility='hide'>"+_rcontent[i]+"</layer>";
  }
  return res;
 }

 function _do_resize_0(){
  onresize = function() { window.location.reload(); }
 }

 function _do_resize_1(){
   onresize = function() { if(innerWidth != origWidth || innerHeight != origHeight) location.reload(); }
 }

 function _obj_0(id){
  return document.getElementById(id).style;
 }

 function _obj_1(id){
  return document.all[id].style;
 }

 function _obj_3(id){
  return document.layers[id];
 }

 function _sh_0(obj, v){
  obj.visibility = (v==1)?'visible':'hidden';
 }

 function _sh_1(obj, v){
  obj.visibility = (v==1)?'show':'hide';
 }

 function init(){
  var coord = eval("_locate_"+t1+"('z')");
  document.write(eval("_build_"+t3+"(coord[0], coord[1])"));
  eval("_do_resize_"+t3+"()");
 }

 function Is() {
  var agent = navigator.userAgent.toLowerCase();
  this.major = parseInt(navigator.appVersion);
  this.minor = parseFloat(navigator.appVersion);
  this.ns = ((agent.indexOf('mozilla') != -1) &&
  (agent.indexOf('spoofer') == -1) &&
  (agent.indexOf('compatible') == -1) &&
  (agent.indexOf('opera') == -1) &&
  (agent.indexOf('webtv') == -1));
  this.ns2 = (this.ns && (this.major == 2));
  this.ns3 = (this.ns && (this.major == 3));
  this.ns4 = (this.ns && (this.major == 4));
  this.ns6 = (this.ns && (this.major >= 5));
  this.ie = (agent.indexOf("msie") != -1);
  this.ie3 = (this.ie && (this.major < 4));
  this.ie4 = (this.ie && (this.major >= 4) &&
  (agent.indexOf("msie 5.0") == -1));
  this.ie5 = (this.ie && (this.major == 4) &&
  (agent.indexOf("msie 5.0") != -1));
  this.ieX = (this.ie && !this.ie3 && !this.ie4);
 }

 var is = new Is();
 var agt=navigator.userAgent.toLowerCase();
 var mac = (agt.indexOf("mac")!=-1);

  
function formRedirectPays() {
var URL = document.form.pays.options[document.form.pays.selectedIndex].value;
if( URL != "" )
{
	parent.window.location.href = URL;
}
}


function formStructurePays() {
var URL = document.formstructure.pays.options[document.formstructure.pays.selectedIndex].value;
if( URL != "" )
{
	parent.window.location.href = URL;
}
}

/*******************************************
 * Function changeLink()
 * @param id ID du lien ŕ changer
 * @param newHref Nouvelle valeur de href ŕ attribuer au lien
 * @author Tanguy Leroux
 ******************************************/
function changeLink(id,newHref)
{
	if (document.links.length > 0) 
	{
    		if (document.getElementById) 
    		{
      			document.getElementById(id).href = newHref;
    		}
    		else if (document.all) 
    		{
      			document.all[id].href = newHref;
      		}
    	}
}




function submit(){
		if (document.form1.user.value == ''){
			alert("FINREN: inserisci lo user name");
			document.form1.user.focus();
			return false;
		}
		if (document.form1.password.value == ''){
			alert("FINREN: inserisci la password");
			document.form1.Password.focus();
			return false;
		}
		document.form1.submit();
		return true;
		
}