// 2009-02-17 12:04:37
toItem  =null;
toMenu  =null;
toLayer =-1;
toSubL  =-1;
ieXplo  =(me.iex4 || me.iex5 || me.iex5up || me.iex55 || me.iex6);
ieXplo ? hadd=0 : hadd=-4;
ieXplo ? badd=0 : (me.nc4) ? badd=0 : badd=-2;
if ( lks != null )// i3
{
writeCSS(lks);writeDIV(lks);genLayers(lks);
}
else
{ document.write("Menü?<br>"); }
function getLayerNum(s)
{
if ((s=="") || (s==null))
{ return -1; }
p=0;
while (isNaN(s.substr(p,1)) && (p<s.length))
{ p++; }
q=p;
while (!isNaN(s.substr(q,1)) && (q<s.length))
{ q++; }
s=s.substr(p,q-p);
return parseInt(s);
}
function getSubLayerNum(s)
{
p=s.indexOf("sub");
P=s.indexOf("ssu");
if ((p == -1) && (P == -1))
{ return -1; }
if (p >= 0)
{ p += 3; }
else
{ p=P+3; }
q=p;
while (!isNaN(s.substr(q,1)) && (q<s.length))
{ q++; }
s=s.substr(p,q-p);
return parseInt(s);
}
function getSsuLayerNum(s)
{
p=s.indexOf("ssu");
if (p == -1)
{ return -1; }
p += 3;
s=s.substr(p);
p=0;
while (!isNaN(s.substr(p,1)) && (p<s.length))
{ p++; }
while (isNaN(s.substr(p,1)) && (p<s.length))
{ p++; }
q=p;
while (!isNaN(s.substr(q,1)) && (q<s.length))
{ q++; }
s=s.substr(p,q-p);
return parseInt(s);
}
function implodeSub(m, l, s)
{
var px  =0;
var py  =0;
var l1  =l+1;
var s1  =s+1;
if (s >= 0)
{
if (m.childs[l].childs[s].exVert)
{
var subH=m.childs[l].childs[s].numChild * m.he3;
for (e=l1; e<m.childs.length; e++)
{
py=eval(m.id+e+".y") - subH;
px=eval(m.id+e+".x");
eval(m.id+e+".moveTo("+px+", "+ py +")");
}
for (e=s1; e<m.childs[l].childs.length; e++)
{
py=eval(m.id+l+"sub"+e+".y") - subH;
px=eval(m.id+l+"sub"+e+".x");
eval(m.id+l+"sub"+e+".moveTo("+px+", "+ py +")");
}
}
childs=m.childs[l].childs[s].numChild;
for (j=0; j < childs; j++)
{
px=-400;
py=eval(m.id+l+"ssu"+s+"c"+j+".y");
eval(m.id+l+"ssu"+s+"c"+j+".moveTo("+px+", "+py+")");
eval(m.id+l+"ssu"+s+"c"+j+".setVisibility(false)");
if (m.border)
{
eval("BD"+m.id+l+"ssu"+s+"c"+j+".moveTo("+px+", "+py+")");
eval("BD"+m.id+l+"ssu"+s+"c"+j+".setVisibility(false)");
}
}
m.childs[l].childs[s].expanded=0;
}
else
{
if (m.exVert)
{
var subH=m.childs[l].numChild * m.he2;
for (e=l1; e<m.childs.length; e++)
{
py=eval(m.id+e+".y") - subH;
px=eval(m.id+e+".x");
eval(m.id+e+".moveTo("+px+", "+ py +")");
}
}
childs=m.childs[l].numChild;
for (j=0; j < childs; j++)
{
px=-400;
py=eval(m.id+l+"sub"+j+".y") - m.childs[l].topShift;
eval(m.id+l+"sub"+j+".moveTo("+px+", "+py+")");
eval(m.id+l+"sub"+j+".setVisibility(false)");
if (m.border)
{
eval("BD"+m.id+l+"sub"+j+".moveTo("+px+", "+ py +")");
eval("BD"+m.id+l+"sub"+j+".setVisibility(false)");
}
}
m.childs[l].expanded=0;
}
}
function toImplodeAll()
{
if (toItem == null)
{ return; }
var j=0;
for (j=0; j<toMenu.childs.length; j++)
{
for (k=0; k<toMenu.childs[j].numChild; k++)
{
if (toMenu.childs[j].childs[k].expanded)
{ implodeSub(toMenu,j,k); }
}
if (toMenu.childs[j].expanded)
{ implodeSub(toMenu,j,-1); }
}
toItem=null;
toMenu=null;
toLayer= -1;
toSubL=-1;
}
function implodeAll(m)
{
var j=0;
for (j=0; j<m.childs.length; j++)
{
for (k=0; k<m.childs[j].numChild; k++)
{
if (m.childs[j].childs[k].expanded)
{ implodeSub(m,j,k); }
}
if (m.childs[j].expanded)
{ implodeSub(m, j, -1); }
}
}
function explodeSub(m, l, s)
{
var px  =0;
var py  =0;
var l1  =l+1;
var s1  =s+1;
if (s >= 0)
{
for (e=0; e<m.childs[l].childs.length; e++)
{
if (m.childs[l].childs[e].expanded)
{
implodeSub(m,l,e);
}
}
if (m.childs[l].childs[s].exVert)
{
var subH=m.childs[l].childs[s].numChild * m.he3;
for (e=l1; e<m.childs.length; e++)
{
py=eval(m.id+e+".y")+subH;
px=eval(m.id+e+".x");
eval(m.id+e+".moveTo("+px+", "+ py +")");
}
for (e=s1; e<m.childs[l].childs.length; e++)
{
py=eval(m.id+l+"sub"+e+".y")+subH;
px=eval(m.id+l+"sub"+e+".x");
eval(m.id+l+"sub"+e+".moveTo("+px+", "+ py +")");
}
}
childs=m.childs[l].childs[s].numChild;
for (j=0; j < childs; j++)
{
px=eval(m.id+l+".x")+m.childs[l].leftShift+m.childs[l].childs[s].leftShift;
py=eval(m.id+l+"ssu"+s+"c"+j+".y");
eval(m.id+l+"ssu"+s+"c"+j+ ".moveTo("+px+", "+py+")");
eval(m.id+l+"ssu"+s+"c"+j+".setVisibility(true)");
if (m.border)
{
eval("BD"+m.id+l+"ssu"+s+"c"+j+ ".moveTo("+px+", "+py+")");
eval("BD"+m.id+l+"ssu"+s+"c"+j+".setVisibility(true)");
}
}
m.childs[l].childs[s].expanded=1;
}
else
{
if (m.abVert)
{
if (m.exVert)
{
implodeAll(m);
var subH=m.childs[l].numChild * m.he2;
for (e=l1; e <m.childs.length; e ++)
{
py=eval(m.id+e+".y")+subH;
px=eval(m.id+e+".x");
eval(m.id+e+".moveTo("+ px +", "+ py +")");
}
}
else
{
implodeAll(m);
}
}
childs=m.childs[l].numChild;
yStart=eval(m.id+l+".y")+m.he1;
for (j=0; j < childs; j++)
{
px=eval(m.id+l+".x")+m.childs[l].leftShift;
py=yStart+m.he2 * j+m.childs[l].topShift;
eval(m.id+l+"sub"+j+".moveTo("+px+", "+py+")");
eval(m.id+l+"sub"+j+".setVisibility(true)");
if (m.border)
{
eval("BD"+m.id+l+"sub"+j+".moveTo("+px+", "+py+")");
eval("BD"+m.id+l+"sub"+j+".setVisibility(true)");
}
}
m.childs[l].expanded=1;
}
}
function qeOverEff()
{
if (eventsOff)
{ return true; }
//initialisierung
eventsOff= true;
menu =null;
itsMe=eval(this);
var div=eval(itsMe.id.substr(0, itsMe.id.length-1));
   if ( div.eb.substr(0, lks.id.length) == lks.id )// i2
      { menu = lks; }// i2
if (menu != null)
{
var divName =div.eb;
var layer   =getLayerNum(divName);
var subLayer=getSubLayerNum(divName);
var ssuLayer=getSsuLayerNum(divName);
if (menu.openByMO)
{
if (toItem != null)
{
if (toLayer == layer)
{
window.clearTimeout(toItem);
if ((toSubL != subLayer) && (toSubL >= 0))
{
if (toMenu.childs[toLayer].childs[toSubL].expanded)
{ implodeSub(toMenu, toLayer, toSubL);}
}
toItem=null;
toMenu=null;
toLayer= -1;
toSubL=-1;
}
else
{toImplodeAll();}
}
expanded=menu.childs[layer].expanded;
if (menu.childs[layer].numChild > 0)
{
if (subLayer < 0)
{
if (expanded)
{
}
else
{
explodeSub(menu, layer, subLayer);
}
}
else
{
if (menu.childs[layer].childs[subLayer].numChild > 0)
{
if (menu.childs[layer].childs[subLayer].expanded)
{
}
else
{
explodeSub(menu, layer, subLayer);
}
}
}
}
}
color    =menu.overColor;
offColor =menu.outColor;
weight   =menu.overFtWei;
ftCol    =menu.overFtCol;
bdTWid   =menu.overBdTWid;
bdRWid   =menu.overBdRWid;
bdBWid   =menu.overBdBWid;
bdLWid   =menu.overBdLWid;
bdTSty   =menu.overBdTSty;
bdRSty   =menu.overBdRSty;
bdBSty   =menu.overBdBSty;
bdLSty   =menu.overBdLSty;
bdTCol   =menu.overBdTCol;
bdRCol   =menu.overBdRCol;
bdBCol   =menu.overBdBCol;
bdLCol   =menu.overBdLCol;
if (ssuLayer >= 0)
{
child=menu.childs[layer].childs[subLayer].childs[ssuLayer];
}
else
{
if (subLayer >= 0)
{
child=menu.childs[layer].childs[subLayer];
}
else
{
child=menu.childs[layer];
}
}
if (child.overColor != "")
{
color   =child.overColor;
offColor=child.outColor;
}
if (child.overFtWei != "")
{ weight=child.overFtWei; }
if (child.overFtCol != "")
{ ftCol=child.overFtCol; }
if (child.overBdTWid != "")
{ bdTWid=child.overBdTWid; }
if (child.overBdRWid != "")
{ bdRWid=child.overBdRWid; }
if (child.overBdBWid != "")
{ bdBWid=child.overBdBWid; }
if (child.overBdLWid != "")
{ bdLWid=child.overBdLWid; }
if (child.overBdTSty != "")
{ bdTSty=child.overBdTSty; }
if (child.overBdRSty != "")
{ bdRSty=child.overBdRSty; }
if (child.overBdBSty != "")
{ bdBSty=child.overBdBSty; }
if (child.overBdLSty != "")
{ bdLSty=child.overBdLSty; }
if (child.overBdTCol != "")
{ bdTCol=child.overBdTCol; }
if (child.overBdRCol != "")
{ bdRCol=child.overBdRCol; }
if (child.overBdBCol != "")
{ bdBCol=child.overBdBCol; }
if (child.overBdLCol != "")
{ bdLCol=child.overBdLCol; }
if (color != offColor)
{
if (color == "none")
{ color=null; }
div.setBgColor(color);
}
if (child.bgImageOut != child.bgImageOver)
{
div.setBgImage(child.bgImageOver);
}
div.setFtWeight(weight);
div.setFtColor(ftCol);
div.setBdWid(bdTWid, bdRWid, bdBWid, bdLWid);
div.setBdSty(bdTSty, bdRSty, bdBSty, bdLSty);
div.setBdCol(bdTCol, bdRCol, bdBCol, bdLCol);
}
eventsOff=false;
return true;
}
function qeOutEff()
{
menu=null;
itsMe=eval(this);
var div=eval(itsMe.id.substr(0, itsMe.id.length-1));
var divName =div.eb;
   if ( divName.substr(0, lks.id.length) == lks.id )// i2
      { menu = lks; }// i2
if (menu != null)
{
var layer   =getLayerNum(divName);
var subLayer=getSubLayerNum(divName);
var ssuLayer=getSsuLayerNum(divName);
if ((menu.openByMO))
{
toItem=window.setTimeout('toImplodeAll()', 200);
toMenu=menu;
toLayer= layer;
toSubL=subLayer;
}
color =menu.outColor;
weight=menu.outFtWei;
ftCol =menu.outFtCol;
bdTWid   =menu.outBdTWid;
bdRWid   =menu.outBdRWid;
bdBWid   =menu.outBdBWid;
bdLWid   =menu.outBdLWid;
bdTSty   =menu.outBdTSty;
bdRSty   =menu.outBdRSty;
bdBSty   =menu.outBdBSty;
bdLSty   =menu.outBdLSty;
bdTCol   =menu.outBdTCol;
bdRCol   =menu.outBdRCol;
bdBCol   =menu.outBdBCol;
bdLCol   =menu.outBdLCol;
if (ssuLayer >= 0)
{
child=menu.childs[layer].childs[subLayer].childs[ssuLayer];
}
else
{
if (subLayer >= 0)
{
child=menu.childs[layer].childs[subLayer];
}
else
{
child=menu.childs[layer];
}
}
if (child.outColor != "")
{ color=child.outColor; }
if (child.outFtWei != "")
{ weight=child.outFtWei; }
if (child.outFtCol != "")
{ ftCol=child.outFtCol; }
if (child.outBdTWid != "")
{ bdTWid=child.outBdTWid; }
if (child.outBdRWid != "")
{ bdRWid=child.outBdRWid; }
if (child.outBdBWid != "")
{ bdBWid=child.outBdBWid; }
if (child.outBdLWid != "")
{ bdLWid=child.outBdLWid; }
if (child.outBdTSty != "")
{ bdTSty=child.outBdTSty; }
if (child.outBdRSty != "")
{ bdRSty=child.outBdRSty; }
if (child.outBdBSty != "")
{ bdBSty=child.outBdBSty; }
if (child.outBdLSty != "")
{ bdLSty=child.outBdLSty; }
if (child.outBdTCol != "")
{ bdTCol=child.outBdTCol; }
if (child.outBdRCol != "")
{ bdRCol=child.outBdRCol; }
if (child.outBdBCol != "")
{ bdBCol=child.outBdBCol; }
if (child.outBdLCol != "")
{ bdLCol=child.outBdLCol; }
if (color == "none")
{ color=null; }
if (child.bgImageOut != child.bgImageOver)
{ div.setBgImage(child.bgImageOut); }
div.setBgColor(color);
div.setFtWeight(weight);
div.setFtColor(ftCol);
div.setBdWid(bdTWid, bdRWid, bdBWid, bdLWid);
div.setBdSty(bdTSty, bdRSty, bdBSty, bdLSty);
div.setBdCol(bdTCol, bdRCol, bdBCol, bdLCol);
}
return true;
}
function qeClickEff()
{
itsMe=eval(this);
menu       =null;
var link   ="";
var target ="";
var div    =eval(itsMe.id.substr(0, itsMe.id.length-1));
   if ( div.eb.substr(0, lks.id.length) == lks.id )// i2
      { menu = lks; }// i2
if (menu != null)
{
var divName =div.eb;
var layer   =getLayerNum(divName);
var subLayer=getSubLayerNum(divName);
var ssuLayer=getSsuLayerNum(divName);
if (ssuLayer >= 0)
{
link  =menu.childs[layer].childs[subLayer].childs[ssuLayer].link;
target=menu.childs[layer].childs[subLayer].childs[ssuLayer].target;
}
else
{
if (subLayer >= 0)
{
link  =menu.childs[layer].childs[subLayer].link;
target=menu.childs[layer].childs[subLayer].target;
}
else
{
link  =menu.childs[layer].link;
target=menu.childs[layer].target;
}
}
expanded=menu.childs[layer].expanded;
if (menu.childs[layer].numChild > 0)
{
if (subLayer < 0)
{
if (expanded)
{
for (k=0; k<menu.childs[layer].numChild; k++)
{
if (menu.childs[layer].childs[k].expanded)
{ implodeSub(menu,layer,k); }
}
implodeSub(menu, layer, subLayer);
}
else
{
explodeSub(menu, layer, subLayer);
}
}
else
{
if (menu.childs[layer].childs[subLayer].numChild > 0)
{
if (ssuLayer == -1)
{
if (menu.childs[layer].childs[subLayer].expanded)
{
implodeSub(menu, layer, subLayer);
}
else
{
explodeSub(menu, layer, subLayer);
}
}
}
}
}
else
{
if (!menu.openByMO)
{
if (subLayer < 0)
{
implodeAll(menu);
}
else
{
}
}
}
if (link)
{
if ((target == "") || (target == "_self"))
{ if (link.indexOf("javascript:") == -1)
{ document.location.href=link; }
else
{ eval(link.substr(11)); }
}
else
{ window.open(link, target); }
}
}
}
function writeCSS(whatMenu)
{
var x=whatMenu.xOff+layerHOffset;
var y=whatMenu.yOff;
var h=whatMenu.he1;
document.write("<style type=\"text/css\"><!--");
y2=y;
for (i=0; i<whatMenu.childs.length; i++)
{
lbc="background-color:"+whatMenu.borderColor+";layer-background-color:"+whatMenu.borderColor;
bgi="";
if (whatMenu.childs[i].bgImageOut)
{
bgi="background-image:url("+whatMenu.childs[i].bgImageOut+");background-repeat:"+whatMenu.childs[i].bgRepeatOut+";";
}
if (whatMenu.border)
{
document.write("#"+whatMenu.id+i+"u{ position:absolute;left:"+x+"px;top:"+y2+"px;width:"+(whatMenu.be1+badd)+"px;height:"+(whatMenu.he1+hadd)+"px;"+whatMenu.fs1+"padding-top:"+whatMenu.ptop+";cursor:pointer;cursor:hand;z-index:1000;border:solid 1px "+whatMenu.borderColor+";"+bgi+"}");
document.write("#BD"+whatMenu.id+i+"u{ position:absolute;left:"+x+"px;top:"+y2+"px;width:"+whatMenu.be1+"px;height:"+whatMenu.he1+"px;"+whatMenu.fs1+lbc+";z-index:999;clip:rect(1px "+(whatMenu.be1-2)+"px "+(whatMenu.he1-2)+"px 1px);}");
}
else
{
document.write("#"+whatMenu.id+i+"u{ position:absolute;left:"+x+"px;top:"+y2+"px;width:"+whatMenu.be1+"px;height:"+whatMenu.he1+"px;"+whatMenu.fs1+"padding-top:"+whatMenu.ptop+";cursor:pointer;cursor:hand;clip:rect(0px "+whatMenu.be1+"px "+whatMenu.he1+"px 0px);"+bgi+"}");
}
if (whatMenu.abVert)
{
y2 += whatMenu.he1;
}
else
{
x  += whatMenu.be1;
}
childs0=whatMenu.childs[i].numChild;
if (childs0 > 0)
{
y3=y2;
for (j=0; j < childs0; j++)
{
x2=-200;
bgi="";
if (whatMenu.childs[i].childs[j].bgImageOut)
{
bgi="background-image:url("+whatMenu.childs[i].childs[j].bgImageOut+");background-repeat:"+whatMenu.childs[i].childs[j].bgRepeatOut+";";
}
if (whatMenu.childs[i].childs[j].border)
{
document.write("#"+whatMenu.id+i+"sub"+j+"u{ position:absolute;left:"+x2+"px;top:"+y3+"px;width:"+(whatMenu.be2+badd)+"px;height:"+(whatMenu.he2+hadd)+"px;"+whatMenu.fs2+"padding-top:"+whatMenu.ptop+";cursor:pointer;cursor:hand;z-index:1000; border:solid 1px "+whatMenu.childs[i].childs[j].borderColor+";"+bgi+";}");
document.write("#BD"+whatMenu.id+i+"sub"+j+"u{ position:absolute;left:"+x2+"px;top:"+y3+"px;width:"+whatMenu.be2+"px;height:"+(whatMenu.he2+hadd+2)+"px;"+whatMenu.fs2+"background-color:"+whatMenu.childs[i].childs[j].borderColor+";layer-background-color:"+whatMenu.childs[i].childs[j].borderColor+";padding-top:"+whatMenu.ptop+";cursor:pointer;cursor:hand;z-index:999;clip:rect(1px "+(whatMenu.be2-2)+"px "+(whatMenu.he2+hadd-2)+"px 1px); }");
}
else
{ document.write("#"+whatMenu.id+i+"sub"+j+"u{ position:absolute;left:"+x2+"px;top:"+y3+"px;width:"+whatMenu.be2+"px;height:"+whatMenu.he2+"px;"+whatMenu.fs2+"padding-top:"+whatMenu.ptop+";cursor:pointer;cursor:hand;clip:rect(0px "+(whatMenu.be2)+"px "+(whatMenu.he2)+"px 0px);"+bgi+"}"); }
y3 +=whatMenu.he2;
childs1=whatMenu.childs[i].childs[j].numChild;
if (childs1 != null)
{
y4=y3;
for (k=0; k<childs1; k++)
{
x3=-200;
bgi="";
if (whatMenu.childs[i].childs[j].childs[k].bgImageOut)
{
bgi="background-image:url("+whatMenu.childs[i].childs[j].childs[k].bgImageOut+");background-repeat:"+whatMenu.childs[i].childs[j].childs[k].bgRepeatOut+";";
}
if (whatMenu.childs[i].childs[j].childs[k].border)
{
document.write("#"+whatMenu.id+i+"ssu"+j+"c"+k+"u{ position:absolute;left:"+x3+"px;top:"+y4+"px;width:"+(whatMenu.be3+badd)+"px;height:"+(whatMenu.he3+hadd)+"px;"+whatMenu.fs3+"padding-top:"+whatMenu.ptop+";cursor:pointer;cursor:hand;z-index:1000;border:solid 1px "+whatMenu.childs[i].childs[j].childs[k].borderColor+";"+bgi+"}");
document.write("#BD"+whatMenu.id+i+"ssu"+j+"c"+k+"u{ position:absolute;left:"+x3+"px;top:"+y4+"px;width:"+whatMenu.be3+"px;height:"+whatMenu.he3+"px;"+whatMenu.fs3+"background-color:"+whatMenu.childs[i].childs[j].childs[k].borderColor+";layer-background-color:"+whatMenu.childs[i].childs[j].childs[k].borderColor+";padding-top:"+whatMenu.ptop+";cursor:pointer;cursor:hand;z-index:999;clip:rect(0px "+(whatMenu.be3)+"px "+(whatMenu.he3)+"px 0px); }");
}
else
{
document.write("#"+whatMenu.id+i+"ssu"+j+"c"+k+"u{ position:absolute;left:"+x3+"px;top:"+y4+"px;width:"+whatMenu.be3+"px;height:"+whatMenu.he3+"px;"+whatMenu.fs3+"padding-top:"+whatMenu.ptop+";cursor:pointer;cursor:hand;clip:rect(0px "+whatMenu.be3+"px "+whatMenu.he3+"px 0px);"+bgi+"}");
}
y4 +=whatMenu.he3;
}
}
}
}
}
document.write("//-->");
document.write("</style>");
}
function writeDIV(whatMenu)
{
for (i=0; i<whatMenu.childs.length; i++)
{
if (whatMenu.border)
{
document.write("<div id=\"BD"+whatMenu.id+i+"u\">");
document.write("</div>");
}
document.write("<div id=\""+whatMenu.id+i+"u\" valign=\"center\"");
if (whatMenu.childs[i].align>0)
{
if (whatMenu.childs[i].align==1)
{ document.write(" style=\"text-align:center;\""); }
else
{ document.write(" style=\"text-align:right;\""); }
}
document.write(">");
document.write(whatMenu.childs[i].icon+whatMenu.childs[i].caption);
document.write("</div>");
childs=whatMenu.childs[i].numChild;
if (childs > 0)
{
for (j=0; j < childs; j++)
{
if (whatMenu.childs[i].border)
{
document.write("<div id=\"BD"+whatMenu.id+i+"sub"+j+"u\">");
document.write("</div>");
}
document.write("<div id=\""+whatMenu.id+i+"sub"+j+"u\" valign=\"center\"");
if (whatMenu.childs[i].childs[j].align>0)
{
if (whatMenu.childs[i].childs[j].align==1)
{ document.write(" style=\"text-align:center;\""); }
else
{ document.write(" style=\"text-align:right;\""); }
}
document.write(">");
document.write(whatMenu.childs[i].childs[j].icon+whatMenu.childs[i].childs[j].caption);
document.write("</div>");
childs1=whatMenu.childs[i].childs[j].numChild;
if (childs1 != null)
{
for (k=0; k < childs1; k++)
{
if (whatMenu.childs[i].childs[j].border)
{
document.write("<div id=\"BD"+whatMenu.id+i+"ssu"+j+"c"+k+"u\">");
document.write("</div>");
}
document.write("<div id=\""+whatMenu.id+i+"ssu"+j+"c"+k+"u\" valign=\"center\"");
if (whatMenu.childs[i].childs[j].childs[k].align>0)
{
if (whatMenu.childs[i].childs[j].childs[k].align==1)
{ document.write(" style=\"text-align:center;\""); }
else
{ document.write(" style=\"text-align:right;\""); }
}
document.write(">");
document.write(whatMenu.childs[i].childs[j].childs[k].icon+whatMenu.childs[i].childs[j].childs[k].caption);
document.write("</div>");
}
}
}
}
}
}
function genLayers(whatMenu)
{
for (i=0; i<whatMenu.childs.length; i++)
{
if (whatMenu.border)
{
eval("BD"+whatMenu.id+i+"=new qeLayer('BD"+whatMenu.id+i+"')");
eval("BD"+whatMenu.id+i +".setZIndex(999)");
}
eval(whatMenu.id+i+"=new qeLayer('"+whatMenu.id+i+"')");
eval(whatMenu.id+i +".setBdWid('"+whatMenu.childs[i].outBdTWid+"','"+whatMenu.childs[i].outBdRWid+"','"+whatMenu.childs[i].outBdBWid+"','"+whatMenu.childs[i].outBdLWid+"')");
eval(whatMenu.id+i +".setBdSty('"+whatMenu.childs[i].outBdTSty+"','"+whatMenu.childs[i].outBdRSty+"','"+whatMenu.childs[i].outBdBSty+"','"+whatMenu.childs[i].outBdLSty+"')");
eval(whatMenu.id+i +".setBdCol('"+whatMenu.childs[i].outBdTCol+"','"+whatMenu.childs[i].outBdRCol+"','"+whatMenu.childs[i].outBdBCol+"','"+whatMenu.childs[i].outBdLCol+"')");
if (whatMenu.childs[i].outColor == "")
{
eval(whatMenu.id+i +".setBgColor('"+whatMenu.outColor+"')");
}
else
{
if (whatMenu.childs[i].outColor != "none")
{ eval(whatMenu.id+i +".setBgColor('"+whatMenu.childs[i].outColor+"')"); }
}
eval(whatMenu.id+i +".resizeTo('"+whatMenu.be1+","+whatMenu.he1+"')");
eval(whatMenu.id+i +".setZIndex(1000)");
childs=whatMenu.childs[i].numChild;
if (childs > 0)
{
for (j=0; j < childs; j++)
{
if (whatMenu.childs[i].border)
{
eval("BD"+whatMenu.id+i+"sub"+j+"=new qeLayer('BD"+whatMenu.id+i+"sub"+j+"')");
eval("BD"+whatMenu.id+i+"sub"+j+".setZIndex('999')");
}
eval(whatMenu.id+i+"sub"+j+"=new qeLayer('"+whatMenu.id+i+"sub"+j+"')");
eval(whatMenu.id+i+"sub"+j+".setZIndex('1000')");
eval(whatMenu.id+i+"sub"+j +".setBdWid('"+whatMenu.childs[i].childs[j].outBdTWid+"','"+whatMenu.childs[i].childs[j].outBdRWid+"','"+whatMenu.childs[i].childs[j].outBdBWid+"','"+whatMenu.childs[i].childs[j].outBdLWid+"')");
eval(whatMenu.id+i+"sub"+j +".setBdSty('"+whatMenu.childs[i].childs[j].outBdTSty+"','"+whatMenu.childs[i].childs[j].outBdRSty+"','"+whatMenu.childs[i].childs[j].outBdBSty+"','"+whatMenu.childs[i].childs[j].outBdLSty+"')");
eval(whatMenu.id+i+"sub"+j +".setBdCol('"+whatMenu.childs[i].childs[j].outBdTCol+"','"+whatMenu.childs[i].childs[j].outBdRCol+"','"+whatMenu.childs[i].childs[j].outBdBCol+"','"+whatMenu.childs[i].childs[j].outBdLCol+"')");
if (whatMenu.childs[i].childs[j].outColor == "")
{ eval(whatMenu.id+i+"sub"+j+".setBgColor('"+whatMenu.outColor+"')"); }
else
{
if (whatMenu.childs[i].childs[j].outColor != "none")
{
eval(whatMenu.id+i+"sub"+j+".setBgColor('"+whatMenu.childs[i].childs[j].outColor+"')");
}
}
eval(whatMenu.id+i+"sub"+j+".resizeTo('"+whatMenu.be2+","+whatMenu.he2+"')");
eval(whatMenu.id+i+"sub"+j+".setVisibility(false)");
childs1=whatMenu.childs[i].childs[j].numChild;
if (childs1 != null)
{
for (k=0; k<childs1; k++)
{
if (whatMenu.childs[i].childs[j].border)
{
eval("BD"+whatMenu.id+i+"ssu"+j+"c"+ k+"=new qeLayer('BD"+whatMenu.id+i+"ssu"+j+"c"+ k+"')");
eval("BD"+whatMenu.id+i+"ssu"+j+"c"+ k+".setZIndex(999)");
}
eval(whatMenu.id+i+"ssu"+j+"c"+ k+"=new qeLayer('"+whatMenu.id+i+"ssu"+j+"c"+ k+"')");
eval(whatMenu.id+i+"ssu"+j+"c"+ k+".setZIndex(1000)");
eval(whatMenu.id+i+"ssu"+j+"c"+ k+".setBdWid('"+whatMenu.childs[i].childs[j].childs[k].outBdTWid+"','"+whatMenu.childs[i].childs[j].childs[k].outBdRWid+"','"+whatMenu.childs[i].childs[j].childs[k].outBdBWid+"','"+whatMenu.childs[i].childs[j].childs[k].outBdLWid+"')");
eval(whatMenu.id+i+"ssu"+j+"c"+ k+".setBdSty('"+whatMenu.childs[i].childs[j].childs[k].outBdTSty+"','"+whatMenu.childs[i].childs[j].childs[k].outBdRSty+"','"+whatMenu.childs[i].childs[j].childs[k].outBdBSty+"','"+whatMenu.childs[i].childs[j].childs[k].outBdLSty+"')");
eval(whatMenu.id+i+"ssu"+j+"c"+ k+".setBdCol('"+whatMenu.childs[i].childs[j].childs[k].outBdTCol+"','"+whatMenu.childs[i].childs[j].childs[k].outBdRCol+"','"+whatMenu.childs[i].childs[j].childs[k].outBdBCol+"','"+whatMenu.childs[i].childs[j].childs[k].outBdLCol+"')");
if (whatMenu.childs[i].childs[j].childs[k].outColor == "")
{ eval(whatMenu.id+i+"ssu"+j+"c"+ k+".setBgColor('"+whatMenu.outColor+"')"); }
else
{
if (whatMenu.childs[i].childs[j].childs[k].outColor != "none")
{
eval(whatMenu.id+i+"ssu"+j+"c"+ k+".setBgColor('"+whatMenu.childs[i].childs[j].childs[k].outColor+"')");
}
}
eval(whatMenu.id+i+"ssu"+j+"c"+ k+".resizeTo('"+whatMenu.be3+","+whatMenu.he3+"')");
eval(whatMenu.id+i+"ssu"+j+"c"+ k+".setVisibility(false)");
}
}
}
}
}
}
