window.onresize="posmenus";
function repback(obj,ind)
{
eval('document.getElementById("'+obj+'").style.backgroundImage="URL(btns/btnback'+ind+'.gif)"');
 suf='2';
clr='#B6546C';
eval('document.getElementById("'+obj+'").style.color="'+clr+'"');

}

function repoback(aobj)
{

if(aobj!=sel) {
   suf='1';
   clr='#707FB2';}
else {
       suf='2';
       clr='#B6546C';}


eval('document.getElementById("a'+aobj+'").style.color="'+clr+'"');
eval('document.getElementById("'+aobj+'").style.backgroundImage="URL(btns/btnback'+suf+'.gif)"');
}

glt=null;
fdt=null;
function getLocs(fnode,twid)
{
 var curr=fnode;
   var mleft=0;
    mtop=0;
   var mwidth=0;
   while(curr.tagName!="BODY"){

      mleft+=curr.offsetLeft;
      mtop+=curr.offsetTop;
      curr=curr.offsetParent; 
      }

marginx=(fnode.offsetWidth-twid)/2.;

mtop-=35;


mleft+=marginx;
leftlim[i]=mleft;

return(mtop);
}

function rolldown(idiv)
{
if(fdt) {clearTimeout(fdt);}
mtr.style.visibility='hidden';
topfin=toplim[idiv]+25;

eval('mtr.style.top="'+toplim[idiv]+'"');
eval('mtr.style.left="'+leftlim[idiv]+'"');

mtr.style.visibility='visible';
glt=setTimeout('glide()',12);
}

function fadeout(idiv)
{
if(glt) {clearTimeout(glt);}


topfin=toplim[idiv]+12;

mtr.style.visibility='visible';
fdt=setTimeout('fade()',2);
}

function glide()
{
mtrtop=parseInt(mtr.style.top.substr(0,mtr.style.top.length-2));
mtrtop+=(topfin-mtrtop)/8.;
eval('mtr.style.top="'+mtrtop+'px"');
if(mtrtop<(topfin-1)) {
glt=setTimeout('glide()',2);}
}
function fade()
{
mtrtop=parseInt(mtr.style.top.substr(0,mtr.style.top.length-2));
mtrtop+=(topfin-mtrtop)/8.;
eval('mtr.style.top="'+mtrtop+'px"');
if(mtrtop>(topfin+1)) {
fdt=setTimeout('fade()',2);}
else {
mtr.style.visibility='hidden';}
}


