var ua = navigator.userAgent; var opera	= /opera [56789]|opera\/[56789]/i.test(ua); var ie = !opera && /msie [56789]/i.test(ua); var moz = !opera && /mozilla\/[56789]/i.test(ua); if (window.pathToRoot == null) pathToRoot = "/"; if (ie)	document.write('<script type="text/javascript" src="/includes/cssexpr.js"><\/script>'); document.write('<link type="text/css" rel="StyleSheet" href="/css/xmenu.css"><\/script>' + '<script type="text/javascript" src="/includes/menuitems.aspx"><\/script>'); var win = null; function NewWindow(mypage,myname,w,h,scroll){LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'; win = window.open(mypage,myname,settings);} webfxLayout = {writeTopMenuBar :	function () {document.write("<div id='webfx-menu-bar-1'></div>" + "<div id='webfx-menu-bar'>");	}, writeBottomMenuBar : function () {document.write("</div>" + "<div id='webfx-menu-bar-5'></div>");}, writeMenu : function () {if (ie || moz || opera) {if (ie) simplifyCSSExpression(); webfxMenuImagePath = pathToRoot + "images/"; this.writeTopMenuBar(); document.write(fxBr); this.writeBottomMenuBar(); document.write(fxShareholders); document.write(fxAnalysts); document.write(fxMedia);}}, writeDesignedByEdger : function (){if (ie && document.body.currentStyle && document.body.currentStyle.writingMode != null) document.write("<div id='webfx-about'>Page designed and maintained by <a href='/contact.html#erik'>Erik Arvidsson</a> &amp; <a href='/contact.html#emil'>Emil A Eklund</a>.</div>");}}; var ua = navigator.userAgent; var opera = /opera [56789]|opera\/[56789]/i.test(ua); var ie = !opera && /MSIE/.test(ua); var ie50 = ie && /MSIE 5\.[01234]/.test(ua); var ie6 = ie && /MSIE [6789]/.test(ua); var ieBox = ie && (document.compatMode == null || document.compatMode != "CSS1Compat"); var moz = !opera && /gecko/i.test(ua); var nn6 = !opera && /netscape.*6\./i.test(ua); webfxMenuDefaultWidth = 125; webfxMenuDefaultBorderLeft = 0; webfxMenuDefaultBorderRight = 0; webfxMenuDefaultBorderTop = 0; webfxMenuDefaultBorderBottom = 0; webfxMenuDefaultPaddingLeft = 0; webfxMenuDefaultPaddingRight	= 0; webfxMenuDefaultPaddingTop	= 0; webfxMenuDefaultPaddingBottom = 0; webfxMenuDefaultShadowLeft = 0; webfxMenuDefaultShadowRight = ie && !ie50 && /win32/i.test(navigator.platform) ? 4 :0; webfxMenuDefaultShadowTop = 0; webfxMenuDefaultShadowBottom	= ie && !ie50 && /win32/i.test(navigator.platform) ? 4 : 0; webfxMenuItemDefaultHeight = 18; webfxMenuItemDefaultText = "Untitled"; webfxMenuItemDefaultHref = "#"; webfxMenuSeparatorDefaultHeight	= 6; webfxMenuDefaultEmptyText = "Empty"; g_selects	= []; g_frames = []; webfxMenuDefaultUseAutoPosition = nn6 ? false : true; webfxMenuUseHover = true; webfxMenuHideTime = 500; webfxMenuShowTime = 200; var webFXMenuHandler = {idCounter : 0, idPrefix : "webfx-menu-object-", all : {}, getId : function (){return this.idPrefix + this.idCounter++;},	overMenuItem : function (oItem) {if (this.showTimeout != null) window.clearTimeout(this.showTimeout); if (this.hideTimeout != null) window.clearTimeout(this.hideTimeout); var jsItem = this.all[oItem.id];	if (webfxMenuShowTime <= 0) this._over(jsItem);	else this.showTimeout = window.setTimeout("webFXMenuHandler._over(webFXMenuHandler.all['" + jsItem.id + "'])", webfxMenuShowTime);}, outMenuItem : function (oItem){if (this.showTimeout != null) window.clearTimeout(this.showTimeout); if (this.hideTimeout != null) window.clearTimeout(this.hideTimeout); var jsItem = this.all[oItem.id]; if (webfxMenuHideTime <= 0) this._out(jsItem); else this.hideTimeout = window.setTimeout("webFXMenuHandler._out(webFXMenuHandler.all['" + jsItem.id + "'])", webfxMenuHideTime);}, blurMenu : function (oMenuItem){window.setTimeout("webFXMenuHandler.all[\"" + oMenuItem.id + "\"].subMenu.hide();", webfxMenuHideTime);},	_over : function (jsItem){if (jsItem.subMenu){jsItem.parentMenu.hideAllSubs(); jsItem.subMenu.show();} else jsItem.parentMenu.hideAllSubs();}, _out : function (jsItem){var root = jsItem; var m; if (root instanceof FxB) m = root.subMenu; else {m = jsItem.parentMenu; while (m.parentMenu != null && !(m.parentMenu instanceof FxBr)) m = m.parentMenu;} if (m != null) m.hide();}, hideMenu : function (menu){if (this.showTimeout != null) window.clearTimeout(this.showTimeout); if (this.hideTimeout != null) window.clearTimeout(this.hideTimeout); this.hideTimeout = window.setTimeout("webFXMenuHandler.all['" + menu.id + "'].hide()", webfxMenuHideTime);}, showMenu : function (menu, src, dir){if (this.showTimeout != null) window.clearTimeout(this.showTimeout); if (this.hideTimeout != null) window.clearTimeout(this.hideTimeout); if (arguments.length < 3) dir = "vertical"; menu.show(src, dir);}, hideTheMenu : function (menu){if (menu != null){webFXMenuHandler.all[menu.id].hide();}}}; function FxM(){this._menuItems = []; this._subMenus = []; this.id = webFXMenuHandler.getId(); this.top = 0;	this.left = 0; this.shown = false; this.parentMenu = null; webFXMenuHandler.all[this.id] = this;} FxM.prototype.width = webfxMenuDefaultWidth; FxM.prototype.emptyText = webfxMenuDefaultEmptyText; FxM.prototype.useAutoPosition	= webfxMenuDefaultUseAutoPosition; FxM.prototype.borderLeft = webfxMenuDefaultBorderLeft; FxM.prototype.borderRight = webfxMenuDefaultBorderRight; FxM.prototype.borderTop = webfxMenuDefaultBorderTop; FxM.prototype.borderBottom = webfxMenuDefaultBorderBottom; FxM.prototype.paddingLeft = webfxMenuDefaultPaddingLeft; FxM.prototype.paddingRight = webfxMenuDefaultPaddingRight; FxM.prototype.paddingTop = webfxMenuDefaultPaddingTop; FxM.prototype.paddingBottom = webfxMenuDefaultPaddingBottom; FxM.prototype.shadowLeft = webfxMenuDefaultShadowLeft; FxM.prototype.shadowRight = webfxMenuDefaultShadowRight; FxM.prototype.shadowTop = webfxMenuDefaultShadowTop; FxM.prototype.shadowBottom = webfxMenuDefaultShadowBottom; FxM.prototype.add = function (menuItem){this._menuItems[this._menuItems.length] = menuItem; if (menuItem.subMenu){this._subMenus[this._subMenus.length] = menuItem.subMenu; menuItem.subMenu.parentMenu = this;} menuItem.parentMenu = this;}; FxM.prototype.show = function (relObj, sDir){if (this.useAutoPosition) this.position(relObj, sDir); var divElement = document.getElementById(this.id); divElement.style.left = opera ? this.left : this.left + "px"; divElement.style.top = opera ? this.top : this.top + "px"; divElement.style.visibility = "visible"; this.shown = true; if (this.parentMenu) this.parentMenu.show();}; 
FxM.prototype.hide = function (){this.hideAllSubs(); if (this.parentMenu){if (!this.parentMenu.parentMenu) this.showselectboxes();} var divElement = document.getElementById(this.id); divElement.style.visibility = "hidden"; this.shown = false;}; FxM.prototype.hideAllSubs = function () {for (var i = 0; i < this._subMenus.length; i++){if (this._subMenus[i].shown) this._subMenus[i].hide();}}; FxM.prototype.toString = function (){var top = this.top + this.borderTop + this.paddingTop; var str = "<div id='" + this.id + "' class='webfx-menu' style='z-index:99;width:" + (!ieBox ?	this.width - this.borderLeft - this.paddingLeft - this.borderRight - this.paddingRight : this.width) + "px;" + (this.useAutoPosition ? "left:" + this.left + "px;" + "top:" + this.top + "px;" : "") + (ie50 ? "filter: none;" : "") + "'>"; if (this._menuItems.length == 0){str += "<span class='webfx-menu-empty'>" + this.emptyText + "</span>";} else {for (var i = 0; i < this._menuItems.length; i++){var mi = this._menuItems[i]; str += mi; if (!this.useAutoPosition){if (mi.subMenu && !mi.subMenu.useAutoPosition) mi.subMenu.top = top - mi.subMenu.borderTop - mi.subMenu.paddingTop; top += mi.height;}}} str += "</div>"; for (var i = 0; i < this._subMenus.length; i++){this._subMenus[i].left = this.left + this.width - this._subMenus[i].borderLeft; str += this._subMenus[i];} return str;}; function FxI(sText, sHref, sToolTip, sTarget, oSubMenu){this.text = sText || webfxMenuItemDefaultText; this.href = (sHref == null || sHref == "") ? webfxMenuItemDefaultHref : sHref; this.subMenu = oSubMenu; this.target = (sTarget == null) ? "" : sTarget; if (oSubMenu) oSubMenu.parentMenuItem = this; this.toolTip = sToolTip; this.id = webFXMenuHandler.getId(); webFXMenuHandler.all[this.id] = this;}; FxI.prototype.height = webfxMenuItemDefaultHeight; FxI.prototype.toString = function (){return	"<a id='" + this.id + "' href=\"" + this.href + "\"" + (this.target ? " target=\"" + this.target + "\"" : "") + (this.toolTip ? " title=\"" + this.toolTip + "\"" : "") + " onmouseover='webFXMenuHandler.overMenuItem(this)'" + (webfxMenuUseHover ? " onmouseout='webFXMenuHandler.outMenuItem(this)'" : "") + (this.subMenu ? " unselectable='on' tabindex='-1'" : "") + ">" + (this.subMenu ? "<img class='arrow' src=\"" + webfxMenuImagePath + "arrow.right.png\">" : "") + this.text + "</a>";}; function WebFXMenuSeparator(){this.id = webFXMenuHandler.getId(); webFXMenuHandler.all[this.id] = this;}; WebFXMenuSeparator.prototype.height = webfxMenuSeparatorDefaultHeight; WebFXMenuSeparator.prototype.toString = function (){return "<div id='" + this.id + "'" + (webfxMenuUseHover ? " onmouseover='webFXMenuHandler.overMenuItem(this)'" + " onmouseout='webFXMenuHandler.outMenuItem(this)'" : "") + "></div>"}; function FxBr(){this._parentConstructor = FxM; this._parentConstructor();} FxBr.prototype = new FxM; FxBr.prototype.toString = function (){var str = "<div id='" + this.id + "' class='webfx-menu-bar'>"; for (var i = 0; i < this._menuItems.length; i++) str += this._menuItems[i]; str += "</div>"; for (var i = 0; i < this._subMenus.length; i++) str += this._subMenus[i]; return str;}; function FxB(sText, sHref, sToolTip, sTarget, oSubMenu){this._parentConstructor = FxI; this._parentConstructor(sText, sHref, sToolTip, sTarget, oSubMenu);} FxB.prototype = new FxI; FxB.prototype.toString = function (){var strHTMLAnchor; strHTMLAnchor =	"<a id='" + this.id + "'"; if((this.href != null || this.gref.length > 0) && this.href !="!") strHTMLAnchor += " href=\"" + this.href + "\""; strHTMLAnchor += (this.target ? " target=\"" + this.target + "\"" : "") + (this.toolTip ? " title=\"" + this.toolTip + "\"" : "") + (webfxMenuUseHover ? (" onmouseover='webFXMenuHandler.overMenuItem(this)'" + " onmouseout='webFXMenuHandler.outMenuItem(this)'") : (" onfocus='webFXMenuHandler.overMenuItem(this)'" + (this.subMenu ? " onblur='webFXMenuHandler.blurMenu(this)'" : ""))) + ">" + this.text + "</a>"; return strHTMLAnchor;}; function getInnerLeft(el){if (el == null) return 0; if (ieBox && el == document.body || !ieBox && el == document.documentElement) return 0;	return getLeft(el) + getBorderLeft(el);} function getLeft(el){if (el == null) return 0; return el.offsetLeft + getInnerLeft(el.offsetParent);} function getInnerTop(el){if (el == null) return 0; if (ieBox && el == document.body || !ieBox && el == document.documentElement) return 0; return getTop(el) + getBorderTop(el);} function getTop(el){if (el == null) return 0; return el.offsetTop + getInnerTop(el.offsetParent);} function getBorderLeft(el){return ie ? el.clientLeft : parseInt(window.getComputedStyle(el, null).getPropertyValue("border-left-width"));} function getBorderTop(el){return ie ? el.clientTop : parseInt(window.getComputedStyle(el, null).getPropertyValue("border-top-width"));} function opera_getLeft(el){if (el == null) return 0; return el.offsetLeft + opera_getLeft(el.offsetParent);} function opera_getTop(el){if (el == null) return 0;	return el.offsetTop + opera_getTop(el.offsetParent);} function getOuterRect(el){return {left:	(opera ? opera_getLeft(el) : getLeft(el)), top: (opera ? opera_getTop(el) : getTop(el)), width:	el.offsetWidth, height:	el.offsetHeight};} function getDocumentRect(el){return {left:	0, top:	0, width: (ie ? (ieBox ? document.body.clientWidth : document.documentElement.clientWidth) : window.innerWidth), height: (ie ? (ieBox ? document.body.clientHeight : document.documentElement.clientHeight) : window.innerHeight)};} function getScrollPos(el){return {left:	(ie ? (ieBox ? document.body.scrollLeft : document.documentElement.scrollLeft) : window.pageXOffset), top: (ie ? (ieBox ? document.body.scrollTop : document.documentElement.scrollTop) : window.pageYOffset)};}
FxM.prototype.hideselectboxes=function(stop,sleft,swidth,sheight){if (!nn6){var seltop,selleft,selwidth,selheight,i, intSelectCount; var selects = document.getElementsByTagName("SELECT"); intSelectCount = 0; for(i=0;i<selects.length;i++){seltop=0; selleft=0; var selp; if(selects[i].offsetParent){selp=selects[i]; while(selp.offsetParent){selp=selp.offsetParent; selleft+=selp.offsetLeft; seltop+=selp.offsetTop;}} selleft+=selects[i].offsetLeft; seltop+=selects[i].offsetTop; selwidth=selects[i].offsetWidth; selheight=selects[i].offsetHeight; if(selleft+selwidth>sleft && selleft<sleft+swidth && seltop+selheight>stop && seltop>stop+sheight){if(selects[i].style.visibility!="hidden"){selects[i].style.visibility="hidden"; g_selects[intSelectCount] = i; } intSelectCount += 1;}}} else {var selects = document.getElementsByTagName("SELECT"); var intSelectCount = 0; for(i=0;i<selects.length;i++){if(selects[i].style.visibility!="hidden"){selects[i].style.visibility="hidden"; g_selects[intSelectCount] = i;} intSelectCount += 1;}}}; FxM.prototype.showselectboxes=function(){var selects = document.getElementsByTagName("SELECT"); if (g_selects.length > 0){for(i=0;i < g_selects.length;i++){var intIndex = g_selects[i]; selects[intIndex].style.visibility='visible';}} g_selects = [];}; FxM.prototype.position = function (relEl, sDir){var dir = sDir; var piRect; if (!relEl){var pi = this.parentMenuItem; if (!this.parentMenuItem) return; relEl = document.getElementById(pi.id); if (dir == null) dir = pi instanceof FxB ? "vertical" : "horizontal"; piRect = getOuterRect(relEl);} else if (relEl.left != null && relEl.top != null && relEl.width != null && relEl.height != null){piRect = relEl;} else piRect = getOuterRect(relEl); var menuEl = document.getElementById(this.id); var menuRect = getOuterRect(menuEl); var docRect = getDocumentRect(); var scrollPos = getScrollPos(); var pMenu = this.parentMenu; if (dir == "vertical"){this.hideselectboxes(piRect.top, piRect.left, piRect.width, piRect.height); if (piRect.left + menuRect.width - scrollPos.left <= docRect.width) this.left = piRect.left; else if (docRect.width >= menuRect.width) this.left = docRect.width + scrollPos.left - menuRect.width; else this.left = scrollPos.left; if (piRect.top + piRect.height + menuRect.height <= docRect.height + scrollPos.top) this.top = piRect.top + piRect.height; else if (piRect.top - menuRect.height >= scrollPos.top) this.top = piRect.top - menuRect.height; else if (docRect.height >= menuRect.height) this.top = docRect.height + scrollPos.top - menuRect.height; else this.top = scrollPos.top;} else {this.hideselectboxes(piRect.top, piRect.left, piRect.width, piRect.height); if (piRect.top + menuRect.height - this.borderTop - this.paddingTop <= docRect.height + scrollPos.top) this.top = piRect.top - this.borderTop - this.paddingTop; else if (piRect.top + piRect.height - menuRect.height + this.borderTop + this.paddingTop >= 0) this.top = piRect.top + piRect.height - menuRect.height + this.borderBottom + this.paddingBottom + this.shadowBottom; else if (docRect.height >= menuRect.height) this.top = docRect.height + scrollPos.top - menuRect.height; else this.top = scrollPos.top; var pMenuPaddingLeft = pMenu ? pMenu.paddingLeft : 0; var pMenuBorderLeft = pMenu ? pMenu.borderLeft : 0; var pMenuPaddingRight = pMenu ? pMenu.paddingRight : 0; var pMenuBorderRight = pMenu ? pMenu.borderRight : 0; if (piRect.left + piRect.width + menuRect.width + pMenuPaddingRight + pMenuBorderRight - this.borderLeft + this.shadowRight <= docRect.width + scrollPos.left) this.left = piRect.left + piRect.width + pMenuPaddingRight + pMenuBorderRight - this.borderLeft; else if (piRect.left - menuRect.width - pMenuPaddingLeft - pMenuBorderLeft + this.borderRight + this.shadowRight >= 0) this.left = piRect.left - menuRect.width - pMenuPaddingLeft - pMenuBorderLeft + this.borderRight + this.shadowRight; else if (docRect.width >= menuRect.width) this.left = docRect.width  + scrollPos.left - menuRect.width; else this.left = scrollPos.left;}};

var tgs = new Array( 'div','td','tr',/*'p','h1','h2','h3','h4','h5',*/'a','input','select','li','ul','span','div'); 
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large');

function textsizer(){
	var items = textsizer.arguments.length;
	var inc = textsizer.arguments[0];
	var d = document,cEl = null,sz = startSz,i,j,cTags; sz = parseInt(sz) + parseInt(inc); 
	if ( sz < 0 ) sz = 0; 
	if ( sz > 4) sz = 4; 
	startSz = sz; 
	var date = new Date(); 
	date.setTime(date.getTime() + 365 * 24 * 60 * 60 * 1000); 
	var fontSize = startSz; setCookie("fontSize", fontSize, date,"/"); 
	for(k = 1; k <= items; k++){
		var trgt; if (!document.getElementById(textsizer.arguments[k])) continue
		trgt = textsizer.arguments[k]; 
		if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ]; 
		cEl.style.fontSize = szs[ sz ];
		for ( i = 0 ; i < tgs.length ; i++ ){cTags = cEl.getElementsByTagName( tgs[ i ] ); 
		for (j = 0 ; j < cTags.length ; j++) 
			{
				try
				{
					cTags[j].style.fontSize = getFontSize(cTags[j].style.fontsize, szs[sz]);
				}
				catch (err)
				{
				//Element does not have a fontsize property, ignore
				}
			}
		}
	} 
	return
	}
	
	//'xx-small','x-small','small','medium','large','x-large','xx-large'
	var factors = new Array(0.25,0.5,0.75,1,1.25,1.5,2);
	function getFontSize(currentFontSize, newFontSizeIndex)	{	
		var curSize = parseInt(currentFontSize);
		var newFontSize = curSize * factors[newFontSizeIndex];
		return newFontSize + "px";
	}
	
	function setCookie(name, value, expires, path, domain, secure){var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie;} function getCookie(name){var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1){begin = dc.indexOf(prefix); if (begin != 0) return null;} else begin += 2; var end = document.cookie.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin + prefix.length, end));} function deleteCookie(name, path, domain){if (getCookie(name)){document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";}} function fixDate(date){var base = new Date(0); var skew = base.getTime(); if (skew > 0) date.setTime(date.getTime() - skew);}

