// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function gen_token()
{
	new Ajax.Request("/login/auth?token=1")
}

/* fade flashes automatically */
Event.observe(window, 'load', function() { 
	if (!$('notice')) {
		return;
	}
	$('notice').opacity = 100.0;
    Effect.Fade($('notice'), {duration: 10.0});
});

window.onload = function() {
  /* Put other onload stuff here */
}
