$(document).ready(function(){
	count = 0;
	$(".content_middle > *").each(function(){
		if(this.nodeName == 'H1' || this.nodeName == 'H2' || this.nodeName == 'H3' || this.nodeName == 'H4' || this.nodeName == 'H5'|| this.nodeName == 'H6'){
			if(!is_even(count)){
				$(this).css('background-color', '#f5f3ec');
				$(this).nextAll().each(function(){
					if(this.nodeName == 'H1' || this.nodeName == 'H2' || this.nodeName == 'H3' || this.nodeName == 'H4' || this.nodeName == 'H5'|| this.nodeName == 'H6'){
						return false;
					} else {
						$(this).css('background-color', '#f5f3ec');
					}
				});
			}
			count++;
		}
	});
	
	count = 0;
	$(".column_middle > *").each(function(){
		if(this.nodeName == 'H1' || this.nodeName == 'H2' || this.nodeName == 'H3' || this.nodeName == 'H4' || this.nodeName == 'H5'|| this.nodeName == 'H6'){
			if(!is_even(count)){
				$(this).css('background-color', '#f5f3ec');
				$(this).nextAll().each(function(){
					if(this.nodeName == 'H1' || this.nodeName == 'H2' || this.nodeName == 'H3' || this.nodeName == 'H4' || this.nodeName == 'H5'|| this.nodeName == 'H6'){
						return false;
					} else {
						$(this).css('background-color', '#f5f3ec');
					}
				});
			}
			count++;
		}
	});
});

var is_even = function(number){
    return (number%2 == 0) ? true : false;
};
