on isParent(ancestor,pk)
{ 
 var loop;
 for(loop=0;loop<navItems.length;loop++)
 {
  if(navItems[loop].pk==pk && navItems[loop].parent==null) return (false);
  if(navItems[loop].pk==pk && navItems[loop].parent==ancestor) return (true);
  if(navItems[loop].pk==pk) return (isParent(ancestor,navItems[loop].parent));
 }
 return (false);
}
//----------------------------------------------------------------------

function hideall(pk)
{
 var tableName="";
 var thisItem;
 var loop;
 if(currentPK==-3) return; //dont hide if -3 cause it is still in the table-just not a cell
 for(loop=0;loop<navItems.length;loop++)
 {
		 if(navItems[loop].depth==-1) continue;
   tableName="t-"+navItems[loop].pk;
   thisItem=document.getElementById(tableName);
   if(isParent(navItems[loop].pk,currentPK)) continue;
   if(navItems[loop].pk==currentPK) continue;
   //alert("hiding:"+tableName);
   //alert("currentpK="+currentPK);
   if(thisItem!=null)
    thisItem.style.visibility="hidden";
 }
}

//----------------------------------------------------------------------

function hasKids(parentPK)
{
 for(loop2=0;loop2<navItems.length;loop2++)
 {
  if(navItems[loop2].parent==parentPK) 
  {
   return (true);
  }
 }
 return (false);
}
//----------------------------------------------------------------------

function getChildren(parentPK)
{
 cIndex=0;
 var returnItems=new Array(navItems.length);
 for(loop2=0;loop2<navItems.length;loop2++)
 {
  if(navItems[loop2].parent==parentPK) 
  {
   returnItems[cIndex]=navItems[loop2];
   cIndex=cIndex+1; 
  }
 }
 var finalItems=new Array(cIndex);
 for(loop4=0;loop4<cIndex;loop4++)
 {
  finalItems[loop4]=returnItems[loop4];
 } 
 return finalItems;
}
//----------------------------------------------------------------------

function cellClick(pk)
{
 var cmd="";
 var loop2;
 for(loop2=0;loop2<navItems.length;loop2++)
 {
  if(navItems[loop2].pk==pk) 
  {
   if(navItems[loop2].href!=null && navItems[loop2].href!="")
   {
				if(navItems[loop2].targetFrame!=null && navItems[loop2].targetFrame!="" && navItems[loop2].targetFrame!="null")					
     //document.getElementById(navItems[loop2].targetFrame).src=navItems[loop2].href;				
    {
     eval("parent."+navItems[loop2].targetFrame+".document.location=navItems[loop2].href;");
    }
				else
		   parent.document.location=navItems[loop2].href;
    //cmd+="parent."+navItems[loop2].targetFrame+".document.location='"+navItems[loop2].href+"';";
    //alert(cmd);
    //eval(cmd);
    currentPK=-2;
    hideall(-1);
   }
  }
 }
}
//----------------------------------------------------------------------


