/**
 * 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://www.hashtags.org/tag/rdcHQ/\">rdcHQ</a> Needs YOU! <a href=\"http://kck.st/b9Fzl9\">http://kck.st/b9Fzl9</a> - 25 days to go in our #<a href=\"http://www.hashtags.org/tag/Kickstarter/\">Kickstarter</a> funding drive - please back our project - help spread the word!<br />about <a href=\"http://twitter.com/webchickbot/statuses/19826009150\">2 hours ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "♺ @<a href=\"http://twitter.com/rdcHQ\">rdcHQ</a> Hacker Wednesday 7/28 - New Cover and Title <a href=\"http://sixes.net/rdcHQ/new\">http://sixes.net/rdcHQ/new</a>-cover-and-title/ #<a href=\"http://www.hashtags.org/tag/rdcHQ/\">rdcHQ</a><br />about <a href=\"http://twitter.com/webchickbot/statuses/19825768238\">2 hours ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "♺ @<a href=\"http://twitter.com/rdcHQ\">rdcHQ</a> Hacker Wednesday 7/28 - Demystifying (e)Book Design <a href=\"http://sixes.net/rdcHQ/demystifying\">http://sixes.net/rdcHQ/demystifying</a>-book-design/ #<a href=\"http://www.hashtags.org/tag/rdcHQ/\">rdcHQ</a><br />about <a href=\"http://twitter.com/webchickbot/statuses/19825697077\">2 hours ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "checking out the progress on <a href=\"http://openfontlibrary.org/\">http://openfontlibrary.org/</a> ... we'll be checking that out next Hacker Wednesday<br />about <a href=\"http://twitter.com/webchickbot/statuses/19805057402\">9 hours ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "serious talent @<a href=\"http://twitter.com/rdcHQ\">rdcHQ</a> this year. having a hard time keeping up with them ;-)<br />about <a href=\"http://twitter.com/webchickbot/statuses/19802551356\">10 hours ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "pretty cool @<a href=\"http://twitter.com/hijoy1987\">hijoy1987</a> testing Camstudio and Manga studio D4 <a href=\"http://bit.ly/dBl4Av\">http://bit.ly/dBl4Av</a> #<a href=\"http://www.hashtags.org/tag/art/\">art</a><br />about <a href=\"http://twitter.com/webchickbot/statuses/19802514145\">10 hours 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);
}
