      // define variable "wmjcss" and message "size"
      var wmjcss;
      var size;
      // test for width of screen less than 810 pixels
      if( screen.width < 810 ) {  
        // define css Variable for low-resolution
        wmjcss = 'wmj8.css';
        size = '800 x 600 or lower!';
      // or test for width of screen greater than 1024 pixels
      } else {
        if( screen.width > 1024 ) {
          // define the style Variable as the high-resolution styles
          wmjcss = 'wmj12.css';
          size = '1280 x 1024';
        //otherwise 
        } else {
          // define the css style variable for mid-resolution
          wmjcss = 'wmj10.css';
	  size = '1024 x 768';
        }
      }
      document.write('<link rel="StyleSheet" href="css/' + wmjcss + '" type="text/css" />');

