$(document).ready(function(){
	var count = $(".section").size();
	
	for(var i = 0; i < count; i++)
	{
    	if(i != 0)
		{
			$("#section-" + i).hide();
		}
	}
	
	$(".previous").click(function () {
		var section = parseInt($(this).attr("name").substr(8));
		$("#section-" + section).hide();
     		$("#section-" + (section - 1)).show();
   	});
	
	$(".next").click(function () {
		var section = parseInt($(this).attr("name").substr(8));
		$("#section-" + section).hide();
     		$("#section-" + (section + 1)).show();
   	});
});
