<!--
var Site = {
	onload: function(){
		new SmoothScroll({duration: 1500, fps:50, transition: Fx.Transitions.quartInOut}) 
	},
	onready: function() {
		if($('contact-form')) { Site.contactform() }
	},
	contactform: function() {
		$('contact-form').addEvent('submit', function(e) {
			new Event(e).stop();
			var results = $('results').empty();
			this.send ({
				update: results,
				onRequest: function() {
					results.innerHTML = 'Asteapta ... <img src="/static/images/site/loading.gif" alt="Incarcam ..." style="vertical-align: middle" />';
				},
				onComplete: function(text) { // what to do if the server returs an 200 status
					if(text.contains('Am primit')) {
						setTimeout("$('results').empty()", 5000);
						$('contact-form').reset();
					}
				},
				onFailure: function() {  // what to do if the server return something else than 2xx status.
					alert('Refresh the Page, something happend to the server'); 
				}
			});	
		});
	}
};

window.addEvent('load', Site.onload ); 
window.addEvent('domready', Site.onready ); 

//-->
