// Title: Tigra Scroller PRO
// URL: http://www.softcomplex.com/products/tigra_scroller_pro/
// Version: 1.7
// Date: 05-24-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='js/';
// 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(tspp,tspq,tsp2){this.id=TScroll.length;TScroll[this.id]=this;this.step=tspq.speed!=0?tspq.speed:1;this.interval=tspq.interval?tspq.interval:50;this.tspr=this.tsps=0;this.tspt=this.step<0?[1,0]:[0,1];this.tspY=Math.abs(this.step);this.zindex=tspq.zindex?tspq.zindex:0;var i,tspu=function(){},tsp1={"up":tspp.up&&typeof(tspp.up)=="object"?tspp.up:tspe.up,"dn":tspp.dn&&typeof(tspp.dn)=="object"?tspp.dn:tspe.dn,"pa":tspp.pa&&typeof(tspp.pa)=="object"?tspp.pa:tspe.pa,"re":tspp.re&&typeof(tspp.re)=="object"?tspp.re:tspe.re,"nx":tspp.nx&&typeof(tspp.nx)=="object"?tspp.nx:tspe.nx,"pr":tspp.pr&&typeof(tspp.pr)=="object"?tspp.pr:tspe.pr,"s_i":tspp.s_i,"s_b":tspp.s_b,"s_m":tspp.s_m},vertical=tspq.vertical,w=tspp.size[0]?tspp.size[0]:tspe.size[0],h=tspp.size[1]?tspp.size[1]:tspe.size[1];this.height=vertical?h:w;this.distance=tspp.distance?tspp.distance:this.height;if(!vertical)this.tsp5=tspp.item_w!=null?tspp.item_w:w;this.tspX=-this.distance;this.tspN=[];this.auto=tspq.auto;this.hide_buttons=tspq.hide_buttons;this.tspv=tsp0;this.tspn=tspw;this.tsp1=[];this.img=[];this.tsp1.img=[];var tspb=this.tsp1.img;if(this.auto){tspb[0]=new Image(tsp1.pa[2],tsp1.pa[3]);tspb[1]=new Image(tsp1.pa[2],tsp1.pa[3]);tspb[2]=new Image(tsp1.re[2],tsp1.re[3]);tspb[3]=new Image(tsp1.re[2],tsp1.re[3]);tspb[4]=new Image(tsp1.nx[2],tsp1.nx[3]);tspb[5]=new Image(tsp1.nx[2],tsp1.nx[3]);tspb[6]=new Image(tsp1.pr[2],tsp1.pr[3]);tspb[7]=new Image(tsp1.pr[2],tsp1.pr[3]);tspb[0].src=tsp1.pa[4]?tsp1.pa[4]:tspe.pa[4];tspb[2].src=tsp1.re[4]?tsp1.re[4]:tspe.re[4];tspb[4].src=tsp1.nx[4]?tsp1.nx[4]:tspe.nx[4];tspb[6].src=tsp1.pr[4]?tsp1.pr[4]:tspe.pr[4];tspb[1].src=tsp1.pa[5]?tsp1.pa[5]:tspb[0].src;tspb[3].src=tsp1.re[5]?tsp1.re[5]:tspb[2].src;tspb[5].src=tsp1.nx[5]?tsp1.nx[5]:tspb[4].src;tspb[7].src=tsp1.pr[5]?tsp1.pr[5]:tspb[6].src;this.tsp1.img=tspb}else{tspb[0]=new Image(tsp1.up[2],tsp1.up[3]);tspb[1]=new Image(tsp1.up[2],tsp1.up[3]);tspb[2]=new Image(tsp1.dn[2],tsp1.dn[3]);tspb[3]=new Image(tsp1.dn[2],tsp1.dn[3]);tspb[0].src=tsp1.up[4]?tsp1.up[4]:tspe.up[4];tspb[2].src=tsp1.dn[4]?tsp1.dn[4]:tspe.dn[4];tspb[1].src=tsp1.up[5]?tsp1.up[5]:tspb[0].src;tspb[3].src=tsp1.dn[5]?tsp1.dn[5]:tspb[2].src;this.tsp1.img=tspb}this.move=function(p){if(this.tsps<=p&&this.tspr==0){this.tsps=0;this.tspr=setTimeout('TScroll['+this.id+'].tsp01('+p+')',this.interval)}};this.stop=function(p){if(this.tsps<p)this.tsps=p;if(this.tspx){clearTimeout(this.tspx);this.tspx=0}if(this.tspr!=0){clearInterval(this.tspr);this.tspr=0}};this.sleep=function(tspy){this.stop(0);this.tspx=setTimeout('TScroll['+this.id+'].tspz()',tspy*1000)};this.tspz=function(){this.tspU();this.tspX-=this.step;this.move(0)};this.jump_to=function(tsp00){if(!this.tspN[tsp00])return;this.tspX=-this.distance-this.img[tsp00];this.tspU()};this.tsp01=function(p){var i,j,t;if(this.step>0&&this.tspX+this.tsp02<this.tspY)this.tspX=this.step;else if(this.step<0&&-this.tspX<this.tspY)this.tspX=-this.tsp02;for(i in this.tspN)for(j in this.tspt)if(Math.abs(this.tspX+this.tspN[i].tsp03[this.tspt[j]])<this.tspY){if(document.body&&this.tspD){x=this.tspX+this.tspN[i].tsp03[this.tspt[1-j]];this.t=((x>0)^(this.step>0)||(x==0))?(this.step>0?(i==this.tspN.length-1?[this.img[0],0]:[this.img[i*1+1],i*1+1]):(i==0?[this.img[this.tspN.length],this.tspN.length-1]:[this.img[i],i-1])):0}if(this.tspN[i].tsp04[this.tspt[j]]>0){this.tspX=-this.tspN[i].tsp03[this.tspt[j]];this.tspU(1);return this.sleep(this.tspN[i].tsp04[this.tspt[j]])}}this.tspX-=this.step;this.tspU();this.tspr=0;this.move(p)};if(this.auto)this.tsp05=this.tsp06=this.tsp07=this.tsp08=this.click_pass=tspu;else{if(this.hide_buttons)this.tsp06=this.tsp05=tspu;this.tsp09=this.tsp0A=this.tsp0B=this.tsp0C=tspu}this.tspv(w,h,vertical,tsp1,tsp2)}function tspw(){this.tspI('lmain');this.tspa=this.tspT("lmain");for(var i in this.tspN){this.img[i]=this.tspF(i);this.tspN[i].tsp03=[this.img[i]+this.distance,this.tspF(i*1+1)-this.height]}this.tsp02=this.img[this.img.length]=this.tspF(this.tspN.length);this.tspa.visibility=this.tspB;if(this.auto){this.tsp1.pau=this.tspT("lpau");this.tsp1.res=this.tspT("lres");this.tsp1.nxt=this.tspT("lnxt");this.tsp1.prv=this.tspT("lprv");this.move(0)}else{this.tsp1.up=this.tspT("laup");this.tsp1.dn=this.tspT("ladn")}this.tsp0D=function(tsp0E,n){var tsp0F=document.images['ib_'+n+'_'+this.id];if(tsp0F)tsp0F.src=this.tsp1.img[(tsp0E?n+1:n)].src};if(this.auto){this.tsp05=this.hide_buttons?function(n){this.tsp0D(0,n);this.tsp1.nxt.visibility=this.tsp1.prv.visibility=this.tsp1.pau.visibility=this.tsp1.res.visibility=this.tspA;this.move(1);return true}:function(n){this.tsp0D(0,n);this.move(1);return true};this.tsp06=this.hide_buttons?function(n){this.tsp0D(1,n);this.tsp1.nxt.visibility=this.tsp1.prv.visibility=this.tspB;if(this.tsps<2){this.tsp1.pau.visibility=this.tspB;this.tsp1.res.visibility=this.tspA}else{this.tsp1.pau.visibility=this.tspA;this.tsp1.res.visibility=this.tspB}this.stop(1);return true}:function(n){this.tsp0D(1,n);this.stop(1);return true};this.tsp07=function(){this.tsp1.pau.visibility=this.tspA;this.tsp1.res.visibility=this.tspB;this.stop(2)};this.tsp08=function(){this.tsp1.pau.visibility=this.tspB;this.tsp1.res.visibility=this.tspA;this.tsps=1};this.click_pass=function(tsp0G){if(this.step*tsp0G>0){var i=0;while(i<this.img.length&&this.distance+this.img[i]<=-this.tspX)i++;if(i==this.img.length-1)i=0;this.tspX=-this.img[i]-this.distance}else{var i=this.img.length-1;while(i>=0&&this.img[i]>=-this.tspX)i--;if(i==0)i=this.img.length-1;this.tspX=-this.img[i]+(!this.tsp5?this.distance:0)}this.tspU()}}else{if(this.hide_buttons){this.tsp06=function(n){this.tsp0D(1,n);this.tsp1.up.visibility=this.tsp1.dn.visibility=this.tspB};this.tsp05=function(n){this.tsp0D(0,n);this.tsp1.up.visibility=this.tsp1.dn.visibility=this.tspA};this.tsp09=this.tsp0A=function(n){this.tsp0D(0,n);this.tsp05();this.stop(1)}}else this.tsp09=this.tsp0A=function(n){this.tsp0D(0,n);this.stop(1)};this.tsp0B=function(n){this.tsp0D(1,n);if(this.hide_buttons)this.tsp06();this.step=-this.tspY;this.tspt=[0,1];this.move(1)};this.tsp0C=function(n){this.tsp0D(1,n);if(this.hide_buttons)this.tsp06();this.step=this.tspY;this.tspt=[1,0];this.move(1)}}}var tspe={'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'],'tspf':TScroll_path_to_files+'pixel.gif'}
