function detectResolution(){
  if(screen.width <= 1024) {
    //alert('Screen Resolution: ' + screen.width + 'x' + screen.height + ', adjusting for your computer!');
    document.getElementById('mid').style.width = '1030px';
  }
}
