/**************************************
	F I N D  A  P H Y S I C I A N
	v1.2	
***************************************/

$(function() {
	// set initial phone value to 25	
	$('select[name="physician-results_length"]').val('25');
	
	// Add hover effect to rows
	$('#physician-results tbody tr').hover( function() {
		$(this).children('td').addClass( 'highlighted' );
	}, function() {
		$(this).children('td').removeClass('highlighted');
	}).click(function(){
		window.location = $(this).find('td:first a').attr('href');
	}).css("cursor","pointer");
	
	// Initialize Data Tables plugin
	$('#physician-results').dataTable({
		"sPaginationType": "full_numbers"
		,"bSortClasses": false
		,"bAutoWidth": false
		,"bInfo": false
		,"aaSorting": [[ 0, "asc" ]]
		,"iDisplayLength": 25
	});
});
