// JavaScript Document
<!--
  
	athNS = (document.layers);
	athIE = (document.all);
	athNSIE = (athNS || athIE);
	var athPopup = true
	var arena = new Array ();
	if (athPopup) {
	arena = new Array (

// project	

	
		new Array (	// About
			new Array(160, 100, 100),
			new Array('aboutus.html', 'About Us'),
			new Array('philosophy.html', 'Business Philosophy')
		),
		new Array ( // Activities
			new Array(255, 100, 100),
			new Array('assetmanagement.html', 'Fideltus Technology'),
			new Array('corpfinance.html', 'Corporate Finance'),
			new Array('realestate.html', 'Real Estate')
		)

	);
	}

	var finished = false;		
	var timer = null;				
	var timerb = null;			
	var tmpAfCmd = '';				
	var width = 125;				
	var height = 25;			
	var attributes;				
	var lbeforeTop = 1;				
	var temp = '';					
	var debug = false;				
	var menuCnt = arena.length;		
	var unique = 10;				
	var savedID = 0;			
	var delay = 100;				
	var objCount = 0;				
	var pics = new Array();			
	var statusTexti = '';			
	var Hladid = false;				
	var PopOuterBack = "#232325";	
	var PopInnerNorm = "#232325";
	var PopInnerOverIE = "#FFFFFF";	
	var PopInnerOver = "#232325";	
	var PopColorNorm = "#232325";	
	var PopColorOver = "#FFFFFF";	


////////////////////////////////////////////////////////////////////////////////
// Fšll
//	function ShowLayer(){return};

//	function HideLayer(){return};
	function SkrifaFoll()
	{
		arrFoll = new Array("finished", "timer", "width", "height", "attributes", "temp", "lbeforeTop", "unique");
		bla = "";
		bla +=  "<!--------------------------------------------\n";
		for (var x = 0; x < arrFoll.length; x++) {
			bla += "    " + arrFoll[x] + ": " + eval(arrFoll[x]) + "\n"
		}
		bla +=  "---------------------------------------------"+">\n\n\n"; // ATH !!!! Ekki m‡ taka skeytingu burt v. Netscape 3 og eldri vafra !!!
		if (debug) alert(bla);
	}

	
	//Valmynd h¾gra megin (main menu...)
	function FsSpecialA(menu, sizeX, indentX, indentY) {
		var coolX = -1;
		var coolY = -1;
		
		if (sizeX >= 0) coolX = indentX + ((document.body.clientWidth - sizeX)/2)
		if (indentY >= 0) coolY = indentY
		
		if (menu != null) SpecialShowLayer(menu, coolX, coolY);
	}
	function FsSpecialAf(menu) {
		if (menu != null) HideLayer(menu);
	}
	
	function FsMenuA(menu, indentX, indentY) {
		var coolX = -1;
		var coolY = -1;
		
		if (indentX >= 0) coolX = indentX
		if (indentY >= 0) coolY = indentY
		
		if (menu != null) SpecialShowLayer(menu, coolX, coolY);
	}
