function ShowHide(targ, n)
{
      var obj;
      for (i = 1; i <= n; i++)
        {
          if (obj = findObj ('leftmenulist'+i))
              obj.parentNode.className = 'cat_price';
        }

      var cn = targ.parentNode.className
      targ.parentNode.className = (cn == "cat_price") ? "cat_price_act" :"cat_price"
}

function findId(idd)
{
    return document.getElementById(idd);
}

function oc(id)
{
  var obj = findObj (id);
  obj.style.display = (obj.style.display=="none") ? "" : "none";
}

function findObj( id )
{
    var x;
    if( !( x = document[ id ] ) && document.all ) x = document.all[ id ];
    if( !x && document.getElementById ) x = document.getElementById( id );
    return x;
}

function fakeimg (param)
{
  var fakeimg = new Image(); 
  fakeimg.src = '/smart.php?rnd='+Math.random()+'&'+param; 
}

