function setEqualHeight(columns) {
    var tallestcolumn = 0;
    columns.each(

    function () {
        currentHeight = $(this).height();
        if (currentHeight > tallestcolumn) {
            tallestcolumn = currentHeight;
        }
    });
    columns.css("min-height",tallestcolumn+"px");
}

$(document).ready(function(){
	
	// target _blank
	$('A[rel="blank"]').each(function(){
		$(this).attr('target', '_blank');
	});
	
	setEqualHeight($("#footerContent .page_item"));
	
	$('#nav').jacg({'radius': 'none','start': "#E50055", 'end': "#CC004C"});
	
	$('#contact-form p span.field .input').focus(function(){
		if($(this).attr('type') != 'submit') $(this).parent().parent().parent().css('background','#F5F6FF');
	}).blur(function(){
		$(this).parent().parent().parent().css('background','none');
	});
	
	$('.mu_register input').focus(function(){
		if($(this).attr('type') != 'submit') $(this).parent().css('background','#F5F6FF');
	}).blur(function(){
		$(this).parent().css('background','none');
	});
	
	
	$('form').submit(function(){
		var thisElement = $('input[type=submit]', this);
	    thisElement.attr('disabled', 'disabled');
	    setTimeout(function(){
	    	thisElement.removeAttr('disabled');
	    },5000);
	});
});
