// JavaScript Document

function ghostInputText(e, text)
{           
	if ((e.value.blank()) || (e.value == text))  
	{               
		e.value = text;
		e.addClassName('ghosted');
		e.blur();
	}

	e.observe('focus', function(){                       
		if ((e.value == text) && (e.hasClassName('ghosted')))
		{
			e.value = '';
		}
		e.removeClassName('ghosted');
	});

	e.observe('blur', function(){
		if (e.value.blank())
		{
			e.value = text;
			e.addClassName('ghosted');
		}
	});        
}

function showSocialTooltip(id)
{
	$('sm_tooltip_'+id).show();
}

function hideSocialTooltip(id)
{
	$('sm_tooltip_'+id).hide();
}