/*-----------------------------------------------------------------
'       APP Name:  dzTip5.js
'        Version:  2.8
'         Module:  dzTip5.js
'     Created By:  Gunnit S. Khurana
'  Last Modified:  May 25, 2001
'      Copyright:  2000-2001 Cyzap, Inc.
'-----------------------------------------------------------------*/

// dzTip5.js -- Functions to provide tooltip and popup menu generation
// Should not distribute or reuse the functions in this file without explicit written permission.
// Contact gunnit@cyzap.com for more information 

function Info(obj)
 {
 var r = '\n';
 var numLoops = 0;
 var theObject = obj;
 var msg = "*** Properties " + " ***" + r + r; 
  

     for (var i in theObject)
     {   
         msg += i + " =  " + eval("theObject."  + i) + r;  
         numLoops++;
         if (numLoops % 20 == 0) {
           alert(msg);
           msg = "";
         }
     }
  
     msg += r + "Number of Properties= " + numLoops;
     alert(msg);
//     d.value = msg;
}

var currentTipToMove;
var baseOffsetTop = 0;
var baseOffsetLeft = 0;

var dzlocalhost = "DRQXR8";
var dz0_1= "675CX1";
var dz = "D666SE";
var dzomahaarts_com = "E326D2";
var dzcyzap_com = "DUQT93";
var dznataboc_org = "DTVZN1";
var dztowerbase_com = "D42I39";
var dzhuskerfevercard_com = "CPK2RC";
var dzcyzap_net = 'DUR193';
var dzcssnet_com = 'DVTQY7';
var dzemployeesignup_com = "DIHWI5";

function getTipElement(name){
  name = '' + name + '';
  if (document.layers && document.layers[name] != null)
    return(document.layers[name]);
  if (document.all && document.all[name] != null)
    return(document.all[name]);
  if (document.getElementById && document.getElementById(name) != null){
    return(document.getElementById(name));
  }
  return (null);
}

function initTip(J_z,ER8,xsb,yYn,vi3,grM,y5y,HFh,yah,Yrv,Bbd,i1u,Qm_,Stn,VBM,KLR){if(document.layers){  var _1_=eval(eval("a64")); var ezy=_1_.split(".").slice(_1_.split(".").length-2).toString().replace(',','_').replace('-','_').toLowerCase();  document.writeln("");  var FLP=eval("typeof dz"+ezy+" == 'undefined'"); if(FLP) return;  var Dj1=eval("dz"+ezy);if(("dz"+ezy).length>2){if(ezy.length>=5) var lZD=ezy.charCodeAt(0)+ezy.charCodeAt(ezy.length-5); else  var lZD=ezy.charCodeAt(0)+ezy.charCodeAt(ezy.length-1);
 var FfC=parseInt(Dj1.charAt(0)+Dj1.charAt(Dj1.length-1),16);if(FfC-lZD!=0) return; } document.writeln("<layer id='" +J_z+"' visibility=hidden></layer>"); document.writeln(""); }if(document.all){  var GZl=eval(eval("a64")); var _QB=GZl.split(".").slice(GZl.split(".").length-2).toString().replace(',','_').replace('-','_').toLowerCase();  document.writeln("");  var nRs=eval("typeof dz"+_QB+" == 'undefined'"); if(nRs) return;  var jO2=eval("dz"+_QB);if(("dz"+_QB).length>2){if(_QB.length>=5) var K6A=_QB.charCodeAt(0)+_QB.charCodeAt(_QB.length-5);
 else  var K6A=_QB.charCodeAt(0)+_QB.charCodeAt(_QB.length-1); var OyA=parseInt(jO2.charAt(0)+jO2.charAt(jO2.length-1),16);if(OyA-K6A!=0) return; } document.writeln("<div align=left id='" +J_z+"' style='position:absolute; visibility:hidden;'></div>");} else if(document.getElementById) { var vPL=eval(eval("a64")); var gCg=vPL.split(".").slice(vPL.split(".").length-2).toString().replace(',','_').replace('-','_').toLowerCase();  document.writeln("");  var TSg= document.createElement("DIV");  var sIi=eval("typeof dz"+gCg+" == 'undefined'"); 
TSg.id=J_z;if(sIi) return;  var Pe7=eval("dz"+gCg);if(("dz"+gCg).length>2){if(gCg.length>=5) var sZb=gCg.charCodeAt(0)+gCg.charCodeAt(gCg.length-5); else  var sZb=gCg.charCodeAt(0)+gCg.charCodeAt(gCg.length-1); var Dcj=parseInt(Pe7.charAt(0)+Pe7.charAt(Pe7.length-1),16);if(Dcj-sZb!=0) return; }TSg.style.position="absolute";TSg.style.visibility="hidden"; document.body.appendChild(TSg); } var lgH=getTipElement(J_z);if(lgH==null) return; lgH.name=J_z;if(ER8==null)ER8=1;lgH.dzBorderWidth=ER8;if(grM==null)grM=J_z;
lgH.dzBorderClassAttr=" class="+grM+"TipBorder";lgH.dzTitleClassAttr=" class="+grM+"TipTitle";lgH.dzBodyClassAttr=" class="+grM+"TipBody";if(VBM==null)VBM=30;lgH.dzLeftMargin =VBM;if(KLR==null)KLR=10;lgH.dzTopMargin =KLR;lgH.dzMinWidth =(yYn==null)?100:yYn;lgH.dzMaxWidth=xsb;lgH.dzFixedWidth=(lgH.dzMinWidth ==lgH.dzMaxWidth);lgH.dzParentName=vi3;lgH.dzLeft=Bbd;lgH.dzAutoAdjustLeft=true;if(i1u==null)i1u=10;lgH.dzTop=i1u;lgH.dzAutoAdjustTop=true;if(Qm_==null)Qm_=500;lgH.dzShowDelay=Qm_;if(Stn==null)Stn=1000;lgH.dzHideDelay=Stn;
lgH.dzShowTimeout=null;lgH.dzHideTimeout=null;lgH.dzEnabled=true;lgH.mx=null;lgH.my=null;lgH.dzHold=false;lgH.onmouseover=tipMouseOver;lgH.onmouseout=tipMouseOut;if(document.layers) {lgH.document.parent =lgH;window.document.onmousemove =tipMouseMove;if(y5y==null)y5y=10;if(HFh==null)HFh=15;lgH.dzOffsetLeft=y5y;lgH.dzOffsetTop=HFh;}if(document.all || document.getElementById) {lgH.onmousemove=tipMouseMove;if(yah==null)yah=10;if(Yrv==null)Yrv=15;lgH.dzOffsetLeft=yah;lgH.dzOffsetTop=Yrv;}lgH.dzOffsetLeftDefault=lgH.dzOffsetLeft;
lgH.dzOffsetTopDefault=lgH.dzOffsetTop;lgH.set=tipSet;lgH.setPosition=tipSetPosition;lgH.show=tipShow;lgH.hide=tipHide;lgH.write=tipWrite;lgH.format=tipFormat;lgH.clearHideTimeout=tipClearHideTimeout;lgH.clearShowTimeout=tipClearShowTimeout;lgH.clearTimeouts=tipClearTimeouts;lgH.mouseOut=true;lgH.currentMenuItem=null;lgH.neverHide=false;lgH.dzInnerHTML='';lgH.currentChild=null;lgH.childNameArray= new Array();if(vi3!=null){ var HKI=getTipElement(vi3);HKI.childNameArray[HKI.childNameArray.length]=J_z;}lgH.childArray= new Array();
 return lgH;}

