function vote(haiku, like)
	{
		new Ajax.Updater(
			'vote-box'+haiku,'/haikus/vote',
			{
				asynchronous:true,
				evalScripts:true,
				method:'post',
				parameters: {id: haiku, incredible: like},
				onComplete:function(request, json) 
				{
					Element.highlight('vote-box'+haiku,
						{ 
							startcolor: '#ffff99',
							endcolor: '#191919' 
						}
					)
				},
				requestHeaders:['X-Update', 'vote-box'+haiku]
			}
		);
	}

function toggle_links(element){
	Effect.toggle('links'+element, 'blind', { duration: 0.3 });
}

function report(haiku){
	
	new Ajax.Request(
		'/haikus/report_a_mofe',
		{
			method: 'post',
			parameters: {id: haiku},
			onSuccess: alert('Thank you.')
		}
	);

}

function email(){

	var a = new Array('.com','ables','-syll','nteen','@seve','ct-us','conta');
	return ("<a href='mailto:"+a[6]+a[5]+a[4]+a[3]+a[2]+a[1]+a[0]+"'>Contact us</a>");
}