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 pwhtml="";
pwhtml+='<IMG onclick=\'\' style="Z-INDEX: -1; POSITION: absolute" src="\\desktop\\images\\taskbar_props.png"></img>\n';
pwhtml+='<div Width=30 Height=30 onmouseover="window.status=\'End\';return true" onclick="parent.hideprops()" alt="Yes" shape="RECT" style="position:absolute;left:330;top:0;CURSOR:default">\n';
pwhtml+='&nbsp;</div>\n';
pwhtml+='<form action="\\desktop\\topbar_props.asp" method="submit" id="frmProps">\n';
pwhtml+='<TABLE style="LEFT: 25px; WIDTH: 255px; POSITION: absolute; TOP: 230px; HEIGHT: 76px" cellSpacing=0 cellPadding=0 width="255" border=0>\n';
pwhtml+='<tr><td><input type=checkbox'; 
if (bLockTaskbar=='true') {
pwhtml+=' checked=true '
}
pwhtml+=' id="locktb"></input>\n';
pwhtml+='<td>Lock Taskbar Items</table></form>\n';
pwhtml+='<TABLE style="LEFT: 145px; WIDTH: 255px; POSITION: absolute; TOP: 340; HEIGHT: 76px" cellSpacing=0 cellPadding=0 width="255" border=0>\n';
pwhtml+='<tr><td>\n';
pwhtml+='<input width="30" onclick="parent.submitprops()" type=button value="    Ok    " id="ok"></input>\n';
pwhtml+='<td><td><input width="30" type=button onclick="parent.hideprops()" value="Cancel" id="Cancel"></input></table></form>\n';
pwhtml+='<SC'+'RIPT LANGUAGE="JavaScript">\n';
pwhtml+='window.onerror=null;\n';
pwhtml+='/'+' -'+'->\n';
pwhtml+='</'+'SCRIPT>\n';

var oProperties = window.createPopup();
}



if(isie) {
var html="";
html+='<TABLE STYLE="border:1pt solid #808080" BGCOLOR="#CCCCCC" WIDTH="140" HEIGHT="20" 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 #CCCCCC"'
html+=' ID="i0" ONMOUSEOVER="document.all.i0.style.background=\'Blue\';document.all.i0.style.cursor=\'default\';document.all.i0.style.border=\'1pt solid #737B92\';"';
html+=' ONMOUSEOUT="document.all.i0.style.background=\'#CCCCCC\';document.all.i0.style.border=\'1pt solid #CCCCCC\';"';
html+=' ONCLICK="parent.showprops(event.x,event.y)">&nbsp;&nbsp;Properties</TD></TR>';
html+='</TABLE>';

var oPopup = window.createPopup();
}

function hideprops() {
oProperties.show(0,0,0,0, oProperties.document.body);
}

function submitprops() {
oProperties.show(0,0,0,0, oProperties.document.body);
updateframe.navigate('/Desktop/topbar_props.asp?locktb='+oProperties.document.all.locktb.checked);
parent.parent.frames(3).navigate('/Desktop/topbar.asp');
}


function showprops(x,y) {
if(isie) {
oPopup.show(1000,1000,0,0,oPopup.document.body);
var oPropsBody = oProperties.document.body;
oPropsBody.innerHTML = pwhtml;
oProperties.show(screen.width/2,-screen.height/2, 345, 400, document.body);
}
}

function dopopup(x,y) {
if(isie) {
var oPopupBody = oPopup.document.body;
oPopupBody.innerHTML = html;
oPopup.show(x, y-20, 140, 20, 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;
}
