showbutton = function(id) {
			$('#'+id+'.left-button').show();
						
			}
			
			removebutton = function(id) {
			$('#'+id+'.left-button').hide();
			
			}
			
			removepanel = function(id) {
			$('#'+'b'+id+'.left-button-close').hide();
			$('#'+'t'+id+'.tbox').hide();
			$('#'+id+'.left-button').show();
			
			return false;
			
			}
			
			showpanel = function(id) {
			$('.left-button-close').hide(); 
			$('.tbox').hide(); 
			$('#'+'t'+id+'.tbox').show("slide", {}, 200);
			$('#'+id+'.left-button').hide();
			$('#'+'b'+id+'.left-button-close').show();
			
			return false;
			
			}
			
			showcontent = function(nom) {
			
			$('.right-stats-bottom-content').hide();
			
			if (nom == 'archive') {
			$('#archive').show();
			}
			
			
			else if (nom == 'tweets') {
			$('#toptweets').show();
			}
			
			
			else if (nom == 'authors') {
			$('#topauthors').show();
			}
			
			
			}
			
			function showSubpage(sp)
			
			{
			$("#loading").fadeToggle("slow");
			if (sp=="")
			  {
			  document.getElementById("right-stats-bottom").innerHTML="";
			  return;
			  } 
			if (window.XMLHttpRequest)
			  {// code for IE7+, Firefox, Chrome, Opera, Safari
			  xmlhttp=new XMLHttpRequest();
			  }
			else
			  {// code for IE6, IE5
			  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			  }
			xmlhttp.onreadystatechange=function()
			  {
			  if (xmlhttp.readyState==4 && xmlhttp.status==200)
				{
				document.getElementById("right-stats-bottom").innerHTML=xmlhttp.responseText;
				}
			  }
			xmlhttp.open("GET","include/subpage.php?s="+sp,true);
			$("#loading").fadeToggle("slow");
			xmlhttp.send();
			
			}
			
			function showArchive(sp)
			
			{
			
			if (sp=="")
			  {
			  document.getElementById("right-stats-bottom").innerHTML="";
			  return;
			  } 
			if (window.XMLHttpRequest)
			  {// code for IE7+, Firefox, Chrome, Opera, Safari
			  xmlhttp=new XMLHttpRequest();
			  }
			else
			  {// code for IE6, IE5
			  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			  }
			xmlhttp.onreadystatechange=function()
			  {
			  if (xmlhttp.readyState==4 && xmlhttp.status==200)
				{
				document.getElementById("right-stats-bottom").innerHTML=xmlhttp.responseText;
				}
			  }
			xmlhttp.open("GET","include/subpage.php?s="+sp,true);
			
			xmlhttp.send();
			}
			
			 
			function ajaxarchive(date_var) {
			
			 $('section#right-stats-bottom').load("include/subpage.php?s=archives-2", {date:  date_var});
			 }
			 
			
			
			$(document).ready(function(){

			$(".about").click(function(){
			  $("#top-about").slideToggle("slow");
			 });
			 
 
			$("#close-top-about").click(function(){
			  $("#top-about").slideToggle("slow");
			});
			
			$("span.more").click(function(){
			  $("#more").fadeToggle("slow");
			});

			});
			

			

