$(function() {
//		width = 700;
//		height = 6300;
//		frame_height = 525;
	
	$(".frame").mousemove(function(e){
		var frames = ($(this).find('.pan').height() / $(this).height()) - 1;
		var x = e.pageX - this.offsetLeft;
		var y = e.pageY - this.offsetTop;
		var column_width = $(this).width() / frames;
		var current_column = Math.round(x/column_width);
			$(this).find(".pan").css('top',(current_column) * $(this).height() * -1)
    });   
	
})
