//1
//$(function () {
/*2*/function showpostsforyear(yyyy){
/*3*///	$('<div id="archiveloader"></div>').html("Loading Content: "+yyyy+" ...").appendTo('body').fadeIn();
/*4*/	$.get('/cust/blog/ajaxhosts/blog_ajax.asp?f=showpostsforyear&y='+yyyy,function(data) {
/*5*/ 		$("#months" + yyyy).slideUp('slow',function(){
/*6*/			$(this).html(data).slideDown('slow',function(){
/*7*/				//$('#loading').fadeOut('slow',function(){$(this).remove();});
				});
			});
		});
	}
/*8*///$("div#nav ul li a").click(function(){
/*9*///	$('#nav ul li a.current').removeClass('current');
/*10*///	$(this).addClass('current');
/*11*///	ajaxify($(this).attr('href'));
/*12*///	return false;
	//});
//});

function showpostsformonth(yyyy,mm){
	$.get('/cust/blog/ajaxhosts/blog_ajax.asp?f=showpostsformonth&y='+yyyy+'&m='+mm,function(data) {
		$("#titles"+yyyy+""+mm).slideUp('slow',function(){
			$(this).html(data).slideDown('slow',function(){
				//$('#loading').fadeOut('slow',function(){$(this).remove();});
			});
		});
	});
}

$(document).ready(function(){
  l = location.pathname.substring(1,5);
  if (l.match(/\d\d\d\d/)) { 
  		l = location.pathname.substring(1,9); 
  		y = location.pathname.substring(1,5);
		m = location.pathname.substring(6,l.lastIndexOf('/')+1);
		//alert("y="+y+", m="+m);
		showpostsforyear(y);
		setTimeout("showpostsformonth(y,m);",1000);
  		//showpostsformonth(y,m);
  }
});