if(Drupal.jsEnabled) {
	$(document).ready(function() {


    $("#awf_field-3658717").val("Email Address");
    $("#awf_field-3658717").focus(function () {
    	$(this).val("");
    	$(this).removeClass("gray");
    });
    $("#awf_field-3658717").blur(function () {
    	if($(this).val() == ''){
    		$(this).val("Email Address");
    		$(this).addClass("gray");

    	}
    });


    $("#awf_field-3658716").val("Name");
    $("#awf_field-3658716").focus(function () {
    	$(this).val("");
    	$(this).removeClass("gray");
    });
    $("#awf_field-3658716").blur(function () {
    	if($(this).val() == ''){
    		$(this).val("Name");
    		$(this).addClass("gray");

    	}
    });
});



		/* Check if it's an external link, if so add a disclaimer */

	  $('a').filter(function() {

			// original check:
	    //return this.hostname && this.hostname !== location.hostname;


			// 1st check to see if it's an Auglaize County "relative", if it is, it's ok.
			// O/W we check to see if the hostname is Auglaize's, if it is we're ok, o/w alert 
			
/*
			if(this.hostname != 'www.auglaizecounty.org' && this.hostname != 'auglaizecounty.org' && this.hostname != 'www.sheriffalerts.com'  && this.hostname != 'sheriffalerts.com') {
				if(this.hostname == 'www2.auglaizecounty.org') {
					return false;
				}
				else return true;
			}
			else return false;

	 //   return false;
	  })
	  .click(function () { 
	  	
	  	//alert(this.hostname + " - " + location.hostname + ":8888");

		  var x=window.confirm('You are about to proceed to an offsite link.  Auglaize County has no control over the content of this site.  Click OK to proceed.');
			var val = false;
			if (x)
				val = true;
			else
				val = false;
			return val;

    });	
*/	
        
    
/*
// also works:
	  $('a').filter(function() {
	    return this.hostname && this.hostname !== location.hostname;
	  })
	  .click(function () { 
      //$(this).slideUp(); 
      alert("You are about to visit an external site - Auglaize County has no control over the content of this site."); 
 
    });		
*/



	

    
	});
}
