jQuery(function($)
{
	// Mega Antibot System :)
	$('form.antibot').live('submit.antibot', function()
	{
		$(this)
			.append('<in'+'put ty'+'pe="hi'+'dden" na'+'me="anti'+'bot" va'+'lue="ya'+'neb'+'ot!">')
			.unbind('submit.antibot');
	});

	// In-Field Labels
	$("label.infield").inFieldLabels({fadeOpacity: 0.2});

	// Image splash
	$('a.splash-image').live('click', function()
	{
		$.splash("splash-image-container")
			.html('<img src='+$(this).attr('href')+' id="splash-image">')
			.hide()
			.click(function() { $(this).trigger("close"); });
		var title = $(this).attr('title');
		if (title)
		{
			$("#splash-image-container").append('<div class="splash-title">' + title + '</div>');
		}
		$("#splash-image").load(function()
		{
			$("#splash-image-container").show().trigger('reposition');
		});
		return false;
	});

	// URL splash
	$("a.splash-url").live('click', function()
	{
		$.splash("splash-url-container").load($(this).attr('href'), function()
		{
			$('#splash-url-container').trigger('reposition');
		});
		return false;
	});
});

