
	/*
	 * 2do: Refurbish this into proper & nice JQuery syntax!
	*/
	function setQuickAccess() {
		var q2 = document.getElementById("q2");
		var quickSelect = document.getElementById("quickselect");
		var quickButton = document.getElementById("quickbutton");
		
		// Set the button.
		q2.removeChild(quickButton);
		var newButton = document.createElement("a");
		var newButtonText = document.createTextNode("");
		newButton.href = "";
		newButton.id = "quickbutton";
		newButton.name = "quickbutton";
		newButton.appendChild(newButtonText);
		q2.appendChild(newButton);
		newQuickButton = document.getElementById("quickbutton");
		newQuickButton.onclick = callPage;
		
		// Set the options, this time containing "beautiful" urls.
		for (i = 0; i < quickSelect.options.length; i++) {
			// Remove all options.
			while (quickSelect.options.length > 0) {
				quickSelect.options[quickSelect.options.length - 1] = null;
			}
		}
		// Set options anew.
		newEntry = new Option('ZETA', 'erschliessung/arbeitsunterlagen/zeta.html', false, false);quickSelect.options[quickSelect.options.length] = newEntry;newEntry = new Option('ZDB-Katalog', 'http://dispatch.opac.d-nb.de/DB=1.1/', false, false);quickSelect.options[quickSelect.options.length] = newEntry;quickSelect.selectedIndex = 1;newEntry = new Option('Neue Teilnehmer', 'erschliessung/neue-teilnehmer.html', false, false);quickSelect.options[quickSelect.options.length] = newEntry;newEntry = new Option('Mailingliste ZDBINFO', 'aktuelles/mailingliste-zdbinfo.html', false, false);quickSelect.options[quickSelect.options.length] = newEntry;newEntry = new Option('Ansprechpartner', 'kontakt/ansprechpartner.html', false, false);quickSelect.options[quickSelect.options.length] = newEntry;
		
		// Set onchange event handler for the select.
		quickSelect.onchange = callPage;
	}
	function callPage() {
		var quickSelect = document.getElementById("quickselect");
		var target = quickSelect.options[quickSelect.selectedIndex].value;
		if (target == "http://dispatch.opac.d-nb.de/DB=1.1/") {
			window.location.href = target;
		} else {
			window.location.pathname = target;
		}
		return false;
	}