
function jaw_PopupPic(sPicURL, wTitle) { 
     window.open( "../common/planwindow.html?"+sPicURL+"?"+wTitle, "loading...", "resizable=1,HEIGHT=200,WIDTH=200"); 
   } 

function jaw_PopupPlan(sPicURL, wTitle, lang) { 
    if (navigator.userAgent.indexOf('MSIE') != -1)
    { 
        jaw_PopupPlanIE(sPicURL, wTitle, lang);
    }
    else
    {
        window.open( "../common/"+((lang == "ita") ? "it" : "en")+"_plan2.html?"+sPicURL+"?"+wTitle, "loading...", "resizable=1,HEIGHT=200,WIDTH=200"); 
     }

   }


   
function jaw_PopupPlanIE(sPicURL, wTitle, lang) { 
    theWin = window.open( "", "planWin", "resizable=1,HEIGHT=200,WIDTH=200");

    theWin.document.write(
    '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML><HEAD><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><link rel="stylesheet" type="text/css" href="../style.txt" title="Adriana"><style>'
    +'<!--  table.didagmap { color:#002; font-size:10px; border:darkblue 1px solid; }  td#brdr { background:#EFF; border-left:#ccc 1px solid }  --></style>'
    +'<script language="javascript">    var NS = (navigator.appName=="Netscape")?true:false;'
    +'document.write("<title>'+wTitle+'</title>");'
    +'function FitPic() { iWidth = (NS)?window.innerWidth:document.body.clientWidth;'
    +'iHeight = (NS)?window.innerHeight:document.body.clientHeight;'
    +'iWidth = document.images[0].width - iWidth; iHeight = document.images[0].height + document.images[1].height - iHeight;'
    +'window.resizeBy(iWidth, iHeight+10); self.focus(); }; </script></HEAD>'
    +'<BODY bgcolor="#ffffff" onload="FitPic();" topmargin="0" marginheight="0" leftmargin="0" marginwidth="0" text="#ffffff" class = "bodyText">'
    +'<center><img src="'+ sPicURL + '" border=0>'
    +'<img src="../../img5/it_didaplan.gif"></center><script language="javascript">FitPic();</script></BODY></HTML>'
     );
    theWin.document.close();
   } 


function FitThePic() { 
    var NS = (navigator.appName=="Netscape")?true:false;
    var iWidth = (NS)?window.innerWidth-20:document.body.clientWidth;
    var iHeight = (NS)?window.innerHeight:document.body.clientHeight;
    iWidth = document.images[0].width - iWidth;
    iHeight = document.images[0].height - iHeight;
    window.resizeBy(iWidth, iHeight+10);
    self.focus();
}

function jaw_PopupPlan3(sPicURL, wTitle, theDida) { 
    var theWin = window.open( "", "planWin", "resizable=1,scrollbars=1,HEIGHT=220,WIDTH=220");
    theWin.document.write(
    '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML><HEAD><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><link rel="stylesheet" type="text/css" href="../style.txt" title="Adriana">'
    +'<title>'+wTitle+'</title>'
    +'<SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="../jawscpt.js"></SCRIPT>'
    +'</HEAD><BODY bgcolor="#ffffff" onload="FitThePic();" topmargin="0" marginheight="0" leftmargin="0" marginwidth="0" text="#ffffff" class = "bodyText">'
    +'<center><img src="'+ sPicURL + '" border=0>');
    theWin.document.write( dida(theDida) + '<script language="javascript">FitThePic();</script></center></BODY></HTML>' );
    theWin.document.close();
    theWin.focus();
}