function test(user) {
	var html = "<textarea style='width: 400px; height: 80px;'>@"+user+"</textarea><br /><input type='submit' value='Submit Tweet' />";
	var current = document.getElementById("bottomformtwit").innerHTML;
	document.getElementById("bottomformtwit").innerHTML += html;
}

function createPopup(url){
	//alert(url);
	window.open(url,'mywindow','width=600,height=300,left=100,top=100,screenX=100,screenY=100');
	//'"+twit+"@"+user+"';
}

$(document).ready(function() {
	$('#tweetainer > table').hover(function() {
		var follow = "http://twitter.com/";
		var twit = "http://twitter.com/home/?status=";
		var user = $(this).find('a.user').text();
		var tweet = $(this).find('span.tweet').text();
		var tweetid = $(this).find('span.tweetid').text();
		var newtweet = encodeURIComponent(tweet);
		var linkhref = "http://www.columbusreport.com/user.php?tweetid="+tweetid+"";
		var u = linkhref;
		//var html = "<span class='tinymenu'><ul><li><a href='/inc/forms/reply.php' class='lbOn'>Reply</a></li><li><a href='"+twit+"RT+@"+user+"+"+newtweet+"'>Retweet</a></li><li><a href='"+follow+user+"'>Follow</a></li><li><a href='http://www.facebook.com/sharer.php?u="+u+"'><img src='http://static.ak.fbcdn.net/images/share/facebook_share_icon.gif?0:26981' /></a></li></ul></span><span id='bottomformtwit'></span>";
		var html = "<span class='tinymenu'><ul><li><a href=javascript:createPopup('"+twit+"@"+user+"')>Reply</a></li><li><a href=javascript:createPopup('"+twit+"RT+@"+user+"+"+newtweet+"')>Retweet</a></li><li><a href=javascript:createPopup('"+follow+user+"')>Follow</a></li><li><a href=javascript:createPopup('http://www.facebook.com/sharer.php?u="+u+"')><img src='http://static.ak.fbcdn.net/images/share/facebook_share_icon.gif?0:26981' /></a></li></ul></span>";
		
		$(this).find('span.menu').append(html);
	}, function() {
		$('span.tinymenu').remove();
		$('#bottomformtwit').remove();
	});
});