$(function(){
	$('#investRight').focus(function(){
		this.select();
	}).keyup(function(){
		if (this.value != '' && !isNaN(this.value)) {
			var reduc = Math.round(parseFloat(this.value));
			reduc = Math.round(reduc * 71.43) / 100;
		} else {
			var reduc = 0;
		}
		reduc = (reduc > 50000) ? 50000 : reduc;
		$('#reducISFRigh').html(reduc.toString().replace('.', ',') + ' €');
	});
});

function ajustSize(andMore) {
	if(andMore == null || andMore == 'undefined'){
		andMore = 0;
	}
	var more = ($.browser.safari) ? 50 : 0;
	$('#content_bg').css('height', ($('#content_bg').height() + 20 + more + andMore));
	$('#content_left').css('height', ($('#content_bg').height()));
	$('#content_right').css('height', ($('#content_bg').height()));
	$('#footer').css('bottom', 0);
}
