// if they have js enabled, don't load !js css
//var nojs = document.getElementById('nojscss');
//nojs.parentNode.removeChild(nojs);

function remail(addy) {
	var domain = addy.substring(6,addy.indexOf('ab^8%*bba'));
	var person = addy.substring(addy.indexOf('ab^8%*bba')+9,addy.indexOf('zo9b%'));
	return person+'@'+domain;
}


// jquery
$(document).ready(function(){
	
	//jquery ajax stuff	
	$('.staff_mail').each(function() {
		$(this).removeClass('hide').html('<a href="mailto:'+remail($(this).html())+'">Send Email</a>');
	});
	
	/*$('#search_form #search').focus(function() {
		if($(this).val() == "Search...") {
			$(this).val('');
		}
	});*/


//	$('#date_start_search').datepick({dateFormat: 'yy-mm-dd', minDate: new Date(2009, 1-1, 1), maxDate: +0});
//	$('#date_stop_search').datepick({dateFormat: 'yy-mm-dd', minDate: new Date(2009, 1-1, 1), maxDate: +0});
	
	$('div.zoomdiv a').fancyZoom({scaleImg: false, closeOnClick: true});

}); // !jquery
