function getSize()
{
 var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  size = Array();
  size['width'] = myWidth;
  size['height'] = myHeight;
  return size;
}

function set1()
{
  size = getSize();
  w = size['width'];
  var indention = Math.ceil(w-310-((w-310)/100*64)-150);
  document.getElementById('cart_').style.marginRight = indention;
}

  var domain_name = '.presentpiter.ru';
  function getCookie(name)
      {
      var cookie = " " + document.cookie;
      var search = " " + name + "=";
      var setStr = null;
      var offset = 0;
      var end = 0;
      if (cookie.length > 0)
        {
        offset = cookie.indexOf(search);
        if (offset != -1)
          {
          offset += search.length;
          end = cookie.indexOf(";", offset)
          if (end == -1)
            {
            end = cookie.length;
            }
          setStr = unescape(cookie.substring(offset, end));
          }
        }
      return(setStr);
      }

      function setCookie (name, value, expires, path, domain, secure)
      {
      document.cookie = name + "=" + escape(value) +
            ((expires) ? "; expires=" + expires : "") +
            ((path) ? "; path=" + path : "") +
            ((domain) ? "; domain=" + domain : "") +
            ((secure) ? "; secure" : "");
        }

function offFilter()
{
  setCookie("filter", '','','/', domain_name);
  document.location.reload();
}