posYmenu	= 0;
bgcolor		= '#BEBEBE';
bgcolor2	= '#42BADD';
needcenter	= false;
menuwidth	= 192;
menumargin	= 8;

selectwide = 0;		// wirkliche Breite der Select-Box
selectwidth = 230;	// Default-Wert für Breite, abgleichen mit main.css
selectsmall = 185;	// Schmale Version

if(!needcenter)
	posXmenu = 0;
else {
    if (document.all)
	posXmenu = (document.body.clientWidth/2)-(960/2);
    else
	posXmenu = (window.innerWidth/2)-(960/2);
}

document.write('<style type="text/css">');
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; z-index:3;}');
document.write('#topgauche { position:absolute; top:'+posYmenu+'px; left:'+posXmenu+'px; z-index:10; }');
document.write('A:link.downmenu    {color:#FFFFFF; text-decoration:none;  width:'+(menuwidth-2*menumargin)+'px;}');
document.write('A:hover.downmenu   {color:#FFFFFF; text-decoration:none;  width:'+(menuwidth-2*menumargin)+'px;}');
document.write('A:visited.downmenu {color:#FFFFFF; text-decoration:none;  width:'+(menuwidth-2*menumargin)+'px;}');
document.write('A:active.downmenu  {color:#FFFFFF; text-decoration:none;  width:'+(menuwidth-2*menumargin)+'px;}');
document.write('A.downmenu         {color:#FFFFFF; text-decoration:none;  width:'+(menuwidth-2*menumargin)+'px;}');
document.write('DIV.inactive       {color:#dddddd; font-style:italic; }');
document.write('</style>');
document.write('<DIV class="popper" id="topdeck"></DIV>');


var nava = (document.layers);
var dom = (document.getElementById);
var iex = (document.all);
if (nava) { skn = document.topdeck }
else if (dom) { skn = document.getElementById("topdeck").style }
else if (iex) { skn = topdeck.style }
skn.top = posYmenu+24;


function SmallPrdSelects(setsmall)
{
        var slmio = document.getElementById("select_mio"),
            slipc = document.getElementById("select_ipc"),
            sldlc = document.getElementById("download_choice"),
            sldsc = document.getElementById("datasheet_choice");

	if (slmio) {
            if (selectwide == 0) {
	        selectwide = slmio.style.width;
	        if (selectwide == 0)
	            selectwide = selectwidth;
	    }
	}

	switch (navigator.family) {
	    case "ie3":
	    case "aol":
	        if (setsmall) {
	            if (slmio)	slmio.style.width = selectsmall;
	            if (slipc)	slipc.style.width = selectsmall;
	            if (sldlc)	sldlc.style.visibility = "hidden";
	            if (sldsc)	sldsc.style.visibility = "hidden";
	        } else {
	            if (slmio)	slmio.style.width = selectwide;
	            if (slipc)	slipc.style.width = selectwide;
	            if (sldlc)	sldlc.style.visibility = "visible";
	            if (sldsc)	sldsc.style.visibility = "visible";
	        }
	        break;
	    case "ie4":	if (navigator.version != 7) {
	        if (setsmall) {
	            if (slmio)	slmio.style.width = selectsmall;
	            if (slipc)	slipc.style.width = selectsmall;
	            if (sldlc)	sldlc.style.visibility = "hidden";
	            if (sldsc)	sldsc.style.visibility = "hidden";
	        } else {
	            if (slmio)	slmio.style.width = selectwide;
	            if (slipc)	slipc.style.width = selectwide;
	            if (sldlc)	sldlc.style.visibility = "visible";
	            if (sldsc)	sldsc.style.visibility = "visible";
	        }
	        }
	        break;
	}
}

