
/*
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 solid #cccccc" BGCOLOR="#565afc" WIDTH="140" HEIGHT="220" CELLPADDING="0" CELLSPACING="1">';
html+='<ST'+'YLE TYPE="text/css">\n';
html+='a:link {text-decoration:none;font-family:Arial;font-size:8pt;}\n';
html+='a:visited {text-decoration:none;font-family:Arial;font-size:8pt;}\n';
html+='td {font-size:8pt;}\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 #565afc" ID="i0" ONMOUSEOVER="document.all.i0.style.background=\'#b8b9fd\';document.all.i0.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i0.style.background=\'#565afc\';document.all.i0.style.border=\'1pt solid #b8b9fd\';" ONCLICK="window.history.go(-1);">&nbsp;&nbsp;Back</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #565afc" ID="i1" ONMOUSEOVER="document.all.i1.style.background=\'#b8b9fd\';document.all.i1.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i1.style.background=\'#565afc\';document.all.i1.style.border=\'1pt solid #b8b9fd\';" ONCLICK="window.history.go(1);">&nbsp;&nbsp;Forward</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #565afc" ID="i4" ONMOUSEOVER="document.all.i4.style.background=\'#b8b9fd\';document.all.i4.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i4.style.background=\'#565afc\';document.all.i4.style.border=\'1pt solid #b8b9fd\';" ONCLICK="window.parent.external.AddFavorite(window.top.location.href,window.top.document.title);">&nbsp;&nbsp;Add to Favorites...</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #565afc" ID="i6" ONMOUSEOVER="document.all.i6.style.background=\'#b8b9fd\';document.all.i6.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i6.style.background=\'#565afc\';document.all.i6.style.border=\'1pt solid #b8b9fd\';" ONCLICK="window.parent.print();">&nbsp;&nbsp;Print</TD></TR>';

html+='<TR><TD STYLE="border:1pt solid #565afc" ID="i7" ONMOUSEOVER="document.all.i7.style.background=\'#b8b9fd\';document.all.i7.style.border=\'1pt solid #000000\';" ONMOUSEOUT="document.all.i7.style.background=\'#565afc\';document.all.i7.style.border=\'1pt solid #b8b9fd\';" ONCLICK="window.parent.location.href=window.parent.location.href;">&nbsp;&nbsp;Refresh</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, 220, 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;
}


