// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function nextStep()
{
  $$('div.step').each(function(s){if (s.style.display != 'none'){currstep = s}});
  stepnumber = parseInt(currstep.id[4])+1;
  nextstep = $("step" + stepnumber);
  toStep(nextstep);
  new Effect.ScrollTo('nextstep', {queue : 'end'});
  if (stepnumber == 3) {
    $('nextstep').childElements().last().remove();
  }
}

function toStep(step)
{
  new Effect.BlindUp('steps', {duration : 0.4});
  setTimeout(function() {
  ;
    $$('div.step').each(function(s){
    Element.hide(s);  
    });
    step.show();
  }, 400);
  new Effect.BlindDown('steps', {duration : 0.4, queue : 'end'}); 
}

function mailfocus()
{
  if ($F('email') == "your email here") {
    $('email').value = "";
    $('email').setStyle("color:black");
  }
}
