//requires prototype
//Auto detects Time offset and makes an ajax request to find and set time zone
Event.observe(window, 'load', send_timezone_offset);

function send_timezone_offset(){
	offset = (new Date().getTimezoneOffset()) * -60;
	new Ajax.Request('/welcome/set_time_zone', {asynchronous:true, evalScripts:true, method:'post',
	 	parameters: {offset_seconds:offset, authenticity_token:encodeURIComponent('uQV+hf6rxPngfQlBxKpnE6maSZacXff31ftf/TXkTik=')} });
}
