// Creates course list at the left side pannel
// Coder: Puspa Mahat
// Coded for the Department's Website. Should be used for that purpose only.
// For Support please mail at mahatpuspa@gmail.com

courseSubVisible = 0;
listhtml="";
sublist ="";
session = "Spring Courses"; // Change this to refer to current session like Spring | Summer I | Summer II | Fall

function manageCourseList()
{
	if(courseSubVisible == 0)
	{
		document.getElementById('courseList').style.display='block';
		//document.getElementById('courseTop').style.background-position = '0px -25px';
		courseSubVisible = 1;
	}
	else
	{
		document.getElementById('courseList').style.display='none';
		courseSubVisible = 0;
	}
			
}
function loadCourseList()
{
	loadList();
	listhtml = '<div id="menuItem"><a href="javascript:void(0);" onmousedown="manageCourseList();">'+session+'</a></div>';
	listhtml = listhtml + '<div class="subMenuWarp" id="courseList">' + sublist + '</div>';
	document.write(listhtml);
}

function addCourse(name,clink)
{
	sublist = sublist + '<a class="subItem" href='+clink+'>&raquo; ' + name + '</a>'; 	
}
function loadList()
{	
		addCourse("Software Engineering ","http://galaxy.cs.lamar.edu/~sandrei/");
		addCourse("Fundamentals I","http://galaxy.cs.lamar.edu/~sandrei/");
		addCourse("Graduate Seminar","http://galaxy.cs.lamar.edu/~sandrei/");
		addCourse("Microcomputers-02","#");
		addCourse("Microcomputers-03","#");
		addCourse("Microcomputers-04","#");
		addCourse("Microcomputers-05","#");
		addCourse("Programming for Non-Programmers","#");
		addCourse("Adv. Microcomputers","#"); 
		addCourse("Microcomputers-48","#");
		addCourse("Web Design/ XHTML","#");
		addCourse("Intro. Artificial Intelligence","http://cs.lamar.edu/faculty/disrael/doershuk.htm");
		addCourse("Fundamentals II","http://cs.lamar.edu/faculty/foreman/foreman.htm");
		addCourse("Fundamentals III","http://cs.lamar.edu/faculty/foreman/foreman.htm");
 		addCourse("Microcomputers-06","#");
		addCourse("Game Programming","#");
		addCourse("Microcomputers-09","http://cs.lamar.edu/faculty/koh/koh.htm");
		addCourse("Computer Laws & Ethics","http://cs.lamar.edu/faculty/koh/koh.htm");
		addCourse("Foundations of Computer Science","http://cs.lamar.edu/faculty/koh/koh.htm");
		addCourse("Computer Architecture","http://galaxy.cs.lamar.edu/~liujj/");
		addCourse("Adv. Computer Architecture","http://galaxy.cs.lamar.edu/~liujj/");
		addCourse("Database Design","#");
		addCourse("Graduate Project","#");
		addCourse("Thinking, Speaking, Writing","http://cs.lamar.edu/faculty/osborne/COSC1172/1172.htm");
		addCourse("Senior Assesment","http://cs.lamar.edu/faculty/osborne/4172/4172.htm");
		addCourse("Adv. Opreating Systems","http://cs.lamar.edu/faculty/osborne/COSC5302/login.html");
		addCourse("Operating Systems","http://galaxy.cs.lamar.edu/~bsun/");
		addCourse("Network System Admn.","http://galaxy.cs.lamar.edu/~bsun/");
		addCourse("Microcomputers-01","http://cs.lamar.edu/faculty/frank/frank.htm");
		addCourse("Computer Security","http://galaxy.cs.lamar.edu/~fsun/cosc3301/cosc3301.html");
		addCourse("Intro. Computer Theory","http://buchberger.cs.lamar.edu/qntran/index.html");
addCourse("Data Mining","http://buchberger.cs.lamar.edu/qntran/index.html");
addCourse("Object Oriented Design","http://buchberger.cs.lamar.edu/qntran/index.html");
addCourse("Programming Lab","http://galaxy.cs.lamar.edu/~swang/");
addCourse("C++/Unix","http://galaxy.cs.lamar.edu/~swang/");
addCourse("Fundamentals I","http://galaxy.cs.lamar.edu/~swang/");
addCourse("Microcomputers-07","http://galaxy.cs.lamar.edu/~swang/");
addCourse("Microcomputers-49","http://galaxy.cs.lamar.edu/~swang/");
addCourse("Bioinformatics","http://cs.lamar.edu/faculty/webster/webster.htm");
addCourse("Microcomputers-08","http://cs.lamar.edu/faculty/webster/webster.htm");



		
		
		
		
		
}
