var popup="";

function apriPOPUP(url,width,height)
{ 
 if (popup!="")
 {
 popup.close();
 } 
var centX=screen.availWidth/2-width/2;
var centY=screen.availHeight/2-height/2;
popup=window.open(url,"popup","resizable=no,scrollbars=no,height="+height+",width="+width+",location=no,menubar=no,screenX=0,screenY=0,status=no,toolbar=no,top="+centY+",left="+centX);
  popup.document.write('<html>\n<head>\n<title>[ Caffè Cascella | Capurso - Bari ]</title>\n</head>\n<body topmargin=0 leftmargin=0 bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="preloadImages()">\n<a href="javascript:close()"><img src="'+url+'" border="0" alt="Clicca per chiudere"></a><br>\n</body>\n</html>\n');
  popup.focus();
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideAbbigliamentos() { //v6.0
  var i,p,v,obj,args=MM_showHideAbbigliamentos.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
