
function loadTableOvers()
{
   $$('.linkRow').addEvent('mouseover', function() {
      $(this.id).setStyle("backgroundColor","#ace");
   });
   $$('.linkRow').addEvent('mouseout', function() {
      $(this.id).setStyle("backgroundColor","#fff");
   });
}

function goThere(a)
{
   window.location.href=a;
}

var doClose = false;

function startTimer(id) {
   if (doClose) {
      if ($('zungz_submenu_'+id)) {
         $('zungz_submenu_'+id).setStyle('display','none');
      } else {
         $(id).setStyle('display','none');
      }
   }
}


function moveOption(va,vb)
{
   $('up').value = va;
   $('down').value = vb;
   new Ajax('/storeAx/moveOption/a/'+va+'/b/'+vb+'/',{onComplete:
      function(msg){
         if (msg == 'ok') {
            window.location.reload();
         }
         return false;
      }
   }).request();
}

function getScrollerWidth() {
    var scr = null;
    var inn = null;
    var wNoScroll = 0;
    var wScroll = 0;

    // Outer scrolling div
    scr = document.createElement('div');
    scr.style.position = 'absolute';
    scr.style.top = '-1000px';
    scr.style.left = '-1000px';
    scr.style.width = '100px';
    scr.style.height = '50px';
    // Start with no scrollbar
    scr.style.overflow = 'hidden';

    // Inner content div
    inn = document.createElement('div');
    inn.style.width = '100%';
    inn.style.height = '200px';

    // Put the inner div in the scrolling div
    scr.appendChild(inn);
    // Append the scrolling div to the doc
    document.body.appendChild(scr);

    // Width of the inner div sans scrollbar
    wNoScroll = inn.offsetWidth;
    // Add the scrollbar
    scr.style.overflow = 'auto';
    // Width of the inner div width scrollbar
    wScroll = inn.offsetWidth;

    // Remove the scrolling div from the doc
    document.body.removeChild(
        document.body.lastChild);

    // Pixel width of the scroller
    return (wNoScroll - wScroll);
}