if (document.observe) {
    document.observe('dom:loaded', function(e) {
        if($('mailerform')) {
						new Validation('mailerform');
            data = $('mailerform').getElements().collect(function(i){ if(i.name.match(/^data/)) return i.name.replace(/data\[/, '').replace(/\]/, ''); }).compact().uniq();
            h = document.createElement("input");
            h.name = 'ordered_input_names';
            h.type = 'hidden';
            h.value = data;
            $('mailerform').appendChild(h);
        }
    });
}

function showTimeLapse() {
	var so = new SWFObject("time_lapse.swf", "time_lapse", "700", "400", "9", "#fff");
	so.addParam("quality", "high");
	so.addParam("wmode", "transparent");
	so.addParam("skinAutoHide", "true");
	so.addParam("allowFullScreen", "true");
	so.write('time_lapse');
}