// JavaScript Document
$(document).keypress(function(e) {
	if(e.which == 13) {
		
		if ($('#cursorTxt').val().toLowerCase() == "about")
		{
			$("#screenDiv").append("<p>ABOUT ME</p><p>Ok, so my name is Chris Carlton. I’m a web developer/geek. I’m currently the Webmaster for the Agency for Health Care Administration of the State of Florida. I love building web sites and just working with web technologies.</p><p>I also work with my good friend, <a href='http://dansnider.info/' target='_new'>Dan Snider</a>, and together we are <a href='http://partnersindesign.info/' target='_new'>Partners In Design</a>, a small web design/development company that focuses on quality functional web sites for small businesses and churches.</p><p>My lovely wife, Wendy, and I have been married for ten years now, and we have two beautiful children, Sydney and TJ.</p>");
			$('#cursorTxt').val('');
		}
		else if ($('#cursorTxt').val().toLowerCase() == "clear")
		{
			$("#screenDiv").empty();
			$('#cursorTxt').val('');
		}
		else if ($('#cursorTxt').val().toLowerCase() == "contact")
		{
			$("#screenDiv").append("<p><a href='https://plus.google.com/111152135281297989076/about' target='_new'>Google Plus Profile</a> - this'll get you to most of my info</p>");
			$('#cursorTxt').val('');
		}
		else if ($('#cursorTxt').val().toLowerCase() == "facepalm")
		{
			$("#screenDiv").append("<table width='100%'><tbody><tr><td><br />............................................________ <br />....................................,.-'&quot;...................``~., <br />.............................,.-&quot;...................................&quot;-., <br />.........................,/...............................................&quot;:, <br />.....................,?......................................................, <br />.................../...........................................................,} <br />................./......................................................,:`^`..} <br />.............../...................................................,:&quot;........./ <br />..............?.....__.........................................:`.........../ <br />............./__.(.....&quot;~-,_..............................,:`........../ <br />.........../(_....&quot;~,_........&quot;~,_....................,:`........_/ <br />..........{.._$;_......&quot;=,_.......&quot;-,_.......,.-~-,},.~&quot;;/....} <br />...........((.....*~_.......&quot;=-._......&quot;;,,./`..../&quot;............../ <br />...,,,___.`~,......&quot;~.,....................`.....}............../ <br />............(....`=-,,.......`........................(......;_,,-&quot; <br />............/.`~,......`-...................................../ <br />.............`~.*-,.....................................|,./.....,__ <br />,,_..........}.&gt;-._...................................|..............`=~-, <br />.....`=~-,__......`,................................. <br />...................`=~-,,.,............................... <br />................................`:,,...........................`..............__ <br />.....................................`=-,...................,%`&gt;--==`` <br />........................................_..........._,-%.......` <br />..................................., </td></tr></tbody></table>");
			$('#cursorTxt').val('');
		}
		else if ($('#cursorTxt').val().toLowerCase() == "help")
		{
			$("#screenDiv").append("<p>Commands:<br />about - About Me<br />clear - Clear screen<br />contact - My contact info(WORKING ON IT.)<br />facepalm - Self-explanatory<br />help - What you're looking at<br />reload - Reload the app</p>");
			$('#cursorTxt').val('');
		}
		else if ($('#cursorTxt').val().toLowerCase() == "mud")
		{
			$("#screenDiv").append("<p><a href='telnet://smaug.chriscarlton.info:4000'>SMAUG MUD</a> - telnet smaug.chriscarlton.info on port 4000</p>");
			$('#cursorTxt').val('');
		}
		else if ($('#cursorTxt').val().toLowerCase() == "reload")
		{
			$('#cursorTxt').val('');
			window.location.reload()
		}
		else
		{
			$("#screenDiv").append('<p>' + $('#cursorTxt').val() + ' - COMMAND IS NOT RECOGNISED</p>');
			$('#cursorTxt').val('');
		}
		
	}
	$.scrollTo("#cursorDiv");
});


