function lib_bwcheck(){ //Browsercheck (needed)
        this.ver=navigator.appVersion; this.agent=navigator.userAgent
        this.dom=document.getElementById?1:0
        this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
        this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
        this.ie4=(document.all && !this.dom)?1:0;
        this.ie=this.ie4||this.ie5||this.ie6
        this.mac=this.agent.indexOf("Mac")>-1
        this.opera5=this.agent.indexOf("Opera 5")>-1
        this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
        this.ns4=(document.layers && !this.dom)?1:0;
        this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
        return this
}
var bw=new lib_bwcheck()
var targetFrame="main";

function writeSub(what,pos)
{


}


var popKom=new Array();
popKom[0]="<tr><td><a  onFocus=\"this.blur\" target=\"main\" href=\"/kompetencer.jsp\" style=\"cursor:hand\" onMouseOver=\"top.frames.menu.switchImg('kompetencer1','/images/kompetencer_over.gif');\" onMouseOut=\"switchImg('kompetencer1','/images/kompetencer.gif')\"><img src=\"images/kompetencer.gif\" alt=\"\" name=\"kompetencer1\" id=\"kompetencer1\" width=\"96\" height=\"17\" border=\"0\"></a></td></tr>";



        var images=new Array();
        var imgName=new Array();
        function preloadImages()
        {
            for(x=0;x<arguments.length;x++)
            {
                images[x]=new Image();
                images[x].src=arguments[x];
                imgName[x]=arguments[x];
            }
        }
        function switchImg(which,to)
        {
                for(x=0;x<imgName.length;x++)
                {
                    if(imgName[x]==to)
                    {
                        document.images[which].src=images[x].src;
                    }
                }
                //img=new Image();
                //img.src=to;
                //document.images[which].src=img.src;

        }

        function pop(which,to)
        {
            //var doc=top.frames['main'].document;
            //doc.open();
            //el=doc.createElement("DIV");
            //el.innerHTML='<div id="komSub" style="position:absolute;left:96px;top:0px;border:0px solid white"><table cellspacing="0" cellpadding="0" border="0">'+popKom[0]+'</table></div>';
            //doc.body.appendChild(el);
            //doc.close();
            switchImg(which,to);
        }
