﻿$(document).ready(function() {
	// hides the slickbox as soon as the DOM is ready
	// (a little sooner than page load)
	$('.pnlLocalChooser').hide();

	// shows the slickbox on clicking the noted link  
	$('a#slick-show').click(function() {
		$('.pnlLocalChooser').show('slow');
		$('html').animate({ scrollTop: $("#content").attr("scrollHeight") }, 2000);
		return false;
	});
	// hides the slickbox on clicking the noted link
	$('a#slick-hide').click(function() {
		$('.pnlLocalChooser').hide('fast');
		return false;
	});

	// toggles the slickbox on clicking the noted link  
	$('a#slick-toggle').click(function() {
		$('.pnlLocalChooser').toggle(400);
		return false;
	});

	// toggles
	$('a#postalCode-toggle').click(function() {
		$('.dvPostalCode-toggle').toggle(400);
		return false;
	});

	// pagination
	$(".consultant-list")
        .tablesorter({
        	headers: {
        		0: { sorter: false },
        		1: { sorter: false },
        		2: { sorter: false },
        		3: { sorter: false }
        	}
        })
        .tablesorterPager({ container: $("#pager") });

});