<!--
function FolderTree(instance,folder,destFrame,js){
	this.instanceName=instance;
	this.root=folder;
	this.gifPath='./';
	this.cssPath='./';
	if(js==null){
		this.js='parent.folderTree.';
	}
	else{
		this.js=js+".";
	}
	this.destFrame=destFrame;
	this.autoClose=false;
	this.openFolderOnClick=false;
	this.showExpand=true;
	this.showIcons=true;
	this.multiSelect=false;
	this.connectLevel0=true;
	this.headTags=null;
	this.body=null;
	this.header=null;
	this.footer=null;
	this.title=null;
	this.elements=new Array;
	this.prevActiveStates=new Array;
	this.prevTypes=new Array;
	this.levels=0;
	this.author="Martin Gruschi";
	this.generator="FolderTree - Javascript (C) 2000 by Martin Gruschi";
	this.initialized=false;
	this.written=false;
	this.reportedInconsistence=false;
	this.initialize=initializeFT;
	this.write=writeFT;
	this.setGifPath=setGifPathFT;
	this.setCssPath=setCssPathFT;
	this.setAutoClose=setAutoCloseFT;
	this.setMultiSelect=setMultiSelectFT;
	this.setConnectLevel0=setConnectLevel0FT;this.setHeader=setHeaderFT;
	this.setFooter=setFooterFT;
	this.setTitle=setTitleFT;
	this.changeState=changeStateFT;
	this.changeStateWW=changeStateWWFT;
	this.setHeadTags=setHeadTagsFT;
	this.setBody=setBodyFT;
	this.setShowIcons=setShowIconsFT;
	this.setShowExpand=setShowExpandFT;
	this.setOpenFolderOnClick=setOpenFolderOnClickFT;
	this.setActiveByIdx=setActiveByIdxFT;
	this.getItemByName=getItemByNameFT;
	this.setNotActiveAll=setNotActiveAllFT;
}

function setNotActiveAllFT(idx){if(this.initialized==false){alert("FolderTree "+
"is not setup properly!");return;}for(var i=0;i<this.elements.length;i++){node=this.elements[i];node.isActive=false;if(this.autoClose==true){if((Math.abs(node.type%2)==0)&&(node.type<0)){node.type-=1;}}this.changeStateWW(idx,false,true);}}

function setActiveByIdxFT(idx){if(this.initialized==false){alert("FolderTree is not setup properly!");return;}node=this.elements[idx];node.isActive=false;if(this.autoClose==true){if((Math.abs(node.type%2)==0)&&(node.type<0)){node.type-=1;}}
this.changeStateWW(idx,false,true);}

function getItemByNameFT(name){if(this.initialized==false){alert("FolderTree is not setup properly!");return;}for(var i=0;i<this.elements.length;i++){if(this.elements[i].name==name){return(this.elements[i]);}
}return null;}

function setOpenFolderOnClickFT(state){this.openFolderOnClick=state;}

function setShowExpandFT(state){this.showExpand=state;}

function setShowIconsFT(state){this.showIcons=state;}

function setBodyFT(bodyTag){this.body=bodyTag;}

function setHeadTagsFT(headTags){this.headTags=headTags;}

function changeStateFT(idx,changeFolderState,setActive){
	this.root.changeState(idx,changeFolderState,setActive);
	this.write();
}

function changeStateWWFT(idx,changeFolderState,setActive){
this.root.changeState(idx,changeFolderState,setActive);
}

function setGifPathFT(gifPath){this.gifPath=gifPath;}

function setCssPathFT(cssPath){this.cssPath=cssPath;}

function setAutoCloseFT(autoClose){this.autoClose=autoClose;}

function setMultiSelectFT(multiSelect){this.multiSelect=multiSelect;}

function setConnectLevel0FT(connectLevel0){this.connectLevel0=connectLevel0;}

function setHeaderFT(header){this.header=header;}

function setFooterFT(footer){this.footer=footer;}

function setTitleFT(title){this.title=title;}

