if (window.screen){
  var w = screen.width;
  tmt_url_640 = "index800.html";
  tmt_url_800 = "index800.html";
  tmt_url_1024 = "index1024.html";
  if(w<740){
    self.location.replace(tmt_url_640);
  }
  if(w>=740 & w<835){
    self.location.replace(tmt_url_800);
  }
  if(w>=835){
    self.location.replace(tmt_url_1024);
  }
}