/**
 * 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 = "New blog post: Did students commit 'suicide by laptop'? <a href=\"http://hazdat.com/did\">http://hazdat.com/did</a>-students-commit-suicide-by-laptop/<br />about <a href=\"http://twitter.com/HazDat/statuses/16728241972\">5 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "New blog post: Was convicted hacker on the Secret Service payroll?  <a href=\"http://hazdat.com/convicted\">http://hazdat.com/convicted</a>-hacker-on-the-secret-service-payroll/<br />about <a href=\"http://twitter.com/HazDat/statuses/10948078053\">18 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "New blog post: If your car's not owned it could be pwned <a href=\"http://hazdat.com/if\">http://hazdat.com/if</a>-your-cars-not-owned-it-could-be-pwned/<br />about <a href=\"http://twitter.com/HazDat/statuses/10746151094\">19 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "New blog post: FTC Queues-in on Netflix Member Privacy <a href=\"http://hazdat.com/ftc\">http://hazdat.com/ftc</a>-queues-in-on-netflix-member-privacy/<br />about <a href=\"http://twitter.com/HazDat/statuses/10580114459\">19 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "New blog post: YouTube the Crime, You Do the Time <a href=\"http://hazdat.com/youtube\">http://hazdat.com/youtube</a>-the-crime-you-do-the-time/<br />about <a href=\"http://twitter.com/HazDat/statuses/10429333375\">20 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "New blog post: Infidelity -- There's a map for that. <a href=\"http://bit.ly/2fn32n\">http://bit.ly/2fn32n</a><br />about <a href=\"http://twitter.com/HazDat/statuses/5670823273\">37 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "New blog post: Location, Location, Location. <a href=\"http://bit.ly/7eaGL\">http://bit.ly/7eaGL</a><br />about <a href=\"http://twitter.com/HazDat/statuses/5247417084\">39 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "New blog post: OT: Verizon -- Oh no you di'nt! <a href=\"http://bit.ly/pvFQl\">http://bit.ly/pvFQl</a><br />about <a href=\"http://twitter.com/HazDat/statuses/4818552227\">41 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "New blog post: The problem is, banks have too many humans. <a href=\"http://bit.ly/TvigA\">http://bit.ly/TvigA</a><br />about <a href=\"http://twitter.com/HazDat/statuses/4488976311\">43 weeks ago</a>";
	ul.appendChild(li);
	li = document.createElement("li");
	li.innerHTML = "New blog post: You Tweet, therefore: YOU ARE HERE. <a href=\"http://bit.ly/2qtk4\">http://bit.ly/2qtk4</a><br />about <a href=\"http://twitter.com/HazDat/statuses/4349404314\">44 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);
}
