/**
 * 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 = "@<a href=\"http://twitter.com/sidisplay\">sidisplay</a> Also, meet us for happy hour tonight with the awesome folks from @<a href=\"http://twitter.com/HUGEinc\">HUGEinc</a> - 7pm at Jolly Pumpkin. See you there!<br />about <a href=\"http://twitter.com/umsochi/statuses/8636155250\">5 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Job hunt today! Engineering job fair on North Campus, @<a href=\"http://twitter.com/HUGEinc\">HUGEinc</a> info session at noon, 411 West Hall<br />about <a href=\"http://twitter.com/umsochi/statuses/8636004990\">5 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Update! We heard there's been a lot of pizza at SI lately, so we will be having Jimmy John's tonight at the design jam instead!<br />about <a href=\"http://twitter.com/umsochi/statuses/8556436035\">7 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Don't forget - Yahoo! Info session today at noon, followed up by a design jam (with pizza!) at 6pm. Please RSVP on Facebook!<br />about <a href=\"http://twitter.com/umsochi/statuses/8542548219\">7 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Google info session today at noon! Talk to SI alum, current Googler David Choi about UX research & eat pizza! Sign up on iTrack @<a href=\"http://twitter.com/si<i>careers\">si</i>careers</a><br />about <a href=\"http://twitter.com/umsochi/statuses/8369201487\">2 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "See you at the peer resume review today at noon! Meet in 412 West Hall<br />about <a href=\"http://twitter.com/umsochi/statuses/8241982904\">2 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Exposition info session in 311 west hall now! Come ask questions and find out about this great opportunity!<br />about <a href=\"http://twitter.com/umsochi/statuses/8076630826\">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);
}