function initializeFT(){this.author=String.fromCharCode(77,97,114,116,0x69,110,32,0x47,114,117,0x73,99,104,105);this.root.initialize(0,0,this);this.reportedInconsistence=false;for(var i=0;
i<this.elements.length;i++){this.prevActiveStates[i]=this.elements[i].isActive;this.prevTypes[i]=this.elements[i].type;}this.initialized=true;}




function writeFT(){if(this.initialized==false){alert("FolderTree is not setup properly!");return;}
var ftChanged=false;for(var i=0;i<this.elements.length;i++){if((this.prevActiveStates[i]!=this.elements[i].isActive)||(this.prevTypes[i]!=this.elements[i].type)){ftChanged=true;}}if((ftChanged!=true)&&(this.written==true)){return;}this.written=true;
var test=this.author.concat(this.generator);var sum=0,sam=2;
for(var i=0;i<test.length;i++){
sum+=test.charCodeAt(i);}
var s=sum/52;
var doc=this.destFrame.window.document;
doc.open();
doc.writeln('<HTML><head>');
/*
doc.write(String.fromCharCode(60,33,45,45,32,77,97,114,116,0x69,110,32,0x47,114)+
test.slice((sam%100)-2,(Math.floor(-sam*2))%100+4));
doc.writeln(String.fromCharCode(117,0x73,99,104,105,32,45,45,62));
doc.write(String.fromCharCode(60,77,69,84,65,32,110,97,109,101,61,34,97));
doc.write(String.fromCharCode(117,116,104,111,114,34,32,99,111));
doc.write(String.fromCharCode(110,116,101,110,116,61,34,77,97,114,116,0x69,110,32,0x47));
doc.writeln(String.fromCharCode(114,117,0x73,99,104,105,34,62));
doc.writeln(String.fromCharCode(32));
*/
if(this.title!=null){
	doc.write('<title>');
	doc.write(this.title);
	doc.writeln('</title>');
}
var t=Math.floor(s);
if(this.headTags!=null){
	doc.writeln(this.headTags);
}
doc.writeln('<link rel="stylesheet" type="text/css" href="'+this.cssPath+'ft.css">'+'</head>');
var a=t%17;
if(this.body==null){
	doc.writeln('<body>');
}
else{
	doc.writeln(this.body);
}
if((t<76)||((((Math.pow(-1,Math.floor((a=t%100)+2/9)+1))*11*sum)%29)!=15)){doc.write(String.fromCharCode(85,110,97,117,116,104,111,114,105,122,101,100));
doc.write(String.fromCharCode(32,117,115,101,32,111,102));
doc.write(String.fromCharCode(60,66,82,62,77,97,114,116,105,110,32,71));
doc.write(String.fromCharCode(114,117,115,99,104,105,38,97,99,117));
doc.write(String.fromCharCode(116,101,59,115,60,66,82,62));
doc.write(String.fromCharCode(70,111,108,100,101,114,116,114,101,101,45,74,97));
doc.write(String.fromCharCode(118,97,115,99,114,105,112,116,60,66,82,62));}
if(this.header!=null){
	doc.write(this.header);
}
this.initialized=a;
doc.writeln('<table width="1%" border="0" cellpadding="0" cellspacing="0">');
if((t>40)&&(Math.round((((Math.floor((t*11)/100))+((t*11)%100))%321)/55)==2)){this.root.write();}
doc.writeln('</table>');
if(this.footer!=null){
	doc.write(this.footer);
}
doc.writeln('</body>');
doc.writeln('</html>');
doc.close();
for(var i=0;i<this.elements.length;i++){
	this.prevActiveStates[i]=this.elements[i].isActive;
	this.prevTypes[i]=this.elements[i].type;
}
}


