/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* Global variables */
var popoutMenu=0;
var expandedCourses=0;

/* Functions */
$(document).ready(function(){
	$('#expandedCourses').hide();
	$('#popoutMenu').hide();

	/* Check courses in expanded menu */
	$('li[class="expanded"]').click(function(){
		if($(this).hasClass('checkedCourse')){
			$(this).removeClass('checkedCourse');
		}
		else{
			$(this).addClass("checkedCourse");
		}
	});

/* Expand/Collapse courses in popout menu */
function expandCourses(){
	if(expandedCourses==0){
	$('#expandedCourses').stop(false, true).slideDown(300);
	expandedCourses=1;
	}
	else if(expandedCourses==1){
		$('#expandedCourses').stop(false, false).slideUp(300);	
		expandedCourses=0;
	}
}