+<div id="trackArea" class="menuDrawer secondaryUI hidden">
+<h2 onclick="toggleTrackArea();">
+<image src="style/track.svg" alt=""> Track
+</h2>
+<p id="trackData"><span id="trackLength"><span id="trackLengthNum">0</span> km</span>,
+<span id="trackDuration"><span id="trackDurationH"><span id="trackDurationHNum">0</span> h</span>
+<span id="trackDurationM"><span id="trackDurationMNum">0</span> min</span></span>
+</p>
+<p>
+<input type="button" id="saveTrackButton" value="Save"
+ onclick="saveTrack();">
+<input type="button" id="dumpTrackButton" value="Dump"
+ onclick="saveTrackDump();" class="debugHide">
+<input type="button" id="uploadTrackButton" value="Upload" disabled="true"
+ onclick="showUploadDialog();">
+<input type="button" id="clearTrackButton" value="Clear"
+ onclick="clearTrack();">
+</p>
+<p id="libraryShowLine" class="hidden">
+<input type="button" id="libraryShowButton" value="View uploaded tracks"
+ onclick="showLibrary();">
+</p>
+<div id="trackDialogArea" class="hidden">
+<div id="uploadDialog">
+<p class="subTitle">Upload Track to Lantea Maps Server:</p>
+<label for="uploadPublic">Visibility:</label>
+<select id="uploadPublic">
+<option value="true">Public Domain</option>
+<option value="false">Private</option>
+</select>
+<p class="dialogHelp">Public Domain tracks can be forwarded by the server
+operator to any other services, e.g. OpenStreetMap.</p>
+<p>
+<label for="uploadDesc">Comment:</label>
+<input type="text" id="uploadDesc" maxlength="255" size="25"
+ value="Lantea Maps">
+</p>
+<p>
+<input type="button" id="uploadDialogUploadButton" value="Upload Track"
+ onclick="uploadTrack();">
+<input type="button" id="uploadDialogCancelButton" value="Cancel"
+ onclick="cancelTrackDialog();">
+</p>
+</div>
+<div id="uploadStatus">
+<p class="subTitle">Track Upload to Lantea Maps Server</p>
+<p id="uploadInProgress"><img id="actionimg" src="style/loading_action.png">
+ Upload in progress…</p>
+<p id="uploadSuccess" style="display:none;">Track upload successful!</p>
+<p id="uploadFailed" style="display:none;">Track upload failed.</p>
+<p id="uploadError" style="display:none;">Error:<br>
+ <span id="uploadErrorMsg"></span></p>
+<input type="button" id="uploadStatusCloseButton" value="Close"
+ onclick="cancelTrackDialog();" disabled="true">
+</div>
+</div>
+<p class="loginbox">
+<button type="button" id="loginbtn" class="hidden">Sign in</button>
+<span id="loginerror" class="hidden">!</span>
+<span id="logindesc" class="hidden">to enable uploads</span>
+<span id="username" class="hidden"></span>
+<button type="button" id="logoutbtn" class="hidden">Log out</button>
+</p>
+<p>
+<input type="checkbox" id="trackCheckbox"
+ onchange="setTracking(this);">
+<label for="trackCheckbox">Enable tracking</label><br/>
+</p>
+<p>
+<input type="checkbox" id="centerCheckbox"
+ onchange="setCentering(this);">
+<label for="centerCheckbox">Center Map</label><br/>
+</p>
+</div>
+
+<div id="settingsArea" class="menuDrawer secondaryUI hidden">
+<h2 onclick="toggleSettings();">
+<image src="style/settings.svg" alt=""> Settings
+</h2>
+<p>
+<label for="mapSelector">Map style:</label>
+<select id="mapSelector" onchange="setMapStyle();">