// JavaScript Document
function mapFinder() {
    $.fn.maphilight.defaults = {
        fill: true,
        fillColor: '6EA805',
        fillOpacity: 0.5,
        stroke: true,
        strokeColor: '000000',
        strokeOpacity: 1,
        strokeWidth: 0.5,
        fade: true,
        alwaysOn: false,
        neverOn: false,
        groupBy: false
    };  
    $('.map').maphilight();
}


$(function() {
    mapFinder();
	$('ul#main-menu').superfish();
	
	$('input[type=text]').each(function(){
		var def = $(this).val();
		$(this).focus(function(){
			var txt = $(this).val();	
			if(txt == def) {
				$(this).val('');
			}
		});
		
		$(this).blur(function(){
			if($(this).val() == '') {
				$(this).val(def);
			}
		});
	});
});
