$(document).ready(function() {
	$("#sort_option").change(function() {
		// Get current sort method
		sort = parseInt($("#sort_option :selected").attr("value"));
		
		if (sort > 0 && sort < 4)
		{
			jump = true;
			url = $("#base_url").attr("value");
			url = url + "/sortby/" + sort;
			window.location.href = url;
		}
		else if (sort == 0)
		{
			url = $("#base_url").attr("value");
			window.location.href = url;
		}
	});
});