// JavaScript Document
function jumpto(what) {
	window.location.href = what.options[what.selectedIndex].value;
}
if(document.getElementById('quicklinks')) {
	var what = document.getElementById('quicklinks');
	var where = document.createElement('select');
	
	var why = document.createElement('option');
	why.value = '';
	why.appendChild(document.createTextNode('-- Quick Links --'));
	where.appendChild(why);
	
	for(var who in what.childNodes) {
		why = document.createElement('option');
		if(what.childNodes[who].childNodes) {
			for(var myref in what.childNodes[who].childNodes) {
				if(what.childNodes[who].childNodes[myref].href) {
					var tmpClass = (what.childNodes[who].className !== undefined) ? what.childNodes[who].className : '';
					why.value = what.childNodes[who].childNodes[myref].href;
					var tmptxt = what.childNodes[who].childNodes[myref].innerHTML;
					tmptxt = tmptxt.replace('&amp;','&');
					why.appendChild(document.createTextNode(tmptxt));
					if(tmpClass == 'active') {
						why.selected = true;
					}
					where.appendChild(why);
				}
			}
		}
	}
	where.id = 'quicklinks';
	where.onchange = function changed() {jumpto(where)};
	what.parentNode.replaceChild(where,what);
}