// public site javascript

var current = "logwrap";
$(document).ready( function() {
	$(".cornerdiv").corner();
	$("#email").focus();
	$("#loginform").validate();

	$(".tmenuitem").corner("bottom");
	$(".tmenuitem").mouseover( function () {
		$(this).addClass("tselect");
	});
	
	$(".tmenuitem").mouseout( function () {
		$(this).removeClass("tselect");
	});
	
	$(".tmenuitem").click( function () {
		var target = $(this).attr("content");
		if (target != current)
			swapme(target);
	});
	
});

function swapme(nexted)
{
	$("#" + current).fadeOut('slow', function() {
    	$("#" + nexted).fadeIn('slow');
		$(".cornerdiv").corner();		
		current = nexted;
  });
}
