contentSlider = new Object;

contentSlider.slide = function(section) {
	var content_index = this.getIndex(section);
	this.setHeight(section);
	$('#content-panel-scroll').scrollable().seekTo(content_index);
}

contentSlider.getActiveSection = function() {
	return ($('#main-nav-accordion .active').attr('id'));
}

contentSlider.setHeight = function(section) {
	var content_height = $('#content-panel-scroll #'+section+'-panel').height();
	$('#content-panel-scroll').height(content_height);
}

contentSlider.getIndex = function(section) {
	return contentSlider.sections[section];	
}

contentSlider.sections = {Rewards:0, Profile:1, Search:2, Student:3, About:4, Home:5};