
		var tileSlider = {
		pageSize: 4,
		offset: 150,
		delay: 10,
		sliderObj: { },
		timeout: {},
		count: 0, 
		pos: 0,
		curPos: 0,
		
		init:function(newTileCount, newSliderObj){
			this.count = newTileCount;
			this.sliderObj = newSliderObj;
			this.sliderObj.style.width = this.offset + (newTileCount * this.offset) + 'px';
		},

		prev:function(){
			var curPage = (Math.ceil(Math.abs(this.pos / this.offset)) / this.pageSize) + 1;
			if (curPage > 1) {
				this.curPos = this.pos;
				this.pos += (this.offset * this.pageSize);
				this.timeout = setTimeout('tileSlider.moveTiles(\'right\');',this.delay); 
			}
		},

		next:function(){
			var lastPage = (Math.ceil(this.count / this.pageSize));
			var curPage = (Math.ceil(Math.abs(this.pos / this.offset)) / this.pageSize) + 1;
			if (curPage < lastPage) {
				this.curPos = this.pos;
				this.pos = this.pos - (this.offset * this.pageSize);
				this.timeout = setTimeout('tileSlider.moveTiles(\'left\');',this.delay); 
			}
		},
		
		moveTiles:function(direction) {
			var k = false;
			this.curPos = (direction == 'left')?this.curPos - (this.offset/4):this.curPos + (this.offset/4);
			k = (direction == 'left')?this.curPos >= this.pos:this.curPos <= this.pos;
		    if (k)
		    {
				this.sliderObj.style.left = this.curPos + "px";
				this.timeout = setTimeout('tileSlider.moveTiles(\''+direction+'\');',this.delay); 
		    } else {
				this.sliderObj.style.left = this.pos + "px";
			}
		}
	}



		var tileSliderA = {
		pageSizeA: 4,
		offsetA: 150,
		delayA: 10,
		sliderObjA: { },
		timeoutA: {},
		countA: 0, 
		posA: 0,
		curPosA: 0,
		
		initA:function(newTileCountA, newSliderObjA){
			this.countA = newTileCountA;
			this.sliderObjA = newSliderObjA;
			this.sliderObjA.style.width = this.offsetA + (newTileCountA * this.offsetA) + 'px';
		},

		prevA:function(){
			var curPageA = (Math.ceil(Math.abs(this.posA / this.offsetA)) / this.pageSizeA) + 1;
			if (curPageA > 1) {
				this.curPosA = this.posA;
				this.posA += (this.offsetA * this.pageSizeA);
				this.timeoutA = setTimeout('tileSliderA.moveTilesA(\'right\');',this.delayA); 
			}
		},

		nextA:function(){
			var lastPageA = (Math.ceil(this.countA / this.pageSizeA));
			var curPageA = (Math.ceil(Math.abs(this.posA / this.offsetA)) / this.pageSizeA) + 1;
			if (curPageA < lastPageA) {
				this.curPosA = this.posA;
				this.posA = this.posA - (this.offsetA * this.pageSizeA);
				this.timeoutA = setTimeout('tileSliderA.moveTilesA(\'left\');',this.delayA); 
			}
		},
		
		moveTilesA:function(directionA) {
			var kA = false;
			this.curPosA = (directionA == 'left')?this.curPosA - (this.offsetA/4):this.curPosA + (this.offsetA/4);
			kA = (directionA == 'left')?this.curPosA >= this.posA:this.curPosA <= this.posA;
		    if (kA)
		    {
				this.sliderObjA.style.left = this.curPosA + "px";
				this.timeoutA = setTimeout('tileSliderA.moveTilesA(\''+directionA+'\');',this.delayA); 
		    } else {
				this.sliderObjA.style.left = this.posA + "px";
			}
		}
	}
	
	