<!--	//G&ouml;m script f&ouml;r &auml;ldre browser
	var currentLev1Menu = null; 
	var currentLev2Menu = null;
	var currentLev3Menu = null;
	var currentSelection = null;
	var blueSelection = null;
	var blackSelection = null;
	var separator = '-';
	var vilkenNiva = 0;
	var sokvag = "/shb/inet/icent";
	var url = top.location.href;
	var pos = url.indexOf(".nsf");
	var minus = new Image();
	var plus = new Image();
	if(pos == -1)
	{
		plus.src = sokvag + "sv.nsf/vlookupsystempics/navigeringspil/$file/navigeringspil.gif";
		var plus_src = sokvag + "sv.nsf/vlookupsystempics/navigeringspil/$file/navigeringspil.gif";
		minus.src = sokvag + "sv.nsf/vlookupsystempics/nedotpil/$file/nedotpil.gif";
		var minus_src = sokvag + "sv.nsf/vlookupsystempics/nedotpil/$file/nedotpil.gif";
		var up_src = sokvag + "sv.nsf/vlookupsystempics/rubrik3pil/$file/rubrik3pil.gif";
		var down_src = sokvag + "sv.nsf/vlookupsystempics/rub3ned/$file/rub3ned.gif";
	}
	else
	{
		var urlCountry = url.substr(pos-2,2);
		var pos = url.indexOf("://");
		var urltmpServer = url.substr(pos+3);
		var nextPos = urltmpServer.indexOf("/");
		var urlServer = url.substr(pos+3, nextPos);

		plus.src = "http://" + urlServer + sokvag + urlCountry +".nsf/vlookupsystempics/navigeringspil/$file/navigeringspil.gif";
		minus.src = "http://" + urlServer + sokvag + urlCountry +".nsf/vlookupsystempics/nedotpil/$file/nedotpil.gif";
		var plus_src = "http://" + urlServer + sokvag + urlCountry +".nsf/vlookupsystempics/navigeringspil/$file/navigeringspil.gif";
		var minus_src = "http://" + urlServer + sokvag + urlCountry +".nsf/vlookupsystempics/nedotpil/$file/nedotpil.gif";
		var up_src = "http://" + urlServer + sokvag + urlCountry +".nsf/vlookupsystempics/rubrik3pil/$file/rubrik3pil.gif";
		var down_src = "http://" + urlServer + sokvag + urlCountry +".nsf/vlookupsystempics/rub3ned/$file/rub3ned.gif";
	}

	function showOrHideMenu(url,lev1Menu,lev2Menu,lev3Menu,target){
		if(lev1Menu=="")
			lev1Menu=null
		if(lev2Menu=="")
			lev2Menu=null
		if(lev3Menu=="")
			lev3Menu=null
		if (lev2Menu==null)
			setBgColor(lev1Menu+"top");
		else if (lev3Menu==null)
			setBgColorBlue(lev1Menu+"-"+lev2Menu);
		else
			setBgColorBlue(lev1Menu+"-"+lev2Menu+"-"+lev3Menu);

		if(currentLev3Menu != null)
			changeDisplay(false, currentLev1Menu, currentLev2Menu, currentLev3Menu);
		if(currentLev2Menu != null)
			changeDisplay(false, currentLev1Menu, currentLev2Menu);
		if(currentLev1Menu != null)
			changeDisplay(false, currentLev1Menu);
		
		if(lev1Menu == currentLev1Menu) {
			if(lev2Menu == null) {
				currentLev1Menu = null;
				currentLev2Menu = null;
				currentLev3Menu = null;
			} else if(lev2Menu == currentLev2Menu) {
				if (lev3Menu == null)
					changeDisplay(true, lev1Menu);
				else if (lev3Menu == currentLev3Menu){
					changeDisplay(true, lev1Menu);
					changeDisplay(true, lev1Menu, lev2Menu);
				}
				else {
					if (url!="")
						openLink("",url,target);
					changeDisplay(true, lev1Menu);
					changeDisplay(true, lev1Menu, lev2Menu);
					changeDisplay(true, lev1Menu, lev2Menu, lev3Menu);
				}
			} else { 
				if (url!="")
				openLink("",url,target);
				changeDisplay(true, lev1Menu);
				changeDisplay(true, lev1Menu, lev2Menu);
			}
		} else { 
			if(lev2Menu == null) {
				if (url!="")
					openLink("",url,target);
				changeDisplay(true, lev1Menu);
			} else { 
				changeDisplay(true, lev1Menu);
				changeDisplay(true, lev1Menu, lev2Menu);
			}
		}	
	}

	function changeDisplay(on, lev1MenuName, lev2MenuName, lev3MenuName)
	{	
		var menu = null;
		if(lev2MenuName == null) {
			menu = lev1MenuName;
			if(on) {
				currentLev1Menu = lev1MenuName;
				currentLev2Menu = null;
				currentLev3Menu = null;
				var space = document.getElementById(lev1MenuName+"-tomfore");
				if (space);
					space.style.display = "block";
				space = document.getElementById(lev1MenuName+"-tomefter");
				if (space);
					space.style.display = "block";
			} 
			else {
			
				var space = document.getElementById(lev1MenuName+"-tomfore");
				if (space);
					space.style.display = "none";
				space = document.getElementById(lev1MenuName+"-tomefter");
				if (space);
					space.style.display = "none";
			}
		} else {
			if (lev3MenuName == null)
				menu = lev1MenuName + separator + lev2MenuName;
			else
				menu = lev1MenuName + separator + lev2MenuName + separator + lev3MenuName;
			if(on) {
				currentLev1Menu = lev1MenuName;
				currentLev2Menu = lev2MenuName;
				if (lev3MenuName == null)
					currentLev3Menu = null;
				else
					currentLev3Menu = lev3MenuName;
					niva(menu)
					if (vilkenNiva == 3)
					{
						var selection = document.getElementById(menu);
						var text = selection.getElementsByTagName("a");
						text[0].className = "bluelink_bold";
					}
			}
			else {
				var selection = document.getElementById(menu);
				var text = selection.getElementsByTagName("a");
				text[0].className = "blacklink";
			}
		}

		var displayVal;
		var imgName = menu+separator+"img";
		var img = document.getElementById(imgName);
		if(on) {
			displayVal = "block";
			if (img != null) {
				if (lev3MenuName == null)
					img.src = minus_src;
				else
					img.src = down_src;
			}
		} else {
			displayVal = "none";
			if (img != null) {
				if (lev3MenuName == null)
					img.src = plus_src;
				else
					img.src = up_src;
			}
		}
		
				
		var item;
		var index = 1;
		var itemName = menu + separator + index;

		while( (item = document.getElementById(itemName)) != null) 
		{
			item.style.display=displayVal;
			var spacename = itemName + "-space";
			item = document.getElementById(spacename);
			if (item!=null)
			{
				item.style.display=displayVal;
			}
			index++;
			itemName = menu + separator + index;
		}
		
	}

	function openLink(id,url,target)
	{		
		if (currentSelection)
			var oldId = currentSelection.id;
		else
			var oldId = "";
			
		var topNiv = "";
		
		if (oldId!="")
		{
			for (var x = 0; x < oldId.length; x++)
			{
				if (oldId.substring(x, x + 1) == "-" || oldId.substring(x, x + 1) == "t")
					if (topNiv == "")
						topNiv = oldId.substring(0, x);
			}
		}

		if (id!="")
		{
			var antal = 0;
			for (var x = 0; x < id.length; x++)
			{
				if (id.substring(x, x + 1) == "-")
					antal = antal + 1
			}
			if (antal == 0)
			{
				closeDivUnder(topNiv);
				setBgColor(id);
				currentLev1Menu = null;
				currentLev2Menu = null;
				currentLev3Menu = null;
			}
			else
				setBgColorBlue(id);
		}
		
		url = changePressURL(url);
		
		if (target=="_top")
			top.location.href = url;
		else if (target=="_blank")
			openWin(url,'inetwin','yes','yes','yes','yes','yes','yes','yes','yes');
		else if (target=="SA")
			parent.frames[target].location.href = url;
		else
			parent.frames['SA'].location.href = url;
	}

	function setBgColor(id)
	{
		var text = null;
		var arrkoll = "";
		for (var x = 1; x < idarray.length; x++)
		{
			for (var y = 0; y < idarray[x].length; y++)
			{
				if (idarray[x].substring(y, y + 1) == "-")
					arrkoll = "Underliggande";
			}
			if (arrkoll != "Underliggande")
			{
				var selection = document.getElementById(idarray[x]);
				selection.style.background = 'transparent';
				text = selection.getElementsByTagName("a");
				text[0].style.color = '#000000';
				text[0].style.fontWeight = 'normal';
				if (selection.className != "lv1noline")
					selection.style.borderTop = '1px solid #cccccc';
			}
			arrkoll = "";
		}
		var selection = document.getElementById(id);
		if (currentSelection)
			resetCurrentSelection(currentSelection.id);
		text = selection.getElementsByTagName("a");
		selection.style.background = '#000000';
		text[0].style.color = '#FFFFFF';
		text[0].style.fontWeight = 'bold';
		selection.style.borderTop = '0';
		currentSelection = selection;
		blackSelection = selection;
	}
	
	function setBgColorBlue(id)
	{
		var selection = document.getElementById(id);
		if(currentSelection != null)
		{
			if (currentSelection != selection)
				resetCurrentSelection(currentSelection.id);
			if (selection != currentSelection)
						selection.style.background = '#ddeefc';
			currentSelection = selection;
			blueSelection = selection;
		}
		else
		{
			if (selection)
			{
				selection.style.background = '#ddeefc';
				currentSelection = selection;
				blueSelection = selection;
			}				
		}
	}
	function focusOn(id)
	{
		var selection = document.getElementById(id);
			if (selection != currentSelection)
			{
				if (selection != blackSelection)
				{
					if (selection != blueSelection)
						selection.style.background = '#ddeefc';
				}
			}
	}
	function focusOff(id)
	{
		var selection = document.getElementById(id);
		if (selection != currentSelection)
		{
			if (selection != blackSelection)
			{
				if (selection != blueSelection)
					selection.style.background = 'transparent';
			}
		}
	}
	function doClick(id,evt)
	{
		var selection = document.getElementById(id);
		eval(selection.href);
		if (navigator.appName.indexOf("Explorer") != -1)
			event.returnValue = false;
		else
			evt.preventDefault();
	}