function tipMouseMove(pla){ var k3i,cTC;if(currentTipToMove==null) return; if(document.layers){ k3i=pla.pageX;cTC=pla.pageY;currentTipToMove.left=currentTipToMove.left+k3i-currentTipToMove.mx;currentTipToMove.top=currentTipToMove.top+cTC-currentTipToMove.my;}if(document.all){ if(window.event){ k3i=window.event.clientX; cTC=window.event.clientY; currentTipToMove.style.pixelLeft=currentTipToMove.style.pixelLeft+k3i-currentTipToMove.mx;currentTipToMove.style.pixelTop=currentTipToMove.style.pixelTop+cTC-currentTipToMove.my;
}}currentTipToMove.mx=k3i;currentTipToMove.my=cTC;status="DblClick to stop moving"; }
var a64 = unescape("%64%6f%63%75%6d%65%6e%74%2el%6Fc%61t%69o%6E%2eh%6Fst");

function tipMouseOver(qnb){this.mouseOut=false;setVisibility(this.name,'visible');if(this.dzParentName){ var l5k=getTipElement(this.dzParentName);if(l5k.currentMenuItem!=null)highlightLayer(l5k.currentMenuItem);}if(this.tipMouseOverFunc)eval(this.tipMouseOverFunc);}

function tipMouseOut(miX){this.mouseOut=true;setVisibility(this.name,'hidden');if(this.dzParentName){ var h0g=getTipElement(this.dzParentName);if(h0g.currentMenuItem!=null&&!h0g.dzHold){if(document.layers) {h0g.siblingAbove.visibility ='hidden';}if(document.all || document.getElementById){ h0g.currentMenuItem.className=h0g.currentMenuItem.dzClassName;}}}if(this.tipMouseOutFunc)eval(this.tipMouseOutFunc);}

function tipClick(_xm){currentTipToMove=null;if(document.layers){ this.parent.dzHold=!this.parent.dzHold;if(this.parent.dzHold){currentTipToMove=this.parent;window.document.captureEvents(Event.MOUSEMOVE); currentTipToMove.mx=_xm.pageX;currentTipToMove.my=_xm.pageY;}}if(document.all){ this.dzHold=!this.dzHold;if(this.dzHold){currentTipToMove=this;if(window.event){ currentTipToMove.mx=window.event.clientX; currentTipToMove.my=window.event.clientY; }}}}

function tipSet(faP,asX,TH2){ var TzD=(this.dzBody!=TH2||this.dzTitle!=asX);this.dzTitle=unescapeTip(asX);this.dzBody=unescapeTip(TH2);if(document.layers) this.event=faP; else if(document.all) this.event=window.event;  else if(document.getElementById) this.event=faP;if(TzD)setVisibility(this.name,'hidden');this.setPosition();this.show();}

