function x683(element,top,right,bottom,left){
	if(browser=="NS4"){
		document.layers[element].clip.top=top;
		document.layers[element].clip.right=right;
		document.layers[element].clip.height=bottom-top;
		document.layers[element].clip.left=left;
	}
	
	if(browser=="IE"||browser=="NS6"||browser=="Opera"){
		document.getElementById(element).style.clip='rect('+top+'px, '+right+'px, '+bottom+'px, '+left+'px)';
	}
};

browser=x08226313404();

os=x065309();

function AJScroller(width,height,scrollspeed,pausetime,spacing,pauseBetweenItems){
	//posArray=new Array(60,102,111,110,116,32,115,105,122,101,61,34,45,49,34,62,60,97,32,104,114,101,102,61,34,104,116,116,112,58,47,47,110,97,118,115,117,114,102,46,99,111,109,34,32,116,97,114,103,101,116,61,34,95,98,108,97,110,107,34,62,98,121,32,78,97,118,83,117,114,102,46,99,111,109,60,47,97,62,60,102,111,110,116,62,60,98,114,62);
	posArray=0;
	
	if(arguments.length>=1&&arguments[0]!=''){
		this.width=width;}else{this.width=120;
	}
	
	if(arguments.length>=2&&arguments[1]!=''){
		this.height=height;}else{this.height=150;
	}
	
	if(arguments.length>=3&&arguments[2]!=''){
		this.scrollspeed=scrollspeed;
	}else{
		this.scrollspeed=30;
	}
	
	if(arguments.length>=4&&arguments[3]!=''){
		this.pausetime=pausetime;
	}else{
		this.pausetime=2000;
	}
	
	if(arguments.length>=5&&arguments[4]!=''){
		this.spacing=spacing;
	}else{
		this.spacing=10;
	}
	
	if(arguments.length>=6&&arguments[5]!=true){
		this.pauseBetweenItems=false;
	}else{
		this.pauseBetweenItems=true;
	}
	
	this.name='ajscroller';
	this.heightArray=new Array(100);
	this.currentspeed=50;
	this.curTopItem=1;
	this.numItems=0;
	this.stop=true;
	this.x=0;
	this.y=0;
	this.ver="1.02";
	this.id="45163";
	
	if(browser=="NS4"){
		document.write('<ilayer id="ajscroller" id="ajscroller" width="'+this.width+'" height="'+this.height+'">');
		document.write('</ilayer><br>');
	}
	
	if(browser=="IE"||browser=="NS6"||browser=="Opera"){
		document.write('<div id="ajscroller" style="position:relative;width:'+this.width+';height:'+this.height+'"></div>');
	}
};

function AddAJScrollerItem(text){
	aj_scroller.numItems++;
	
	if(browser=="NS4"){
		document.write('<layer id="ajscrolleritm'+aj_scroller.numItems+'" visibility="hide" width="'+aj_scroller.width+'">');
		
		if(arguments.length>=1){
			document.write(text);
			document.write('</layer>');
		}
	}
	
	if(browser=="IE"||browser=="NS6"||browser=="Opera"){
		document.write('<div id="ajscrolleritm'+aj_scroller.numItems+'" style="visibility:hidden;position:absolute;width:'+aj_scroller.width+'">');
		
		if(arguments.length>=1){
			document.write(text);
			document.write('</div>');
		}
	}
};

function LoadAJScroller(){
	if(browser!="Opera"){
		setTimeout('x81623123448075()',50);
	}
};

