$(document).ready(function() {

	var divheight = $("#left").height();
	if($("#content").height() > divheight) { divheight = $("#content").height(); }
	if($("#right").height() > divheight) { divheight = $("#right").height(); }
	
	$("#left, #content, #right").height(divheight);

	$(".scrolldown").click(function() {
		var top = $(this).parents(".box").children(".box_inner").position().top;
		var innerh = $(this).parents(".box").children(".box_inner").height();
		var divh = $(this).parents(".box").height();
		if(((innerh-divh)+top) > 0) {
			$(this).parents(".box").children(".box_inner").stop(true, true).animate({"top": "-=100"});
		}
		return false;
	});
	
	$(".scrollup").click(function() {
		var top = $(this).parents(".box").children(".box_inner").position().top;
		var innerh = $(this).parents(".box").children(".box_inner").height();
		var divh = $(this).parents(".box").height();
		if(top < 0) {
			$(this).parents(".box").children(".box_inner").stop(true, true).animate({"top": "+=100"});
		}
		return false;
	});
	
	$("#scroller_inner").bxSlider({
		displaySlideQty: 3,
		moveSlideQty: 3,
		mode: 'vertical',
		ticker: true,
		tickerSpeed: 1750
	});

});