function Node(name,description,iconIsClickable,command,statusText,isActive,type){
	this.name=name;
	this.type=type;
	this.description=description;
	if(command==null){
		this.command='';
	}
	else{
		this.command=command;
	}
	if(statusText!=null){
		this.statusText=statusText;
	}
	else{
		this.statusText=description;
	}
	this.index=-1;
	this.level=-1;
	if(isActive==null){
		this.isActive=false;
	}
	else{
		this.isActive=isActive;
	}
	this.parent=null;
	this.ownerFolderTree=null;
	this.iconIsClickable=iconIsClickable;
	this.childNode=null;
	this.nextNode=null;
	this.prevNode=null;
	this.addChild=addChildN;
	this.addNext=addNextN;
	this.write=writeN;
	this.initialize=initializeN;
	this.changeState=changeStateN;
}

function changeStateN(idx,changeFolderState,setActive){if(setActive==true){if
(this.ownerFolderTree.multiSelect==false){this.isActive=false;if(this.index==idx){this.isActive=true;}}else{if(this.index==idx){if((this.isActive!=true)||(changeFolderState==true)){this.isActive=true;}else{this.isActive=false;}}}}if
(changeFolderState==true){if(this.index==idx){if(this.type<0){this.type=(this.type-1)+2*(Math.abs(this.type%2));}}}if(this.ownerFolderTree.autoClose==true){if(this.index!=idx){if((Math.abs(this.type%2)==1)&&(this.type<0)){this.type+=1;}}}if
(this.isActive==true){var node=this.parent;while(node!=null){node.type=(node.type-1)+(Math.abs(node.type%2));node=node.parent;}}if(this.childNode!=null){this.childNode.changeState(idx,changeFolderState,setActive);}if(this.nextNode!=null){
this.nextNode.changeState(idx,changeFolderState,setActive);}}

function addNextN(node){lastNode=this;while(lastNode.nextNode!=null){lastNode=lastNode.nextNode;}node.nextNode=lastNode.nextNode;lastNode.nextNode=node;node.prevNode=lastNode;}

function addChildN(node){if(this.childNode==null){this.childNode=node;}else{childNode=this.childNode;while(childNode.nextNode!=null){childNode=childNode.nextNode;}childNode.nextNode=node;node.prevNode=childNode;}node.parent=this;}

function initializeN(idx,level,ownerFolderTree){if(this.index!=-1){if(ownerFolderTree.reportedInconsistence==false){ownerFolderTree.win.alert('Inconsistences in foldertree!');ownerFolderTree.reportedInconsistence=true;}}this.index=idx;this.level=level;
ownerFolderTree.elements[idx]=this;if(ownerFolderTree.levels<level+1){ownerFolderTree.levels=level+1;}this.ownerFolderTree=ownerFolderTree;if(this.childNode!=null){idx=this.childNode.initialize(++idx,this.level+1,ownerFolderTree);}if(this.nextNode!=null)
{idx=this.nextNode.initialize(++idx,this.level,ownerFolderTree);}return idx;}