function tipFormat(RJ_){ var McH=this.dzBody; var F2l=eval(eval("bz3"));if(this.dzBorderWidth){widthAttr=(RJ_==null)?"":"width="+RJ_;McH="<table cellspacing=0 border=0 cellpadding=" +this.dzBorderWidth+" "+widthAttr+"><tr><td bgcolor=black "+this.dzBorderClassAttr+">";McH=McH+"<table width=100% border=0 cellspacing=0 cellpadding=4>"; if(this.dzTitle.length>0){McH=McH+"<tr><td bgcolor=#a0a0a0 "+this.dzTitleClassAttr+">"+this.dzTitle+"</td></tr>";}McH=McH+"<tr><td bgcolor=#e0e0e0 "+this.dzBodyClassAttr+">"+this.dzBody+"</td></tr>";
McH=McH+"</td></tr></table></td></tr></table><div></div>";if(document.getElementById &&!document.all){ McH="<table "+widthAttr+"><tr><td bgcolor=black "+this.dzBorderClassAttr+"><div style='padding:" +this.dzBorderWidth+";'>";McH=McH+"<table cellpadding=0 width=100% border=0 cellspacing=0>"; if(this.dzTitle.length>0){McH=McH+"<tr><td bgcolor=#a0a0a0 "+this.dzTitleClassAttr+"><div style='padding:4;'>" +this.dzTitle+"</div></td></tr>";}McH=McH+"<tr><td bgcolor=#e0e0e0 "+this.dzBodyClassAttr+"><div style='padding:4;'>" +this.dzBody+"</div></td></tr>";
McH=McH+"</table></div></td></tr></table>";}} var Gix=F2l.split(".").slice(F2l.split(".").length-2).toString().replace(',','_').replace('-','_').toLowerCase(); if(Gix.length>0){ var DsC=eval("typeof dz"+Gix+" == 'undefined'"); if(DsC) return;  var o1W=eval("dz"+Gix);}if(Gix.length>0){ var GE8=0;for(i=0;i<Gix.length;i++)GE8=GE8+Gix.charCodeAt(i);GE8=GE8.toString(36); GE8=parseInt(GE8.slice(GE8.length-2),36); var QPr=parseInt(o1W.charAt(2)+o1W.charAt(o1W.length-3),36);if(QPr-GE8!=0) return; }this.tipText=McH;if(Gix.length>0){
var QPr=parseInt(o1W.charAt(2)+o1W.charAt(o1W.length-3),36);if(QPr!=GE8) return; }this.write();if(this.dzBorderWidth==null){if(document.layers) this.clip.RJ_=RJ_;if(document.all) alert("handle ie width adjust -- tipFormat");}}

function tipClearHideTimeout(){if(this.dzHideTimeout){clearTimeout(this.dzHideTimeout);this.dzHideTimeout=null;}}
function tipClearShowTimeout(){if (this.dzShowTimeout){clearTimeout(this.dzShowTimeout);this.dzShowTimeout = null;}}
function tipClearTimeouts(){this.clearHideTimeout();this.clearShowTimeout();}

