// JavaScript Document

// calendar scripts - 2009.8.28 Bryan C.

function changeDate(sel){
	window.location.href = window.location.href.split('#')[0] + sel.options[sel.selectedIndex].value;
}
function calendarInit(){
	var now = new Date();
	var month = now.getMonth() + 1;
	var year = now.getFullYear();
	if(month < 10){
		month = year + "0" + month;
	} else {
		month = year.toString() + month.toString();
	}
	if ($('#mo' + month).length > 0) {
		hideAll();
		showCal(month);
	} else {
		showAll();
	}
}
function showCal(mo){
	//strMo = "mo" + mo.toString();
	$('#mo' + mo).show();
	//alert(mo);
	//document.getElementById(strMo).style.display = "block";
}
function hideCal(mo){
	//strMo = "mo" + mo.toString();
	$('#mo' + mo.toString()).hide();
	//document.getElementById(strMo).style.display = "none";
}
function showAll(){
	$('div[id^=mo]').show();
}
function hideAll(){
	$('div[id^=mo]').hide();
}
function showOne(mo){
	hideAll();
	showCal(mo);
}

// end calendar scripts