// Funky matrix
	
	var timer;
	var xTriggered = 0;
	var inputText;
	var oTimeout;

	$(document).ready( function() { 
	

		//centerWindow();
		//getSearch(); 
		// mouseBitch();
		// initMenu();
	} );

	function mouseBitch() 
	{  var i = 0;
	  $("#trace").hover(function() {
		i += 1;
		$(this).append( "mouse over x " + i );
		$(this).css("background-color",'yellow');
	  });

	  $('div.boxGrid').hover(function() {
			$(this).css("background-color",'yellow');
	  });

	}

	function initMenu() 
	{

	  $("#menuBtnTest").hover(function () {
		  $(this).css("color",'blue');
		}, function () {
		 $(this).css("color",'black');
		});


	/*
	   $("#menuBtnTest").click(function () { 
		  getSearch();
		});

	*/
	}

	function funkyMatrixLoad()
	{

		$("#trace").text('Result:').fadeIn("slow"); 
		$("#trace").append('<br>');
		var results;

		$.post("content/testajax2.php", {},  function(xml){
				
				$('e',xml).each(function(i){
						var color = $(this).find("c").text();
						var id = $(this).find("id").text();
						/*
						$("#trace").append(color);
						$("#trace").append('<br>');
						$("#trace").append(id);
						$("#trace").append('<br>');
						*/
						$("#b" + id).css("background-color",color);
					}
				);
			}
		);
	}