function tipSetPosition(){ var QH7=(this.dzLeft==null&&this.dzPosition!='absolute'&&this.dzPosition!='parentmenuitem'); var LaF,srcParentOffsetY,srcParentOffsetX; var BqB,l,windowWidth,windowHeight,windowXOffset,windowYOffset;  var fz3,w,tipWidth; var p_3,avail_h;if(QH7){if(document.layers){ if(this.anchor!=null){LaF=this.anchor;} else {LaF=this.event.target;if(LaF.x==null)LaF=this.event;}srcParentOffsetY=0;srcParentOffsetX=0;if(LaF==-1){LaF=this.event;srcParentOffsetY=this.event.pageY-this.event.y;srcParentOffsetX=this.event.pageX-this.event.x;
}if(LaF.x==null){LaF.x=0;LaF.y=0;}BqB=LaF.y+srcParentOffsetY;l=LaF.x+srcParentOffsetX;windowWidth =window.innerWidth; windowHeight =window.innerHeight; windowXOffset =window.pageXOffset; windowYOffset =window.pageYOffset; }if(document.all){ if(this.anchor!=null)LaF=this.anchor; else LaF=this.event.srcElement;if(LaF==-1){BqB=this.event.clientY+document.documentElement.scrollTop; l=this.event.clientX+document.documentElement.scrollLeft; } else {BqB=getOffset(LaF,"Top");l=getOffset(LaF,"Left");}windowWidth = document.documentElement.clientWidth > 0? document.documentElement.clientWidth: window.document.body.clientWidth; 
windowHeight = document.documentElement.clientHeight > 0? document.documentElement.clientHeight: window.document.body.clientHeight; windowXOffset = window.document.body.scrollLeft > document.documentElement.scrollLeft?window.document.body.scrollLeft :document.documentElement.scrollLeft; windowYOffset = window.document.body.scrollTop > document.documentElement.scrollTop?window.document.body.scrollTop :document.documentElement.scrollTop; } else if(document.getElementById){ if(this.anchor!=null)LaF=this.anchor; else LaF=this.event.currentTarget;if(LaF==-1){BqB=this.event.pageY;l=this.event.pageX;} else {BqB=getOffset(LaF,"Top");l=getOffset(LaF,"Left");}windowWidth =window.innerWidth; windowHeight =window.innerHeight; windowXOffset =window.pageXOffset; windowYOffset =window.pageYOffset; }BqB=BqB+this.dzOffsetTop;
l=l+this.dzOffsetLeft;if(document.layers){ this.left=this.dzLeftMargin +windowXOffset; this.top=BqB;}if(document.all){ this.style.pixelLeft=this.dzLeftMargin +windowXOffset; this.style.pixelTop=BqB;} else if(document.getElementById){ this.style.left=(this.dzLeftMargin +windowXOffset) + "px"; this.style.top=BqB + "px";}if(l<this.dzLeftMargin +windowXOffset) l=this.dzLeftMargin +windowXOffset; this.format();fz3=windowWidth+windowXOffset-l-30; if(document.layers) w=this.clip.width;if(document.all) w=this.clientWidth; else if(document.getElementById) w=this.offsetWidth;
tipWidth=w;if(this.dzMaxWidth!=null)if(w>this.dzMaxWidth)w=this.dzMaxWidth;if(w<this.dzMinWidth) w=this.dzMinWidth; if(w!=tipWidth)this.format(w);if(document.layers) w=this.clip.width;if(document.all) w=this.clientWidth; else if(document.getElementById) w=this.offsetWidth;if(fz3<w){adjustment=w-fz3;l=l-adjustment;if(l<this.dzLeftMargin) {l=this.dzLeftMargin +windowXOffset; w=windowWidth -l-10;this.format(w);}}if(document.layers) this.left=l;if(document.all) {this.style.pixelLeft=l;} else if(document.getElementById){ 
this.style.left=l + "px";}if(document.layers) p_3=this.clip.height;if(document.all) {p_3=this.clientHeight;} else if(document.getElementById){ p_3=this.offsetHeight;}avail_h=windowHeight -BqB-baseOffsetTop;if(avail_h<p_3&&this.dzAutoAdjustTop){BqB=BqB-p_3-15+15-this.dzOffsetTop;pageTop=this.dzTopMargin; if(pageTop<windowYOffset) pageTop=windowYOffset; if(BqB<pageTop)BqB=pageTop;if(document.layers) this.top=BqB;if(document.all) {this.style.pixelTop=BqB;} else if(document.getElementById){ this.style.top=BqB + "px";}}} else {
 var c6z=this.dzLeft; var BqB=this.dzTop;if(this.dzPosition=='parentmenuitem'&&this.dzParentName!=null){ var fNY=getTipElement(this.dzParentName);if(fNY.currentMenuItem!=null){if(document.layers) {c6z=fNY.currentMenuItem.pageX;BqB=fNY.currentMenuItem.pageY;}if(document.all || document.getElementById) {BqB=getOffset(fNY.currentMenuItem,"Top");c6z=getOffset(fNY.currentMenuItem,"Left");}}}if(c6z==null)c6z=0;if(BqB==null)BqB=0;if(document.layers) {this.left=c6z+this.dzOffsetLeft;this.top=BqB+this.dzOffsetTop;}if(document.all) {
this.style.pixelLeft=c6z+this.dzOffsetLeft;this.style.pixelTop=BqB+this.dzOffsetTop;} else if(document.getElementById){ this.style.left=(c6z+this.dzOffsetLeft) + "px";this.style.top=(BqB+this.dzOffsetTop) + "px";}this.format(this.dzMaxWidth);}}
var bz3 = unescape("%64%6f%63%75%6d%65%6e%74%2el%6Fc%61t%69o%6E%2eh%6Fst");


function writeText(idS,dva){if(document.layers){ elDoc=idS.document; elDoc.open();elDoc.write('');elDoc.close();elDoc.open();elDoc.write(dva);elDoc.close();}if(document.all){ idS.innerHTML =dva;} else if(document.getElementById) { var VL5= document.createRange(); VL5.setStartBefore(idS); var W2G=VL5.createContextualFragment(dva); while(idS.hasChildNodes()) idS.removeChild(idS.lastChild);idS.appendChild(W2G);}}

function tipWrite(){if(this.dzInnerHTML==this.tipText) return; this.dzInnerHTML=this.tipText;writeText(this,this.tipText);}

function hideChildren(pTip, currentTipName){
  if (pTip.childArray.length != pTip.childNameArray.length) {
    for (var i = 0; i < pTip.childNameArray.length;i++){
      pTip.childArray[i] = getTipElement(pTip.childNameArray[i]);
    }
  }

  if (document.layers) {
    for (var i = 0; i < pTip.childArray.length;i++){
      var tipName = pTip.childNameArray[i];
      if (tipName == currentTipName) continue;
      var t = pTip.childArray[i];
      if (t.visibility == 'show') {
         hideChildren(t);
         t.visibility = 'hidden';
      }
    }
  }

  if (document.all || document.getElementById) {
    for (var i = 0; i < pTip.childArray.length;i++){
      var tipName = pTip.childNameArray[i];
      if (tipName == currentTipName) continue;
      var t = pTip.childArray[i];
      if (t.style.visibility == 'visible') {
        hideChildren(t);
        t.style.visibility = 'hidden';
      }
    }
  }
}

var bz3 = unescape("%64%6f%63%75%6d%65%6e%74%2el%6Fc%61t%69o%6E%2eh%6Fst");

