function createQuicknav(){
	$.getJSON('/db/quicknav.json', function(data) {
		var html = '<form name="form_quicknav" id="form_quicknav" class="quicknav"><select name ="select_quicknav" id="select_quicknav" size="8" ondblclick="javascript:quickJump(\'quicknav\')">';
		
		$.each(data, function(k, v) {
			html += '<option value="' + v.url +'">' + v.name +'</option>';
		});
		
		html += '</select><input type="button" onClick="javascript:quickJump(\'quicknav\')"></form>';
		
		$('#quicknav').append(html);
	})
	.error(function(req, status, exc) {
		console.log('quicknav request error: ' + status + ': ' + exc);
	});
}

function quickJump(category) {	
	switch(category) {
	case "quicknav":
		var obj = document.form_quicknav.select_quicknav;
		break;
	case "international":
		var obj = document.form_international.select_international;
		break;
	}

	if(obj.selectedIndex != -1) {	
		var url = String(obj.options[obj.selectedIndex].value);
		window.location = url;
	}
}