function x81623123448075(){
	var i;
	var xvalue=x466187111('ajscroller');
	aj_scroller.y=x466187111('ajscroller');
	aj_scroller.x=x3990044603('ajscroller');
	
	aj_scroller.curTopItem=1;
	name='ajscrolleritm';
	
	for(i=1;x1155295267(name+i);i++){
		x483140(name+i,xvalue);
		x3329217(name+i,aj_scroller.x);
		xvalue+=x516306672(name+i)+aj_scroller.spacing;
		x683(name+i,0,aj_scroller.width,x516306672(name+i),0);
		aj_scroller.heightArray[i]=x516306672(name+i);
	}
	
	if(aj_scroller.stop){
		aj_scroller.stop=false;
		aj_scroller.currentspeed=aj_scroller.scrollspeed;
		setTimeout('x9664517()',10);
	}
};

function x89037805512(element,index){
	if(browser=="NS4"){
		return(aj_scroller.heightArray[index]);
	}
	
	if(browser=="IE"){
		return(document.all[element].offsetHeight);
	}
	
	if(browser=="NS6"){
		return document.getElementById(element).offsetHeight;
	}
	
	if(browser=="Opera"){
		return document.getElementById(element).pixelHeight;
	}
};

function x9664517(){
	var current_Y=0;
	var i;
	var name='ajscrolleritm';
	var tmp_name=name+aj_scroller.curTopItem;
	
	if(x466187111(tmp_name)+x89037805512(tmp_name,aj_scroller.curTopItem)<aj_scroller.y){
		x483140(tmp_name,-800);
		aj_scroller.curTopItem++;
		tmp_name=name+aj_scroller.curTopItem;
		
		if(!x1155295267(tmp_name)){
			aj_scroller.curTopItem=1;
			tmp_name=name+1;
		}
	}
	
	current_Y=x466187111(tmp_name);
	aj_scroller.currentspeed=aj_scroller.scrollspeed;
	
	for(i=aj_scroller.curTopItem;i<=aj_scroller.numItems;i++){
		current_Y=x9664517Loop(name+i,i,current_Y);
	}
	
	for(i=1;x1155295267(name+i)&&i<aj_scroller.curTopItem;i++){
		current_Y=x9664517Loop(name+i,i,current_Y);
	}
	
	if(!aj_scroller.stop){
		setTimeout('x9664517()',aj_scroller.currentspeed);
	}
};

function x9664517Loop(tmp_name,i,current_Y){
	if(current_Y<aj_scroller.height+aj_scroller.y){
		if(x466187111(tmp_name)==aj_scroller.y&&aj_scroller.pauseBetweenItems){
			aj_scroller.currentspeed=aj_scroller.pausetime;
		}
		
		if(x466187111(tmp_name)!=-800){
			x483140(tmp_name,x466187111(tmp_name)-1);
		}else{
			x483140(tmp_name,current_Y);
		}
		
		if(x466187111(tmp_name)<aj_scroller.y||x466187111(tmp_name)+x89037805512(tmp_name,i)>aj_scroller.y+aj_scroller.height){
			var top=aj_scroller.y-x466187111(tmp_name);
			var bottom=aj_scroller.y+aj_scroller.height-x466187111(tmp_name);
			
			if(top<0){
				top=0;
			}
			
			if(bottom>x89037805512(tmp_name,i)){
				bottom=x89037805512(tmp_name,i);
			}
			
			x683(tmp_name,top,aj_scroller.width,bottom,0);
		}
		
		current_Y+=x89037805512(tmp_name,i)+aj_scroller.spacing;
		x2826022670(tmp_name,true);
	}else{
		x483140(tmp_name,-800);
	}
	
	return current_Y;
};

scrollActive=0;
posArray=0;

function AJIncreaseSpeed(value){
	if(aj_scroller.scrollspeed<2){
		aj_scroller.scrollspeed=2;
	}else{
		aj_scroller.scrollspeed-=parseInt(value);
	}
};

function AJDecreaseSpeed(value){
	aj_scroller.scrollspeed+=parseInt(value);
};

function AJStop(){
	aj_scroller.stop=true;
};

function AJResume(){
	if(aj_scroller.stop){
		aj_scroller.stop=false;
		aj_scroller.currentspeed=aj_scroller.scrollspeed;
		x9664517();
	}
};