jQuery(document).ready(function(){
	var bgSunday   = '#ffcccc';	//日曜日の背景
	var bgSaturday = '#ccccff';	
	var bgBlank = '#f6f6f6';	
	var cSunday    = '#ff0000';	//日曜日の文字色
	var cSaturday  = '#0000ff';	
	jQuery('#menu-2').toggle();
	jQuery('#wp-calendar > thead > tr > th:first').css('background-color',bgSunday).css('color',cSunday).css('line-height','1.2em').css('line-height','1.2em');
	jQuery('#wp-calendar > tbody > tr:first > td').remove('.pad');
	var cp_colspan = 6-jQuery('#wp-calendar > tbody > tr:first > td').length;
	if(cp_colspan < 0){
		
	}else if(cp_colspan == 0){
		jQuery('#wp-calendar > tbody > tr:first > td:first').before('<td>&nbsp;</td>');		
	}else{
		jQuery('#wp-calendar > tbody > tr:first > td:first').before('<td>&nbsp;</td><td class="pad" colspan="'+cp_colspan+'">&nbsp;</td>');
	}
	jQuery('#wp-calendar > tbody > tr > td:first-child:not(.pad)').css('background-color',bgSunday).css('color',cSunday).css('line-height','1.2em').css('line-height','1.2em');
	jQuery('#wp-calendar > thead > tr > th:last').css('background-color',bgSaturday).css('color',cSaturday).css('line-height','1.2em').css('line-height','1.2em');
	jQuery('#wp-calendar > tbody > tr > td:last-child:not(.pad)').css('background-color',bgSaturday).css('color',cSaturday).css('line-height','1.2em').css('line-height','1.2em');
	jQuery('#wp-calendar > tbody > tr > td.pad').css('background-color',bgBlank)
});