

   1. function resetWidth(x) {
   2.     var flash = document.getElementById(x);
   3.     //document.write("hey!");
   4.  
   5.     // get browser width
   6.     var win_width = window.innerWidth;
   7.  
   8.     if (win_width < 812) {
   9.         flash.setAttribute("width", "812");
  10.         //window.width = 812;
  11.     } else {
  12.         flash.setAttribute("width", "100%");
  13.     }
  14. }

