function hate()
{
	var myRequest = new Ajax.Request('http://itp.nyu.edu/~acb363/dwd/tagcloudy/projectx/hate.php',
	{
		method:'get',
		onSuccess: function( transport )
		{
			var response = transport.responseText || "no response text";
			drawHateTags( transport.responseText );
		},
		onFailure: function()
		{
			alert("Argh!");
		}
	});	
	
}

function drawHateTags( responseText )
{
	responseText = responseText.replace( "/n", "" );
	
	var tagcloudh8 = new TagCloudHate( $('tagcloudh8'), 'random' );
	var hateArray = eval( "(" + responseText + ")" );

	console.log( hateArray );
	
	for (var i = 0; i < hateArray.length; i++)
	{
		var randomvalue = Math.round(Math.random()*5);
		console.log( hateArray[i] );
		tagcloudh8.addNode(new Node(hateArray[i], 2));
	}	
	
	
	tagcloudh8.draw();
	  
}
