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;
}
if(isie) {
var html="";
html+='<TABLE WIDTH="140" HEIGHT="200" CELLPADDING="0" CELLSPACING="2" border="1">';
html+='<STYLE TYPE="text/css">\n';
html+='a:link {text-decoration:none;font-family:Verdana;font-size:11px;}\n';
html+='a:visited {text-decoration:none;font-family:Verdana;font-size:11px;}\n';
html+='td {font-family:Verdana; font-size:11px; color:#339966; border:1px solid black; cursor:default; padding-left:4px}\n';
html+='</STYLE>\n';
html+='<SCRIPT LANGUAGE="JavaScript">window.onerror=null;</'+'SCRIPT>\n';
html+='<TR><TD ID="i1" ONMOUSEOVER="document.all.i1.style.background=\'#dde0dd\';document.all.i1.style.color=\'black\';document.all.i1.style.borderColor=\'#000000\';" ONMOUSEOUT="document.all.i1.style.background=\'\';document.all.i1.style.color=\'#339966\';document.all.i1.style.borderColor=\'#000000\';" ONCLICK="window.parent.external.AddFavorite(window.top.location.href,window.top.document.title);">Add to Favourites</TD></TR>';
html+='<TR><TD ID="i2" ONMOUSEOVER="document.all.i2.style.background=\'#dde0dd\';document.all.i2.style.color=\'black\';document.all.i2.style.borderColor=\'#000000\';" ONMOUSEOUT="document.all.i2.style.background=\'\';document.all.i2.style.color=\'#339966\';document.all.i2.style.borderColor=\'#000000\';" ONCLICK="window.parent.location=\'view-source:\'+window.parent.location.href;">View Source</TD></TR>';
html+='<TR><TD ID="i3" ONMOUSEOVER="document.all.i3.style.background=\'#dde0dd\';document.all.i3.style.color=\'black\';document.all.i3.style.borderColor=\'#000000\';" ONMOUSEOUT="document.all.i3.style.background=\'\';document.all.i3.style.color=\'#339966\';document.all.i3.style.borderColor=\'#000000\';" ONCLICK="window.print();">Print</TD></TR>';
html+='<TR><TD ID="i4" ONMOUSEOVER="document.all.i4.style.background=\'#dde0dd\';document.all.i4.style.color=\'black\';document.all.i4.style.borderColor=\'#000000\';" ONMOUSEOUT="document.all.i4.style.background=\'\';document.all.i4.style.color=\'#339966\';document.all.i4.style.borderColor=\'#000000\';" ONCLICK="window.parent.location.href=window.parent.location.href;">Refresh</TD></TR>';
html+='<TR><TD ID="i5" ONMOUSEOVER="document.all.i5.style.background=\'#dde0dd\';document.all.i5.style.color=\'black\';document.all.i5.style.borderColor=\'#000000\';" ONMOUSEOUT="document.all.i5.style.background=\'\';document.all.i5.style.color=\'#339966\';document.all.i5.style.borderColor=\'#000000\';" ONCLICK="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=1.6; else window.parent.document.body.style.zoom=1.6;">Zoom In</TD></TR>';
html+='<TR><TD ID="i6" ONMOUSEOVER="document.all.i6.style.background=\'#dde0dd\';document.all.i6.style.color=\'black\';document.all.i6.style.borderColor=\'#000000\';" ONMOUSEOUT="document.all.i6.style.background=\'\';document.all.i6.style.color=\'#339966\';document.all.i6.style.borderColor=\'#000000\';" ONCLICK="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=0.625; else window.parent.document.body.style.zoom=0.625;">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, 140, 200, 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;
}

