// (C)2000 Doytchin Spiridonov
// (C)2000 WebYou.com
// All right reserved.

var d_ie4=(document.all)?true:false;
var d_ns4=(document.layers)?true:false;
var d_dom=(document.getElementById && !d_ie4)?true:false;

cl = '';
clu = 0;
si = 0;

function chlv() {
  if (clu==0 && cl != '') {
    if (d_ns4) document.layers[cl].visibility='hide';
    else if (d_dom) document.getElementById(cl).style.visibility='hidden';
    else document.all(cl).style.visibility='hidden';
    window.clearInterval(si);
    cl='';
    si=0;
  }
}

function chru(lnp) {
  cl = lnp;
  clu = 1;
  if (si!=0) window.clearInterval(si);
  si = window.setInterval("chlv();",1000);
}

function c(in1,ln1,n,what) {
  in1.src=imgm[n*2+what].src;
  if (d_ns4) {
//    if (ln1 == 'l1') { document.layers['l1'].visibility='show'; chru(ln1); } else document.layers['l1'].visibility='hide';
    if (ln1 == 'l2') { document.layers['l2'].visibility='show'; chru(ln1); } else document.layers['l2'].visibility='hide';
    if (ln1 == 'l3') { document.layers['l3'].visibility='show'; chru(ln1); } else document.layers['l3'].visibility='hide';
    if (ln1 == 'l4') { document.layers['l4'].visibility='show'; chru(ln1); } else document.layers['l4'].visibility='hide';
    if (ln1 == 'l5') { document.layers['l5'].visibility='show'; chru(ln1); } else document.layers['l5'].visibility='hide';
    if (ln1 == 'l6') { document.layers['l6'].visibility='show'; chru(ln1); } else document.layers['l6'].visibility='hide';
  } else if (d_dom) {
//    if (ln1 == 'l1') { document.getElementById('l1').style.visibility='visible'; chru(ln1); } else document.getElementById('l1').style.visibility='hidden';
    if (ln1 == 'l2') { document.getElementById('l2').style.visibility='visible'; chru(ln1); } else document.getElementById('l2').style.visibility='hidden';
    if (ln1 == 'l3') { document.getElementById('l3').style.visibility='visible'; chru(ln1); } else document.getElementById('l3').style.visibility='hidden';
    if (ln1 == 'l4') { document.getElementById('l4').style.visibility='visible'; chru(ln1); } else document.getElementById('l4').style.visibility='hidden';
    if (ln1 == 'l5') { document.getElementById('l5').style.visibility='visible'; chru(ln1); } else document.getElementById('l5').style.visibility='hidden';
    if (ln1 == 'l6') { document.getElementById('l6').style.visibility='visible'; chru(ln1); } else document.getElementById('l6').style.visibility='hidden';
  } else {
//    if (ln1 == 'l1') { document.all('l1').style.visibility='visible'; chru(ln1); } else document.all('l1').style.visibility='hidden';
    if (ln1 == 'l2') { document.all('l2').style.visibility='visible'; chru(ln1); } else document.all('l2').style.visibility='hidden';
    if (ln1 == 'l3') { document.all('l3').style.visibility='visible'; chru(ln1); } else document.all('l3').style.visibility='hidden';
    if (ln1 == 'l4') { document.all('l4').style.visibility='visible'; chru(ln1); } else document.all('l4').style.visibility='hidden';
    if (ln1 == 'l5') { document.all('l5').style.visibility='visible'; chru(ln1); } else document.all('l5').style.visibility='hidden';
    if (ln1 == 'l6') { document.all('l6').style.visibility='visible'; chru(ln1); } else document.all('l6').style.visibility='hidden';
  }
  if (what==0) clu=0;
}

function c1(what) {
  if (what) clu=1; else clu=0;
}

