function hpSlider(obj, count) {
	this.obj = obj;
	this.count = count;
	this.pos = 1;
	
	this.goLeft = function() {
		this.obj.blur();
		if (this.pos > 1) {
			this.pos--;
			this.animate();
			return true;
		}
		return false;
	},
	
	this.goRight = function() {
		this.obj.blur();
		if (this.pos < this.count) {
			this.pos++;
			this.animate();
			return true;
		}
		return false;
	},
	
	this.getLeftFromPos = function() {
		return (this.pos - 1) * -320;
	},
	
	this.animate = function() {
		$(obj).animate({left: this.getLeftFromPos() + "px"}, 500);
	}
}