// Valmyndasy«stemi<eth> sj‡lft....
	function CreateMenuEls(menuNo) {
		lbeforeTop = 1;
		height = 13;
		temp = '';
		attributes = '';
		if (arena[menuNo][0]) {
			width = arena[menuNo][0][0];
			savedID = unique++;
			SkrifaFoll();
			statusTexti = '';
			if (athNS) {
			// Netscape
				for (var i = 1; i < arena[menuNo].length; i++) {
					if (!arena[menuNo][i][2]) {
						statusTexti = '';
					} else {
						statusTexti = arena[menuNo][i][2];
					}
					attributes = '';	
					attributes = "width=" + (width-2);
					attributes += " onmouseover=\"OnState(" + (i-1) + ",'" + arena[menuNo][i][0] + "', " + menuNo + ")\"";
					attributes += " onmouseout=\"this.bgColor='" + PopInnerNorm + "';\"";
					attributes += " left=\"1\"";
					attributes += " visibility=\"inherit\"";
					attributes += " bgcolor=\"" + PopInnerNorm + "\"";
					attributes += " top=" + lbeforeTop ;
					temp += "     <layer z-index="+(unique++)+" name=ath" + menuNo + "Sub" + i + " " + attributes + "><font size=1 face=verdana color=#FFFFFF>&nbsp\;" + arena[menuNo][i][1] + "</font></layer>\n";
					lbeforeTop += height + 1;
				}
			} else {
			// Internet Explorer
				for (var i = 1; i < arena[menuNo].length; i++) {
					if (!arena[menuNo][i][2]) {
						statusTexti = '';
					} else {
						statusTexti = arena[menuNo][i][2];
					}
					attributes = '';
					attributes = "style=\"width:" + (width-2) + "; position:absolute; left:1; visibility:inherit; background-color:" + PopInnerNorm + "; z-index:111;font-family: verdana; font-size: 11px;color: #FFFFFF;";
					attributes += " top:" + lbeforeTop + ";\"";
					attributes += " onmouseover=\"this.style.backgroundColor='" + PopInnerOverIE + "';this.style.cursor='hand';this.style.color='#000000';\""
					attributes += " onmouseout=\"this.style.backgroundColor='" + PopInnerNorm + "';this.style.color='" + PopColorNorm + "';this.style.color='#FFFFFF';\"";
					attributes += " onmouseup=\"NavTo('" + arena[menuNo][i][0] + "');\"";
					temp += "     <div id=\"athPopup" + menuNo + "Sub" + i + "\" " + attributes + ">&nbsp\;" + arena[menuNo][i][1] + "</div>\n";
					lbeforeTop += height + 1;
				}
			}
			CreateMenu(temp,lbeforeTop,menuNo,savedID);
			finished = true;
			SkrifaFoll();
		}
	}

	function CreateMenu(content,layerHeight,menuNo,ID) {
		temp = '';
		attributes = '';	
		if (athNS) {
		// Netscape
			attributes = "width=" + width + " height=" + layerHeight+ "";
			attributes += " onmouseover=\"OverLayer();\"";
			attributes += " onmouseout=\"OutLayer("+menuNo+");\"";
			attributes += " visibility=hidden";
			//attributes += " bgcolor=" + PopOuterBack;
			temp = "<layer z-index="+ID+" name=athPopup" + menuNo + " " + attributes + ">" + content + "</layer>\n\n";
		} else {
		// Internet Explorer
			attributes = " style=\"width:" + width + "; position:absolute;height:" + layerHeight + "; left:-200; top:-200; visibility:hidden; background-color:" + PopOuterBack + "; z-index:10;\"";	
			attributes += " onmouseover=\"OverLayer();\" onmouseout=\"OutLayer("+menuNo+");\"";
			temp = "<div id='athPopup" + menuNo + "' " + attributes + ">\n\n" + content + "\n</div>\n";
		}
		lbeforeTop += height + 1;
		SkrifaFoll();
		document.write(temp);
	}

	function ShowLayer(menuNo) {
		eval(tmpAfCmd);
		tmpAfCmd = '';
		clearTimeout(timer);
		clearTimeout(timerb);
		if (!finished) return;
		for (var m = 0; m < menuCnt; m++) {
			isOver = false;
			if (m != menuNo) Hide(m);
		}
		if (debug) alert("athPopup" + menuNo);
		isOver = true;
		if (arena[menuNo].length>1) {
			if (athNS) {
			// Netscape
				l = document.layers["athPopup" + menuNo];
				l.left = arena[menuNo][0][1];
				l.top = arena[menuNo][0][2];
				l.visibility = "visible";
			} else {
			// Internet Explorer
				whichEl = document.all["athPopup" + menuNo].style;

				whichEl.left = arena[menuNo][0][1];
				whichEl.top = arena[menuNo][0][2];
				whichEl.visibility = "visible";
			}
		}
	}

	// menuPosX og menuPosY skrifa yfir <thorn>a<eth> sem er ’ lista ef >= 0
	function SpecialShowLayer(menuNo, menuPosX, menuPosY) {
		// S¾kjum gildi œr valmyndaskilgreiningum
		var iTmpX = arena[menuNo][0][1];
		var iTmpY = arena[menuNo][0][2];
		
		// Ef 0 e<eth>a meira notum vi<eth> <thorn>a<eth> frekar
		if (menuPosX >= 0) iTmpX = Math.ceil(menuPosX);
		if (menuPosY >= 0) iTmpY = Math.ceil(menuPosY);
		
		eval(tmpAfCmd);
		tmpAfCmd = '';
		clearTimeout(timer);
		clearTimeout(timerb);
		if (!finished) return;
		for (var m = 0; m < menuCnt; m++) {
			isOver = false;
			if (m != menuNo) Hide(m);
		}
		if (debug) alert("athPopup" + menuNo);
		isOver = true;
		if (arena[menuNo].length>1) {
			if (athNS) {
			// Netscape
				l = document.layers["athPopup" + menuNo];

				l.left = iTmpX;
				l.top = iTmpY;
				l.visibility = "visible";
			} else {
			// Internet Explorer
				whichEl = document.all["athPopup" + menuNo].style;

				whichEl.left = iTmpX;
				whichEl.top = iTmpY;
				whichEl.visibility = "visible";
			}
		}
	}

	function OutLayer(menuNo) {
		isOver = false;
		timer = setTimeout("Hide("+menuNo+")", delay);
		timerb = setTimeout(tmpAfCmd, delay);
	}

	function HideLayer(menuNo) {
		clearTimeout(timer);
		clearTimeout(timerb);
		if (!finished) return;
		isOver = false;
		timer = setTimeout("Hide("+menuNo+")", delay);
		timerb = setTimeout(tmpAfCmd, delay);

	}

	function OnState(el, lUrl, menuNo) {
		tmpUrl = lUrl;
		l = document.layers["athPopup" + menuNo].document.layers[el];
		l.bgColor = PopInnerOver;
		l.newUrl = lUrl;
		l.captureEvents(Event.MOUSEUP);
		l.onmouseup = NNavTo;
	}

	function OverLayer() {
		clearTimeout(timer);
		clearTimeout(timerb);
		isOver = true;
	}

	function Hide(menuNo) {
		if (!isOver) {
			if (athNS) {
				if (eval("document.athPopup"+menuNo)) { (eval("document.athPopup"+menuNo).visibility = "hidden") }
			} else {
				if (eval("document.all.athPopup"+menuNo)) { (eval("document.all.athPopup"+menuNo).style.visibility = "hidden") }
			}
		}
	}

	function NavTo(newUrl) {
		if (document.location != top) {
			top.location = newUrl;
		} else{
			document.location = newUrl;
		}
	}

	function NNavTo() {
		NavTo(tmpUrl)
	}
	
	function ekkert() {}
	
	function Menu() {
		for (var i = 0; i < menuCnt; i++) {
			CreateMenuEls(i);
		}
		
	}
	if (arena && !Hladid) Menu();
//-->
