/**
 * How to use.
 * (Look below for an example)
 * http://www.gtaero.net/twitter/	
 * [optional]	[DEFAULT]	navarr		?user	=USERNAME		STR
 * [optional]	[DEFAULT]	10		&count	=NUMBER_TO_SHOW		INT 0-20
 * [optional]	[DEFAULT]	true		&time	=DISPLAY_TIME		BOOL[true,false]	Display the Time of the Tweet
 * [optional]	[DEFAULT]	true		&client	=DISPLAY_CLIENT		BOOL[true,false]	Display the Client the tweet was posted from
 * [optional]	[DEFAULT]	true		&br	=BREAK_TWEET_TIME	BOOL[true,false]	Break the Tweet and the Time in HTML (<br />)
 * [optional]	[DEFAULT]	false		&turl	=USE_TURLED		BOOL[true,false]	Use Turled profile links instead of twitter
 * [optional]	[DEFAULT]	5		&cache	=MINUTES_TO_CACHE	INT >= 5		The number of minutes (greater than or equal to five) to cache tweets.
 *
 *
 * How to embed:
 * Put in <head>: <script type="text/javascript" src="http://www.gtaero.net/twitter/?VARIABLES" />
 * Put in <body>: <div id="twitterz"></div><script type="text/javascript">twitter2id("twitterz");</script>
 *
 * Example of URL with variables: http://gtaero.net/twitter/?user=navarr&count=5
 *
 * PHP Source Code: http://www.gtaero.net/twitter/index.php?source
 *
 * About & License: http://tech.gtaero.net/code/simple-twitter
 */
function twitter2id(id)
{
	// Used New File
	var twitterEle = document.getElementById(id);
	var ul = document.createElement("ul");
	var li;
	li = document.createElement("li");
	li.innerHTML = "RIP: Former City hero Ken Barnes dies at the age of 81: <a href=\"http://tinyurl.com/35ngrm2\">http://tinyurl.com/35ngrm2</a><br />about <a href=\"http://twitter.com/mcivta/statuses/18589073924\">2 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Payback 1966? Incredible decision by the referees to not judge the ball in. #<a href=\"http://www.hashtags.org/tag/WC2010/\">WC2010</a><br />about <a href=\"http://twitter.com/mcivta/statuses/17171266596\">5 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Just enough to see off Fulham for a decent 2-1 away win for the blues! Nice work!<br />about <a href=\"http://twitter.com/mcivta/statuses/10828568386\">19 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Looks like there will be a full house of cards before rhe end at OT today. A draw there will suit us just fine!<br />about <a href=\"http://twitter.com/mcivta/statuses/10821195534\">19 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "4-2 is a wonderful result against Chelsea at Stamford Bridge, but we still look a bit rusty...<br />about <a href=\"http://twitter.com/mcivta/statuses/9732140857\">22 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "The inconsistency of referee Steve Bennett reaches new heights in this game. Ade sent off for having long arms...<br />about <a href=\"http://twitter.com/mcivta/statuses/9593990204\">22 weeks ago</a>";
	ul.appendChild(li);
	twitterEle.innerHTML = "";
	twitterEle.appendChild(ul);
	var span = document.createElement("span");
	span.style.textAlign = "center";
	span.style.width = "100%";
	span.style.fontSize = "60%";
	span.style.visibility = "visible !important";
	span.style.display = "inline-block !important";
	span.setAttribute("class","simpleTwitterLink");
	var link = document.createElement("a");
	link.setAttribute("href","http://tech.gtaero.net/code/simple-twitter");
	link.innerHTML = "Simple Twitter";
	span.appendChild(link);
//	twitterEle.appendChild(span);
}
