function showLogin(){
	document.getElementById("login").style.display = 'block';
	document.getElementById("search").style.display = 'none';
}
function toggleMom2Mom(id) {
	$('h2.tabs').toggle();
	$('div.momlist').toggle();
}
function toggleCommentForm() {
	$('span.br').css({ background:"none"}); 	
	$('span.bl').css({ background:"none" });
	$('span.pk_br').css({ background:"none" });
	$('span.pk_bl').css({ background:"none" });
	
	$('#comment_form').toggle(); 
	
	$('span.br').css({ background:"transparent url(http://www.momsmiami.com/images/pp_bottom_right.gif) no-repeat bottom left", position:"absolute",bottom:"0pt", right:"0pt" });
	$('span.bl').css({ background:"transparent url(http://www.momsmiami.com/images/pp_bottom_left.gif) no-repeat bottom left", position:"absolute",bottom:"0pt", left:"0pt" });
	$('span.pk_br').css({ background:"transparent url(http://www.momsmiami.com/images/pk_bottom_right.gif) no-repeat bottom left", position:"absolute",bottom:"25px", right:"8px" });
	$('span.pk_bl').css({ background:"transparent url(http://www.momsmiami.com/images/pk_bottom_left.gif) no-repeat bottom left", position:"absolute",bottom:"25px", left:"8px" });	
}
$(document).ready(function() { 
	//change background color on mom2mom
	$('#left-rail ul.forums li').hover(
		function () {
        $(this).addClass("on");
      }, 
      function () {
        $(this).removeClass("on");
      }
	);
	$('h2.tabs a.tab').hover(
		function () {
        $(this).children('img').toggle();
      }, 
      function () {
        $(this).children('img').toggle();
      }
	);	
	$('div.blogs h2.tabs a').click(
		function () {        
        $('h2.tabs a').removeClass("on");
        $('h2.tabs a').addClass("off");
        $(this).removeClass("off");
        $(this).addClass("on");
		}
	);	
		
});
