// Author: Andy Asberry, Ciphertek Systems, LLC
// Date: October 2009


var blogArchive = new function() {
	
	this.showHideYear = function(yr) {
		var self = blogArchive;
		var year_list = document.getElementById('year_list_' + yr);
		var arrow = document.getElementById('year_arrow_' + yr);
		var arrow_icon = '/cts_blog/images/arrow.gif';
	    var arrow_down_icon = '/cts_blog/images/arrow_down.gif';
		if (year_list.style.display == 'none') {
		  year_list.style.display = '';	
		  arrow.src = arrow_down_icon;
		}
		else {
		  year_list.style.display = 'none';
		  arrow.src = arrow_icon;
		}
	};
	
	this.showHideMonth = function(yr_mo) {
	  var self = blogArchive;
	  var month_list = document.getElementById('month_list_' + yr_mo);
	  var arrow = document.getElementById('month_arrow_' + yr_mo);
	  var arrow_icon = '/cts_blog/images/arrow.gif';
	  var arrow_down_icon = '/cts_blog/images/arrow_down.gif';
	  if (month_list.style.display == 'none') {
		month_list.style.display = '';  
		arrow.src = arrow_down_icon;
	  }
	  else {
		  month_list.style.display = 'none';
		  arrow.src = arrow_icon;
	  }
	};
	
};


