$(document).ready(function() {

	//Expand/Close individual Agenda TimeSlots
	
		$('.expand').click(function() {
		
		var firefoxDetails = this.parentNode.childNodes[7];
		var ieDetails = this.parentNode.childNodes[4];
		
		var firefoxPlusSymbol = this.childNodes[0];	
		var firefoxMinusSymbol = this.childNodes[1];
		
			$(firefoxDetails).slideToggle('normal');
			$(firefoxDetails).toggleClass('bulletopen');
			$(firefoxDetails).toggleClass('details');
			
			
			$(ieDetails).slideToggle('normal');
			$(ieDetails).toggleClass('bulletopen');
			$(ieDetails).toggleClass('details');
			
			$(firefoxPlusSymbol).toggle();
			$(firefoxMinusSymbol).toggle();
		
		return false;
		});

	//Expand All Agenda TimeSlots		
		
		$('.expand-all').click(function() {
			
			$('.details').slideDown('normal');
			$('.bulletopen').addClass('details');
			
			$('.slotClose').hide();
			$('.slotOpen').show();
			
			$('.expand-all').toggle();
			$('.close-all').toggle();
			
		return false;
		});
		
	//Close All Agenda TimeSlots		
		
		$('.close-all').click(function() {
			
			$('.details').slideUp('normal');
			$('.bulletopen').addClass('details');
			
			$('.slotClose').show();
			$('.slotOpen').hide();
			
			$('.close-all').toggle();
			$('.expand-all').toggle();
		
		return false;
		});		
		
	//Drag and Drop (sortable list)	
		
	/*	$(function() {
			$('#agenda-content').sortable({
			  handle : '.slot-container',
			  placeholder: 'slot-container-placeholder'
			}
		);
		
			$('#agenda-content').disableSelection();
		});
		
	*/	
		
	//Expand Speaker Events
		
			$('.expand-header').click(function() {
				
			$('.speakerEventContent').slideToggle('normal');
			$('.slotClose').toggle();
			$('.slotOpen').toggle();
			
			
		return false;
		});
		
});