function getStringInBetween(theString, Pre, Post)
{
	theString = theString + Post;
	var search =  Pre;
	var RetStr = null;
	var offset = 0;
	var end = 0;
	offset = (theString.indexOf(search));
	if (offset != -1) {
		offset += search.length;
		end = theString.indexOf(Post, offset);
		if (end == -1) {
			end = theString.length;
		}
		RetStr = unescape(theString.substring(offset, end));
	}
	if (RetStr == null) RetStr = "";
	return (RetStr);
}
function doRequest(navob, navsa, numnodes){
	theObject = parseInt(navob);

	if (Number(theObject) &&  theObject > 0 && theObject <= numnodes){	
	
		var navid = idarray[navob];
		var f = navid.indexOf("top");
		
		if(f != -1){
			var g = navid.substring(0, f)
		}
		else{
			var g = navid
		}

		f = g.split("-");

		var selectionDirectAdress = document.getElementById(f[0]+"top");
		if(f.length == 4){
			changeDisplay(true, f[0])
			changeDisplay(true, f[0], f[1])
			changeDisplay(true, f[0], f[1], f[2])

			text = selectionDirectAdress.getElementsByTagName("a");
			selectionDirectAdress.style.background = '#000000';
			text[0].style.color = '#FFFFFF';
			text[0].style.fontWeight = 'bold';
			selectionDirectAdress.style.borderTop = '0';
			blackSelection = selectionDirectAdress;

			setBgColorBlue(navid)
		}
		else if(f.length == 3){
			changeDisplay(true, f[0])
			changeDisplay(true, f[0], f[1])

			text = selectionDirectAdress.getElementsByTagName("a");
			selectionDirectAdress.style.background = '#000000';
			text[0].style.color = '#FFFFFF';
			text[0].style.fontWeight = 'bold';
			selectionDirectAdress.style.borderTop = '0';
			blackSelection = selectionDirectAdress;
			
			setBgColorBlue(navid)
		}
		else if(f.length == 2){
			changeDisplay(true, f[0])

			text = selectionDirectAdress.getElementsByTagName("a");
			selectionDirectAdress.style.background = '#000000';
			text[0].style.color = '#FFFFFF';
			text[0].style.fontWeight = 'bold';
			selectionDirectAdress.style.borderTop = '0';
			blackSelection = selectionDirectAdress;
			
			setBgColorBlue(navid)
		}
		else{
			setBgColor(navid)
		}
	} 
}
function openWin(url,name,toolbar,loc,locbar,statusbar,dir,menubar,scroll,resize,width,height)
{
	if(url.length == 0)
	{
		alert("Invalid call")
	}
	else
	{
		if (url.substring(0,8)=="/cgi-bin"){
			eval(name + "=window.open('" + url + "',name,'toolbar=no,location=no,directories=no,menubar=no,scrollbars=" + resize + ",resizable=" + resize + ",width=" + width + ",height=" + height + "')")
			eval(name+".focus()")
		}
		else{
			eval(name + "=window.open('" + url + "',name,'toolbar="+toolbar+",location="+loc+",locationbar="+locbar+",statusbar="+statusbar+",directories="+dir+",menubar="+menubar+",scrollbars="+scroll+",resizable=" + resize + ",width=780,height=500')")
			eval(name+".focus()")
		}
	}
}
function closeDivUnder(id)
{
	var item;
	var var1 = "";
	var var2 = "";
	if (id!="")
	{
		item = document.getElementById(id+"-tomfore");
		if (item);
			item.style.display="none";
		item = document.getElementById(id+"-tomefter");
		if (item);
			item.style.display="none";
		for (var s = 1; s < idarray.length; s++)
		{
			var1 = id + "-";
			var2 = idarray[s].substring(0, id.length + 1)
			if (var1 == var2)
			{
				item = document.getElementById(idarray[s]);
				if (item!=null)
				{
					item.style.display="none";
					var imgName = idarray[s]+separator+"img";
					var img = document.getElementById(imgName);
					if (img)
					{
						if (img.src == minus_src)
							img.src = plus_src
						else if (img.src == down_src)
							img.src = up_src
					}
				}
			}
		}
	}
}
function niva(id)
{
	if (id!="")
	{
		var antal = 0;
		vilkenNiva = 0;
		for (var x = 0; x < id.length; x++)
		{
			if (id.substring(x, x + 1) == "-")
				antal = antal + 1
		}
		vilkenNiva = antal + 1
	}
	else
		vilkenNiva = 0;
}
function resetCurrentSelection(currId)
{
	if (currId != "")
	{
		niva(currId);
		if (vilkenNiva == 2 || vilkenNiva == 3 || vilkenNiva == 4)
		{
			var rSelection = document.getElementById(currId);
			rSelection.style.background = 'transparent';
		}
		else
		{
		
		}
	}
}
function changePressURL(url)
{
	if(url == "http://cws.huginonline.com/H/1225/pressmeddelanden_new.html")
	{
		var randomnumber = Math.floor(Math.random()*1000000000);
		url = url + "?&Random=" + randomnumber;
	}
	return (url);
}
-->
