
count = 0;
max = 7-3;
move = 0;
divheight = 10;

function upPrdWings(wingsprd){
	if(7<3){
		
	}else{
		if(count==0){
			
		}else{
			count--;
			move += divheight;
			if(count != max){
				wingsprd.style.posTop += divheight;
			}
		}
	}
}

function downPrdWings(wingsprd){
	if(7<3){
		
	}else{
		if(count==max){
			
		}else{
			count++;
			move -= divheight;
			if(count != max+1){
				wingsprd.style.posTop = move;
			}
		}
	}
}
		

self.onError=null;
currentX = currentY = 0;  
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
	
function MoveAdcon() {

	diffY = document.body.scrollTop; 
	diffX = 0; 
	if (diffY != lastScrollY) {
		percent = .2 * (diffY - lastScrollY);
		if (percent > 0) {
			percent = Math.ceil(percent);
		} else {
			percent = Math.floor(percent);
		}
		
		document.all.top_button.style.pixelTop += percent;

                lastScrollY = lastScrollY + percent;
	}
	if (diffX != lastScrollX) {
		percent = .2 * (diffX - lastScrollX);
		if (percent > 0) {
			percent = Math.ceil(percent);
		} else {
			percent = Math.floor(percent);
		}
		document.all.top_button.style.pixelLeft += percent;

		lastScrollY = lastScrollY + percent;
	}	
}	

function slideBtn() {	
	top_button.style.top = document.body.scrollTop + 400;
	top_button.style.display = '';
	top_button.style.visibility = "visible";
	action = window.setInterval("MoveAdcon()",1);
	
}
