// JavaScript Document
$(function() {
	$('#main-column').jScrollPane({animateTo:true, animateInterval:50, animateStep:3});
	$('a.scroll-to-element-demo').bind(
		'click',
		function(){
			$this = $(this);
			var destinationSelector = $(this).attr('rel');
			$('.scroll-pane').each(
				function() {
					this.scrollTo(destinationSelector);
				}
			);
		return false;
		}
	);
});

$(function() {
	$('#main-column2').jScrollPane({animateTo:true, animateInterval:50, animateStep:3});
	$('a.scroll-to-element-demo').bind(
		'click',
		function(){
			$this = $(this);
			var destinationSelector = $(this).attr('rel');
			$('.scroll-pane').each(
				function() {
					this.scrollTo(destinationSelector);
				}
			);
		return false;
		}
	);
});

$(function() {
	$('#info-column').jScrollPane({animateTo:true, animateInterval:50, animateStep:3});
	$('a.scroll-to-element-demo').bind(
		'click',
		function(){
			$this = $(this);
			var destinationSelector = $(this).attr('rel');
			$('.scroll-pane').each(
				function() {
					this.scrollTo(destinationSelector);
				}
			);
		return false;
		}
	);
});
