var active_color = '#FFF'; // Colour of user provided text
var inactive_color = '#3E3E3E'; // Colour of default text
 
$(document).ready(function() {
	$("span.donatebutton").hover(
		function() {
			$(this).css("cursor","pointer");
		},
		function() {
			$(this).css("cursor","normal");
		} 
	);
 $("input#donation").css("color", inactive_color);
  var default_values = new Array();
  $("input#donation").focus(function() {
    $("#donateContainer").css({'border': '1px solid #505050'});
    if (!default_values[this.id]) {
      default_values[this.id] = this.value;
    }
    if (this.value == default_values[this.id]) {
      this.value = '';
      this.style.color = active_color;
    }
    $(this).blur(function() {
      if (this.value == '') {
        this.style.color = inactive_color;
        this.value = default_values[this.id];
      }
	$("#donateContainer").css({'border': '1px solid #262626'});
    });
  });
});