// Title: Tigra Tables PRO
// URL: http://www.softcomplex.com/products/tigra_tables_pro/
// Version: 1.3
// Date: 08-27-2003 (mm-dd-yyyy)
// Technical Support: support@softcomplex.com (specify product title and order ID)
// Notes: Registration needed to use this script legally.
//	Visit official site for details.
// ---------------------------------

// Please, specify a location of Tigra Tables PRO files if differs
var path_to_files = 'ttp_files/';

// No changes needed below this line
// ---------------------------------
var TTL=document,Ttables=[],NUM='NUM',STR='STR',TT4={'TT5':'tabTable','TT8':'tabCaption','TT0H':'tabCaptionText','TT0I':'tabSortArrowCell','TTB':'tabHeadCell','TTK':'tabFootCell','body':'tabBody','TTD':'tabPaging','TT0O':'tabPagingText','TT0N':'tabPagingArrowCell','TT0J':'tabFilter','TT0K':'tabFilterPattern','TT0L':'tabFilterSelect'};function TTy(a,TT00){return a*1<TT00*1}function TT01(a,TT00){return a+''<TT00+''}function TTh(id,TTE,TT02,TT03,TT04){with(Ttables[id].TTC){var TT05=body[(TT03+TT02)>>1][TTE],TTA=TT02,TT6=TT03,TT06=[];do{while(TTA<=TT03&&TT04(body[TTA][TTE],TT05))TTA++;while(TT6>=TT02&&TT04(TT05,body[TT6][TTE]))TT6--;if(TTA<=TT6){TT06=body[TTA];body[TTA]=body[TT6];body[TT6]=TT06;TTA++;TT6--}}while(TTA<TT6);if(TT02<TT6)TTh(id,TTE,TT02,TT6,TT04);if(TTA<TT03)TTh(id,TTE,TTA,TT03,TT04)}}function TTd(TT7,TTC,TTb){var TTE=0,TT07=['substring','match','regexp'],TTc={'TTC':[],'TT7':[],'TTC':{'TTB':[],'body':[],'TTK':[]},'TTD':[],'sort':[],'id':Ttables.length};with(TTb){TTc.TT2=params[0]||0;TTc.TT3=params[1]||0;TTc.TTH=colors[0]||'white';TTc.TTI=colors[1]||'#DDDDDD';TTc.TTB=freeze[0]*1;TTc.TTK=freeze[1]*1;TTc.TTD.TTF=paging&&(paging+'').split(',')[0]*1?(paging+'').split(',')[0]*1:TTC.length;TTc.TTD.TT08=paging[1]||"&laquo;&laquo;";TTc.TTD.TT09=paging[2]||"&laquo;";TTc.TTD.TT0A=paging[3]||"&raquo;";TTc.TTD.TT0B=paging[4]||"&raquo;&raquo;";TTc.sort.TT0C=sorting[0]||'';TTc.sort.TT0D=sorting[1]||'';TTc.sort.TT0E=sorting[2]||'';TTc.TT07=TT07;TTc.TT0F=3;for(TTA=0;TTA<TT07.length;TTA++)if(!((1<<TTA)&filter)){TTc.TT07[TTA]=0;TTc.TT0F--}}TTc.TTD.TTE=TTc.sort.TTV=TTc.sort.TTW=TTc.TTS=TTc.TTU=0;TTc.TTT='';TTc.TTG=TTC.length-TTc.TTB-TTc.TTK;TTc.TTv=TT7.length;for(TTA in TT7)TTc.TT7[TTA]={'type':TT7[TTA].type==STR||!TT7[TTA].type?TT01:TT7[TTA].type==NUM?TTy:typeof(TT7[TTA].type)=='function'?TT7[TTA].type:TT01,'TTJ':typeof(TT7[TTA].format)=='function'?TT7[TTA].format:function(){return null},'name':TT7[TTA].name,'hide':TT7[TTA].hide};for(TTA=0;TTA<TTC.length;TTA++)for(TT6=0;TT6<TTC[0].length;TT6++)if(!TTC[TTA][TT6])TTC[TTA][TT6]='&nbsp;';for(TTA=0;TTA<TTc.TTB;TTA++)TTc.TTC.TTB[TTA]=TTC[TTE++];for(TTA=0;TTA<TTc.TTG;TTA++)TTc.TTC.body[TTA]=TTC[TTE++];for(TTA=0;TTA<TTc.TTK;TTA++)TTc.TTC.TTK[TTA]=TTC[TTE++];return TTc}function TT9(id,value,TT0G){with(Ttables[id].sort){return TT1="<table cellpadding=0 width=100% cellspacing=0 border=0><tr valign=middle>"+"<td width=99% class="+TT4.TT0H+id+">"+value+"</td><td class="+TT4.TT0I+id+"><a href=javascript:TTY("+id+","+TT0G+","+(TTV!=TT0G||TTW==1?0:1)+")>"+(TTV!=TT0G?TT0E:TTW==1?TT0D:TT0C)+"</a></td></tr></table>"}}function TTN(id){with(Ttables[id]){if(TT0F==0)return '';var TT1="<tr><td class="+TT4.TT0J+id+" align=right colspan="+TTv+" nowrap><form name=Tfrm"+id+" onsubmit='return TTZ("+id+",this)'>use <input class="+TT4.TT0K+id+" type=text name=TTT size=10"+(TTT!=''?" value='"+TTT:'')+"'> as ";if(TT0F>1){TT1+="<select class="+TT4.TT0L+id+" name=TTU>";for(TTA=0;TTA<TT07.length;TTA++)if(TT07[TTA])TT1+="<option value="+TTA+(TTA==TTU?' selected':'')+">"+TT07[TTA];TT1+="</select>"}else for(TTA=0;TTA<3;TTA++)if(TT07[TTA])TT1+='<input type="hidden" name="TTU" value="'+TTA+'">'+TT07[TTA];TT1+=" <input type=image src="+path_to_files+"/img/yes.gif border=0 alt='filter'></a><br> on column <select class="+TT4.TT0L+id+" name=TTS><option value=0>- none -";for(var TTA=1;TTA<=TT7.length;TTA++)if(!TT7[TTA-1].hide)TT1+="<option value="+TTA+(TTS==TTA?' selected':'')+">"+TT7[TTA-1].name;TT1+="</select> <a href=# onclick=javascript:TTZ("+id+",0)><img src="+path_to_files+"/img/no.gif border=0 alt='clear filter'></a></td></form></tr>";return TT1}}function TTM(id,TT0M){with(Ttables[id]){var a=Math.ceil(TT0M/TTD.TTF)-1,TT1='';if(a>0){var TT1="<tr><td colspan="+TTv+" class="+TT4.TTD+id+"><table cellspacing=0 width=100%><tr>";if(TTD.TTE>0){TT1+="<td class="+TT4.TT0N+id+"><a href=javascript:TTX("+id+",0)>"+TTD.TT08+"</a></td><td class="+TT4.TT0N+id+"><a href=javascript:TTX("+id+","+(TTD.TTE*1-1)+")>"+TTD.TT09+"</a></td>"}TT1+="<td width=99% class="+TT4.TT0O+id+">&nbsp;Page "+(TTD.TTE*1+1)+" of "+(a*1+1)+"&nbsp;</td>";if(TTD.TTE<a)TT1+="<td class="+TT4.TT0N+id+"><a href=javascript:TTX("+id+","+(TTD.TTE*1+1)+")>"+TTD.TT0A+"</a></td><td class="+TT4.TT0N+id+"><a href=javascript:TTX("+id+","+a+")>"+TTD.TT0B+"</a></td>";TT1+="</tr></table></td></tr>"}return TT1}}TTL.write('<SCRIPT LANGUAGE="JavaScript" src="',path_to_files,'table.do.',TTL.implementation||TTL.styleSheets?'ok':'no','.js"></SCRIPT>')