/**
 * 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/RobertWH2\">RobertWH2</a> Congrats on completing your final midterm!<br />about <a href=\"http://twitter.com/websteru/statuses/8737317888\">3 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Friendly reminder to graduating students: Petitions to graduate are due Mon. 2/8 if you plan to walk at #<a href=\"http://www.hashtags.org/tag/STL/\">STL</a> ceremony <a href=\"http://bit.ly/9dRQAU\">http://bit.ly/9dRQAU</a><br />about <a href=\"http://twitter.com/websteru/statuses/8698392252\">4 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "RT @<a href=\"http://twitter.com/cyranoscafe\">cyranoscafe</a>: Lunch special today: Open-faced meatloaf sandwich. @<a href=\"http://twitter.com/websteru\">websteru</a> students/staff get a sweet discount. Come on down!<br />about <a href=\"http://twitter.com/websteru/statuses/8686678275\">4 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "RT @<a href=\"http://twitter.com/WebsterU<i>Biz\">WebsterU_Biz</a>: 2010 Bond Lecture at #<a href=\"http://www.hashtags.org/tag/STL/\">STL</a> 's #<a href=\"http://www.hashtags.org/tag/MICDS/\">MICDS</a> to feature @<a href=\"http://twitter.com/Benjamin_\">Benjamin</i></a> Akande <a href=\"http://bit.ly/9FBNfk\">http://bit.ly/9FBNfk</a><br />about <a href=\"http://twitter.com/websteru/statuses/8685322996\">4 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "@<a href=\"http://twitter.com/stefanikeller06\">stefanikeller06</a> Welcome to Twitter! Hope the class is going well.<br />about <a href=\"http://twitter.com/websteru/statuses/8681152029\">4 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Great recap of Webster University's first Hall of Fame induction - Sports <a href=\"http://bit.ly/bUdsnn\">http://bit.ly/bUdsnn</a><br />about <a href=\"http://twitter.com/websteru/statuses/8680257752\">4 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Remarks by U.S. Ambassador William C. Eacho at Webster University Vienna <a href=\"http://bit.ly/akkZIg\">http://bit.ly/akkZIg</a><br />about <a href=\"http://twitter.com/websteru/statuses/8680004223\">4 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "@<a href=\"http://twitter.com/dbsaia\">dbsaia</a> thanks for the warning!<br />about <a href=\"http://twitter.com/websteru/statuses/8644197920\">5 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Thanks for the recipe! Looks like I'll be making @<a href=\"http://twitter.com/benjamin<i>akande\">benjamin</i>akande</a>'s seafood spicy soup this weekend <a href=\"http://bit.ly/9UGViq\">http://bit.ly/9UGViq</a><br />about <a href=\"http://twitter.com/websteru/statuses/8638451451\">5 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "\"Canvassed Reflections,\" the senior dance concert, begins at 7:30 tonight at Stage III in Webster Hall. 314-968-7128<br />about <a href=\"http://twitter.com/websteru/statuses/8638316169\">5 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "RT @<a href=\"http://twitter.com/WebsterU<i>Biz\">WebsterU</i>Biz</a>: CEO of Tapulous, Bart Decrem here Tues Feb 16 -Join us for \"Adding Value With Apps\". Free RSVP <a href=\"http://bit.ly/a4vzBY\">http://bit.ly/a4vzBY</a><br />about <a href=\"http://twitter.com/websteru/statuses/8635695269\">5 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "RT @<a href=\"http://twitter.com/MoDHSS\">MoDHSS</a>: Dir. Donnelly will be speaking 6pm tonite at Pizza & Politics at Holden Public Policy Forum. <a href=\"http://www.webster.edu/holdenppf/\">http://www.webster.edu/holdenppf/</a><br />about <a href=\"http://twitter.com/websteru/statuses/8595391272\">6 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Webster University hosts Great Debaters from across the nation <a href=\"http://bit.ly/bi2EN8\">http://bit.ly/bi2EN8</a><br />about <a href=\"http://twitter.com/websteru/statuses/8545051057\">7 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "Welcome to Webster, Zach — Warren's Schneider will pitch at Webster University <a href=\"http://bit.ly/dlSrLp\">http://bit.ly/dlSrLp</a><br />about <a href=\"http://twitter.com/websteru/statuses/8545023608\">7 days ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "RT @<a href=\"http://twitter.com/jazztalk\">jazztalk</a> StLouisJazzNotes: Douglas Ewart to perform Saturday, February 13 at Webster University: <a href=\"http://bit.ly/bUgglY\">http://bit.ly/bUgglY</a><br />about <a href=\"http://twitter.com/websteru/statuses/8525081387\">1 week ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "@<a href=\"http://twitter.com/Jess<i>Bess\">Jess_Bess</a> don't worry. when you become famous and come back to campus, we'll have @<a href=\"http://twitter.com/jess_bess\">jess</i>bess</a> on loop!<br />about <a href=\"http://twitter.com/websteru/statuses/8525014001\">1 week ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "@<a href=\"http://twitter.com/justwannawrite\">justwannawrite</a> how did the lecture go?<br />about <a href=\"http://twitter.com/websteru/statuses/8524989267\">1 week 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);
}
