function labelInInputClick(el, defaultString) {
	if ($(el).val() == defaultString) {
		$(el).val('')
	}
}

function labelInInputBlur(el, defaultString) {
	if ($(el).val() == '') {
		$(el).val(defaultString);
	}
}

$(document).ready(function() {
	$("a.lightbox").fancybox({
		overlayOpacity: 0.6,
		speedIn: 100,
		speedOut: 100,
		type: "image",
		titlePosition: "inside",
		// hack for flash in the background... Take a look at wmode transparent?
		onStart: function() {
			$("object").hide();
		},
		onClosed: function() {
			$("object").show();
		}
	});

	$("table.hoverable tr").hover(function() {
		$(this).toggleClass("hover");
	}, function() {
		$(this).toggleClass("hover");
	});
});