/* Bind a new event for last post to avoid footer crossover */
jQuery(document).ready(function() {
	$lastA = jQuery('#content div.post-entry-last div.avatar + p a:first')
	if($lastA.html()) {
		$footer = jQuery("#footer");
		$lastA.mousedown( function() {
		var marginTop = '220px';
		var originalMarginTop = '0px';
		if($footer.css('margin-top')==originalMarginTop)
			$footer.css("margin-top", marginTop);
		else
			$footer.css("margin-top", originalMarginTop);
		});
	}
});

function toggleDiv(divid){
	if(document.getElementById(divid).style.display == 'none'){
      document.getElementById(divid).style.display = 'block';
    }else{
    	document.getElementById(divid).style.display = 'none';
    }
  }

