/**
 * 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 = "We are looking for a Program Intern and a Communications Intern for our Berkeley office. Interested? Email contact[at]globalhealing.org.<br />about <a href=\"http://twitter.com/globalhealing/statuses/19758058912\">22 hours ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "We need blood storage, testing and processing equipment for our program in Moldova. Please let us know if you can help: <a href=\"http://cot.ag/b6WFlW\">http://cot.ag/b6WFlW</a><br />about <a href=\"http://twitter.com/globalhealing/statuses/19668446266\">2 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "We are looking for a used Siemens CA-1500 to go to the biggest hospital in Moldova. Please RT. Email us at contact[at]globalhealing.org.<br />about <a href=\"http://twitter.com/globalhealing/statuses/18069306854\">3 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);
}
