
var AreaBellini=0
var a=0
var i=0
var coll="all."
var styleObj=".style"

var l_totale;
var poZX;
var poZXdp;
var poZXprod;

function dimensionauno()
	{dimensiona()}

function dimensiona()
	{
	if(HM_Mac && HM_IE)
                {
                if (top.length==0) {document.location='macieframe.cgi?a=0&b='}
                }

	if(HM_IE){l_totale=document.body.clientWidth;}
	else{l_totale=innerWidth;coll="getElementById('";styleObj="')";}
	poZX=(Math.round(((l_totale-770)/2)+297)+150);
	poZXdp=(Math.round(((l_totale-770)/2)+290));
	poZXprod=(Math.round(((l_totale-770)/2)+563));
	poZXscheda=(Math.round(((l_totale-770)/2)+70));
	if(AreaBellini) vediamo('mHM_Menu'+AreaBellini);
	}

function beccalo(obj)
        {
        var theObj;
        if(typeof obj=="string")
                {
                theObj = eval("document."+coll+obj+styleObj);
                }
        else { theObj=obj }
        return theObj
        }
// per voce navigator
function vediamo(obj)
        {
	if(obj=="mHM_Menu1")
		{
	  hiLite('iHM_Menu1','iHM_Menu1a');
		}
	if(obj=="mHM_Menu2")
                {
          hiLite('iHM_Menu2','iHM_Menu2a');
                }
	if(obj=="mHM_Menu3")
                {
          hiLite('iHM_Menu3','iHM_Menu3a');
                }
	if(AreaBellini)
                { nascondi2('mHM_Menu'+AreaBellini); }

	if(poZX)
	  { 
        var theObj=beccalo(obj);
        //theObj.moveTo(poZX,3);
	if(HM_IE)
		{
		theObj.pixelLeft=poZX;
		theObj.pixelTop=1;
        	theObj.visibility="visible";
		}
	else
		{
		theObj.style.left=poZX;
		theObj.style.top=1;
		theObj.style.visibility="visible";
		}
	  }
        }


function nascondi(obj)
        {
	if(obj=="mHM_Menu1")
                {
          hiLite('iHM_Menu1','iHM_Menu1');
                }
        if(obj=="mHM_Menu2")
                {
          hiLite('iHM_Menu2','iHM_Menu2');
                }
	if(obj=="mHM_Menu3")
                {
          hiLite('iHM_Menu3','iHM_Menu3');
                }


        var theObj=beccalo(obj);
	if(HM_IE)
                {
        	theObj.visibility="hidden";
		}
        else
                {
		theObj.style.visibility="hidden";
		}
	if(AreaBellini)
                { vediamo('mHM_Menu'+AreaBellini); }

        }

function nascondi2(obj)
        {
	var theObj=beccalo(obj);
        if(HM_IE)
                {
                theObj.visibility="hidden";
                }
        else
                {
                theObj.style.visibility="hidden";
                }
	}
if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

HM_PG_MenuWidth = 150;
HM_PG_FontFamily = "Verdana,Lucida,Arial,Helvetica";
HM_PG_FontSize = 8;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "blue";
HM_PG_FontColorOver = "white";
HM_PG_BGColor = "#DDDDDD";
HM_PG_BGColorOver = "#FFCCCC";
HM_PG_ItemPadding = 3;

HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "black";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "#d0ff00";

HM_PG_ImageSrc = "";
HM_PG_ImageSrcLeft = "";
HM_PG_ImageSrcOver = "";
HM_PG_ImageSrcLeftOver = "";

//HM_PG_ImageSrc = "HM_More_black_right.gif";
//HM_PG_ImageSrcLeft = "HM_More_black_left.gif";
//HM_PG_ImageSrcOver = "HM_More_white_right.gif";
//HM_PG_ImageSrcLeftOver = "HM_More_white_left.gif";


HM_PG_ImageSize = 5;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 2;

HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .5;
HM_PG_StatusDisplayBuild =0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = 0;

HM_PG_CreateTopOnly = 0;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;

//HM_a_TreesToBuild = [2];

function bellini(){}


iHM_Menu1=new Image(44,14);
iHM_Menu1.src="img/grigio.gif";
iHM_Menu1a=new Image(44,14);
iHM_Menu1a.src="img/rossa.gif";
iHM_Menu2=new Image(44,14);
iHM_Menu2.src="img/grigio.gif";
iHM_Menu2a=new Image(44,14);
iHM_Menu2a.src="img/rossa.gif";
iHM_Menu3=new Image(44,14);
iHM_Menu3.src="img/grigio.gif";
iHM_Menu3a=new Image(44,14);
iHM_Menu3a.src="img/rossa.gif";
iHM_Menu4=new Image(44,14);
iHM_Menu4.src="img/grigio.gif";
iHM_Menu4a=new Image(44,14);
iHM_Menu4a.src="img/rossa.gif";


map=new Image(25,30); map.src="img/b_freccia_sx_off.gif";
mapo=new Image(15,230); mapo.src="img/b_freccia_sx_on.gif";
maq=new Image(25,30); maq.src="img/b_freccia_dx_off.gif";
maqo=new Image(15,30); maqo.src="img/b_freccia_dx_on.gif";
mapz=new Image(25,30); mapz.src="img3/b_freccia_sx_off.gif";
mapzo=new Image(15,230); mapzo.src="img/b_freccia_sx_on.gif";
mazq=new Image(25,30); mazq.src="img3/b_freccia_dx_off.gif";
mazqo=new Image(15,30); mazqo.src="img/b_freccia_dx_on.gif";
         

function hiLite(imgDocID,imgObjName) {
document.images[imgDocID].src = eval(imgObjName + ".src")
}

function aprizoom(idcliente,idprodotto)
{
window.open('zoom.cgi?idcliente='+idcliente+'&idprodotto='+idprodotto,'zoom','scrollbars=no,status=no,width=550,height=450,resizable=no')
}

function apricredits(larg,alte)
{
window.open('credits.htm','credits','scrollbars=no,status=no,width='+larg+',height='+alte+',resizable=no')
}

