function setWidths() {
  var w = $(window).width();
  var s = 0;

  if (w > 1250) {
    s = 1250;
  }
  else if (w < 800) {
    s = 800;
  }
  else {
    $('link[title=800x600]')[0].disabled = true;
    s = w;
  }

  if (w < 860) {
    $('link[title=800x600]')[0].disabled = false;
  }

  var emb = $('#embrulhao');
  if (emb != null) {
    emb.width(s - 40);

    $('#colunaCentral').width('auto');
    $('#colunaCentral').width(emb.width() - 340);
    $('#colunaHomeCentral').width('auto');
    $('#colunaHomeCentral').width(emb.width() - 324);
  }
  return(true);
}

$(window).bind('resize', function() { setWidths(); });