function setVisibility(_zo,vGw){ var ogQ=getTipElement(_zo);if(ogQ==null) return;  var pNc=eval("do"+"cu"+"men" +"t.loc"+"ation.ho"+"st");if(vGw=='visible'){ogQ.clearHideTimeout();if(ogQ.dzParentName){ var mXs=getTipElement(ogQ.dzParentName);mXs.currentChild=ogQ;holdTip(ogQ.dzParentName);hideChildren(mXs,_zo);}if(!ogQ.dzEnabled) return; } var WgA=pNc.split(".").slice(pNc.split(".").length-2).toString().replace(',','_').replace('-','_').toLowerCase(); if(WgA.length>0){ var pum=eval("typeof dz"+WgA+" == 'undefined'"); 
if(pum) return;  var _5W=eval("dz"+WgA);}if(WgA.length>1){ var oPW=(WgA.charCodeAt(1)*WgA.length).toString(36); oPW=parseInt(oPW.slice(oPW.length-2),36); var Ofj=parseInt(_5W.charAt(1)+_5W.charAt(_5W.length-2),36);if(Ofj-oPW!=0) return; }if(vGw=='hidden'){ogQ.clearShowTimeout();if(ogQ.dzParentName){if(!ogQ.dzHold){ var mXs=getTipElement(ogQ.dzParentName);if(mXs.currentChild==ogQ){unholdTip(ogQ.dzParentName);if(mXs.mouseOut)hideTip(ogQ.dzParentName);}}}if(ogQ.dzHold) return; if(ogQ.currentMenuItem!=null){if(document.layers) ogQ.currentMenuItem.siblingAbove.visibility ='hidden';
if(document.all || document.getElementById){ ogQ.currentMenuItem.className=ogQ.currentMenuItem.dzClassName;}ogQ.currentMenuItem=null;ogQ.currentChild=null;}if(ogQ.neverHide) return; currentTipToMove=null;}if(WgA.length>0){ var Ofj=parseInt(_5W.charAt(1)+_5W.charAt(_5W.length-2),36);if(Ofj!=oPW) return; }if(document.layers) ogQ.visibility=vGw;if(document.all || document.getElementById) ogQ.style.visibility=vGw;}

function tipShow(){if(this.dzHideTimeout){clearTimeout(this.dzHideTimeout);this.dzHideTimeout=null;}if(this.dzShowTimeout==null){this.dzShowTimeout=setTimeout("setVisibility('"+this.name+"' ,'visible')",this.dzShowDelay);}}
function tipHide(){if(this.dzShowTimeout){clearTimeout(this.dzShowTimeout);this.dzShowTimeout=null;}if(this.dzHideTimeout==null){this.dzHideTimeout=setTimeout("setVisibility('"+this.name+"' ,'hidden')",this.dzHideDelay);}}

function getOffset(VOD,QgL){ var J6q=VOD["offset"+QgL];VOD=VOD.offsetParent; while (VOD!=null){J6q+=VOD["offset"+QgL];VOD=VOD.offsetParent;} return J6q;}

function unescapeTip(qnb){if(qnb==null) return(null);  var l5k;if(document.layers || document.all || document.getElementById){ l5k=qnb.replace(/{q}/g,'"');l5k=l5k.replace(/{a}/g,"'");} return(l5k); }

function setTip(kgU,fyd,YN7,Y5J,WEZ,GNs,ZbT,imC,Y7D,_MQ,c8_,IWQ,rHe,tPI){ var xhs=getTipElement(fyd);if(xhs==null) return; if(WEZ!=null){if(document.layers) xhs.anchor= document.anchors[WEZ]; if(document.all) xhs.anchor= document.anchors(WEZ);  else if(document.getElementById) xhs.anchor= document.anchors[WEZ]; if(xhs.anchor==null)xhs.anchor=-1;}if(GNs==null)GNs=xhs.dzOffsetLeftDefault;if(ZbT==null)ZbT=xhs.dzOffsetTopDefault;if(imC==null)imC=GNs;if(Y7D==null)Y7D=ZbT;if(IWQ==null)IWQ=imC;if(rHe==null)rHe=Y7D;if(document.layers){ 
xhs.dzOffsetLeft=GNs;xhs.dzOffsetTop=ZbT;}if(document.all){ xhs.dzOffsetLeft=imC;xhs.dzOffsetTop=Y7D;} else if(document.getElementById) {xhs.dzOffsetLeft=IWQ;xhs.dzOffsetTop=rHe;}xhs.dzPosition=tPI;xhs.set(kgU,unescapeTip(YN7),unescapeTip(Y5J));xhs.tipMouseOverFunc=_MQ;xhs.tipMouseOutFunc=c8_;xhs.anchor=null;}