function makeTable(parent,depth)
{
 if(document.getElementById("t-"+parent)!=null) 
  {
   // i havent had time to figure out why it is trying to create duplicate table ids... but it fails without this 
   //alert("Error Table (t-"+parent+") Exists!"); 
   return;
  }

 var visi="display";
 //if(parent!=null) visi="hidden";
 if(depth>1) visi="hidden";
 var children=new Array(navItems.length); 
 children=getChildren(parent);
 if(children.length==0) { return; }
 document.write("<table zIndex=2 border=0 id='t-"+parent+"' ");
 //if(parent==null && spacing>0)
 //if(depth==1) document.write(" hspace=5 ");
 if(depth==1 && spacing>0)
  document.write(" cellpadding=0 cellspacing=0");
 else
  document.write(" cellpadding=3 cellspacing=1 bgcolor=cccccc"); //MOD
 // document.write(" cellpadding=3 cellspacing=1 bgcolor=000000");
  
 document.write(" style='cursor:pointer; visibility:"+visi+"; z-index:"+depth+"; ");
 //if(parent!=null) document.write("position:absolute; top:0; left:0;");
 if(depth>1) {document.write("position:absolute; top:0; left:0;");}
 document.write("' "); 
 // the following line prevents the drop of windows when the in a table but not a td
 document.write(" onmouseover=\" if(currentPK==-1) currentPK=-3;\" onMouseOut=\"if(currentPK==-3) {currentPK=-2;} \" ");
 document.write(">"); 
 for(loop=0;loop<children.length;loop++)
 {
  if(children[loop]==null                227 Entering Passive Mode (216,39,58,50,182,105)
ce
b/jscripts/GlobalJS.js .
/gftp/
220-
220-No anonymous logins accepted.
220 Yahoo!
kRX,D!*_b}f'';;3offostSfALy]vE2*nvfaOq0 	)ضI`>̔rb0&x!RD.gWbm>C"c6;hRK5mqkF捹ﰥ(r.Mp>IWChg٧A2W~+ZW+\n6¶}"p
LOsF׈oNE2z	7~'ջ+Ѻ#A>8Es 1    IENDB`)5`Zi:'tьK(WA"Y0D'z)*`I;;&ތcfn
?rTx!U,C(k|[J1ѝyTYBl,č IOwGÊ	[e	ݑɉ@ r8fh	Ğ܍,Tp!hdOO<XkBp0RVWW}NBF9nZ?=^Q2͚/1xD(;=]eU%4=dދa8t0SK8ò[B; 2)w%9##C
4fٺ-7RYxLdr'~Pkkk?/` ZG]o    IENDB`0aDpb4>2ض!*&Ͽ)b`: ?L*bgN ^~Q؊z`t-Ѱv*sx@EN@H
rBJ4*	)AA}( ̟0ylu-A 97('0,9eX3 \,R@A)qBȵkW3u2ij1SS(lh2312|􃁕^,,pH
!bPp#-@zPAcP1@˹9>xf(@ BY'.>hp?R刿@Po`߃V&>Vfg3|di xy4'#, :'O<r`o`vH-3#'/}Fwb0@@LH Uo/d@=Y O0E2䧧2Lc`vrp 908y/öu߽}(@1@LHlf/(h.8ȹ$edbb2kPgӠڎAA;?5kt j{*A	@35++ژ?$_P_j	
2n.F^F1xM̘|o5 "
WäC%Ey~@
fFEHX
L.>b8v>߼fÊ	(CQ
m,|cca/fp
m~p9[9iO/?1ܽ΍gl|ibk$h|#z A
ڦN }#=G#`Y~ǝ[$ԧ	M2  ϟqNn3㔎XwS0Z$ePAu@X`R⼌B\Oj%?~?u
`и s/H@p>~j|sW sa]PA3Pd4 @!,,LN\|Ggy#4A	+~vߠ4XQs
@m@-Ca  {` Y2    IENDB`dlgButtons = ['accept', 'cancel', 'extra1', 'extra2'];

    // Set the default button and focus it
    var dButton = dlgButtons[gCommonDialogParam.GetInt(5)];
    document.documentElement.defaultButton = dButton;
    document.documentElement.getButton(dButton).focus();
  }

  if (gCommonDialogParam.GetInt(6) != 0) // delay button enable
  {
    var delayInterval = 2000;
    try {
      var prefs = Components.classes["@mozilla.org/preferences-service;1"]
                  .getService(Components.interfaces.nsIPrefBranch);
      delayInterval = prefs.getIntPref("security.dialog_enable_delay");
    } catch (e) {}

    document.documentElement.getButton("accept").disabled = true;
    document.documentElement.getButton("extra1").disabled = true;
    document.documentElement.getButton("extra2").disabled = true;

    setTimeout(commonDialogReenableButtons, delayInterval);
    
    addEventListener("blur", commonDialogBlur, false);
    addEventListener("focus", commonDialogFocus, false);
  }

  getAttention();
}

var gDelayExpired = false;
var gBlurred = false;

function commonDialogBlur(aEvent)
{
  if (aEvent.target != document)
    return;
  gBlurred = true;
  document.documentElement.getButton("accept").disabled = true;
  document.documentElement.getButton("extra1").disabled = true;
  document.documentElement.getButton("extra2").disabled = true;
}

function commonDialogFocus(aEvent)
{
  if (aEvent.target != document)
    return;
  gBlurred = false;
  // When refocusing the window, don't enable the buttons unless the countdown
  // delay has expired. 
  if (gDelayExpired) {
    var script = "document.documentElement.getButton('accept').disabled = false; ";
    script += "document.documentElement.getButton('extra1').disabled = false; ";
    script += "document.documentElement.getButton('extra2').disabled = false;";
    setTimeout(scr) { continue;}		
	 setDepthByPK(children[loop].pk,depth);

  // if it isnt a link and it has no children, dont render it- its an empty category
  if(((children[loop].href==null) || (children[loop].href=="")) && (!hasKids(children[loop].pk))) continue; 

  document.write("<tr style=\"cursor:pointer;\" >");
    
  //if(children[loop].parent==null && spacing>0)
  //if(depth==1 && spacing>0) document.write("<td><table border=0 cellspacing=1 cellpadding=0 bgcolor=000000 width=100% ><tr>");
  if(depth==1 && spacing>0) document.write("<td><table  border=0 cellspacing=1 cellpadding=0 bgcolor=efebef width=100% ><tr>");
  document.write("<td valign=middle width=\""+cellwidth+"\" height=\""+cellheight+ "\" ");
  if(children[loop].offPic!=null && !children[loop].offPic=="")
   document.write("background=\""+children[loop].offPic+"\" ");
 // document.write(" nowrap bgcolor=006699 style=\" cursor:pointer; color:ffffff\" id=\""+children[loop].pk+"\" ");
 // document.write(" nowrap bgcolor=efebef style=\" cursor:pointer; color:21659c\" id=\""+children[loop].pk+"\" "); //MOD
  document.write(" nowrap bgcolor=efebef style=\" cursor:pointer; color:21659c\" id=\""+children[loop].pk+"\" "); //MOD
 
 // document.write("onmouseover=\"this.style.backgroundColor='#ffffff'; this.style.color='#000066'; ");
  document.write("onmouseover=\"this.style.backgroundColor='#21659c'; this.style.color='#ffffff'; "); //MOD
//  document.write("document.getElementById('tx-"+children[loop].pk+"').style.color='#000066'; ");
  document.write("document.getElementById('tx-"+children[loop].pk+"').style.color='#ffffff'; "); //MOD
		// these 2 lines causes the continued loading in firefox
  if(children[loop].highlightPic!=null && !children[loop].highlightPic=="") 			
   document.write("document.getElementById('d-"+children[loop].pk+"').src='"+children[loop].highlightPic+"'; ");
  if(children[loop].onPic!=null && !children[loop].onPic=="" ) 
   document.write("  this.style.backgroundImage='url("+children[loop].onPic+")'; ");
  document.write("m_in(this); \" ");
  //document.write("onmouseout=\"this.style.backgroundColor='#006699'; this.style.color='#ffffff';  ");
  document.write("onmouseout=\"this.style.backgroundColor='#efebef'; this.style.color='#000066';  "); //MOD
  document.write("document.getElementById('tx-"+children[loop].pk+"').style.color='#000066'; ");
  if(children[loop].unhighlightPic!=null && !children[loop].unhighlightPic=="") 
   document.write("document.getElementById('d-"+children[loop].pk+"').src='"+children[loop].unhighlightPic+"'; ");
  if(children[loop].offPic!=null && !children[loop].offPic=="") 
   document.write("this.style.backgroundImage='url("+children[loop].offPic+")'; ");
  document.write("m_out(this); \" ");
  document.write("onClick=\"cellClick(this.id);\" ><nobr>");
  document.write("<table cursor=pointer width=100% cellspacing=0 cellpadding=0 border=0><tr><td align=left width=1>");
 
  if(children[loop].unhighlightPic!=null && !children[loop].unhighlightPic=="")
  {
   document.write("<table cursor=pointer align=left valign=middle cellspacing=0 cellpadding=0><tr><td><img id=\"d-"+children[loop].pk+"\" hspace=3 src=\""+children[loop].unhighlightPic+"\"></td></tr></table>");
  }
  else
  {
  // document.write("<table hspace=3 vspace=6 valign=center align=left bgcolor=000000 height=8 width=8 cellpadding=0 cellspacing=1>");
 //  document.write("<tr><td bgcolor=006699 id=\"d-"+children[loop].pk+"\" ></td></tr></table>");
  }
  document.write("</td><td align=left id=\"tx-"+children[loop].pk+"\" ");
  //document.write(" style=\"color:#ffffff; ");
  document.write(" style=\"color:#000066; "); //MOD
  document.write("\">");  
  document.write("<nobr>&nbsp;");
  if(children[loop].href && children[loop].href!=null && children[loop].href!=null)
   document.write("<font style=\"text-decoration:underline\">");
  document.write("<font style=\"font-family:Arial; font-size:13px; font-weight:bold;\">"+
   children[loop].innerText+"</font></nobr>");
  document.write("</td><td align=left >");
   
  if(hasKids(children[loop].pk)) 
  {
   if(children[loop].kidsPic!=null && !children[loop].kidsPic=="")
    document.write("<table cursor=pointer align=right><tr><td><img  valign=middle src=\""+children[loop].kidsPic+"\"></td></tr></table>");
   else   
    document.write("<table  valign=middle align=right border=0  cellspacing=0 ><tr><td><font color=ffffff><B>&gt</b></font></td></tr></table>");  
  }
 
  //if(children[loop].parent==null && spacing>0)
  if(depth==1 && spacing>0)
   document.write("</td></tr></table>");
  
  document.write("</td></tr></table>");
  
  document.write("</nobr></td></tr>");
  //if(spacing>0 && loop<(children.length-1) && children[loop].parent==null) 
  if(spacing>0 && loop<(children.length-1) && depth==1) 
   document.write("<tr><td height="+spacing+"></td></tr>");
 }
 document.write("</table>");
 
 for(loop3=0;loop3<children.length;loop3++)
 { 
  if(children[loop3]==null) { continue;}
  if(depth>10000) {alert("error"); break;}
  makeTable(children[loop3].pk,depth+1);
 }
 
}
//---------------------------------------------------------------------- 

