/* 
Adds a heading for the left menu in the reare cases when the privat-section gets the markup for the foretag-section
Can be removed from 2008-12-09 when a real fix for the markup-problem is deployed.
*/

function fixBrokenMenu() {
	var sUrl = location.href;
	var bOnline = (sUrl.indexOf("http") == 0);
	var elmMenu = $("divTree1");
	if (elmMenu) {
		if (bOnline && sUrl.indexOf("/privat/") < 0)
			return;
		var sText = "Produkter och Tjänster";
		if (location.href.indexOf("/privat/minasidor/") > -1)
			sText = "Mina Sidor";
		if (location.href.indexOf("/privat/kundservice/") > -1)
			sText = "Kundservice";
		var sHeader = "<div class='menuFixHeader'>" + sText + "</div>";
		elmMenu.insert( { top:sHeader } );
	}
}

Event.observe(window, 'load', fixBrokenMenu);
