function revealSubcats(category)
{
  $('#'+category).toggle();
  var catlink = category + "_link";
  if($('#'+category).css('display') == 'block')
    $('#'+catlink).attr("title", "Click to retract")
  else
    $('#'+catlink).attr("title", "Click to expand")
}

$(function() {
	var origImg ="";
	$(".hoverswap").hover (
		function() {
			origImg = ($(this).attr("src"));
			$(this).attr("src", ($(this).attr("over")));
		},
		function() {
			$(this).attr("src", origImg);
		}
	);
});

function openDiv(divName)
{
  $('#'+divName).show();
}

function sendText()
{
  $('#textForm').hide();
  $.post("/include/sendtext.php", { text: $('#textmessage').val()},
  function processResult(results)
  {
    alert("Your message has been sent.");
  });
}


