function getNextMonth(lang,path,month,year) {
	
	//determin next month
	if(month==12) {
		month=1;
		year++;
	} else {
		month++;
	}
	
	$('#projectsList .info').css('background','#ffffff').fadeOut(400);
	//rebuild list
	$('#projectsList').pause(400).hide(200, function(){
		$.get('../pages/functions/getarchivemonth.php', {'lang':lang,'siteRoot':path,'month':month,'year':year}, function(data){
		
		monthId = month-1;
		$.get('../pages/functions/getarchivenav.php', {'lang':lang,'month':monthId}, function(data){

			sIFR.callbacks['#sifrNav .leftLink'][0].replaceText(year);	
			sIFR.callbacks['#sifrNav .rightInfo'][0].replaceText(data);
		});
		
		$.get('../pages/functions/getarchivearrows.php', {'lang':lang,'siteRoot':path,'month':month,'year':year}, function(data){
			$('.arrows').empty().html(data);
		});
		
		$('#projectsList').html(data).animate({opacity: 'show'},"fast",function(){
			$('#projectsList .info:hidden').css('background','#ffffff').fadeIn(300,function(){
				
			});
			//rebind left nav
			$("#contentBucket3 .info .title a").bind("click",function(event){
					$('#contentBucket3 .info .details:visible').slideUp(380, function() {
					$("#contentBucket3 .info .title a").css({ color:"#898989" });
				});
				$(this).parent().parent().children('.details:hidden').slideDown(420, function(){
					$(this).parent().children().children().css({ color:"#000" });
				});
			});
		});
	  });
	});
}

//archive previous month
function getPrevMonth(lang,path,month,year) {
	//determin previous month
	if(month==1) {
		month=12;
		year--;
	} else {
		month--;
	}
	
	$('#projectsList .info').css('background','#ffffff').fadeOut(400);
	//rebuild list
	$('#projectsList').pause(400).hide(200, function(){
		$.get('../pages/functions/getarchivemonth.php', {'lang':lang,'siteRoot':path,'month':month,'year':year}, function(data){
		
		monthId = month-1;
		$.get('../pages/functions/getarchivenav.php', {'lang':lang,'month':monthId}, function(data){

			sIFR.callbacks['#sifrNav .leftLink'][0].replaceText(year);	
			sIFR.callbacks['#sifrNav .rightInfo'][0].replaceText(data);
		});
		
		$.get('../pages/functions/getarchivearrows.php', {'lang':lang,'siteRoot':path,'month':month,'year':year}, function(data){
			$('.arrows').empty().html(data);
		});
		
		$('#projectsList').html(data).animate({opacity: 'show'},"fast",function(){
			$('#projectsList .info:hidden').css('background','#ffffff').fadeIn(300,function(){
				
			});
			//rebind left nav
			$("#contentBucket3 .info .title a").bind("click",function(event){
					$('#contentBucket3 .info .details:visible').slideUp(380, function() {
					$("#contentBucket3 .info .title a").css({ color:"#898989" });
				});
				$(this).parent().parent().children('.details:hidden').slideDown(420, function(){
					$(this).parent().children().children().css({ color:"#000" });
				});
			});
		});
	  });
	});
}

