var isie=0;
if(window.navigator.appName=="Microsoft Internet Explorer"&&window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf("MSIE")+8)>=5.5) {
isie=1;
}
else {
isie=0;
}
if(isie) {
var html="";
html+='<TABLE STYLE="border:2pt solid #FF9900" BGCOLOR="#FFD700" WIDTH="152" HEIGHT="276" CELLPADDING="3" CELLSPACING="4">';
html+='<ST'+'YLE TYPE="text/css">\n';
html+='a:link {text-decoration:none;font-family:Arial;font-size:10pt;}\n';
html+='a:visited {text-decoration:none;font-family:Arial;font-size:10pt;}\n';
html+='td {font-family:Arial;font-size:10pt;}\n';
html+='</ST'+'YLE>\n';
html+='<SC'+'RIPT LANGUAGE="JavaScript">\n';
html+='\n<'+'!--\n';
html+='window.onerror=null;\n';
html+='/'+' -'+'->\n';
html+='</'+'SCRIPT>\n';
html+='<TR><TD STYLE="border:1pt solid #FFD700" ID="i0" ONMOUSEOVER="document.all.i0.style.background=\'#99CC00\';document.all.i0.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i0.style.background=\'#FFD700\';document.all.i0.style.border=\'1pt solid #FFD700\';" ONCLICK="window.history.go(-1);">&nbsp;<IMG SRC="./contextmenu/indietro.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle">&nbsp;Indietro</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #FFD700" ID="i1" ONMOUSEOVER="document.all.i1.style.background=\'#99CC00\';document.all.i1.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i1.style.background=\'#FFD700\';document.all.i1.style.border=\'1pt solid #FFD700\';" ONCLICK="window.history.go(1);">&nbsp;<IMG SRC="./contextmenu/avanti.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle">&nbsp;Avanti</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #FFD700"><IMG SRC="./contextmenu/pixel.gif" WIDTH="130" HEIGHT="2"></TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #FFD700" ID="i4" ONMOUSEOVER="document.all.i4.style.background=\'#99CC00\';document.all.i4.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i4.style.background=\'#FFD700\';document.all.i4.style.border=\'1pt solid #FFD700\';" ONCLICK="window.parent.external.AddFavorite(window.top.location.href,window.top.document.title);">&nbsp;<IMG SRC="./contextmenu/preferiti.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle">&nbsp;Aggiungi preferiti...</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #FFD700" ID="i5" ONMOUSEOVER="document.all.i5.style.background=\'#99CC00\';document.all.i5.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i5.style.background=\'#FFD700\';document.all.i5.style.border=\'1pt solid #FFD700\';" ONCLICK="window.parent.location=\'view-source:\'+window.parent.location.href;">&nbsp;<IMG SRC="./contextmenu/sorgente.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle">&nbsp;Vedi Sorgente</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #FFD700"><IMG SRC="./contextmenu/pixel.gif" WIDTH="130" HEIGHT="2"></TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #FFD700" ID="i6" ONMOUSEOVER="document.all.i6.style.background=\'#99CC00\';document.all.i6.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i6.style.background=\'#FFD700\';document.all.i6.style.border=\'1pt solid #FFD700\';" ONCLICK="window.parent.print();">&nbsp;<IMG SRC="./contextmenu/stampa.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle">&nbsp;Stampa</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #FFD700" ID="i7" ONMOUSEOVER="document.all.i7.style.background=\'#99CC00\';document.all.i7.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i7.style.background=\'#FFD700\';document.all.i7.style.border=\'1pt solid #FFD700\';" ONCLICK="window.parent.location.href=window.parent.location.href;">&nbsp;<IMG SRC="./contextmenu/aggiorna.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle">&nbsp;Aggiorna</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #FFD700"><IMG SRC="./contextmenu/pixel.gif" WIDTH="130" HEIGHT="2"></TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #FFD700" ID="i8" ONMOUSEOVER="document.all.i8.style.background=\'#99CC00\';document.all.i8.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i8.style.background=\'#FFD700\';document.all.i8.style.border=\'1pt solid #FFD700\';" ONCLICK="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=1.050; else window.parent.document.body.style.zoom=1.050;">&nbsp;<IMG SRC="./contextmenu/zoom.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle">&nbsp;Zoom In</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #FFD700" ID="i9" ONMOUSEOVER="document.all.i9.style.background=\'#99CC00\';document.all.i9.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i9.style.background=\'#FFD700\';document.all.i9.style.border=\'1pt solid #FFD700\';" ONCLICK="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=0.950; else window.parent.document.body.style.zoom=0.950;">&nbsp;<IMG SRC="./contextmenu/zoom.gif" WIDTH="12" HEIGHT="12" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="absmiddle">&nbsp;Zoom Out</TD></TR>';

html+='</TABLE>';

var oPopup = window.createPopup();

}

function dopopup(x,y) {
if(isie) {
var oPopupBody = oPopup.document.body;
oPopupBody.innerHTML = html;
oPopup.show(x, y, 152, 276, document.body);
}
}

function click(e) {
if(isie) {
if(document.all) {
if(event.button==2||event.button==3) {
dopopup(event.x-1,event.y-1);
}
}
}
}

if(isie) {
document.oncontextmenu = function() { dopopup(event.x,event.y);return false; }
document.onmousedown = click;
}
