
jQuery(function()
{(function($)
{$('.events').find('.event').each(function(i)
{if(i==0)
$(this).addClass('expanded')
else
$(this).addClass('collapsed');});$('.events').find('.handle').css('cursor','pointer').hover(function()
{$(this).css('backgroundColor','#F4FAFC');},function()
{$(this).css('backgroundColor','#FFF');}).click(function(e)
{if(!$(this).closest('.events').data('animating'))
{var event=$(this).closest('.event'),toHeight;if($.browser.opera)
toHeight=(parseInt(event.css('height'))==24)?parseInt(event.find('.content').css('height'))+44+'px':'24px';else
toHeight=(event.height()==24)?event.find('.content').height()+44+'px':'24px';event.closest('.events').data('animating',true).end().animate({height:toHeight},{complete:function()
{$(this).toggleClass('expanded collapsed').closest('.events').data('animating',false);},duration:250});event.siblings('.expanded').animate({height:'24px'},{complete:function()
{$(this).toggleClass('expanded collapsed');},duration:250});}});$('.cal-mask').find('select').change(function(e)
{if($(this).val()!=0)
$(this).closest('form').submit();});})(jQuery);});