// Title: Tigra Scroller PRO
// URL: http://www.softcomplex.com/products/tigra_scroller_pro/
// Version: 2.1
// Date: 01-19-2006 (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='content/apps/scroll_alert/index.html';

// please, don't change anything below this line
// ----------------------------------------------

//Code prepared by Tigra Javascript Scrambler version 1.0 (http://www.softcomplex.com/products/tigra_code_compressor/)
var TScroll=[];document.write('<scr'+'ipt language="JavaScript" src="'+TScroll_path_to_files+'scroll.'+(document.layers?'nn4':'dom')+'.js"></scr'+'ipt>');function TScroll_init(tsp3,tsp0,tsp2){
    this.id=TScroll.length;TScroll[this.id]=this;this.step=tsp0.speed!=0?tsp0.speed:1;this.interval=tsp0.interval?tsp0.interval:50;this.tsp0F=this.tsp04=0;this.tsp05=this.step<0?[1,0]:[0,1];this.tsp8=Math.abs(this.step);this.zindex=tsp0.zindex?tsp0.zindex:0;this.tspZ=[];this.tspV=tsp0.auto;this.hide_buttons=tsp0.hide_buttons;this.nonstop=tsp0.nonstop;var i,j,tspX=this.tspV?{
        "pa":0,
        "re":1,
        "nx":2,
        "pr":3
    }:{
        'up':0,
        "dn":1
    },tspQ=function(){},tspK={
        "s_i":tsp3.s_i,
        "s_b":tsp3.s_b,
        "s_m":tsp3.s_m
        },vertical=tsp0.vertical,w=tsp3.size[0]?tsp3.size[0]:tsp4.size[0],h=tsp3.size[1]?tsp3.size[1]:tsp4.size[1];for(i in tspX){
        tspK[i]=tsp3[i]&&typeof(tsp3[i])=="object"?tsp3[i]:tsp4[i];
    }this.height=vertical?h:w;this.distance=typeof(tsp3.distance)=='number'?tsp3.distance:this.height;this.tspp=vertical?0:tsp3.item_w!=null?tsp3.item_w:w;this.tsp03=0;this.tspD=tsp5;this.tsp08=tsp6;this.tspK=[];this.img=[];var c=[];for(i in tspX){
        j=tspX[i]*2;c[j]=new Image(tspK[i][2],tspK[i][3]);c[j].src=tspK[i][4]?tspK[i][4]:tsp4[i][4];c[j+1]=new Image(tspK[i][2],tspK[i][3]);c[j+1].src=tspK[i][5]?tspK[i][5]:c[j].src;
    }this.tspK.img=c;this.move=function(p){
        if(this.tsp04<=p&&this.tsp0F==0){
            this.tsp04=0;this.tsp0F=setTimeout('TScroll['+this.id+'].tsp06('+p+')',this.interval);
        }
        };this.stop=function(p){
        if(this.tsp04<p)this.tsp04=p;if(this.tsp0G){
            clearTimeout(this.tsp0G);this.tsp0G=0;
        }if(this.tsp0F!=0){
            clearInterval(this.tsp0F);this.tsp0F=0;
        }
        };this.sleep=function(tspL){
        this.stop(0);this.tsp0G=setTimeout('TScroll['+this.id+'].tsp0J()',tspL*1000);
    };this.tsp0J=function(){
        this.tsp7();this.tsp03-=this.step;this.move(0);
    };this.jump_to=function(tspl){
        if(!this.tspZ[tspl])return;this.tsp03=-this.img[tspl];this.tsp7();
    };this.tsp06=function(p){
        var i,j,t;for(i in this.tspZ)for(j in this.tsp05)if(Math.abs(this.tsp03+this.tspZ[i].tspM[this.tsp05[j]])<this.tsp8){
            var tspb=this.tspZ.length-1;if(document.body&&this.tspC){
                x=this.tsp03+this.tspZ[i].tspM[this.tsp05[1-j]];this.t=((x>0)^(this.step>0)||(x==0))?(this.step>0?(i==tspb?[this.img[0],0]:[this.img[i*1+1],i*1+1]):(i==0?[this.tspZ[tspb].tspM[1],tspb]:[this.tspZ[i-1].tspM[1],i-1])):0;
            }if(this.tspZ[i].tsp01[this.tsp05[j]]>0){
                this.tsp03=-this.tspZ[i].tspM[this.tsp05[j]];this.tsp7(1);return this.sleep(this.tspZ[i].tsp01[this.tsp05[j]]);
            }
            }if(this.step>0&&this.tsp03+this.tspY<this.tsp8)this.tsp03=this.step;else if(this.step<0&&-this.tsp03<this.tsp8)this.tsp03=-this.tspY;this.tsp03-=this.step;this.tsp7();this.tsp0F=0;this.move(p);
    };if(this.tspV)this.tspe=this.tsph=this.tspH=this.tspI=this.click_pass=tspQ;else{
        if(this.hide_buttons)this.tsph=this.tspe=tspQ;this.tspf=this.tspg=this.tspj=this.tspi=tspQ;
    }this.tspD(w,h,vertical,tspK,tsp2);
}function tsp6(){
    this.tsp0I('lmain');this.tspd=this.tspT("lmain");this.tspY=this.tspS(this.tspZ.length);for(var i in this.tspZ){
        this.img[i]=this.tspS(i)+this.tsp00[0];var tspn=this.tspS(i*1+1)-this.height+this.tsp00[1];while(tspn<0)tspn+=this.tspY;this.tspZ[i].tspM=[this.img[i],tspn];
    }this.img[this.img.length]=this.tspY;this.tspd.visibility=this.tspa;if(this.tspV){
        this.tspK.pau=this.tspT("lpau");this.tspK.res=this.tspT("lres");this.tspK.nxt=this.tspT("lnxt");this.tspK.prv=this.tspT("lprv");this.move(0);
    }else{
        this.tspK.up=this.tspT("laup");this.tspK.dn=this.tspT("ladn");
    }this.tsp07=function(tspB,n){
        var tspy=document.images['ib_'+n+'_'+this.id];if(tspy)tspy.src=this.tspK.img[(tspB?n+1:n)].src;
    };this.tsp07(1,0);this.tsp07(0,0);if(this.tspV){
        this.tspe=this.hide_buttons?function(n){
            this.tsp07(0,n);this.tspK.nxt.visibility=this.tspK.prv.visibility=this.tspK.pau.visibility=this.tspK.res.visibility=this.tsp_;this.move(1);return true;
        }:function(n){
            this.tsp07(0,n);this.move(1);return true;
        };this.tsph=this.hide_buttons?function(n){
            this.tsp07(1,n);this.tspK.nxt.visibility=this.tspK.prv.visibility=this.tspa;if(this.tsp04<2){
                this.tspK.pau.visibility=this.tspa;this.tspK.res.visibility=this.tsp_;
            }else{
                this.tspK.pau.visibility=this.tsp_;this.tspK.res.visibility=this.tspa;
            }if(!this.nonstop)this.stop(1);return true;
        }:function(n){
            this.tsp07(1,n);if(!this.nonstop)this.stop(1);return true;
        };this.tspH=function(){
            this.tspK.pau.visibility=this.tsp_;this.tspK.res.visibility=this.tspa;this.stop(2);
        };this.tspI=function(){
            this.tspK.pau.visibility=this.tspa;this.tspK.res.visibility=this.tsp_;this.tsp04=1;
        };this.click_pass=function(dir){
            if(this.step*dir>0){
                var i=0;while(i<this.img.length&&this.img[i]<=-this.tsp03)i++;if(i==this.img.length-1)i=0;this.tsp03=-this.img[i];
            }else{
                var i=this.img.length-1;while(i>=0&&this.img[i]>=-this.tsp03)i--;if(i==-1)i=this.tspZ.length-1;this.tsp03=-this.img[i]
                }this.tsp7();
        }
        }else{
        if(this.hide_buttons){
            this.tsph=function(n){
                this.tsp07(1,n);this.tspK.up.visibility=this.tspK.dn.visibility=this.tspa
                };this.tspe=function(n){
                this.tsp07(0,n);this.tspK.up.visibility=this.tspK.dn.visibility=this.tsp_
                };this.tspf=this.tspg=function(n){
                this.tsp07(0,n);this.tspe();this.stop(1);
            };
        }else this.tspf=this.tspg=function(n){
            this.tsp07(0,n);this.stop(1)
            };this.tspj=function(n){
            this.tsp07(1,n);if(this.hide_buttons)this.tsph();this.step=-this.tsp8;this.tsp05=[0,1];this.move(1);
        };this.tspi=function(n){
            this.tsp07(1,n);if(this.hide_buttons)this.tsph();this.step=this.tsp8;this.tsp05=[1,0];this.move(1);
        }
        }
    }var tsp4={
    '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'],
    'tsp02':TScroll_path_to_files+'pixel.gif'
    }