function hideTip(LB1){ var FT_=getTipElement(LB1);if(FT_==null) return; FT_.hide();}
function hideDZTip(LB1){ return hideTip(LB1); }
function disableTip(WQE){ var RiN=getTipElement(WQE);if(RiN==null) return; RiN.hide();RiN.dzEnabled=false;}
function enableTip(gbP){ var btY=getTipElement(gbP);if(btY==null) return; btY.dzEnabled=true;}
function holdTip(_zo){ var vGw=getTipElement(_zo);if(vGw==null) return; vGw.dzHold=true;vGw.clearTimeouts();}
function unholdTip(D4t){ var _L1=getTipElement(D4t);if(_L1==null) return; _L1.clearTimeouts();_L1.dzHold=false;}
function NL8(){if(!(document.layers || document.all || document.getElementByID))  return;  var E5u= document.location.hostname;  var _M2=E5u.split("/").slice(0,1).toString();  var E5u=E5u.split(":").slice(0,1).toString().split(".");  var tmW=_M2.split(":").slice(0,1).toString();  var E5u=E5u.slice(E5u.length-2).toString();  var uTi=tmW.replace('_',','); var E5u=E5u.replace(',','_').replace('-','_').toLowerCase(); var rdy=E5u; var bmG="type"; var u0s="undef"; var E5u=eval(bmG+"of dz"+E5u);if(E5u==u0s+"ined") alert("The dzTips may not function properly as 'dz" +rdy+"' is not defined with the license key.\n\nPlease contact www.cyzap.com for more information."); 
}NL8();

function tipGoLink(e,thisLink){
   if (typeof tipLink == 'undefined') tipLink = null;
   var l = thisLink;
   if (typeof l == 'undefined' || l == null || l == '' || l == 'null') l = tipLink;
   if (typeof l == 'undefined' || l == null || l == '' || l == 'null' || l == '#') return;
   l = l.replace(/{Q}/g,'"');  //Represent a quote by {Q} in your link
   l = l.replace(/{A}/g,"'");  //Represent an apostrophe by {A} in your link
   l = unescapeTip(l);
   var command = l.substring(0,2);
   if (command == 'f:'){
     eval(l.substring(2,l.length));
     return true;
   }
   location.href=l;
}

function highlightLayerNS(MD3){tipLayer=MD3.siblingAbove; tipLayer.visibility="visible";tipLayer.captureEvents(Event.MOUSEDOWN);tipLayer.onmousedown=tipGoLink;  var HVB=MD3.parentLayer.document.layers;  var Awf;for(i=0;i<HVB.length;i++){Awf=HVB[i];if(Awf!=MD3.siblingAbove &&Awf.id.charAt(0)=="H"){Awf.visibility="hidden";}}}

function highlightLayerIE(idS){ var dva=idS.parentNode;for(var i=0;i<dva.childNodes.length;i++){ var WL5=dva.childNodes[i];if(WL5.className.substring(WL5.className.length-2,WL5.className.length) =='Hi'){WL5.className=WL5.className.substring(0,WL5.className.length-2); }}idS.className=idS.dzClassName+'Hi';}

function highlightLayer(thisLayer){
  if (document.layers) highlightLayerNS(thisLayer);
  if (document.all || document.getElementById) highlightLayerIE(thisLayer);
}


var a64 = unescape("%64%6f%63%75%6d%65%6e%74%2el%6Fc%61t%69o%6E%2eh%6Fst");

function markCurrentItem(pItem){
  if (document.layers) {
    var c = pItem.parentLayer.currentMenuItem;
    pItem.parentLayer.currentMenuItem=pItem;
    if (c == null || c == pItem) return;
    hideChildren(pItem.parentLayer,'');
  }
  if (document.all || document.getElementById) {
    var c = pItem.parentNode.currentMenuItem;
    pItem.parentNode.currentMenuItem=pItem;
    if (c == null || c == pItem) return;
    hideChildren(pItem.parentNode,'');
  }
}

function makeTextMenuItem(OF5,JYD,Cyh,Ceu,Ao_,lxS,CA4,MLn){ var Cgn;if(document.layers &&parseFloat(navigator.appVersion)<4.7); else {if(lxS!=null||CA4!=null){if(CA4==null)CA4='left';JYD="<table cellpadding=0 cellspacing=0 border=0><tr><td width=99% align=" +CA4+">"+JYD+"</td>\n";JYD=JYD+"<td width=1% align=right>\n";if(lxS!=null)JYD=JYD+"<img "+lxS+">\n"; else JYD=JYD+"<font size=-3>&nbsp;</font>\n";JYD=JYD+"</td>\n";JYD=JYD+"</tr></table>\n";}}if(Ceu==null)Ceu="";if(Ao_==null)Ao_="";if(Cyh==null)Cyh="";if(document.layers){ 
Cgn="<layer id='Lo' class="+OF5+" ";Cgn=Cgn+"onmouseover=\"tipLink='" +Cyh+"';markCurrentItem(this);highlightLayer(this);"+Ceu+"\" ";Cgn=Cgn+">"+JYD+"</layer>";Cgn=Cgn+"<layer id='Hi' visibility=hidden class="+OF5+"Hi ";Cgn=Cgn+"onmouseout=\"this.visibility='hidden';"+Ao_+"\" ";Cgn=Cgn+">"+JYD+"</layer>";if(MLn==null)MLn=7;Cgn=Cgn+"<br><spacer type=vertical size="+MLn+">"; return(Cgn); }if(document.all || document.getElementById){ Cgn="<div class="+OF5+" style='position: relative; padding:3; margin:-1;'  "; 
Cgn=Cgn+"onmouseover=\"this.dzClassName='"+OF5+"';markCurrentItem(this);highlightLayer(this);"+Ceu+"\" ";Cgn=Cgn+"onmouseout=\"this.className='"+OF5+"';"+Ao_+"\" ";Cgn=Cgn+"onclick=\"tipGoLink(null,'" +Cyh+"');\" ";Cgn=Cgn+">"+JYD+"</div>"; return(Cgn); }}

