var errorfields = {};

var ww = {
	
	closeErrors: function(){
        $('.errors').hide();
    }
	
}

$(document).ready(function(){

	var vh = $(window).height();
	var bh = $('body').height();

	if(bh < vh)
	{
		$('.main-content').height(vh-250);
	}

    jQuery.each(errorfields, function(i, val){
        $('#' + errorfields[i].field).addClass('error');
        $('#' + errorfields[i].field + '-error').html('<a class="south" href="#" title="' + errorfields[i].message + '"></a>').show();
    });
    
    $('.south').tipsy({
        gravity: 's'
    });

	$('.head-promo').cycle({
		fx: 'fade'
	});

	
});
