// JavaScript Document

function show(cell,fon)
{
   document.getElementById('cell'+cell).style.color='#7d1c00';
    if ( fon == 1 )
       { document.getElementById('td'+cell).style.background = 'url(images/ubst-menu_down_hover.png)'; }
       else { document.getElementById('td'+cell).style.background='url(images/ubst-main-page14_15.png)';  };
   document.getElementById('td'+cell).style.cursor='pointer';
   document.getElementById('subcell'+cell).style.color='#a62a00';
}

function not_show(cell,fon)
{
    document.getElementById('cell'+cell).style.color='#54360d';
    if ( fon == 1 )
       { document.getElementById('td'+cell).style.background = 'url(images/ubst-menu_down.png)'; }
       else { document.getElementById('td'+cell).style.background='url(images/ubst-main-page14_08.png)';  };
    document.getElementById('td'+cell).style.cursor='default';
    document.getElementById('td_down'+cell).style.cursor='default';
}



function submenu(id_item, url_2,y)
  {   window.scrollBy(0, y); 
      var xmlHttp = new XMLHttpRequest();
       xmlHttp.open('GET', './submenu.php?id_item='+id_item+'&url_2='+url_2, false);
        xmlHttp.send(null);
       if (  xmlHttp.status == 200  )
          {       
              document.getElementById('MENU').innerHTML= xmlHttp.responseText;   
             
          }

  }
/*trigger = false;
number = 0;

function hod(y)
   {        
              if ( trigger == false && number < 100000) { window.scrollBy(0, y);   trigger = true; number++; } ;
   }

function offset()
  {
      var xmlHttp = new XMLHttpRequest();
       xmlHttp.open('GET', './offset.php?pageoffset='+window.pageYOffset, false);
        xmlHttp.send(null);

  } */

