/**
 * 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 = "Photoset: Oh man! New pages! Finally! <a href=\"http://tumblr.com/xu0dezygk\">http://tumblr.com/xu0dezygk</a><br />about <a href=\"http://twitter.com/The_Iron_Sea/statuses/18529532210\">2 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Photo: An exercise in restraint. Pro wind surfs with his faithful pet, Aeschylus the fjord-land penguin. <a href=\"http://tumblr.com/xu09rdanm\">http://tumblr.com/xu09rdanm</a><br />about <a href=\"http://twitter.com/The_Iron_Sea/statuses/13803694007\">11 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Photo: Finished the Prince of the Sea illustration. <a href=\"http://tumblr.com/xu09m837e\">http://tumblr.com/xu09m837e</a><br />about <a href=\"http://twitter.com/The_Iron_Sea/statuses/13613980565\">12 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);
}
