/*
Copyright (C) 2004, 2003 Great Point Design, Inc.
All rights reserved.
This computer program is the property of Great Point Design, Inc.
and contains its confidential trade secrets.  Use, examination,
copying, transfer and disclosure to others, in whole or in part,
are prohibited except with the express prior written consent
of Great Point Design, Inc.
*/

function close_menus(Q36){if(GPMenu.Rf0){GPMenu.Rf0.close(Q36);return 1}else{return 0}};function GPMenu(y96,aQ1,g9c,Q8a){this.y96=y96;this.g9c=g9c;this.Q8a=Q8a;this.m0R=[];this.document=document;this.t3O=document.createElement("DIV");this.t3O.style.display="none";this.t3O.style.position="absolute";this.t3O.style.border='2px threedhighlight outset';this.t3O.style.cursor='default';this.t3O.style.backgroundColor=this.tI2;this.t3O.onmousedown=function(){event.cancelBubble=true};this.lm8=this.document.createElement("TABLE");this.lm8.border=0;this.lm8.cellSpacing=0;this.lm8.style.cssText='font:8pt Microsoft Sans Serif;margin:0';this.lm8.style.backgroundColor=this.tI2;this.lm8.style.marginBottom=1;this.lm8.style.marginRight=1;this.A2y=this.document.createElement("TBODY");this.b3M=0;this.bT2=0;if(aQ1)this.rvB(aQ1);this.lm8.appendChild(this.A2y);this.t3O.appendChild(this.lm8);this.document.body.appendChild(this.t3O)};GPMenu.prototype.P23=gpStripeColor;GPMenu.prototype.JOm='lightgrey';GPMenu.prototype.mOC=gpMenuHighlight;GPMenu.prototype.CY7='graytext';GPMenu.prototype.tI2=gpMenuBackground;GPMenu.prototype.zindex=60;GPMenu.prototype.U93=gpIconWidth;GPMenu.prototype.Amh=110+Math.max((24-gpIconWidth),0);GPMenu.prototype.h15=gpMenuShort;GPMenu.prototype.faG=13;GPMenu.prototype.F9U=GPMenu.prototype.U93+GPMenu.prototype.Amh+GPMenu.prototype.h15+GPMenu.prototype.faG;GPMenu.prototype.sMa=21;GPMenu.prototype.t4y=3;GPMenu.prototype.activate=function(x,Tsk,zindex){if(GPMenu.Rf0)close_menus();GPMenu.Rf0=this;if(event)event.cancelBubble=true;this.document.onclick=close_menus;this.u64(x,Tsk,zindex)};GPMenu.prototype.u64=function(x,Tsk,zindex){var T64=this.F9U+4;var MJ4=this.bT2*(this.sMa+1)+this.b3M*(this.t4y+1)+4;if(x>this.document.body.clientWidth-T64)x=this.document.body.clientWidth-T64;if(Tsk>this.document.body.clientHeight-MJ4)Tsk=this.document.body.clientHeight-MJ4;this.t3O.style.pixelLeft=x;this.t3O.style.pixelTop=Tsk;if(zindex)this.zindex=zindex;this.t3O.style.zIndex=this.zindex;this.t3O.style.display=''};GPMenu.prototype.hide=function(){if(this.yQ8){this.yQ8.hide();this.yQ8=''}if(this.g9c)this.g9c();this.t3O.style.display='none';if(this==GPMenu.Rf0)this.document.onclick=''};GPMenu.prototype.close=function(Q36){for(var i=this.m0R.length-1;i>=0;i--)this.m0R[i].close(Q36);if(this.g9c&&this.t3O.style.display!='none')this.g9c();this.t3O.style.display='none';this.yQ8='';if(!Q36&&this.Q8a)this.Q8a();if(this==GPMenu.Rf0){GPMenu.Rf0='';this.document.onclick=''}if(this.y96)this.tm7()};GPMenu.prototype.tm7=function(){this.document.body.removeChild(this.t3O)};GPMenu.prototype.is_active=function(){return this.t3O.style.display==''};GPMenu.prototype.tBQ=function(aQ1){this.tJP();this.V20();this.g68();if(aQ1)this.rvB(aQ1)};GPMenu.prototype.V20=function(){this.lm8=this.document.createElement("TABLE");this.lm8.border=0;this.lm8.cellSpacing=0;this.lm8.style.cssText='font:8pt Microsoft Sans Serif;margin:0';this.lm8.style.backgroundColor=this.tI2;this.A2y=this.document.createElement("TBODY");this.lm8.appendChild(this.A2y)};GPMenu.prototype.rvB=function(aQ1){for(var i=0;i<aQ1.length;i++){var R18=aQ1[i];this.r8f(R18[0],R18[1],R18[2],R18[4],R18[5],R18[6],R18[7]);if(R18[3])this.sqd()}};GPMenu.prototype.r8f=function(label,Q0m,icon,c7R,IVA,a4E,Y6I){var Nb5=this.document.createElement("TR");var img;var cell=this.document.createElement("TD");cell.align='center';cell.vAlign='center';cell.style.backgroundColor=this.P23;cell.width=this.U93;cell.style.whiteSpace='nowrap';if(icon){img=this.document.createElement("IMG");img.style.cssText="margin:-1 0 -1 0";img.src=icon;cell.appendChild(img)}Nb5.appendChild(cell);cell=this.document.createElement("TD");cell.width=a4E?this.Amh:this.Amh+this.h15;cell.height=this.sMa;cell.colSpan=a4E?1:2;cell.style.cssText='white-space:nowrap;text-align:left;padding:0 0 0 4';var d7L=label.replace(/</g,'\&lt;').replace(/>/g,'\&gt;');cell.innerHTML='<div style="white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:'+cell.width+'">'+d7L+'</div>';Nb5.appendChild(cell);if(a4E){cell=this.document.createElement("TD");cell.width=this.h15;cell.style.cssText='white-space:nowrap;text-align:left;padding:0 0 0 4';cell.innerHTML=a4E;Nb5.appendChild(cell)}cell=this.document.createElement("TD");cell.width=this.faG;cell.style.font='10pt WebDings';cell.innerText=' ';if(Y6I){cell.innerText='4';if(Y6I.constructor!=Array)this.m0R[this.m0R.length]=Y6I}Nb5.appendChild(cell);if(c7R){Nb5.style.color=this.CY7;if(img)img.style.filter=cloak_filter}else this.A91(Nb5,Q0m,icon,IVA,Y6I);this.A2y.appendChild(Nb5);this.bT2++};GPMenu.prototype.sqd=function(){var Nb5=this.document.createElement("TR");var cell=this.document.createElement("TD");cell.style.backgroundColor=this.P23;Nb5.appendChild(cell);cell=this.document.createElement("TD");cell.colSpan=3;var t3O=this.document.createElement("DIV");t3O.style.cssText='font:0;height:1;border:0;margin:0 3 0 3';t3O.style.backgroundColor=this.JOm;cell.appendChild(t3O);Nb5.appendChild(cell);this.A2y.appendChild(Nb5);this.b3M++};GPMenu.prototype.A91=function(Nb5,Q0m,icon,IVA,Y6I){var G9F=new Object;G9F.menu=this;G9F.Q0m=Q0m;G9F.icon=icon;G9F.IVA=IVA;G9F.Y6I=Y6I;Nb5.Yc4=G9F;Nb5.onmouseover=d23;Nb5.onmouseout=pgC;Nb5.onclick=e2V};function d23(){var k0t=this.Yc4;var menu=k0t.menu;this.style.backgroundColor=menu.mOC;this.firstChild.style.backgroundColor=menu.mOC;if(k0t.IVA)this.firstChild.firstChild.src=k0t.IVA;if(menu.yQ8){menu.yQ8.hide();menu.yQ8=''}if(k0t.Y6I){if(k0t.Y6I.constructor==Array){k0t.Y6I=new GPMenu(menu.y96,k0t.Y6I);menu.m0R[menu.m0R.length]=k0t.Y6I}menu.yQ8=k0t.Y6I;k0t.Y6I.u64(menu.t3O.style.pixelLeft+this.offsetWidth-2,menu.t3O.style.pixelTop+this.offsetTop+2,menu.zindex+1)}};function pgC(){this.style.backgroundColor='';this.firstChild.style.backgroundColor=this.Yc4.menu.P23;if(this.Yc4.IVA&&this.Yc4.icon)this.firstChild.firstChild.src=this.Yc4.icon};function e2V(){if(GPMenu.Rf0)GPMenu.Rf0.hide();yield();if(this.Yc4.Q0m){eval(this.Yc4.Q0m);close_menus(true)}else{close_menus()}};