function c2(ln1) {
  if (d_ns4) {
    document.layers[ln1].visibility='hide';
  } else if (d_dom) {
    document.getElementById(ln1).style.visibility='hidden';
  } else {
    document.all(ln1).style.visibility='hidden';
  }
}

ot1='<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>';
ot2='<TR><TD WIDTH=1 BGCOLOR='+ccc2+'><IMG SRC=/images/0.gif WIDTH=1 HEIGHT=1></TD><TD BGCOLOR='+ccc1+' WIDTH=';
ot3a='><A HREF="';
ot3=ot3a+hns;
ot4='" CLASS="'+ccc3+'" onmouseover="c1(1)" onmouseout="c1(0)"><IMG SRC=/images/0.gif WIDTH=';
ot4a=' HEIGHT=1 BORDER=0><BR>&nbsp;';
ot5='<BR><IMG SRC=/images/blin.gif WIDTH=';
ot6=' HEIGHT=3 BORDER=0></A></TD><TD WIDTH=1 BGCOLOR='+ccc2+'><IMG SRC=/images/0.gif WIDTH=1 HEIGHT=1></TD></TR>';
ot7='</TABLE>';

nbx=151; nby=49;
ls1=ot1+ot2+'60'+ot3+'/main.html'+ot4+'60'+ot4a+'Main Page'+ot5+'60'+ot6+ ot7;
ls2=ot1+ot2+'90'+ot3+'/ramenews.html'+ot4+'90'+ot4a+'Announcements'+ot5+'90'+ot6+ ot2+'90'+ot3+'/technews.html'+ot4+'90'+ot4a+'News Archive'+ot5+'90'+ot6+ ot2+'90'+ot3+'/partners.html'+ot4+'90'+ot4a+'Partners'+ot5+'90'+ot6+ ot7;
ls3=ot1+  ot2+'110'+ot3+'/solution_1.html'+ot4+'110'+ot4a+'Customer Projects'+ot5+'110'+ot6+  ot2+'110'+ot3+'/solution_2.html'+ot4+'110'+ot4a+'Consulting Services'+ot5+'110'+ot6+  ot7;
ls4=ot1+ot2+'120'+ot3a+'/online_store.html'+ot4+'120'+ot4a+'Online Store'+ot5+'120'+ot6+ ot2+'120'+ot3+'/online_store.html'+ot4+'120'+ot4a+'Outlet Store'+ot5+'120'+ot6+ ot2+'120'+ot3+'/quotation.cgi'+ot4+'120'+ot4a+'Request a Quotation'+ot5+'120'+ot6+ ot2+'120'+ot3+'/tech.cgi'+ot4+'120'+ot4a+'Technical Support'+ot5+'120'+ot6+ ot2+'120'+ot3+'/rma.cgi'+ot4+'120'+ot4a+'Request an RMA'+ot5+'120'+ot6+ ot2+'120'+ot3+'/cart.cgi?c=sp&cpa=1'+ot4+'120'+ot4a+'Make a Payment'+ot5+'120'+ot6+ ot2+'120'+ot3+'/broadcast_configurator.cgi'+ot4+'120'+ot4a+'Broadcast Configurator'+ot5+'120'+ot6+ ot7;
ls5=ot1+ot2+'100'+ot3+'/register.cgi?c=ls'+ot4+'100'+ot4a+'Login'+ot5+'100'+ot6+ ot2+'100'+ot3+'/register.cgi?c=logout'+ot4+'100'+ot4a+'Logout'+ot5+'100'+ot6+ ot2+'100'+ot3+'/register.cgi?c=shown'+ot4+'100'+ot4a+'Register'+ot5+'100'+ot6+ ot2+'100'+ot3+'/register.cgi?c=show'+ot4+'100'+ot4a+'Update Account'+ot5+'100'+ot6+ ot2+'100'+ot3+'/forgot.html'+ot4+'100'+ot4a+'Forgot Password'+ot5+'100'+ot6+ ot7;
ls6=ot1+ot2+'100'+ot3+'/corporate.html'+ot4+'100'+ot4a+'E-mail Information'+ot5+'100'+ot6+ ot2+'100'+ot3+'/sales.html'+ot4+'100'+ot4a+'Office Locations'+ot5+'100'+ot6+ ot2+'100'+ot3+'/parrent.html'+ot4+'100'+ot4a+'Parent Company'+ot5+'100'+ot6+ ot7;
if (d_ns4) {
  document.write('<layer id=l1 VISIBILITY=hide>',ls1,'</layer>'); document.layers["l1"].left = nbx; document.layers["l1"].top = nby;
  document.write('<layer id=l2 VISIBILITY=hide>',ls2,'</layer>'); document.layers["l2"].left = nbx+45; document.layers["l2"].top = nby;
  document.write('<layer id=l3 VISIBILITY=hide>',ls3,'</layer>'); document.layers["l3"].left = nbx+110; document.layers["l3"].top = nby;
  document.write('<layer id=l4 VISIBILITY=hide>',ls4,'</layer>'); document.layers["l4"].left = nbx+175; document.layers["l4"].top = nby;
  document.write('<layer id=l5 VISIBILITY=hide>',ls5,'</layer>'); document.layers["l5"].left = nbx+247; document.layers["l5"].top = nby;
  document.write('<layer id=l6 VISIBILITY=hide>',ls6,'</layer>'); document.layers["l6"].left = nbx+277; document.layers["l6"].top = nby;
} else if (d_dom) {
  document.write('<div id=l1 style=\'position:absolute; visibility:hidden\'>',ls1,'</div>'); document.getElementById("l1").style.left = nbx; document.getElementById("l1").style.top = nby;
  document.write('<div id=l2 style=\'position:absolute; visibility:hidden\'>',ls2,'</div>'); document.getElementById("l2").style.left = nbx+45; document.getElementById("l2").style.top = nby;
  document.write('<div id=l3 style=\'position:absolute; visibility:hidden\'>',ls3,'</div>'); document.getElementById("l3").style.left = nbx+110; document.getElementById("l3").style.top = nby;
  document.write('<div id=l4 style=\'position:absolute; visibility:hidden\'>',ls4,'</div>'); document.getElementById("l4").style.left = nbx+175; document.getElementById("l4").style.top = nby;
  document.write('<div id=l5 style=\'position:absolute; visibility:hidden\'>',ls5,'</div>'); document.getElementById("l5").style.left = nbx+247; document.getElementById("l5").style.top = nby;
  document.write('<div id=l6 style=\'position:absolute; visibility:hidden\'>',ls6,'</div>'); document.getElementById("l6").style.left = nbx+277; document.getElementById("l6").style.top = nby;
} else {
  document.write('<div id=l1 style=\'position:absolute; visibility:hidden\'>',ls1,'</div>'); document.all("l1").style.left = nbx; document.all("l1").style.top = nby;
  document.write('<div id=l2 style=\'position:absolute; visibility:hidden\'>',ls2,'</div>'); document.all("l2").style.left = nbx+45; document.all("l2").style.top = nby;
  document.write('<div id=l3 style=\'position:absolute; visibility:hidden\'>',ls3,'</div>'); document.all("l3").style.left = nbx+110; document.all("l3").style.top = nby;
  document.write('<div id=l4 style=\'position:absolute; visibility:hidden\'>',ls4,'</div>'); document.all("l4").style.left = nbx+175; document.all("l4").style.top = nby;
  document.write('<div id=l5 style=\'position:absolute; visibility:hidden\'>',ls5,'</div>'); document.all("l5").style.left = nbx+247; document.all("l5").style.top = nby;
  document.write('<div id=l6 style=\'position:absolute; visibility:hidden\'>',ls6,'</div>'); document.all("l6").style.left = nbx+277; document.all("l6").style.top = nby;
}
