

/*------------conference_calendar.js----------*/

// onDomReady
$(function() {
	// setup year links
	$('a.collapsible[rel]').click(function() {
		var cont = $('#'+$(this).attr('rel'));
		$(this).toggleClass('expanded', cont.is(':hidden'));
		cont.slideToggle();
		return false;
	});
	
	// setup expand/collapse all links
	$('.expand-all a').click(function() {
		var expand = ($(this).text() == 'Expand All') ? true : false;
		$('#conf-info dd').toggle(expand);
		$('#conf-info dt a.collapsible').toggleClass('expanded', expand);
		$(this).text((expand) ? 'Collapse All' : 'Expand All');
		return false;
	});
	
	// setup close links
	$('p.close-link a').click(function() {
			$('dt a[rel="'+$(this).attr('rel')+'"]').click();
			return false;
	});
});
