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

var l_totale;
var poZX;
var poZXdp;
var poZXprod;
var poZXidentity;
var poZXscheda;

function dimensionauno()
	{dimensiona()}

function dimensiona()
	{
	if(HM_Mac && HM_IE)
                {
                if (top.length==0) {document.location='macieframe.cgi?a=2&b=1'}
                }
	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));
	poZXidentity=(Math.round(((l_totale-770)/2)+305));
	poZXprod=(Math.round(((l_totale-770)/2)+563));
	poZXscheda=(Math.round(((l_totale-770)/2)+70));
	//if(AreaBellini) vediamo('mHM_Menu'+AreaBellini);
	if(HM_DOM && !HM_IE)
		{
		poZXidentity=poZXidentity-60;
		poZXscheda=poZXscheda-224;
		}
	if(HM_Mac && HM_IE)
                {
		poZXidentity=poZXidentity-70;
                poZXprod=poZXprod-50;
		poZXscheda=poZXscheda-324;
                }
	}

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(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";
		}
	  }
        }
// per identity
function vediamoidentity(obj)
        {
        if(poZX)
          {
        var theObj=beccalo(obj);
	if(HM_IE)
                {
                theObj.pixelLeft=poZXidentity;
                theObj.pixelTop=119;
                theObj.visibility="visible";
                }
        else
                {
                theObj.style.left=poZXidentity;
                theObj.style.top=119;
                theObj.style.visibility="visible";
                }
          }
        }

// per design process
function vediamodp(obj)
        {
	if(poZX)
          {
        var theObj=beccalo(obj);
        if(HM_IE)
                {
                theObj.pixelLeft=poZXdp;
                theObj.pixelTop=261;
                theObj.visibility="visible";
                }
        else
                {
                theObj.style.left=poZXdp;
                theObj.style.top=262;
                theObj.style.visibility="visible";
                }
	  }
        }
// per layer su piccola
function vediamo2(obj,e)
        {
	if(poZX)
          {
	obj2=obj;
        var theObj=beccalo(obj);
	if(HM_Mac && HM_IE)
                {
                var conty=e.clientY;
                var contx=e.clientX;
                conty=conty+20
                if(contx<490 && contx>200)
                        {
                        contx=contx-550;
                        }
                else if(contx<200)
                        {
                        contx=contx-700;
                        }
                else
                        { contx=contx-200 }
                theObj.pixelTop=conty;
                theObj.pixelLeft=contx;
                theObj.visibility="visible";
                }
	else if(HM_IE)
                {
		var conty=e.clientY;
                if(conty>350) { conty=conty-50 }
                theObj.pixelTop=conty

                theObj.pixelLeft=e.clientX
                theObj.visibility="visible";
                }
        else
                {
                theObj.style.left=e.pageX-200
                theObj.style.top=e.pageY+10
                theObj.style.visibility="visible";
                }
	intervalID=setTimeout("nascondi('"+obj+"')",3000);
	  }
        }
// per layer su staff
function vediamostaff(obj,e)
        {
        if(poZX)
          {
	var theObj=beccalo(obj);
        if(HM_IE)
                {
                theObj.pixelLeft=e.clientX+10
                theObj.pixelTop=e.clientY
                theObj.visibility="visible";
                }
        else
                {
                theObj.style.left=e.pageX-150
                theObj.style.top=e.pageY+15
                theObj.style.visibility="visible";
                }
        //intervalID=setTimeout("nascondi('"+obj+"')",5000);
          }
        }
// per layer su grande
function vediamo3(obj,e)
        {
	if(poZX)
          {
        obj2=obj;
        var theObj=beccalo(obj);
        if(HM_IE)
                {
                //theObj.pixelLeft=e.clientX
		theObj.pixelLeft=poZXprod
                //theObj.pixelTop=e.clientY
                theObj.pixelTop=119
                theObj.visibility="visible";
                }
        else
                {
                //theObj.style.left=e.pageX-200
                theObj.style.left=poZXprod
                //theObj.style.top=e.pageY+10
                theObj.style.top=119
                theObj.style.visibility="visible";
                }
	//intervalID=setTimeout("nascondi('"+obj+"')",9000);
	  }
        }
// per layer scheda
function vediamo4(obj,e)
	{
	if(poZX)
          {
	var theObj=beccalo(obj);
	if(HM_DOM && !HM_IE)
		{
		theObj.style.left=poZXscheda
                theObj.style.top=140
		theObj.style.visibility="visible";
		}
	else if(HM_IE)
                {
		theObj.pixelLeft=poZXscheda
		theObj.pixelTop=135
                theObj.visibility="visible";
                }
        else
                {
		theObj.style.left=poZXscheda
		theObj.style.top=135
                theObj.style.visibility="visible";
                }
          }
        }


function nascondi(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/blu.gif";
iHM_Menu2=new Image(44,14);
iHM_Menu2.src="img/blu.gif";
iHM_Menu2a=new Image(44,14);
iHM_Menu2a.src="img/blu.gif";
iHM_Menu3=new Image(44,14);
iHM_Menu3.src="img/grigio.gif";
iHM_Menu3a=new Image(44,14);
iHM_Menu3a.src="img/blu.gif";
iHM_Menu4=new Image(44,14);
iHM_Menu4.src="img/grigio.gif";
iHM_Menu4a=new Image(44,14);
iHM_Menu4a.src="img/blu.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=545,resizable=no')
}
