﻿  function animatedDisplay(element,show) 
    {
    if (show){
        $(element).show({fx: { height: 'toggle', opacity: 'toggle' }});
        }
   else{
        $(element).hide({fx: { height: 'toggle', opacity: 'toggle' }});
        }
        }  
       
/* was using this.defaultValue but caused problems
with postback after searches as it re enters the postback 
value instead of '-- all candidates --'*/
$.fn.candidatesearch = function() {
	return this.focus(function() {
		if( this.value == '-- all candidates --') {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = '-- all candidates --';
		}
	});
};

