	var currentLocation = 0;
	var maxLocation = 8192;
	var nextLocation = 0;
	var stepBy = 16;
	var doneMoving = true;
	function movePortfolio(direction) {
		if(doneMoving) {
			doneMoving = false;
			if(direction == 'forward') {
				nextLocation = currentLocation + 1024;
			} else {
				nextLocation = currentLocation - 1024;
			}
			stepBy = 16;
			if(nextLocation > maxLocation) {
				nextLocation = 0;
				stepBy = 64;
			} else {
				if(nextLocation < 0) {
					nextLocation = maxLocation;
					stepBy = 64;
				}
			}
			executeMove();
		}
	}
	function executeMove() {
		if(nextLocation > currentLocation) {
			if(currentLocation<nextLocation) {
				currentLocation += stepBy;
				document.getElementById('pp').style['backgroundPosition'] = '-'+currentLocation+'px 0px';
				executeMove.defer(1);
			} else {
				doneMoving = true;
			}
		} else {
			if(currentLocation > nextLocation) {
				currentLocation -= stepBy;
				document.getElementById('pp').style['backgroundPosition'] = '-'+currentLocation+'px 0px';
				executeMove.defer(1);
			} else {
				doneMoving = true;
			}
		}
		
	}
