
function MMTrackinfoToolWindow()
{	
	this.selectedRoute;
	this.divTrackLength = document.createElement("div");
	this.setPosition(new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(0,0)));
}
MMTrackinfoToolWindow.prototype = new MMToolWindow("Information", 109,109, false);


MMTrackinfoToolWindow.prototype.show = function(route)
{
	this.divTrackLength.innerHTML = "L&#228;nge: "+ (route.getLength() / 1000.0 ).toFixed(1) + " km <br>";
	
	if(route.GetHeightdifferenceUp() != 0 && route.GetHeightdifferenceDown() != 0)
	{
		this.divTrackLength.innerHTML += '<img src="'+ MMRegistry.urlPortal +'dateien/bergauf.gif" title="Steigung">'+ route.GetHeightdifferenceUp() +'m<br>';
		this.divTrackLength.innerHTML += '<img src="'+ MMRegistry.urlPortal +'dateien/bergab.gif" title="Gefälle">'+ route.GetHeightdifferenceDown() +'m<br>';
	}
	
	this.showWindow();
}


MMTrackinfoToolWindow.prototype.initializeContent = function(content)
{
	content.style.fontFamily = "arial, sans-serif";
	content.style.fontSize = "11px";
	
	
	content.innerHTML = '';
	content.appendChild(this.divTrackLength);
}


