// JavaScript Document


$(document).ready(function() {


	$('div#menu-thismonth li.head').click(function() {
												   
		hideRest();
		
		$(this).next().stop(true,true).toggle('slow');
		return false;
		
	});
	
	$('div#menu-archive li.head').click(function() {
												   
		hideRest2();
		
		$(this).next().stop(true,true).toggle('slow');
		return false;
		
	});

	$(".curved").corner("10px");	
	$(".curvedtop").corner("tl 10px tr 10px");
	$(".curvedbottom").corner("bl 10px br 10px");

});


function hideRest()
{
	$('div#menu-thismonth li.head').next().stop(true,true).hide('slow');	
}

function hideRest2()
{
	$('div#menu-archive li.head').next().stop(true,true).hide('slow');	
}

function clearMe(elem, value) {

	var fieldvalue = $(elem).attr('value');


	if(fieldvalue == "") {
		$(elem).attr('value', value);
	}
	else {
		if($(elem).attr('value') == value) {
			$(elem).attr('value', '');
		}
	}

}

