/*************************************************************************

    chm2web Javascript Help Contents Viewer 1.3
    Copyright (c) 2002-2003 A!K Research Labs (http://www.aklabs.com)  
    http://chm2web.aklabs.com - HTML Help Conversion Utility

    Tested with: Internet Explorer 5, Opera 6, Mozilla 1.2, NN6
    Best viewed with: Internet Explorer 5+, Mozilla 1.x+

    ATTENTION! You can use this script only with web help system 
               generated by chm2web software.  
               
**************************************************************************/

var E3=window,T4=document;var X4={'target': 'content','ic_e'  : 'icons/0.gif','ic_l'  : 'icons/90.gif','ic_2'  : 'icons/91.gif','ic_3'  : 'icons/92.gif','ic_4'  : 'icons/99.gif','ic_18' : 'icons/93.gif','ic_19' : 'icons/94.gif','ic_20' : 'icons/97.gif','ic_26' : 'icons/95.gif','ic_27' : 'icons/96.gif','ic_28' : 'icons/98.gif'};var B8=true;var trees=[];get_element=T4.all ?
function(s_id){return T4.all[s_id]}:
function(s_id){return T4.getElementById(s_id)};function DHTMLSupported(){try{var tmp="";tmp=T4.body.innerHTML;if(tmp.length <=0)return false;}catch(e){return false;}return true;}function GetIcon(P8){if(!P8){cur=this.D6[2];if(this.K0){if((cur=='1')||(cur=='2'))cur='2';if((cur=='3')||(cur=='4'))cur='4';if((cur=='5')||(cur=='6'))cur='6';if((cur=='7')||(cur=='8'))cur='8';};if(!this.K0){if((cur=='1')||(cur=='2'))cur='1';if((cur=='3')||(cur=='4'))cur='3';if((cur=='5')||(cur=='6'))cur='5';if((cur=='7')||(cur=='8'))cur='7';};return 'icons/'+cur+'.gif';}else{return X4['ic_'+((this.M5.length ? 16 : 0)+(this.M5.length && this.K0 ? 8 : 0)+(this.is_last()? 1 : 0)+(this.is_first()? 2 : 0)+2)];}}function TreeNode(R5,S3){this.X4=R5.X4+1;this.D6=R5.D6[S3+(this.X4 ? 3 : 0)];if(!this.D6)return;this.M6=R5.M6;this.R5=R5;this.S3=S3;this.K0=B8;this.A2=this.M6.Y7.length;this.M6.Y7[this.A2]=this;R5.M5[S3]=this;this.M5=[];for(var i=0;i < this.D6.length - 2;i++)new TreeNode(this,i);this.get_icon=GetIcon;this.open=OIt;this.select=FIt;this.init=IIt;this.is_last=function(){return this.S3==this.R5.M5.length - 1};this.is_first=function(){return(this.X4==0)&&(this.S3==0)&&(!this.is_last())};}function OIt(Q1){var M5=[];var D6=get_element('divtree'+this.A2);if(!D6)return;if(B8){T4.write(M5.join(''));for(var i=0;i < this.M5.length;i++){T4.write(this.M5[i].init());this.M5[i].open();}}else{if(!D6.innerHTML){for(var i=0;i < this.M5.length;i++)M5[i]=this.M5[i].init();D6.innerHTML=M5.join('');}D6.style.display=(Q1 ? 'none' : 'block');this.K0=!Q1;var U7=T4.images['j_img'+this.A2],W8=T4.images['i_img'+this.A2];if(U7)U7.src=this.get_icon(true);if(W8)W8.src=this.get_icon();}}function FIt(Z1){if(!Z1){var V0=this.M6.I4;this.M6.I4=this;if(V0)V0.select(true);}var W8=T4.images['i_img'+this.A2];if(W8)W8.src=this.get_icon();get_element('i_txt'+this.A2).style.fontWeight=Z1 ? 'normal' : 'bold';return Boolean(this.D6[1]);}function MakeTree(itm,N2){B8=!DHTMLSupported();this.D6=itm;this.M6=this;this.Y7=[];this.I4=null;this.X4=-1;var K0=new Image(),Q1l=new Image();K0.src=X4['ic_e'];Q1l.src=X4['ic_l'];X4['im_e']=K0;X4['im_l']=Q1l;for(var i=0;i < 64;i++)if(X4['ic_'+i]){var Q1=new Image();X4['im_'+i]=Q1;Q1.src=X4['ic_'+i];}this.select=function(A2){return this.Y7[A2].select();};this.toggle=function(A2){var O2=this.Y7[A2];O2.open(O2.K0)};this.M5=[];for(var i=0;i < itm.length;i++){new TreeNode(this,i);}this.A2=trees.length;trees[this.A2]=this;for(var i=0;i < this.M5.length;i++){T4.write(this.M5[i].init());if(N2 || B8)this.M5[i].open();}}function IIt(){var G5=[],E3=this.R5;for(var i=this.X4;i > 0;i--){G5[i]='<img src="'+X4[E3.is_last()? 'ic_e' : 'ic_l']+'" border="0" align="absbottom">';E3=E3.R5;}return '<table cellpadding="0" cellspacing="0" border="0"><tr><td nowrap>'+G5.join('')+(this.M5.length ?(B8 ? '' : '<a href="javascript: trees['+this.M6.A2+'].toggle('+this.A2+')" >')+'<img src="'+this.get_icon(true)+'" border="0" align="absbottom" name="j_img'+this.A2+'">'+(B8 ? '' : '</a>'): '<img src="'+this.get_icon(true)+'" border="0" align="absbottom">')+'<a href="'+this.D6[1]+'" target="'+X4['target']+'"'+' onclick="return trees['+this.M6.A2+'].select('+this.A2+')" '+(B8 ? '' : ' ondblclick="trees['+this.M6.A2+'].toggle('+this.A2+')"')+' class="t0i" id="i_txt'+this.A2+'"><img src="'+this.get_icon()+'" border="0" align="absbottom" name="i_img'+this.A2+'" class="t0im">&nbsp;'+this.D6[0]+'</a></td></tr></table>'+(this.M5.length ? 
'<div id="divtree'+this.A2+'" style="display:none"></div>' : '');}

