 jQuery(document).ready(function(){
	var myCalendarNav = jQuery("#wp-calendar").children(".nav").children("tbody").children("tr");
	var myFeedButton = myCalendarNav.children("td:eq(1)");
	myCalendarNav.children("td:eq(1)").hide();
	
	var myMonthName = jQuery("#wp-calendar").children("table:eq(1)").children("caption").html();
	jQuery("#wp-calendar").children("table:eq(1)").children("caption").hide();
	jQuery("#wp-calendar").children("table:eq(1)").children("thead").hide();
	myCalendarNav.children("td:first").before('<td class="monthName">' + myMonthName + '</td>');
	
	jQuery("#ec3_prev").html('<img src="/images/leftArrow.gif" />')
	jQuery("#ec3_next").html('<img src="/images/rightArrow.gif" />')
	jQuery("#ec3_prev").hover(function(){
		jQuery(this).html('<img src="/images/leftArrowRO.gif" />');
	}, function() {
		jQuery(this).html('<img src="/images/leftArrow.gif" />');	
		
	});
	jQuery("#ec3_next").hover(function(){
		jQuery(this).html('<img src="/images/rightArrowRO.gif" />');
	}, function() {
		jQuery(this).html('<img src="/images/rightArrow.gif" />');	
		
	});			
	jQuery("#ec3_prev, #ec3_next").click(function(){
			myCalendarNav.children("td:first > a").fadeOut();
			setTimeout("changeMonth()",200);
			myCalendarNav.children("td:first > a").fadeIn();
	});	
	jQuery('#wp-calendar .nav').show();
	eventDAY();
	
 }); 
 
 function changeMonth() {
 	var visible_month = jQuery("#wp-calendar").children("table:gt(0):visible").attr('id');
 	var month_attrs = visible_month.split('_');
 	//alert(month_attrs);
 	var month = month_attrs[2];
 	var year = month_attrs[1];
 	/*
 	if (month == 1)
 	{
 		month = 12;
 		year = year - 1;
 	}
 	if (month == 12)
 	{
 		month = 1;
 		year = year + 1;
 	}
 	*/
 	jQuery('#wp-calendar').children("table:gt(0)").hide();
 	jQuery('#ec3_' + year + '_' + month).show();
 	var new_month = jQuery('#ec3_' + year + '_' + month).children('caption').html();
 	var myCalendarNav = jQuery("#wp-calendar").children(".nav").children("tbody").children("tr");
	
	myCalendarNav.children('.monthName').html(new_month);
 	/*
	var myMonthName = jQuery("#wp-calendar").children("table:gt(0):visible").children("caption").html();
	var myCalendarNav = jQuery("#wp-calendar").children(".nav").children("tbody").children("tr");
	myCalendarNav.children("td:first").html(myMonthName);
	*/
	setTimeout("updateMonth()", 200);
 }
 function updateMonth() {
	var myMonthName = jQuery("#wp-calendar").children("table:gt(0):visible").children("caption").html();
	var myCalendarNav = jQuery("#wp-calendar").children(".nav").children("tbody").children("tr");
	myCalendarNav.children("td:first").html(myMonthName);
 }
 function eventDAY() {
	
	 
 };