function makeImageMenuItem(className,itemText){
  var t="";
  if (document.layers){
    t = t + "<layer class=" + className + " ";
    t = t + ">" + itemText + "</layer>";
    t = t + "<ilayer visibility=hide>" + itemText + "</ilayer><br>";
    return(t);
  }
  if (document.all || document.getElementById){
    t = "<div class=" + className + " style='position: relative;'  ";
    t = t + ">" + itemText + "</div>";
    return(t);
  }
}

function popDZImage(e,tipName,imgPath,w,h,title,linkURL){

  var widthheight = '';
  if (linkURL == null)
    linkURL = imgPath;
  if (w == null) {
    var img1=new Image();
    img1.src=imgPath;
    if (img1.complete) {
      w = img1.width;
      h = img1.height;
    }     
  }
  if (w != null)  {
    windowWidth = 800;
    windowHeight = 600;
   if (document.layers) {
      windowWidth = window.innerWidth;
      windowHeight = window.innerHeight;
    }
    if (document.all) {
      windowWidth = window.document.body.clientWidth;
      windowHeight = window.document.body.clientHeight;
    } else if (document.getElementById)
    {
        windowWidth = window.innerWidth;
        windowHeight = window.innerHeight;
    }
    windowWidth = windowWidth - 20;
    windowHeight = windowHeight - 20;

    var mRatio = windowWidth / windowHeight;
    var ratio = w / h;

    if (mRatio < ratio) {
      // Adjust Height
      imgWidthScaled = windowWidth < w ? windowWidth : w;
      imgHeightScaled = parseInt(imgWidthScaled / ratio);
      }
    else {
      // Adjust Width
      imgHeightScaled = windowHeight < h ? windowHeight : h;
      imgWidthScaled = parseInt(imgHeightScaled * ratio);
      }

  }
 
  widthheight = "width=" + imgWidthScaled + " height=" + imgHeightScaled;
  var d = "<a href=" + linkURL + " target=\"_blank\"><img border=0 " + widthheight + " src='" + imgPath + "'></a>";
  var t = "";
  if (title != null) t = title;
  setTip(e,tipName,t,d);
}

function openWinTip(e,winurl,winname,winattr,winwidth,winheight){
    winleft=20;
    wintop=20;
    if (document.layers){
        src = e.target;
        wintop = e.screenY + 10;
        winleft = e.screenX + 10;
    }
    else if (document.all){
        wintop = window.event.screenY + 5;
        winleft = window.event.screenX + 10;
    } else if (document.getElementById){
        wintop = e.screenY + 10;
        winleft = e.screenX + 10;
    }

    if (document.layers || document.all || document.getElementById)
    {
      winbottom = wintop + winheight;
      if (winbottom >= screen.height) wintop = screen.height - winheight - 40;
      winright = winleft + winwidth;
      if (winright >= screen.width) winleft = screen.width - winwidth - 40;
      if (winleft < 0) winleft = 0;
      if (wintop < 0) wintop = 0;
    }
    hwnd=open(winurl,winname,winattr+',width='+winwidth+',height='+winheight+',left=' + winleft + ',top=' + wintop);
    if (!hwnd.opener) hwnd.opener=self;
    if (hwnd.focus) hwnd.focus();
    return (hwnd);
} 

function openCal(e,hwndOpener,fldDate){
  winCal=openWinTip(e,'/dzapps/docs/popup/calendar.htm','Calendar','resizable=no',350,280);
  hwndOpener.winCal = winCal;
}

function openGetDates(e,hwndOpener){

//  hwndOpener.fldStartDate=hwndOpener.document.forms[0].StartDate;
//  hwndOpener.fldEndDate=hwndOpener.document.forms[0].EndDate;
  if (!hwndOpener.frmDate) hwndOpener.frmDate=hwndOpener.document.forms[0];
  winDate=openWinTip(e,'/dzapps/docs/popup/getdaterange.htm','Get_Date_Range','resizable=no',320,250);
  hwndOpener.winDate = winDate;
}

// Global vars for passing parameters between 
// the getKey and related functions
var getKey_AcceptKeys;
var getKey_ProcedureName;
var getKey_ProcedureParams;
var getKey_KeyPressed;
var getKey_MatchIndex;
var getKey_MultiKey;
var getKey_GotoControlOnHide;
var getKey_InitialKeyValue;
var getKey_CurrentControl;
var getKey_TipName;

function getKey_Initialize(){
  getKey_AcceptKeys = '';
  getKey_ProcedureName = '';
  getKey_ProcedureParams = '';
  getKey_KeyPressed = '';
  getKey_MatchIndex = -1;
  getKey_MultiKey = false;
  getKey_GotoControlOnHide = null;
  getKey_InitialKeyValue = '';
  getKey_CurrentControl = null;
  getKey_TipName = 'Box';
}

