(function() {
	var ql = [
		{
			id: "quicklinks",
			columns: [
				{header: "Student Essentials", items: [
					{tag: "a", txt: "Academic calendar", href: "/Calendar/Academic/"},
					{tag: "a", txt: "Admission", href: "/Enrollment/"},
					{tag: "a", txt: "Bookstore", href: "/Bookstore/"},
					{tag: "a", txt: "Computer labs", href: "http://www.student.roguecc.edu/"},
					{tag: "a", txt: "Financial aid", href: "/FinancialAid/"},
					{tag: "a", txt: "GED\u00AE preparation", href: "/GED/"},
					{tag: "a", txt: "Maps/directions", href: "/Maps/"},
					{tag: "a", txt: "Placement test", href: "/PlacementTest/"},
					{tag: "a", txt: "Schedule of classes", href: "/Schedule/"}
				]},
				{header: "Resources", items: [
					{tag: "a", txt: "Distance learning", href: "http://distance.roguecc.edu/"},
					{tag: "a", txt: "Forms for students", href: "/Enrollment/forms/"},
					{tag: "a", txt: "Jobs at RCC", href: "http://employment.roguecc.edu/"},
					{tag: "a", txt: "Library", href: "http://learn.roguecc.edu/Library/"},
					{tag: "a", txt: "myRogue", href: "/StudentResources.asp"},
					{tag: "a", txt: "Rogue Online", href: "http://online.roguecc.edu/"},
					{tag: "a", txt: "Staff directory", href: "/Search/PhoneNumbers/"},
					{tag: "a", txt: "Student e-mail", href: "http://www.student.roguecc.edu/"},
					{tag: "a", txt: "Transcript request", href: "http://www.roguecc.edu/Enrollment/forms/"}
				]},
				{header: "Business/Community", items: [
					{tag: "a", txt: "Business development", href: "/BDC/"},
					{tag: "a", txt: "Community education", href: "/CommunityEd/"},
					{tag: "a", txt: "Community relations", href: "/CommRel/"},
					{tag: "a", txt: "Post jobs", href: "http://employment.roguecc.edu/"},
					{tag: "a", txt: "Testing services", href: "/TestingServices/"},
					{tag: "a", txt: "Workforce training", href: "/Workforce/"}
				]}
			]
		},
		{
			//Start Now
			id: "link1",
			columns: [
				{items: [
					{tag: "a", txt: "Adult basic skills", href: "/GED/"},
					{tag: "a", txt: "Business development", href: "/BDC/"},
					{tag: "a", txt: "Community education", href: "/CommunityEd/"},
					{tag: "a", txt: "ESL", href: "/ABS/ESL.asp"},
					{tag: "a", txt: "First time college", href: "/Students/Start/first-time-college.asp"},	
					{tag: "a", txt: "GED\u00AE", href: "/GED/"}
				]},
				{items: [
					{tag: "a", txt: "High school", href: "/HSOutreach/"},
					{tag: "a", txt: "Previous college", href: "/Students/Start/previouscollege.asp"},
					{tag: "a", txt: "Returning student", href: "/Students/Start/returning-rcc-student.asp"},
					{tag: "a", txt: "Workforce training", href: "/Workforce/"},
					{tag: "a", txt: "more links...", href: "/students/start.asp"}
				]}
			]
		},
		{
			//About RCC
			id: "link2",
			columns: [
				{items: [
					{tag: "a", txt: "Bookstore", href: "/Bookstore/"},
					{tag: "a", txt: "Bus routes/parking", href: "/Maps/parking.asp"},
					{tag: "a", txt: "Calendar", href: "/Calendar/"},
					{tag: "a", txt: "Catalog", href: "/Catalog/"},
					{tag: "a", txt: "Child Care Center", href: "/ChildCare/"},
					{tag: "a", txt: "Contact us", href: "/AboutRCC/Contacts.asp"}
				]},
				{items: [
					{tag: "a", txt: "Maps/directions", href: "/Maps/"},
					{tag: "a", txt: "Schedule of classes", href: "/Schedule/"},
					{tag: "a", txt: "Staff directory", href: "/Search/PhoneNumbers/"},
					{tag: "a", txt: "Viewbook", href: "/Viewbook/"},
					{tag: "a", txt: "Virtual tours", href: "http://www.ecampustours.com/VirtualTours/default.aspx?FafsaCode=010182&login=false"},
					{tag: "a", txt: "more links...", href: "/AboutRCC/"}
				]}
			]
		},
		{
			//Academic Programs / Careers
			id: "link3",
			columns: [
				{items: [
					{tag: "a", txt: "Career base camp", href: "https://careers.roguecc.edu/"},
					{tag: "a", txt: "Career exploration", href: "/Counseling/HollandCodes/"},
					{tag: "a", txt: "Career pathways", href: "/CareerPathways/"},
					{tag: "a", txt: "Course descriptions", href: "/CourseDescriptions/"}
				]},
				{items: [
				
					{tag: "a", txt: "Continuing Education", href: "/ContinuingEducation/"},
					{tag: "a", txt: "Degrees & certificates", href: "/Programs/"},
					{tag: "a", txt: "Instructional depts.", href: "http://learn.roguecc.edu/instructionalprograms.htm"},
					{tag: "a", txt: "more links...", href: "/Academics/"}
				]}
			]
		},
		{
			//Student Services
			id: "link4",
			columns: [
				{items: [
					{tag: "a", txt: "Admission", href: "/Enrollment/"},	
					{tag: "a", txt: "Counseling", href: "/Counseling/"},
					{tag: "a", txt: "Disability services", href: "/DisabilityServices/"},
					{tag: "a", txt: "Discovery programs", href: "/Discovery/"},
					{tag: "a", txt: "Enrollment", href: "/Enrollment/"},
					{tag: "a", txt: "Financial aid", href: "/FinancialAid/"},
					{tag: "a", txt: "Family members", href: "/StudentServices/Family_Members.asp"}
				]},
				{items: [
					{tag: "a", txt: "Latino programs", href: "/LatinoPrograms/"},
					{tag: "a", txt: "Recruitment", href: "/HSOutreach/"},
					{tag: "a", txt: "Rogue central", href: "/Enrollment/RogueCentral.asp"},
					{tag: "a", txt: "Student life", href: "/StudentLife/"},
					{tag: "a", txt: "Transfer Center", href: "/Transfer/"},
					{tag: "a", txt: "TRiO", href: "/TRiO/"},
					{tag: "a", txt: "Veterans services", href: "/Veterans/"}
				]}
			]
		},
		{
			//myRogue
			id: "link5",
			columns: [
				{items: [
					{tag: "a", txt: "Account payment", href: "/Account/"},
					{tag: "a", txt: "Drop/withdraw", href: "/StudentResources.asp?page=/remove.asp"},
					{tag: "a", txt: "Grades", href: "/Grades/"},
					{tag: "a", txt: "Placement testing", href: "/PlacementTest/"}
				]},
				{items: [
					{tag: "a", txt: "Register for classes", href: "/Register/"},
					{tag: "a", txt: "Rogue Online classes", href: "http://online.roguecc.edu/"},
					{tag: "a", txt: "Transcripts", href: "/StudentResources.asp?page=/reg_history.asp"},
					{tag: "a", txt: "more links...", href: "/StudentResources.asp"}
				]}
			]
		},
		{
			//Instructional Departments
			id: "link6",
			columns: [
				{items: [
					{tag: "a", txt: "Distance Learning", href: "http://distance.roguecc.edu/"},
					{tag: "a", txt: "Faculty Web sites", href: "http://learn.roguecc.edu/departments.htm"},
					{tag: "a", txt: "Library services", href: "http://learn.roguecc.edu/library/"},
					{tag: "a", txt: "Online tutoring", href: "/AcademicSkills/askonline.asp"}
				]},
				{items: [
					{tag: "a", txt: "Student e-mail", href: "http://login.live.com/"},
					{tag: "a", txt: "Testing center", href: "/TestingServices/"},
					{tag: "a", txt: "more links...", href: "http://learn.roguecc.edu/home/"}
				]}
			]
		},
		{
			//Employment
			id: "link7",
			columns: [
				{items: [
					{tag: "a", txt: "CWE", href: "https://www.roguecc.edu/emp/CWE.asp"},
					{tag: "a", txt: "Free job posting", href: "https://www.roguecc.edu/emp/sign_in.asp"},
					{tag: "a", txt: "Job search", href: "https://www.roguecc.edu/emp/search.asp"},
					{tag: "a", txt: "RCC positions", href: "https://jobs.roguecc.edu/"}
				]},
				{items: [
					{tag: "a", txt: "Skills training", href: "https://www.roguecc.edu/emp/Certificate/programs.asp"},
					{tag: "a", txt: "Student employment", href: "/emp/"},
					{tag: "a", txt: "more links...", href: "http://employment.roguecc.edu/"}
				]}
			]
		},
		{
			//Resources for faculty and staff
			id: "link8",
			columns: [
				{items: [
					{tag: "a", txt: "Community relations", href: "/CommRel/"},
					{tag: "a", txt: "Faculty resources", href: "/FR/"},
					{tag: "a", txt: "Intranet index", href: "https://intranet.roguecc.edu/"},
					{tag: "a", txt: "Rogue Online (Angel)", href: "http://online.roguecc.edu/"},
					{tag: "a", txt: "Staff directory", href: "/Search/PhoneNumbers/"}
				]},
				{items: [
					{tag: "a", txt: "Strategic planning", href: "/StrategicPlan/"},
					{tag: "a", txt: "Web e-mail access", href: "https://owa.roguecc.edu/"},
					{tag: "a", txt: "more links...", href: "https://intranet.roguecc.edu/"}
				]}
			]
		},
		{
			//Make a difference
			id: "link9",
			columns: [
				{items: [
					{tag: "a", txt: "Make a donation", href: "http://www.rccfoundation.org/Page.asp?NavID=9"},
					{tag: "a", txt: "RCC Foundation", href: "http://www.rccfoundation.org/"},
					{tag: "a", txt: "Student scholarships", href: "/FinancialAid/scholarship/"}
				]},
				{items: [
					{tag: "a", txt: "more links...", href: "http://www.rccfoundation.org/"}
				]}
			]
		}
	],
	i, j, k, className, tag, txt,
	outerdiv, innerdiv, _div = document.createElement("div"),
	ul, _ul = document.createElement("ul"),
	li, _li = document.createElement("li"),
	a, _a = document.createElement("a"),
	element, documentElement;
	//documentElement = document.getElementsByTagName("body")[0];
	documentElement = document.getElementById("qlContainer");
	for (i = 0; i < ql.length; i += 1) {
		outerdiv = _div.cloneNode(false);
		outerdiv.id = ql[i].id
		className = "anylinkcsscols"
		if (ql[i].id !== "quicklinks") {
			className += " hoverlink";
		}
		outerdiv.className = className;
		for (j = 0; j < ql[i].columns.length; j += 1) {
			innerdiv = _div.cloneNode(false);
			innerdiv.className = "column";
			if (typeof ql[i].columns[j].header === "string") {
				element = document.createElement("strong");
				element.appendChild(document.createTextNode(ql[i].columns[j].header));
				innerdiv.appendChild(element);
			}
			ul = _ul.cloneNode(false);
			for (k = 0; k < ql[i].columns[j].items.length; k += 1) {
				tag = ql[i].columns[j].items[k].tag;
				txt = ql[i].columns[j].items[k].txt
				li = _li.cloneNode(false);
				if (tag === "a") {
					a = _a.cloneNode(false);
					a.appendChild(document.createTextNode(txt));
					a.href = ql[i].columns[j].items[k].href;
					li.appendChild(a);
				} else {
					element = document.createElement(tag);
					element.appendChild(document.createTextNode(txt));
					li.appendChild(element);
				}
				ul.appendChild(li);
			}
			innerdiv.appendChild(ul);
			outerdiv.appendChild(innerdiv);
		}
		documentElement.appendChild(outerdiv);
		if (typeof homePage !== "boolean" || !homePage) {
			return;
		}
	}
})();