<!--

$(function() {
	$.ajaxSetup({ cache : false, type : 'POST', async : false });

	$('input[type="text"], textarea')
		.focus(function(e)	{ if($(this).val() == $(this).attr('title')) $(this).val(''); })
		.blur(function(e)	{ if($(this).val() == '') $(this).val($(this).attr('title')); })

	$("input[type=text]").focus(function() { this.select(); });

	//lightbox
	$("a[rel=lightbox]").fancybox({
		'titleShow'		: true,
		'titlePosition' : 'over',
		'titleFormat'	: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">'+ title +'</span>'; //Foto '+ (currentIndex + 1) +'/'+ currentArray.length +':
		}
	});
});

function EqualHeight(selector) {
	var max_height = 0;

	$(function() {
		$(selector).each(function() {
			var item_height = $(this).height();
			if(item_height > max_height) max_height = item_height;
		});
		$(selector).height(max_height);
	});
}

function disableEnterKey(e) {
	var key;

	if(window.event)
		key = window.event.keyCode; //IE
	else
		key = e.which; //firefox

    return (key != 13);
}

//-->