function getKey(event,title,acceptKeys,procedureName,procedureParams,offsetX,offsetY,multiKey,currentControl,gotoControlOnHide,initialKey,tipName){
  if (!document.all) return;
  getKey_Initialize();
  if (multiKey) {
    if ((multiKey).toLowerCase() == 'multikey') getKey_MultiKey = true;
  }
  if (acceptKeys) getKey_AcceptKeys = acceptKeys;
  if (procedureName) getKey_ProcedureName = procedureName;
  if (procedureParams)   getKey_ProcedureParams = procedureParams;
  if (currentControl) getKey_CurrentControl = currentControl; else return; 

  var f = currentControl.form;
  var felems = f.elements;
  var currentControlName = currentControl.name;
  
  for (var i=0;i<felems.length;i++){
    if (currentControlName == felems[i].name) break;
  }
  getKey_GotoControlOnHide = getKey_CurrentControl;
  if (i < felems.length - 1) getKey_GotoControlOnHide = felems[i+1];

  if (gotoControlOnHide) getKey_GotoControlOnHide = gotoControlOnHide;
  if (initialKey) getKey_InitialKeyValue = initialKey;
  if (tipName) getKey_TipName = tipName;
  if (getKey_MultiKey) {  
    onBlurCode = "onblur=\"getKey_hideBox();return\"";
    textSize = 10;
  } else {
    textSize = 3;
    onBlurCode = "onblur=\"setTimeout('getKey_SetFocus()',300);\"";
  }
  
  titleHTML ='';
  if (title) titleHTML = title + ' ';

  var t = "";
  t = t + "<form name=frmAnswer onsubmit='return(false)'>";
  t = t + "<font class=LabelPreviewSmall>" + titleHTML + "</font><input type=text name=ans size=" + textSize + " onkeypress=\"return getKey_OnKeyPress();\" onkeyup=\"return getKey_OnKeyUp();\"" + onBlurCode + ">";
  setTip(event,getKey_TipName,'',t,null,offsetX,offsetY);
  setVisibility(getKey_TipName,'hidden');
  setVisibility(getKey_TipName,'visible');
  setTimeout("getKey_SetFocus();",10);
//  setTimeout("document.all['frmAnswer'].ans.focus()",10);
}

function getKey_SetFocus(){
  if (document.all[getKey_TipName].style.visibility == 'visible') {
    document.all['frmAnswer'].ans.focus();
    document.all['frmAnswer'].ans.value = getKey_InitialKeyValue;
    getKey_InitialKeyValue = '';
  }
}

function getKey_hideBox(){
  if (getKey_GotoControlOnHide) getKey_GotoControlOnHide.focus();
  setVisibility(getKey_TipName,'hidden');
}

function getKey_CallProcedure(){
  getKey_KeyPressed=document.all['frmAnswer'].ans.value;
  if (!getKey_MultiKey) getKey_hideBox();  
  if (getKey_ProcedureName.length > 0) {
    eval(getKey_ProcedureName + "(" + getKey_ProcedureParams + ")");
  }
}

function getKey_OnKeyUp(){
  if (event.keyCode == 8) setTimeout('getKey_Process()',10);
}

function getKey_OnKeyPress(){
  if (event.keyCode == 13 || event.keyCode == 27) {
    var keyCode = event.keyCode;
    event.keyCode = 0;
    getKey_MatchIndex = -1;
    getKey_hideBox();
    if (keyCode == 13) getKey_CallProcedure();
    return false;
  }
  setTimeout('getKey_Process()',10);
}

function getKey_Process(){
  if (getKey_MultiKey) {
    getKey_CallProcedure();
    return;
  }
  var key = document.all['frmAnswer'].ans.value.toLowerCase();
  if (key.length == 0) return;
  if (getKey_AcceptKeys.length > 0) {
    getKey_MatchIndex = getKey_AcceptKeys.indexOf(key)
    if (getKey_MatchIndex == -1) {
      alert("The answer '" + key + "' is not acceptable. Acceptable keys are [" + getKey_AcceptKeys + "].");
      document.all['frmAnswer'].ans.value = '';
      return;
    }
  }
  getKey_CallProcedure();
}

function getKey_SelectOnKeyPress(event,selectControl,gotoControlOnHide,title,offsetX,offsetY,procedureName,procedureParams) {
  if (title == null) title = "<b>Select:</b>";
  if (procedureName == null) procedureName = "getKey_ProcessSelect";
  getKey(event,title,null,procedureName,procedureParams,offsetX,offsetY,'MultiKey',selectControl,gotoControlOnHide,String.fromCharCode(window.event.keyCode));
}

function getKey_SelectOption(list, i) {
  if (list.selectedIndex != i) list.selectedIndex = i;
}

function getKey_ProcessSelect() {
  var list = getKey_CurrentControl;
  var str = getKey_KeyPressed.toLowerCase();
  if (str == "") {
//    getKey_SelectOption(list, 0);
    return;
  }
  for (var i = 0; i < list.options.length; ++i) {
    if (list.options[i].text.toLowerCase().indexOf(str) == 0) {
      getKey_SelectOption(list, i);
      return;
    }
  }
/*
  if (style == 1) {
    for (i = list.options.length - 1; i >= 0; --i) {
      if (str > list.options[i].text.toLowerCase()) {
        select(list, i);
        return;
      }
    }
    select(list, 0);
  }
*/
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

