function clearDefault (el) {
  if (el.defaultValue==el.value) {
	el.value = "";
	el.style.color = "#4c4c55";
  }
}

function prepareForm () {
  $$('input[type=text]', 'textarea').each(function (el) {
    el.onfocus = function () {
      clearDefault(this);
    }
  })
}

function sequence () {
  new Ajax.Request('/posts/0', {asynchronous:true, evalScripts:true, method:'get'});
  return false;
}

var pe = new PeriodicalExecuter(sequence, 5);

window.onload = prepareForm;