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

var l_totale;
var poZXX;
var poZXXb;
var poZXXc;
var poZXXd;
var poZX;
var poZXdp;
var poZXprod;
var poZXteam;
var poZXmc;
var poZXidentity;
var browcheck=navigator.userAgent;

function dimensionauno()
	{dimensiona()}

function dimensiona()
	{
	if(HM_Mac && HM_IE)
                {
		if (top.length==0) {document.location='macieframe.cgi?a=0&b='}
		}
	//	if(document.body.clientWidth!=778)
	//		{
	//		top.window.resizeTo(800,600);
	//		location.reload();
	//		}
	//	}
	if(HM_IE){l_totale=document.body.clientWidth;}
	else{l_totale=window.innerWidth;coll="getElementById('";styleObj="')";}
	poZXX=Math.round((l_totale-770)/2);
	poZXXb=poZXX;
	poZXXc=poZXX;
	poZXXd=poZXX;
	if(browcheck.indexOf('Gecko')>0)
		{
		poZXXb=poZXX-31;
		poZXXc=poZXX-200;
		}
	else if ((browcheck.indexOf('MSIE')>0)&&(browcheck.indexOf('Mac')>0))
		{
		l_totaleb=l_totale-550;
		l_totaleb=-100;
                l_totalec=l_totale;
		}
	else
		{
		l_totaleb=l_totale;
		l_totalec=l_totale;
		}
	poZX=poZXX+297+195;
	poZXprod=poZXXb+563;
	poZXteam=poZXXc+50;
	poZXmc=poZXXd+300;
	poZXidentity=poZXXb+305;
	//poZXidentity=poZXX+305;
	poZXdp=poZXXb+290;
	//poZX=(Math.round(((l_totale-770)/2)+297)+195);
	//poZXprod=(Math.round(((l_totale-770)/2)+563));
	//poZXteam=(Math.round(((l_totaleb-770)/2)+50));
	//poZXidentity=(Math.round(((l_totalec-770)/2)+305));
	//poZXdp=(Math.round(((l_totale-770)/2)+290));
	if(HM_DOM && !HM_IE)
                {
		poZXmc=poZXXd+220;
                poZXidentity=poZXidentity-29;
		}
	if(HM_Mac && HM_IE)
		{
                poZXidentity=poZXidentity-69;
		poZXprod=poZXprod-50;
		poZXteam=poZXteam-500;
		}
	poZXidentity=poZXidentity+1;
//	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(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 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";
                }
	  }
        }
function vediamodpnew(obj)
        {
        if(poZX)
          {
        var theObj=beccalo(obj);
        if(HM_IE)
                {
                theObj.pixelLeft=poZXdp+80;
                theObj.pixelTop=231;
                theObj.visibility="visible";
                }
        else
                {
                theObj.style.left=poZXdp+40;
                theObj.style.top=232;
                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-500;
			}
		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 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 team
function vediamo4(obj,e)
        {
        if(poZX)
          {
        obj2=obj;
        var theObj=beccalo(obj);
        if(HM_IE)
                {
		theObj.pixelLeft=poZXteam
		theObj.pixelTop=202
                theObj.visibility="visible";
                }
        else
                {
		theObj.style.left=poZXteam
		theObj.style.top=202
                theObj.style.visibility="visible";
                }
	  }
        }

// per layer director
function vediamo5(obj,e)
        {
        if(poZX)
          {
        obj2=obj;
        var theObj=beccalo(obj);
        if(HM_IE)
                {
                theObj.pixelLeft=poZXteam
                theObj.pixelTop=135
                theObj.visibility="visible";
                }
        else
                {
                theObj.style.left=poZXteam
                theObj.style.top=135
                theObj.style.visibility="visible";
                }
          }
        }

function vediamo6(obj)
        {
        if(poZX)
          {
        obj2=obj;
        var theObj=beccalo(obj);
        if(HM_IE)
                {
                theObj.pixelLeft=poZXmc
                theObj.pixelTop=135
                theObj.visibility="visible";
                }
        else
                {
                theObj.style.left=poZXmc
                theObj.style.top=135
                theObj.style.visibility="visible";
                }
          }
        }



function vediamogallery(obj)
	{
	if(poZX)
          {
	var theObj=beccalo(obj);
        if(HM_IE)
                {
                theObj.pixelLeft=poZXteam
                theObj.pixelTop=162
                theObj.visibility="visible";
                }
        else
                {
                theObj.style.left=poZXteam
                theObj.style.top=162
                theObj.style.visibility="visible";
                }
          }

	}

// per design+design
function vediamoidentity(obj)
        {
        if(poZX)
          {
        var theObj=beccalo(obj);
	if(HM_Mac && HM_IE)
		{
		theObj.pixelLeft=poZXidentity+17;
                theObj.pixelTop=119;
                theObj.visibility="visible";
                }
        else if(HM_IE)
                {
                theObj.pixelLeft=poZXidentity;
                theObj.pixelTop=119;
                theObj.visibility="visible";
                }
	else if(HM_Mac)
		{ 
                theObj.style.left=poZXidentity+12;
                theObj.style.top=119;
                theObj.style.visibility="visible";
                }
        else
                {
                //theObj.style.left=poZXidentity-28;
                theObj.style.left=poZXidentity;
                theObj.style.top=119;
                theObj.style.visibility="visible";
                }
          }
        }
//per layer directors
function vediamodir(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-500;
                        }
                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);
          }
        }

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/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";

 

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 apridirectors(pagina)
{
window.open('template/'+pagina,'directors','scrollbars=yes,status=no,width=300,height=350,resizable=no')
}
