function Folder(a,b,c){this.desc=a;this.hreference=b;this.id=-1;this.isLastNode=this.nodeImg=this.iconImg=this.navObj=0;this.isOpen=!0;this.iconSrc="../image/folderopen.gif";this.children=[];this.nChildren=0;this.image=c;this.initialize=initializeFolder;this.setState=setStateFolder;this.addChild=addChild;this.createIndex=createEntryIndex;this.hide=hideFolder;this.display=display;this.renderOb=drawFolder;this.subEntries=folderSubEntries;this.outputLink=outputFolderLink}
function initializeFolder(a,b,c){var d=this.nChildren;this.createIndex();var e="<a href='javascript:clickOnNode("+this.id+")'>";0<a?b?(this.renderOb(c+e+"<img name='nodeIcon"+this.id+"' src='../image/mlastnode.gif' width=16 height=20 border=0></a>"),c+="<img src='../image/blank.gif' width=16 height=20>",this.isLastNode=1):(this.renderOb(c+e+"<img name='nodeIcon"+this.id+"' src='../image/mnode.gif' width=16 height=20 border=0></a>"),c+="<img src='../image/vertline.gif' width=16 height=20>",this.isLastNode=
0):this.renderOb("");if(0<d)for(a+=1,b=0;b<this.nChildren;b++)b==this.nChildren-1?this.children[b].initialize(a,1,c):this.children[b].initialize(a,0,c)}function setStateFolder(a){a!=this.isOpen&&(this.isOpen=a,propagateChangesInState(this))}
function propagateChangesInState(a){var b;if(a.isOpen)for(a.nodeImg&&(a.nodeImg.src=a.isLastNode?"../image/mlastnode.gif":"../image/mnode.gif",a.iconImg.src="../image/folderopen.gif"),b=0;b<a.nChildren;b++)a.children[b].display();else for(a.nodeImg&&(a.nodeImg.src=a.isLastNode?"../image/plastnode.gif":"../image/pnode.gif",a.iconImg.src="../image/"+a.image+"Folder.gif"),b=0;b<a.nChildren;b++)a.children[b].hide()}function addChild(a){this.children[this.nChildren]=a;this.nChildren++;return a}
function hideFolder(){"none"!=this.navObj.style.display&&(this.navObj.style.display="none",this.setState(0))}
function drawFolder(a){doc.write("<table ");1==browserVersion&&doc.write(" id='folder"+this.id+"' style='position:block;' ");doc.write(" border=0 cellspacing=0 cellpadding=0>");doc.write("<tr><td>");doc.write(a);this.outputLink();doc.write("<img name='folderIcon"+this.id+"' ");doc.write("src='"+this.iconSrc+"' align=bottom border=0></a>");doc.write("</td><td valign=middle nowrap>");USETEXTLINKS?(this.outputLink(),doc.write(this.desc+"</a>")):doc.write(this.desc);doc.write("</td>");doc.write("</table>");
this.navObj=doc.all["folder"+this.id];this.iconImg=doc.all["folderIcon"+this.id];this.nodeImg=doc.all["nodeIcon"+this.id]}function outputFolderLink(){this.hreference?(doc.write("<a href='"+this.hreference+'\' TARGET="CONTENTS" '),doc.write("onClick='javascript:clickOnFolder("+this.id+")'"),doc.write(">")):doc.write("<a>")}function folderSubEntries(){var a,b=this.nChildren;for(a=0;a<this.nChildren;a++)this.children[a].children&&(b+=this.children[a].subEntries());return b}
function Item(a,b,c){this.desc=a;this.link=b;this.id=-1;this.iconImg=this.navObj=0;this.iconSrc="../image/"+c+"File.gif";this.initialize=initializeItem;this.createIndex=createEntryIndex;this.hide=hideItem;this.display=display;this.renderOb=drawItem}function initializeItem(a,b,c){this.createIndex();0<a?b?this.renderOb(c+"<img src='../image/lastnode.gif' width=16 height=20>"):this.renderOb(c+"<img src='../image/node.gif' width=16 height=20>"):this.renderOb("")}
function hideItem(){"none"!=this.navObj.style.display&&(this.navObj.style.display="none")}
function drawItem(a){doc.write("<table ");doc.write(" id='item"+this.id+"' style='position:block;' ");doc.write(" border=0 cellspacing=0 cellpadding=0>");doc.write("<tr><td>");doc.write(a);doc.write("<a href="+this.link+">");doc.write("<img id='itemIcon"+this.id+"' ");doc.write("src='"+this.iconSrc+"' border=0>");doc.write("</a>");doc.write('</td><td valign="middle" nowrap="nowrap">');USETEXTLINKS?doc.write("<a href="+this.link+">"+this.desc+"</a>"):doc.write(this.desc);doc.write("</table>");2==browserVersion&&
doc.write("</layer>");1==browserVersion?(this.navObj=doc.all["item"+this.id],this.iconImg=doc.all["itemIcon"+this.id]):2==browserVersion&&(this.navObj=doc.layers["item"+this.id],this.iconImg=this.navObj.document.images["itemIcon"+this.id],doc.yPos+=this.navObj.clip.height)}function display(){this.navObj.style.display="block"}function createEntryIndex(){this.id=nEntries;indexOfEntries[nEntries]=this;nEntries++}function clickOnFolder(a){indexOfEntries[a].isOpen||clickOnNode(a)}
function clickOnNode(a){a=indexOfEntries[a];a.setState(!a.isOpen)}function initializeDocument(){browserVersion=doc.all?1:doc.layers?2:0;aux0.initialize(0,1,"");aux0.display();doc.write("<layer top="+indexOfEntries[nEntries-1].navObj.top+">&nbsp;</layer>");clickOnNode(0);clickOnNode(0)}function gFld(a,b,c){return folder=new Folder(a,b,c)}function gLnk(a,b,c,d){fullLink="'"+c+"' target=\""+a+'"';return linkItem=new Item(b,fullLink,d)}function insFld(a,b){return a.addChild(b)}
function insDoc(a,b){a.addChild(b)}USETEXTLINKS=1;indexOfEntries=[];nEntries=0;doc=document;selectedFolder=browserVersion=0;
