/*
-  This file displays the area navigation . It can be used on all forms, pages and view templates:
- it should be included as a script source:
- <script type="text/javascrtipt" src="/Web/index.nsf/webmenu.js?ReadForm&RestrictToCategory=menu"></script>
*/
function oDoc(sUrl) {
	if(typeof eval(window.docWin) == "undefined" || docWin.closed) {
		
		var wTop = (screen.height - 700) / 2;
		var wLeft = (screen.width - 700) / 2;
		var param1 = 'toolbar=no,location=no,directories=no,status=no,menubar=no,';
		var param2 = 'scrollbars=yes,resizable=yes,';
		var param3 = 'height=600,width=700,top='+ wTop +',left='+ wLeft;
		
		docWin = window.open(sUrl,'docWin', param1 + param2 + param3);
		docWin.focus();
		
	} else {
		docWin.window.location = sUrl;
		docWin.focus();
	}
}
var CAREA = typeof eval("AREA_ID") !="undefined" && AREA_ID != null ? AREA_ID.toLowerCase() : null;
var arrInput =' <a id="areaB9AD68EF38977399C1256DDB00489ECC" href="/web/index.nsf/0/D7EB737FEE0FB676C1256DDB004A3B5C?OpenDocument" target="_self">Hem</a>~<a id="area4503A414D5ECB5B2C1256DDB0048ABE4" href="/Web/index.nsf/0/B1E70CF620EEB69FC1256DDB00316960?OpenDocument" target="_self">Pension&nbsp;&&nbsp;försäkring</a>~<a id="areaE065063F6A168788C1256DDB0048B9F7" href="/Web/index.nsf/0/B31DAA35E2B7CB9CC1256DDB004A124C?OpenDocument" target="_self">Arbetsgivarservice</a>~<a id="area3A28C39549387B52C1256DDB0048C59A" href="/web/order.nsf/publicorder?ReadForm" target="_self">Blanketter&nbsp;&&nbsp;trycksaker</a>~<a id="area4E1CA12AF5470F07C1256DDB0048CEE1" href="/web/index.nsf/0/B849E862F1FE5574C1256DDE00521F7F?OpenDocument" target="_self">Om&nbsp;KP</a>~<a id="area72C79FBF93F5B725C1256DDB0048DA50" href="/web/index.nsf/0/495EBFB8694EF0D1C1256DE4005D78A9?OpenDocument" target="_self">Kontakta&nbsp;oss</a>~';
if(arrInput != "<h2>No documents found</h2>") {
	
	arrInput = arrInput.substring(0, arrInput.length -1);
	arrOutput = arrInput.split("~");
	
	with(document) {
		write('<table cellpadding="0" height="25" cellspacing="0" border="0" width="100%"><tr valign="top">'); 
		for( xx = 0;xx < arrOutput.length; xx++) {
			if(xx == 0) {
				if(arrOutput[0].toLowerCase().indexOf(CAREA) != -1) {
					write('<td width="20" class="areanav-on-first">' + arrOutput[0] + '</td>');
				} else {
					write('<td width="20" class="areanav-off-first">' + arrOutput[0] + '</td>');
				}
			} else {
				if(arrOutput[xx].toLowerCase().indexOf(CAREA) != -1) {
					write('<td width="20" class="areanav-on">' + arrOutput[xx] + '</td>');
				} else {
					write('<td width="20" class="areanav-off">' + arrOutput[xx] + '</td>');
				}
			}
		}
	write('<td width="10"><img height="20" width="10" src="/icons/ecblank.gif" /></td>');
	write('</tr></table>');
	}
}
