text: (function() {
  
      var jsoncontent = {
      "item" : [
      
          {"paragraph" : "Shields up. I recommend we transfer power to phasers and arm the photon torpedoes. Something strange on the detector circuit. The weapons must have disrupted our communicators. You saw something as tasty as meat, but inorganically materialized out of patterns used by our transporters. Captain, the most elementary and valuable statement in science, the beginning of wisdom, is 'I do not know.' All transporters off."},
          {"paragraph" : "We're acquainted with the wormhole phenomenon, but this... Is a remarkable piece of bio-electronic engineering by which I see much of the EM spectrum ranging from heat and infrared through radio waves, et cetera, and forgive me if I've said and listened to this a thousand times. This planet's interior heat provides an abundance of geothermal energy. We need to neutralize the homing signal."},
          {"paragraph" : "Unidentified vessel travelling at sub warp speed, bearing 235.7. Fluctuations in energy readings from it, Captain. All transporters off. A strange set-up, but I'd say the graviton generator is depolarized. The dark colourings of the scrapes are the leavings of natural rubber, a type of non-conductive sole used by researchers experimenting with electricity. The molecules must have been partly de-phased by the anyon beam."},
          {"paragraph" : "It indicates a synchronic distortion in the areas emanating triolic waves. The cerebellum, the cerebral cortex, the brain stem,  the entire nervous system has been depleted of electrochemical energy. Any device like that would produce high levels of triolic waves. These walls have undergone some kind of selective molecular polarization. I haven't determined if our phaser energy can generate a stable field. We could alter the photons with phase discriminators."},
          {"paragraph" : "Deflector power at maximum. Energy discharge in six seconds. Warp reactor core primary coolant failure. Fluctuate phaser resonance frequencies. Resistance is futile. Recommend we adjust shield harmonics to the upper EM band when proceeding. These appear to be some kind of power-wave-guide conduits which allow them to work collectively as they perform ship functions. Increase deflector modulation to upper frequency band."},
          {"paragraph" : "Exceeding reaction chamber thermal limit. We have begun power-supply calibration. Force fields have been established on all turbo lifts and crawlways. Computer, run a level-two diagnostic on warp-drive systems. Antimatter containment positive. Warp drive within normal parameters. I read an ion trail characteristic of a freighter escape pod. The bomb had a molecular-decay detonator. Detecting some unusual fluctuations in subspace frequencies."},
          {"paragraph" : "Run a manual sweep of anomalous airborne or electromagnetic readings. Radiation levels in our atmosphere have increased by 3,000 percent. Electromagnetic and subspace wave fronts approaching synchronization. What is the strength of the ship's deflector shields at maximum output? The wormhole's size and short period would make this a local phenomenon. Do you have sufficient data to compile a holographic simulation?"},
          {"paragraph" : "Now what are the possibilities of warp drive? Cmdr Riker's nervous system has been invaded by an unknown microorganism. The organisms fuse to the nerve, intertwining at the molecular level. That's why the transporter's biofilters couldn't extract it. The vertex waves show a K-complex corresponding to an REM state. The engineering section's critical. Destruction is imminent. Their robes contain ultritium, highly explosive, virtually undetectable by your transporter."},
          {"paragraph" : "Sensors indicate human life forms 30 meters below the planet's surface. Stellar flares are increasing in magnitude and frequency. Set course for Rhomboid Dronegar 006, warp seven. There's no evidence of an advanced communication network. Total guidance system failure, with less than 24 hours' reserve power. Shield effectiveness has been reduced 12 percent. We have covered the area in a spherical pattern which a ship without warp drive could cross in the given time."},
          {"paragraph" : "Communication is not possible. The shuttle has no power. Using the gravitational pull of a star to slingshot back in time? We are going to Starbase Montgomery for Engineering consultations prompted by minor read-out anomalies. Probes have recorded unusual levels of geological activity in all five planetary systems. Assemble a team. Look at records of the Drema quadrant. Would these scans detect artificial transmissions as well as natural signals?"},
          {"paragraph" : "Sensors indicate no shuttle or other ships in this sector. According to coordinates, we have travelled 7,000 light years and are located near the system J-25. Tractor beam released, sir. Force field maintaining our hull integrity. Damage report? Sections 27, 28 and 29 on decks four, five and six destroyed. Without our shields, at this range it is probable a photon detonation could destroy the Enterprise."},
          {"paragraph" : "I have reset the sensors to scan for frequencies outside the usual range. By emitting harmonic vibrations to shatter the lattices. We will monitor and adjust the frequency of the resonators. He has this ability of instantly interpreting and extrapolating any verbal communication he hears. It may be due to the envelope over the structure, causing hydrogen-carbon helix patterns throughout. I'm comparing the molecular integrity of that bubble against our phasers."}
  
          
          ],
          
          "extra" : [
          
          {"paragraph" : "These are the voyages of the Starship Enterprise. Its continuing mission, to explore strange new worlds, to seek out new life and new civilizations, to boldly go where no one has gone before. We need to neutralize the homing signal. Each unit has total environmental control, gravity, temperature, atmosphere, light, in a protective field. Sensors show energy readings in your area. We had a forced chamber explosion in the resonator coil. Field strength has increased by 3,000 percent."},
          {"paragraph" : "Resistance is futile."}
          
          ],
  
          "starfleet" : [
          
          {"model" : "USS Leyte Gulf - NCC-71427 - Commanded by Captain Aaron Juraj; First Starfleet Vessel to be infected by Nanites in Star Trek: Away Team."},
          {"model" : "USS Excalibur - NCC-26517 - Part of the tachyon blockade during the Klingon Civil War. Later commanded by Captain Mackenzie Calhoun in Star Trek: New Frontier."},
          {"model" : "USS Yamaguchi - NCC-26510 - Destroyed by the Borg at the Battle of Wolf 359."},
          {"model" : "USS Bradbury - NX-72307 - Scheduled to transport Wesley Crusher to Starfleet Academy and undergoes warp drive performance tests."},
          {"model" : "USS Hathaway - NCC-2593 - Decommissioned, participated in exercises against the USS Enterprise-D. Its destruction was faked in a ruse to foil Ferengi attackers."},
          {"model" : "USS Stargazer - NCC-2893 - Jean-Luc Picard's first command. Abandoned following the Battle of Maxia, later returned to Starfleet."},
          {"model" : "USS Defiant NCC-1764 - Taken to Mirror Universe by Tholians, in \"The Tholian Web\". Captured by crew of ISS Enterprise (NX-01) and used in service of the Terran Empire, in \"In a Mirror, Darkly\"."},
          {"model" : "USS Enterprise - NCC-1701 - Commanded by Robert April (2245–2250), Christopher Pike (2250–2265), James T. Kirk (2265-2270, 2271–2285), and Willard Decker (2270-2271), Vessel's self-destruction carried out while in orbit of the Genesis Planet, to prevent ship from falling into Klingon hands."},
          {"model" : "USS Exeter - NCC-1672 - All crew lost killed by alien disease except Captain Ronald Tracey who was on the planet surface when the disease struck the crew."},
          {"model" : "USS Farragut - NCC-1647 - Ship on which James Kirk served as a phaser station operator. Attacked by the Dikironium Cloud Creature, killing half the crew. ad. "},
          {"model" : "USS Vengeance - Developed by Khan Noonien Singh and Starfleet Admiral Alexander Marcus to combat the Klingon Empire. The starship fights the USS Enterprise and crash lands on Starfleet Headquarters in San Francisco in Star Trek Into Darkness."},
          {"model" : "USS Potemkin - NCC-18253 - William Riker's assignment before his transfer to the USS Enterprise-D. Part of the tachyon blockade during the Klingon Civil War. Participates in the Battle for Deep Space 9 and First Battle of Chin'toka."},
          {"model" : "USS Yamato - NCC-71807 - Crew discovered Iconian artifacts but is infected by a computer virus that causes antimatter containment loss. The virus causes the ship to explode with all hands lost."},
          {"model" : "USS Voyager - NCC-74656 - Primary setting of Star Trek: Voyager. Commanded by Captain Kathryn Janeway."},
          {"model" : "USS Sarajevo - NCC-38529 - Lost in the Gamma Quadrant in 2371. Later recovered and served in the Dominion War."},
          {"model" : "USS Titan - NCC-80102 - The USS Titan is the first command of Captain William Thomas Riker, former first officer of the USS Enterprise-D and USS Enterprise-E."},
          {"model" : "USS Reliant - NCC-1864 - Ship on which Pavel Chekov serves as first officer. Assigned to Project Genesis and later hijacked by Khan Noonien Singh. Destroyed by Genesis Device detonation."},
          {"model" : "ISS Enterprise - NX-01 - The Mirror Universe version of the NX-01; appeared in the fourth season two-parter, \"In a Mirror, Darkly\"."},
          {"model" : "USS Shenandoah - NCC-73024 - Taken by Dax and Worf to rescue a Cardassian informant from the Dominion. Severely damaged by the Jem'Hadar en route to deliver diplomatic message to Grand Nagus Zek."},
          {"model" : "USS Yangtzee Kiang - NCC-72453 - Hijacked by Bajoran terrorist Tahna Los. Became the first DS9 runabout to be destroyed when it crashed on a moon in the Gamma Quadrant."},
          {"model" : "USS Yellowstone - NX-74751 - Prototype for an advanced runabout designed in large part by Ensign Harry Kim and Lieutenant Laska in an alternate timeline. Destroyed by antimatter containment loss."},
          {"model" : "Shuttlecraft Cochrane - USS Voyager Test bed for Warp 10 flight piloted by Tom Paris. Very closely resembles the later hull design for Delta Flyer. Destroyed attempting to retrieve Warp Core."}
              
          ]
  
      }
  
  
      var ipsumType = 'paragraph';
  
      
      
      
  
      document.getElementById('radio1').onclick = function () {
          document.getElementById('paragraph-settings').style.display = 'block';
          ipsumType = 'paragraph';
          document.getElementById('lorem-style').innerText = 'number of paragraphs';
      };
      
      
      document.getElementById('radio2').onclick = function () {
          document.getElementById('paragraph-settings').style.display = 'none';
          ipsumType = 'lists';
          document.getElementById('lorem-style').innerText = 'number of list items';
      };
      
     
  
      //+ Jonas Raoni Soares Silva
      //@ http://jsfromhell.com/array/shuffle [v1.0]
      var shuffle = function(o){ //v1.0
          for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), 
              x = o[--i], o[i] = o[j], o[j] = x);
          return o;
      };
  
  
  
      var generate = function() {
  
          var stlitxt = '';
          var noit = document.getElementById('noit').value;
          var btag = '';
          var etag = '';
          var i = null;
  
          //generating text
          var textFill = function(jsonItem) {
              stlitxt = stlitxt + btag + jsonItem + etag + '\r\n\r\n';
          };
  
          if (ipsumType == 'paragraph') {
          
                  
              shuffle(jsoncontent.item);
  
              
              var borg = '';
              var fborg = function(){
                  if (borg !== '') {
                      stlitxt = stlitxt + btag + borg + etag;
                  }
              };
  
              if (document.getElementById('ht').checked) {
                  btag = '<p>\r\n';
                  etag = '\r\n</p>';
              }
               
              if (document.getElementById('borg').checked) {
                  borg = jsoncontent.extra[1].paragraph;
              }
                  
              if (document.getElementById('bw').checked) {
                  
                  if (noit == 1) { 
                      textFill(jsoncontent.extra[0].paragraph);
                       
                      fborg();
                  }
                  
                  else {
                      textFill(jsoncontent.extra[0].paragraph);
                    
                      for (i=0;i<noit-1;i++) {
                          textFill(jsoncontent.item[i].paragraph);
                      }
  
                      fborg();
                  }
                      
              }
              
              else {
                      
                  for (i=0;i<noit;i++) {
                      textFill(jsoncontent.item[i].paragraph);
                  }
  
                  fborg();
              }
          
          }
  
          else {
       
              shuffle(jsoncontent.starfleet);
  
              if (document.getElementById('ht').checked) {
                  btag = '<li>\r\n';
                  etag = '\r\n</li>';
  
                  stlitxt = '<ul>\r\n\r\n';
  
                  for (i=0;i<noit;i++) {
                      textFill(jsoncontent.starfleet[i].model);
                  }
  
                  stlitxt = stlitxt + '</ul>';
  
              }
  
              else {
                  for (i=0;i<noit;i++) {
                      textFill(jsoncontent.starfleet[i].model);
                  }
   
              }
  
          }
          
          document.getElementById('stli').innerHTML = stlitxt;
  
  
      };
  
  
      document.getElementById('stli').onfocus = function() {
          document.getElementById('stli').select();
      }
  
  
      
      
      
      document.getElementById('gen').onclick = generate;
  
  
      generate();
    
      
  })();
  
  
  