// Title: Tigra Scroller PRO
// URL: http://www.softcomplex.com/products/tigra_scroller_pro/
// Version: 1.5 (size optimized)
// Date: 06-25-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.
// ----------------------------------------
// set correct path to Tigra Scroller files
var TScroll_path_to_files = 'tsp_files/';

// please, don't change anything below this line
// ----------------------------------------------
var TScroll=[];document.write('<scr'+'ipt language="JavaScript" src="'+TScroll_path_to_files+'scroll.'+(document.layers?'nn4':'dom')+'.js"></scr'+'ipt>');function TScroll_init(TSm,TSn,TSD){this.id=TScroll.length;TScroll[this.id]=this;this.step=TSn.speed!=0?TSn.speed:1;this.TSo=this.TSp=0;this.TSq=this.step<0?[1,0]:[0,1];this.TSY=Math.abs(this.step);var i,TSr=function(){},TSC={"up":TSm.up&&typeof(TSm.up)=="object"?TSm.up:TSA.up,"dn":TSm.dn&&typeof(TSm.dn)=="object"?TSm.dn:TSA.dn,"pa":TSm.pa&&typeof(TSm.pa)=="object"?TSm.pa:TSA.pa,"re":TSm.re&&typeof(TSm.re)=="object"?TSm.re:TSA.re,"nx":TSm.nx&&typeof(TSm.nx)=="object"?TSm.nx:TSA.nx,"pr":TSm.pr&&typeof(TSm.pr)=="object"?TSm.pr:TSA.pr},vertical=TSn.vertical,w=TSm.size[0]?TSm.size[0]:TSA.size[0],h=TSm.size[1]?TSm.size[1]:TSA.size[1];this.height=vertical?h:w;this.distance=TSm.distance?TSm.distance:this.height;if(!vertical)this.TSG=TSm.item_w!=null?TSm.item_w:w;this.TSX=-this.distance;this.TSV=[];this.auto=TSn.auto;this.hide_buttons=TSn.hide_buttons;this.TSs=TSB;this.TSt=TSu;this.TSC=[];this.img=[];this.move=function(p){if(this.TSp<=p&&this.TSo==0){this.TSp=0;this.TSo=setInterval('TScroll['+this.id+'].TSy()',50)}};this.stop=function(p){if(this.TSp<p)this.TSp=p;if(this.TSv){clearTimeout(this.TSv);this.TSv=0}if(this.TSo!=0){clearInterval(this.TSo);this.TSo=0}};this.sleep=function(TSw){this.stop(0);this.TSv=setTimeout('TScroll['+this.id+'].TSx()',TSw*1000)};this.TSx=function(){this.TST();this.TSX-=this.step;this.move(0)};this.TSy=function(){var i,j,t;if(this.step>0&&this.TSX+this.TSz<this.TSY)this.TSX=this.step;else if(this.step<0&&-this.TSX<this.TSY)this.TSX=-this.TSz;for(i in this.TSV)for(j in this.TSq)if(Math.abs(this.TSX+this.TSV[i].TSAA[this.TSq[j]])<this.TSY){if(document.body&&this.TSO){x=this.TSX+this.TSV[i].TSAA[this.TSq[1-j]];this.t=((x>0)^(this.step>0)||(x==0))?(this.step>0?(i==this.TSV.length-1?[this.img[0],0]:[this.img[i*1+1],i*1+1]):(i==0?[this.img[this.TSV.length],this.TSV.length-1]:[this.img[i],i-1])):0}if(this.TSV[i].TSAB[this.TSq[j]]>0){this.TSX=-this.TSV[i].TSAA[this.TSq[j]];this.TST(1);return this.sleep(this.TSV[i].TSAB[this.TSq[j]])}}this.TSX-=this.step;this.TST()};if(this.auto)this.TSAC=this.TSAD=this.TSAE=this.TSAF=this.click_pass=TSr;else{if(this.hide_buttons)this.TSAD=this.TSAC=TSr;this.TSAG=this.TSAH=this.TSAI=this.TSAJ=TSr}this.TSs(w,h,vertical,TSC,TSD)}function TSu(){this.TSa=this.TSS("main");for(var i in this.TSV){this.img[i]=this.TSP(i);this.TSV[i].TSAA=[this.img[i]+this.distance,this.TSP(i*1+1)-this.height]}this.TSz=this.img[this.img.length]=this.TSP(this.TSV.length);if(this.auto){this.TSC.pau=this.TSS("pau");this.TSC.res=this.TSS("res");this.TSC.nxt=this.TSS("nxt");this.TSC.prv=this.TSS("prv");this.move(0)}else{this.TSC.up=this.TSS("aup");this.TSC.dn=this.TSS("adn")}if(this.auto){this.TSAC=this.hide_buttons?function(){this.TSC.nxt.visibility=this.TSC.prv.visibility=this.TSC.pau.visibility=this.TSC.res.visibility=this.TSM;this.move(1)}:function(){this.move(1)};this.TSAD=this.hide_buttons?function(){this.TSC.nxt.visibility=this.TSC.prv.visibility=this.TSN;if(this.TSp<2){this.TSC.pau.visibility=this.TSN;this.TSC.res.visibility=this.TSM}else{this.TSC.pau.visibility=this.TSM;this.TSC.res.visibility=this.TSN}this.stop(1)}:function(){this.stop(1)};this.TSAE=function(){this.TSC.pau.visibility=this.TSM;this.TSC.res.visibility=this.TSN;this.stop(2)};this.TSAF=function(){this.TSC.pau.visibility=this.TSN;this.TSC.res.visibility=this.TSM;this.TSp=1};this.click_pass=function(TSAO){if(this.step*TSAO>0){var i=0;while(i<this.img.length&&this.distance+this.img[i]<=-this.TSX)i++;if(i==this.img.length-1)i=0;this.TSX=-this.img[i]-this.distance}else{var i=this.img.length-1;while(i>=0&&this.img[i]>=-this.TSX+this.distance)i--;if(i==0)i=this.img.length-1;this.TSX=-this.img[i]+this.distance}this.TST()}}else{if(this.hide_buttons){this.TSAD=function(){this.TSC.up.visibility=this.TSC.dn.visibility=this.TSN};this.TSAC=function(){this.TSC.up.visibility=this.TSC.dn.visibility=this.TSM};this.TSAG=this.TSAH=function(){this.TSAC();this.stop(1)}}else this.TSAG=this.TSAH=function(){this.stop(1)};this.TSAI=function(){if(this.hide_buttons)this.TSAD();this.step=-this.TSY;this.TSq=[0,1];this.move(1)};this.TSAJ=function(){if(this.hide_buttons)this.TSAD();this.step=this.TSY;this.TSq=[1,0];this.move(1)}}}var TSA={'TSL':{'TSh':'TScrBack','TSk':'TScrItemBody'},'TSW':[['revealTrans',0],['revealTrans',1],['revealTrans',2],['revealTrans',3],['revealTrans',4],['revealTrans',5],['revealTrans',6],['revealTrans',7],['revealTrans',8],['revealTrans',9],['revealTrans',10],['revealTrans',11],['revealTrans',12],['revealTrans',13],['revealTrans',14],['revealTrans',15],['revealTrans',16],['revealTrans',17],['revealTrans',18],['revealTrans',19],['revealTrans',20],['revealTrans',21],['revealTrans',22],['revealTrans',23],['blendTrans',0]],'size':[150,100],'up':[130,4,16,16,TScroll_path_to_files+'aup.gif'],'dn':[130,80,16,16,TScroll_path_to_files+'adn.gif'],'pa':[110,80,16,16,TScroll_path_to_files+'pau.gif'],'re':[110,80,16,16,TScroll_path_to_files+'res.gif'],'nx':[130,80,16,16,TScroll_path_to_files+'nxt.gif'],'pr':[90,80,16,16,TScroll_path_to_files+'prv.gif'],'TSj':TScroll_path_to_files+'pixel.gif'}