function toggleTextOut(e,txtval) {
	if(e.value=="") e.value = txtval;

}
function toggleTextIn(e,txtval) {
	if(e.value==txtval) e.value="";
	else e.select();
}

$(document).ready(function(){
	$(".swap").hover(
			function(){
				if($(this).attr("src").indexOf("-on") == -1) {
				var newSrc = $(this).attr("src").replace(".gif","-on.gif");
				$(this).attr("src",newSrc);
				}},
				function(){
				if($(this).attr("src").indexOf(".gif") != -1) {
				var oldSrc = $(this).attr("src").replace("-on.gif",".gif");
				$(this).attr("src",oldSrc);
				}
	});
	$('#nav-top li:last-child').addClass('last');
	$('#nav-top li:first').addClass('first');
	$('#nav-sub li:last-child').addClass('last');
	$('#nav-sub li:first-child').addClass('first');
	$('#nav-sub li.current a').addClass('current');
	$('table.sortable span:last-child').addClass('last');

	
	$('.answer-listing tr:odd').addClass('odd');
	$('.gallery-list li:last-child()').addClass('last');
	$('.gallery-list ul:last-child()').addClass('ul-last');
	$(".gallery-list li").hover(
	  function () {
		$(this).addClass('hover');
	  }, 
	  function () {
		$(this).removeClass('hover');
	  }
	)
	
	
});