function writeN(){
var doc=this.ownerFolderTree.destFrame.window.document;
var s=this.ownerFolderTree.initialized;
doc.writeln('<tr><td><table width="1%" cellpadding="0" '+'cellspacing="0" border="0"><tr>');
var i;
var node;
var fileName='';
var tdId;
var txtId;
if(this.isActive==true){tdId='bgActive';txtId='txtActive';}else{tdId='bgNotActive';txtId='txtNotActive';}var g=s%5;for(i=0;i<this.level;i++){doc.write('<TD width="1%">'+
'<IMG src="'+this.ownerFolderTree.gifPath);
node=this;
while(node.level!=i){node=node.parent;}
if((node.nextNode==null)||((node.level==g-2)&&(this.ownerFolderTree.connectLevel0==false))){fileName='bl';}else{fileName='lv';}doc.writeln(fileName+
'.gif" border="0"></TD>');}var g=s%4;if(this.ownerFolderTree.showExpand==true){doc.write('<TD width="1%">');if(this.type<0){doc.write('<A HREF="javascript:'+this.ownerFolderTree.js+this.ownerFolderTree.instanceName+'.changeState('+this.index+', true, '+
'false);" onMouseOut="status=\'\';return true;" onMouseOver="status=\'\';return true;" >');}doc.write('<IMG src="'+this.ownerFolderTree.gifPath);fileName='';if(this.type>0){fileName='l';}else{switch(Math.abs((this.type+g-1)%2)){case 0:
fileName='p';break;case 1:fileName='m';break;}}if((this.level==0)&&(this.ownerFolderTree.connectLevel0==false)){fileName=fileName.concat('s');}else{if((this.prevNode==null)&&(this.parent==null)){if(this.nextNode==null){fileName=
fileName.concat('s');}else{fileName=fileName.concat('f');}}else{if(this.nextNode==null){fileName=fileName.concat('l');}else{fileName=fileName.concat('m');}}}doc.write(fileName+'.gif" border="0">');if(this.type<0){doc.write('</A>');}
doc.writeln('</TD>');}if(this.ownerFolderTree.showIcons==true){doc.write('<TD width="1%">');if(this.iconIsClickable==true){doc.write('<A HREF="javascript:'+this.command+this.ownerFolderTree.js+this.ownerFolderTree.instanceName+'.changeState('+this.index+
', ');if((this.ownerFolderTree.openFolderOnClick==true)&&(this.type<0)&&(this.type%2==0)){doc.write('true');}else{doc.write('false');}doc.write(',true);"');doc.write(' onMouseOver="status=\''+this.statusText+'\';return true;" onMouseOut="status=\'\';'+
'return true;"');doc.write('>');}doc.write('<IMG src="'+this.ownerFolderTree.gifPath);if(this.type<0){if((this.type%2)+3!=g){fileName='fo';}else{fileName='fc';}}else{fileName='d';}if(this.type>(Math.round(s/13))){fileName=
fileName.concat(this.type-1);}if(this.type<-3){fileName=fileName.concat(-1-(Math.floor((this.type+1)/2)));}doc.write(fileName+'.gif" border="0">');if(this.iconIsClickable==true){doc.write('</A>');}doc.writeln('</TD>');}doc.write('<TD');var colspan=
this.ownerFolderTree.levels-this.level;if(colspan>1){doc.write(' colspan="'+colspan+'"');}doc.write(' valign="center">');doc.write('<TABLE width="100%" cellpadding="1" cellspacing="0" border="0"><TR>');doc.write('<TD width="1%"><IMG src="'+
this.ownerFolderTree.gifPath+'sp.gif" border="0" width="3"></TD>');doc.write('<TD width="1%" nowrap id="'+tdId+'">');doc.write('<A HREF="javascript:'+this.command+this.ownerFolderTree.js+this.ownerFolderTree.instanceName+'.changeState('+this.index+
',');if((this.ownerFolderTree.openFolderOnClick==true)&&(this.type<0)&&(this.type%2==0)){doc.write('true');}else{doc.write('false');}doc.write(',true);"');doc.write(' onMouseOver="status=\''+this.statusText+'\';return true;" onMouseOut="status=\'\';'+
'return true;"');doc.write('>');doc.write('<SPAN id="'+txtId+'">'+this.description);doc.write('</SPAN></A></TD><TD></TD></TR></TABLE>');doc.writeln('</TD>');doc.writeln('</tr></table></td></tr>');if((Math.abs(this.type%2)==1)&&(this.type<0)){if
(this.childNode!=null){this.childNode.write();}}if(this.nextNode!=null){this.nextNode.write();}return;}

function newFolder(name,description,iconIsClickable,command,statusText,isActive,type,opened){
	if(type==null){
		type=-2;
	}
	else{
		type=(-2*(type+1));
	}
	if(opened==true){
		type-=1;
	}
	return(new Node(name,description,iconIsClickable,command,statusText,isActive,type));
}

function newDocument(name,description,iconIsClickable,command,statusText,isActive,type){if(type==null){return (new Node(name,description,
iconIsClickable,command,statusText,isActive,1));}else{return(new Node(name,description,iconIsClickable,command,statusText,isActive,type+1));}}

//function getID(){return this.id;}

//-->

