// JavaScript Document

/*
Context Menu script II (By Dheera Venkatraman at dheera@dheera.net)
Submitted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

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:1pt medium ridge #009900" BGCOLOR="#006600" WIDTH="140" HEIGHT="140" CELLPADDING="0" CELLSPACING="1">';
html+='<ST'+'YLE TYPE="text/css">\n';
html+='a:link {text-decoration:none;font-family:Arial;font-size:8pt;color:#FFFFCC;}\n';
html+='a:visited {text-decoration:none;font-family:Arial;font-size:8pt;color:#FFFFCC;}\n';
html+='td {font-size:8pt;color:#FFFFCC;}\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 #009900" ID="i6" ONMOUSEOVER="document.all.i6.style.background=\'#009900\';document.all.i6.style.border=\'1pt solid #009900\';" ONMOUSEOUT="document.all.i6.style.background=\'#006600\';document.all.i6.style.border=\'1pt solid #009900\';" ONCLICK="window.parent.print();">&nbsp;Imprimer</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #009900" ID="i7" ONMOUSEOVER="document.all.i7.style.background=\'#009900\';document.all.i7.style.border=\'1pt solid #009900\';" ONMOUSEOUT="document.all.i7.style.background=\'#006600\';document.all.i7.style.border=\'1pt solid #009900\';" ONCLICK="window.parent.location.reload();">&nbsp;Actualiser</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #009900" ID="i8" ONMOUSEOVER="document.all.i8.style.background=\'#009900\';document.all.i8.style.border=\'1pt solid #009900\';" ONMOUSEOUT="document.all.i8.style.background=\'#006600\';document.all.i8.style.border=\'1pt solid #009900\';" ONCLICK="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=1.25; else window.parent.document.body.style.zoom=1.25;">&nbsp;Zoom +</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #009900" ID="i9" ONMOUSEOVER="document.all.i9.style.background=\'#009900\';document.all.i9.style.border=\'1pt solid #009900\';" ONMOUSEOUT="document.all.i9.style.background=\'#006600\';document.all.i9.style.border=\'1pt solid #009900\';" ONCLICK="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=0.8; else window.parent.document.body.style.zoom=0.75;">&nbsp;Zoom -</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #009900" ID="ia" ONMOUSEOVER="document.all.ia.style.background=\'#009900\';document.all.ia.style.border=\'1pt solid #009900\';" ONMOUSEOUT="document.all.ia.style.background=\'#006600\';document.all.ia.style.border=\'1pt solid #009900\';" ONCLICK="window.parent.document.bgColor=\'#330000\';window.parent.document.fgColor=\'#FFFFCC\'">&nbsp;Blanc/Noir</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #009900" ID="ib" ONMOUSEOVER="document.all.ib.style.background=\'#009900\';document.all.ib.style.border=\'1pt solid #009900\';" ONMOUSEOUT="document.all.ib.style.background=\'#006600\';document.all.ib.style.border=\'1pt solid #009900\';" ONCLICK="window.parent.document.bgColor=\'#FFFFFF\';window.parent.document.fgColor=\'#000000\'">&nbsp;Noir/Blanc</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, 140, 140, 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;
}
else {
document.oncontextmenu=new Function("return false");
}
