function xp( did ) {
if (!$(did).visible())
	Effect.BlindDown(did, {duration: .5});
else
	Effect.BlindUp(did, {duration: .25});
}

// http://webdesign.torn.be/tutorials/javascript/prototype/toggle-multiple-elements/
// Making sure this code only executes when the document is loaded: this makes the DOM available to us
Event.observe(document, 'dom:loaded', function() {

  // for every element with an toggler class...
  $$('.toggleRow').each(function(element) {

    // we put on an event listener of the click type
    Event.observe(element, 'click', function(event){

      // We stop the default link behaviour
      Event.stop(event);

      // when clicked, traverse the DOM: 1 step up (from it's A-element to it's container TR-element),
      // and select its following sibling (next(0)), and toggle that.
      Event.element(event).up(1).next(0).toggle();

    }, false);

  });
});

function dec_value(v) {var x=parseFloat(v);return (isNaN(x)?0:x).toFixed(2);}
function dec_field(e) { e.value = dec_value(e.value);}
function zoomer(e) {  Event.element(e).down('input').click();}	 //fire('click') }

function stageleft(){window.setTimeout( "if ($('spotlight')) $('spotlight').hide().update();if ($('errorstage')) $('errorstage').hide().update();", 200 );}
function spot_on(html){$('spotlight').update(html).show();}

function acb()
{
	Event.observe(document, 'dom:loaded', function() {

  $$('#acb').each( function(e) {
		$$('.dyna_close')[0].clonePosition(e, {offsetTop:-10, offsetLeft:e.getWidth(0)-14}).show();
	}, false )

});

}

function goHome() {
    window.location = "/";
    return true;
}
