RS_I=null;
$(function(){
  
  $(window).resize(function() {
    clearTimeout(RS_I);
    RS_I = setTimeout(res, 250);

  });
  res();
  
  
})

function res() {
  
    var ww = $(window).width()-70;
    ww = ww > 800 ? ww : 800; ww = ww < 1200 ? ww : 1200;
    
    p =  ww*10/1200;
    p+="px";
    //console.info(p);
    //$("#cube_container").css({ fontSize: p });
    if($("#container").css("fontSize")!=p)
      $("#container").animate( { fontSize: p, easing: 'linear' }, 300 );
  
}

