﻿jQuery.noConflict();
jQuery(document).ready(function($){


/*div spacing*/
var divs =['div#m_now','div#m_next'];

$('div.month').each(function(idx){
	
	var obj=divs[idx];
	//alert(obj);
	$(obj+' div.section:even').css('margin-right','20px');
	
	$(obj+' div.section:even').each(function(){
	
		var myH = $(this).height();
		var myN = $(obj+' div.section').index(this);
		
		if($(obj+' div.section:eq('+(myN+1)+')').height() !=undefined){
			var nextH = $(obj+' div.section:eq('+(myN+1)+')').height();
			$(this).css('height',Math.max(myH,nextH)+'px');
			$(obj+' div.section:eq('+(myN+1)+')').css('height',Math.max(myH,nextH)+'px');
		}
		
	});
	
});

});


