/* functions for animating press quotes */
var delay = 2000;
var transition = 800;

function animate() {
	var current = $('#pressquotes').find("img:visible");
	var next = $('#pressquotes').find("img:visible").next();
	// at the last image, loop back to the first image
	if (next.length == 0) {
		next = $('#pressquotes img:first-child');
	}
	current.fadeOut(transition, function() {
		$(this).css("visibility", "hidden");
		$(this).css("display", "none");
		next.css("visibility", "visible");
		//next.css("display", "inline");
		next.fadeIn(transition, function() { setTimeout("animate()", delay);} );
	});
}
/* .. functions for animating press quotes */

ImagePreloader.init([
	"/images/homepage/btn-tryfree_ro.png"
]);

$(document).ready(function() {
	setTimeout("animate()", delay);
	
	$('#email, #password, #password2, #nickname').keyup(function(event) {
		if (event.keyCode == 13) {
			pageTracker._trackPageview('/internal/tryfree');
			$('#form_signup').submit();
		}
	});
	
	$('a#tryfree').click(function() {
		$('#form_signup').submit();
		pageTracker._trackPageview('/internal/tryfree');
		return false;
	});
});<strong></strong>