function pop(imsg,pos)
{
        msg = zlien[imsg];
        skn.visibility = "hidden";
        skn.left = posXmenu+pos;
        var content = '<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#999999" WIDTH="'+(menuwidth)+'" style="z-index:3;">'
                    +  '<TR>'
                    +   '<TD>'
                    +    '<TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" style="z-index:3;">';
        pass = 0
        while (pass < msg.length) {	// >
                content += '<TR>'
                        +    '<TD HEIGHT="20" BGCOLOR="' + bgcolor + '"'
                        +          ' onMouseOver="this.style.background=\'' + bgcolor2 + '\'"'
                        +          ' onMouseOut="this.style.background=\''  + bgcolor  + '\'"'
                        +	   ' style="z-index:3;" >'
                        +      '<div style="margin-left:'+menumargin+'px; margin-right:'+menumargin+'px; z-index:3;">'
                        +        '<FONT SIZE="2" FACE="Verdana">'  +  msg[pass]  +  '</FONT>'
                        +      '</div>'
                        +    '</TD>'
                        +  '</TR>';
                pass++;
        }
        content +=       '</TABLE>'
                +       '</TD>'
                +      '</TR>'
                +     '</TABLE>';
        if (nava) {
                skn.document.write(content);
                skn.document.close();
                skn.visibility = "visible";
	} else if (dom) {
                document.getElementById("topdeck").innerHTML = content;
                skn.zIndex = 1;
                skn.zIndex = 3;
                skn.visibility = "visible";
                skn.zIndex = 1;
                skn.zIndex = 3;
        } else if (iex) {
                document.all("topdeck").innerHTML = content;
                skn.visibility = "visible";
        }
        if (imsg == 1)
            SmallPrdSelects(true);
        else
            SmallPrdSelects(false);
        if (document.getElementById("ejs_scroll_relative"))
	    ShowTickLink(false);	// Newsticker "nach hinten" schieben, falls IE in Benutzung (z-index = -1)
}
function kill()
{
	skn.visibility = "hidden";
	SmallPrdSelects(false);
	if (document.getElementById("ejs_scroll_relative"))
	    ShowTickLink(true);	// Newsticker als Link "aktivieren" schieben, falls IE in Benutzung (z-index = 0)
}
document.onclick = kill;

document.write	('<DIV ID="topgauche">'
		+'<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR="#999999" WIDTH="'+(5*menuwidth)+'">'
		+  '<TR>'
		+    '<TD>'
		+      '<TABLE CELLPADING=0 CELLSPACING=1 BORDER=0 WIDTH=100% HEIGHT=25>'
		+	'<TR>');
document.write		('<TD WIDTH='+menuwidth+' ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(0,0)" onMouseOut="this.style.background=\''+bgcolor+'\'">'
                        +  '<A onMouseOver="pop(0,0)" CLASS="downmenu">'
                        +    '<FONT SIZE=2 FACE="Verdana">'
                        +      '<b>Company</b>'
                        +    '</FONT>'
                        +  '</a>'
                        +'</TD>');
document.write		('<TD WIDTH='+menuwidth+' ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(1,'+(1*menuwidth-1)+')" onMouseOut="this.style.background=\''+bgcolor+'\'">'
                        +  '<A onMouseOver="pop(1,'+(1*menuwidth-1)+')" href="'+ROOTPATH+'pindex.htm" CLASS="downmenu">'
                        +    '<FONT SIZE=2 FACE="Verdana">'
                        +      '<b>Products</b>'
                        +    '</FONT>'
                        +  '</a>'
                        +'</TD>');
document.write		('<TD WIDTH='+menuwidth+' ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(2,'+(2*menuwidth-1)+')"'+' onMouseOut="this.style.background=\''+bgcolor+'\'">'
                        +  '<A onMouseOver="pop(2,'+(2*menuwidth-1)+')" href="'+ROOTPATH+'solutions.htm" CLASS="downmenu">'
                        +    '<FONT SIZE=2 FACE="Verdana">'
                        +      '<b>Solutions</b>'
                        +    '</FONT>'
                        +  '</a>'
                        +'</TD>');
document.write		('<TD WIDTH='+menuwidth+' ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(3,'+(3*menuwidth-1)+')" onMouseOut="this.style.background=\''+bgcolor+'\'">'
                        +'<A onMouseOver="pop(3,'+(3*menuwidth-1)+')" CLASS="downmenu">'
                        +'<FONT SIZE=2 FACE="Verdana">'
                        +'<b>Support & Service</b>'
                        +'</FONT>'
                        +'</a>'
                        +'</TD>');
document.write		('<TD WIDTH='+menuwidth+' ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(4,'+(4*menuwidth-1)+')" onMouseOut="this.style.background=\''+bgcolor+'\'">'
                        +'<A onMouseOver="pop(4,'+(4*menuwidth-1)+')" CLASS="downmenu">'
                        +'<FONT SIZE=2 FACE="Verdana">'
                        +'<b>News & Events</b>'
                        +'</FONT>'
                        +'</a>'
                        +'</TD>');
document.write	('</TR>'
		+'</TABLE>'
		+'</TD>'
		+'</TR>'
		+'</TABLE>'
		+'</DIV>');