{
  "information": {
    "Title": "Newtons_Mountain",
    "Author": [
      "Todd Timberlake, this remixed version is by lookang (weelookang@gmail.com)",
      "lookang",
      "fu-kwun hwang"
    ],
    "AuthorLogo": [
      "./01authortoddtimberlake_icon.png",
      "./1authorlookangphoto.png",
      "./01authorfu-kwun.hwang.png"
    ],
    "Password": "",
    "Keywords": "Newton, Gravity, Projectile Motion",
    "Abstract": "remixed by lookang\nhttp://weelookang.blogspot.sg/2011/05/ejs-open-source-newtons-mountain.html\nhttp://weelookang.blogspot.sg/2015/05/ejss-gravity-08.html",
    "Copyright": "Creative Commons Attribution",
    "Level": "",
    "Language": "",
    "Logo": [
      "./gravity08/2017-07-18_.png"
    ],
    "RunAlways": "true",
    "ModelTab": "",
    "ModelTabTitle": "",
    "ModelName": "",
    "FixedNavigationBar": "false",
    "CSSFile": "",
    "DetectedFiles": [
      "./01authorfu-kwun.hwang.png",
      "./01authortoddtimberlake_icon.png",
      "./1authorlookangphoto.png",
      "./gravity08.xhtml",
      "./gravity08/2015-04-13_1532.png",
      "./gravity08/2015-04-13_1540.png",
      "./gravity08/2015-04-13_1543.png",
      "./gravity08/2015-04-13_1543_001.png",
      "./gravity08/2015-04-13_1547.png",
      "./gravity08/2015-04-13_1553.png",
      "./gravity08/2015-04-13_1611.png",
      "./gravity08/2015-04-13_1650.png",
      "./gravity08/2017-07-18_.png"
    ],
    "AuxiliaryFiles": [
      "./NewtonsMountain/",
      "./gravity08/"
    ],
    "HTMLHead": "<script async=\"true\" src=\"https://www.googletagmanager.com/gtag/js?id=UA-3326007-19\"></script>\n<script>\n  window.dataLayer = window.dataLayer || [];\n  function gtag(){dataLayer.push(arguments);}\n  gtag('js', new Date());\n  gtag('config', 'UA-3326007-19');\n</script>\n<script data-ad-client=\"ca-pub-0121577198857509\" async=\"true\" src=\"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\"></script>",
    "SaveInXMLFormat": "false",
    "IncludeSource": "true",
    "IncludeLibrary": "true",
    "UglifyJS": "false",
    "PreviewFullModel": "false",
    "UseInterpreter": "true",
    "UseDeltaForODE": "false"
  },
  "description": {
    "pages": [
      {
        "Name": "7.4_Satellites_in_Circular_Orbits",
        "Active": "true",
        "Internal": "false",
        "Type": "DESCRIPTION_EDITOR",
        "Locale": "_default_",
        "Title": "7.4_Satellites_in_Circular_Orbits",
        "External": "true",
        "Code": "./gravity08.xhtml"
      }
    ]
  },
  "model": {
    "variables": {
      "pages": [
        {
          "Name": "modelVars",
          "Active": "true",
          "Internal": "false",
          "Type": "VARIABLE_EDITOR",
          "PageComment": "",
          "Variables": [
            {
              "Name": "print",
              "Value": "false",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "inputdropmenu",
              "Value": "true",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "cbh",
              "Value": "\"7vh\"",
              "Type": "String",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "fontb",
              "Value": "\"normal bold 2vw \"",
              "Type": "String",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "font",
              "Value": "\"normal normal 2vw \"",
              "Type": "String",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "R",
              "Value": "6.3781E6",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "xmin",
              "Value": "-3*R",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "xmax",
              "Value": "3*R",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "ymin",
              "Value": "-3*R",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "ymax",
              "Value": "3*R",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "pi",
              "Value": "Math.PI",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "x",
              "Value": "0",
              "Type": "double",
              "Dimension": "",
              "Comment": "x-coordinate of projectile (in Earth radii)",
              "Domain": "public"
            },
            {
              "Name": "y",
              "Value": "1.185*R",
              "Type": "double",
              "Dimension": "",
              "Comment": "y-coordinate of projectile (in Earth radii)",
              "Domain": "public"
            },
            {
              "Name": "r",
              "Value": "Math.sqrt(x*x+y*y)",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "anglex",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "anglexs",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "vi",
              "Value": "2000",
              "Type": "double",
              "Dimension": "",
              "Comment": "initial speed of projectile (in km/s)",
              "Domain": "public"
            },
            {
              "Name": "vx",
              "Value": "vi",
              "Type": "double",
              "Dimension": "",
              "Comment": "x-component of projectile's velocity (in km/s)",
              "Domain": "public"
            },
            {
              "Name": "vy",
              "Value": "0",
              "Type": "double",
              "Dimension": "",
              "Comment": "y-component of projectile's velocity (in km/s)",
              "Domain": "public"
            },
            {
              "Name": "v",
              "Value": "0",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "vxdrag",
              "Value": "vx*R/10000",
              "Type": "double",
              "Dimension": "",
              "Comment": "x-component of projectile's velocity (in km/s)",
              "Domain": "public"
            },
            {
              "Name": "vydrag",
              "Value": "vy*R/10000",
              "Type": "double",
              "Dimension": "",
              "Comment": "y-component of projectile's velocity (in km/s)",
              "Domain": "public"
            },
            {
              "Name": "ax",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "ay",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "anglev",
              "Value": "Math.atan2(vy,vx)",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "anglevf",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "anglevs",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "t",
              "Value": "0",
              "Type": "double",
              "Dimension": "",
              "Comment": "time (in odd units)",
              "Domain": "public"
            },
            {
              "Name": "ts",
              "Value": "t",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "dt",
              "Value": "100",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "G",
              "Value": "6.67E-11*1",
              "Type": "double",
              "Dimension": "",
              "Comment": "G*m*M factor from Newton's law of gravitation (1.53e-6 in odd units)",
              "Domain": "public"
            },
            {
              "Name": "M",
              "Value": "6.0E24",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "fx",
              "Value": "0",
              "Type": "double",
              "Dimension": "",
              "Comment": "x-component of force on projectile",
              "Domain": "public"
            },
            {
              "Name": "fy",
              "Value": "-9.81",
              "Type": "double",
              "Dimension": "",
              "Comment": "y-component of force on projectile",
              "Domain": "public"
            },
            {
              "Name": "m",
              "Value": "1",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "theta",
              "Value": "0",
              "Type": "double",
              "Dimension": "",
              "Comment": "launch angle (in degrees)",
              "Domain": "public"
            },
            {
              "Name": "mode",
              "Value": "\"\"",
              "Type": "String",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "xshow",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "backgroundcolor",
              "Value": "rgb(255,255,255)",
              "Type": "String",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "white",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "memorycolor",
              "Value": "0",
              "Type": "int",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            }
          ]
        },
        {
          "Name": "menu",
          "Active": "true",
          "Internal": "false",
          "Type": "VARIABLE_EDITOR",
          "PageComment": "",
          "Variables": [
            {
              "Name": "selected",
              "Value": "\"v=2000\"",
              "Type": "String",
              "Dimension": "[1]",
              "Comment": "",
              "Domain": "public"
            }
          ]
        },
        {
          "Name": "controlVars",
          "Active": "true",
          "Internal": "false",
          "Type": "VARIABLE_EDITOR",
          "PageComment": "",
          "Variables": [
            {
              "Name": "pass",
              "Value": "false",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "let projectile pass through earth",
              "Domain": "public"
            },
            {
              "Name": "point",
              "Value": "false",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "treat Earth as point mass instead of homogeneous sphere",
              "Domain": "public"
            },
            {
              "Name": "center",
              "Value": "true",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "show marker at center of earth",
              "Domain": "public"
            },
            {
              "Name": "velocity",
              "Value": "true",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "show projectile's velocity vector",
              "Domain": "public"
            },
            {
              "Name": "force",
              "Value": "true",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "show force/acceleration vector of projectile",
              "Domain": "public"
            },
            {
              "Name": "trace",
              "Value": "true",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "trace projectile's path",
              "Domain": "public"
            },
            {
              "Name": "diagram",
              "Value": "true",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "show Newton's diagram in background",
              "Domain": "public"
            },
            {
              "Name": "",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            }
          ]
        },
        {
          "Name": "graphs",
          "Active": "true",
          "Internal": "false",
          "Type": "VARIABLE_EDITOR",
          "PageComment": "",
          "Variables": [
            {
              "Name": "showDialog2",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "showDialog2sy",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "am",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "KE",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "PE",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "TE",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "TEs",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "QE",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "xvstime",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "yvstime",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "rvstime",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "KEvstime",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "PEvstime",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "TEvstime",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "QEvstime",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "withs",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "withv",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "witha",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "withE",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            }
          ]
        },
        {
          "Name": "geostationary",
          "Active": "true",
          "Internal": "false",
          "Type": "VARIABLE_EDITOR",
          "PageComment": "",
          "Variables": [
            {
              "Name": "cta",
              "Value": "0",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "omega",
              "Value": "2*pi/(24*60*60)",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "referenceframe",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "text3",
              "Value": "\"\"",
              "Type": "String",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "text",
              "Value": "\"select from dropdown menu and click play\"",
              "Type": "String",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "text2",
              "Value": "\"\"",
              "Type": "String",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "twoD",
              "Value": "true",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "threeD",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "active",
              "Value": "",
              "Type": "String",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "activeshow",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            }
          ]
        },
        {
          "Name": "impluse",
          "Active": "true",
          "Internal": "false",
          "Type": "VARIABLE_EDITOR",
          "PageComment": "",
          "Variables": [
            {
              "Name": "trigger",
              "Value": "",
              "Type": "int",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "circular",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "xf",
              "Value": "x",
              "Type": "double",
              "Dimension": "",
              "Comment": "set initial fire markers",
              "Domain": "public"
            },
            {
              "Name": "yf",
              "Value": "y",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "size",
              "Value": "20",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "c",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "k",
              "Value": "0.1",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "v0",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "next",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            }
          ]
        },
        {
          "Name": "layout",
          "Active": "true",
          "Internal": "false",
          "Type": "VARIABLE_EDITOR",
          "PageComment": "",
          "Variables": [
            {
              "Name": "",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "selectedview",
              "Value": "\"world\"",
              "Type": "String",
              "Dimension": "[1]",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "isAndroid",
              "Value": "checkAndroid()",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "iOS",
              "Value": "/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "http://stackoverflow.com/questions/9038625/detect-if-device-is-ios",
              "Domain": "public"
            },
            {
              "Name": "iPad",
              "Value": "/iPad/.test(navigator.userAgent) && !window.MSStream",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "http://stackoverflow.com/questions/9038625/detect-if-device-is-ios",
              "Domain": "public"
            },
            {
              "Name": "iPhone",
              "Value": "/iPhone|iPod/.test(navigator.userAgent) && !window.MSStream",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "http://stackoverflow.com/questions/9038625/detect-if-device-is-ios",
              "Domain": "public"
            },
            {
              "Name": "Width",
              "Value": "(_isEPub)?\"400\":\"100%\"",
              "Type": "String",
              "Dimension": "",
              "Comment": "display width",
              "Domain": "public"
            },
            {
              "Name": "Height",
              "Value": "(_isEPub)?\"500\":\"100%\"",
              "Type": "String",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "Width1",
              "Value": "",
              "Type": "String",
              "Dimension": "",
              "Comment": "display width",
              "Domain": "public"
            },
            {
              "Name": "Width2",
              "Value": "",
              "Type": "String",
              "Dimension": "",
              "Comment": "display width",
              "Domain": "public"
            },
            {
              "Name": "xvst",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "vvst",
              "Value": "true",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "avst",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "disabledworld",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "graph",
              "Value": "true",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "disabled",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "datashow",
              "Value": "true",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "datashow2",
              "Value": "true",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "drawingsizex",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "drawingsizey",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "xtickstep",
              "Value": "",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "ytickstep",
              "Value": "10000000",
              "Type": "double",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            },
            {
              "Name": "",
              "Value": "",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            }
          ]
        },
        {
          "Name": "dragme",
          "Active": "true",
          "Internal": "false",
          "Type": "VARIABLE_EDITOR",
          "PageComment": "",
          "Variables": [
            {
              "Name": "disabledbutton",
              "Value": "false",
              "Type": "boolean",
              "Dimension": "",
              "Comment": "",
              "Domain": "public"
            }
          ]
        }
      ]
    },
    "initialization": {
      "pages": [
        {
          "Name": "axes",
          "Active": "true",
          "Internal": "false",
          "Type": "CODE_EDITOR",
          "Comment": "",
          "Code": "\n\n_view.plottingPanel.getAxisX().setPosition([0,0.5]);\n_view.plottingPanel.getTitleX().setPosition([0.95,0.5]);\n_view.plottingPanel.getAxisY().setPosition([0.083,0]);\n_view.plottingPanel.getTitleY().setPosition([0.1,0.9]);\n\n"
        },
        {
          "Name": "svg",
          "Active": "true",
          "Internal": "false",
          "Type": "CODE_EDITOR",
          "Comment": "",
          "Code": "var container = document.createElement('div');\nvar svggradient = '<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"><defs>'+\n  '  <radialGradient id=\"mygrandientglint\" cx=\"50%\" cy=\"50%\" r=\"90%\" fx=\"90%\" fy=\"10%\">'+\n  '    <stop offset=\"0%\" style=\"stop-color:rgb(255,255,255); stop-opacity:0.5\" />'+\n  '    <stop offset=\"100%\" style=\"stop-color:rgb(0,0,0);stop-opacity:0.5\" />'+\n  '  </radialGradient>'+\n  '</defs></svg>';\ncontainer.innerHTML = svggradient;\ndocument.body.appendChild(container);\n//\"url(#mygrandientglint)\"\n\nvar container = document.createElement('div');\nvar svggradient = '<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"><defs>'+\n  '  <radialGradient id=\"mygrandient\" cx=\"50%\" cy=\"50%\" r=\"50%\" fx=\"50%\" fy=\"50%\">'+\n  '    <stop offset=\"0%\" style=\"stop-color:rgb(255,255,255); stop-opacity:0\" />'+\n  '    <stop offset=\"100%\" style=\"stop-color:rgb(0,0,0);stop-opacity:0.5\" />'+\n  '  </radialGradient>'+\n  '</defs></svg>';\ncontainer.innerHTML = svggradient;\ndocument.body.appendChild(container);\n\n"
        },
        {
          "Name": "referenceframe",
          "Active": "true",
          "Internal": "false",
          "Type": "CODE_EDITOR",
          "Comment": "",
          "Code": ""
        },
        {
          "Name": "undefined",
          "Active": "true",
          "Internal": "false",
          "Type": "CODE_EDITOR",
          "Comment": "",
          "Code": "\n\nif (KEvstime==undefined){\n  KEvstime=true;\n  } \n  \n  if (PEvstime==undefined){\n  PEvstime=true;\n  } \n  if (TEvstime==undefined){\n  TEvstime=true;\n  } \n  \n  if (Width1==undefined){\n  Width1=\"100%\";\n  }\n  if (Width2==undefined){\n  Width2=\"0%\";\n  }\n  \nif ( drawingsizex==undefined){\n drawingsizex = _view.drawingPanel.getRealWorldXMax()- _view.drawingPanel.getRealWorldXMin();\n }\n if ( drawingsizey==undefined){\n \ndrawingsizey = _view.drawingPanel.getRealWorldYMax()- _view.drawingPanel.getRealWorldYMin();\n } //does not help\n// _view._update();\n"
        },
        {
          "Name": "Init Page",
          "Active": "true",
          "Internal": "false",
          "Type": "CODE_EDITOR",
          "Comment": "",
          "Code": "_update();"
        }
      ]
    },
    "evolution": {
      "information": {
        "FPS": "20",
        "SPD": "1",
        "RealTimeVariable": "",
        "Autoplay": "false"
      },
      "pages": [
        {
          "Name": "newtonsMountainODE",
          "Active": "true",
          "Internal": "false",
          "Type": "ODE_EDITOR",
          "Comment": "",
          "IndependentVariable": "t",
          "Increment": "dt",
          "Equations": [
            {
              "state": "x",
              "rate": "vx"
            },
            {
              "state": "vx",
              "rate": "getAx(x,y)"
            },
            {
              "state": "y",
              "rate": "vy"
            },
            {
              "state": "vy",
              "rate": "getAy(x,y)"
            },
            {
              "state": "cta",
              "rate": "omega"
            }
          ],
          "Method": "RungeKutta",
          "AbsoluteTolerance": "0.001",
          "PreliminaryCode": {
            "Code": "",
            "Comment": ""
          },
          "EventMaximumStep": "",
          "Events": {
            "pages": [
              {
                "Type": "EVENT_EDITOR",
                "Name": "Event",
                "Active": "true",
                "Internal": "false",
                "EventType": "CROSSING_EVENT",
                "Method": "BISECTION",
                "Iterations": "100",
                "Tolerance": "0.00000001",
                "StopAtEvent": "true",
                "ZeroCondition": "return hitEarth(x,y);\n",
                "Action": "_pause();\ntext = \"crashed\";\ndisabledbutton=true;\n",
                "Comment": ""
              }
            ]
          },
          "ZenoEffect": {
            "Code": "",
            "Comment": "",
            "StopAfterEffect": "true"
          },
          "AccelerationIndependentOfVelocity": "false",
          "ForceSynchronization": "false",
          "UseBestInterpolation": "false",
          "EstimateFirstStep": "false",
          "MemoryLength": "",
          "InternalStep": "",
          "MaximumStep": "",
          "MaximumNumberOfSteps": "10000",
          "RelativeTolerance": "",
          "DelayList": "",
          "DelayMaximum": "",
          "DelayAddDiscont": "",
          "DelayInitialCondition": {
            "Code": "",
            "Comment": ""
          },
          "DirectIncidenceMatrix": "",
          "Discontinuities": {
            "pages": []
          },
          "ErrorHandling": {
            "pages": [
              {
                "Type": "ERROR_EDITOR",
                "Name": "Error handling code",
                "Active": "true",
                "Internal": "false",
                "Code": "",
                "Comment": "",
                "ErrorType": "ANY_ERROR"
              }
            ]
          }
        }
      ]
    },
    "fixed_relations": {
      "pages": [
        {
          "Name": "FixRel Page",
          "Active": "true",
          "Internal": "false",
          "Type": "CODE_EDITOR",
          "Comment": "",
          "Code": "//compute force/acceleration components (scaled to be visible)\nfx = R*0.05*getAx(x,y); // which are actually acceleration lookang\nfy = R*0.05*getAy(x,y); // \n\n//max screen\nif (x>xmax) xmax = xmax*1.5;\nif (x<xmin) xmin = xmin*1.5;\nif (y>ymax) ymax = ymax*1.5;\nif (y<ymin) ymin = ymin*1.5;\n\n//energy\nr = Math.sqrt(x*x+y*y);\nam = Math.sqrt(getAx(x,y)*getAx(x,y)+getAy(x,y)*getAy(x,y));\nKE = 0.5*m*(vx*vx+vy*vy);\nPE = -6.67E-11*m*6.0E24/Math.sqrt(x*x+y*y);\nTE = KE +PE;\n\nanglexs=anglex;\n// velocity\n//v = Math.sqrt(vx*vx+vy*vy);\n//anglev = Math.atan2(vy,vx);\n//anglex = Math.atan2(y,v);\n\n"
        },
        {
          "Name": "drawing",
          "Active": "true",
          "Internal": "false",
          "Type": "CODE_EDITOR",
          "Comment": "",
          "Code": "drawingsizex = 2*(_view.drawingPanel.getRealWorldXMax()- _view.drawingPanel.getRealWorldXMin());\ndrawingsizey = 2*(_view.drawingPanel.getRealWorldYMax()- _view.drawingPanel.getRealWorldYMin());"
        },
        {
          "Name": "text2",
          "Active": "true",
          "Internal": "false",
          "Type": "CODE_EDITOR",
          "Comment": "",
          "Code": "text2 = \"x = \" +x.toExponential(3) + \" m ,\"+\" y = \" +y.toExponential(3) + \" m \\n\"+\"vx = \" +vx.toExponential(3) + \" m/s ,\"+\" vy = \" +vy.toExponential(3)+ \" m/s ,\\n\"+\"ax = \" +_view._format(getAx(x,y),\"0.00\") + \" m/s\u00b2 ,\"+\" ay = \" +_view._format(getAy(x,y),\"0.00\") + \" m/s\u00b2 ,\\n\"+\"t = \" +_view._format(t,\"0\") + \" s \";\n//text2 = \" x = \" +_view._format(x,\"0.00\") + \" m ,\"+\" y = \" +_view._format(y,\"0.00\") + \" m \"+\" vx = \" +_view._format(vx,\"0.00\") + \" m/s ,\"+\" vy = \" +_view._format(vy,\"0.00\") + \" m/s \"+\" ax = \" +_view._format(getAx(x,y),\"0.00\") + \" m/s^2 ,\"+\" ay = \" +_view._format(getAy(x,y),\"0.00\") + \" m/s^2 \";"
        }
      ]
    },
    "custom": {
      "pages": [
        {
          "Name": "getAccels",
          "Active": "true",
          "Internal": "false",
          "Type": "LIBRARY_EDITOR",
          "Comment": "",
          "Code": "//computes x-component of projectile's acceleration\nfunction getAx (x,y) {\n  if ((!point) && (x*x+y*y < R)) {\n    return -G*M*x;}\n  else {\n    return -G*M*x/Math.pow(x*x+y*y,1.5);}\n}\n\n//computes y-component of projectile's acceleration\nfunction getAy (x,y) {\n  if ((!point) && (x*x+y*y < R)) {\n    return -G*M*y;}\n  else {\n    return -G*M*y/Math.pow(x*x+y*y,1.5);}\n}\n"
        },
        {
          "Name": "changeOrientation",
          "Active": "true",
          "Internal": "false",
          "Type": "LIBRARY_EDITOR",
          "Comment": "",
          "Code": "// code to be copied to EJSS source code under Custom and used in drawingPanel3D and plottingPanel2D\n// address the problem is height difference is iOS app , epub, and Firefox\n// user need to change only k and kepub\n// copy %changeOrientation()% into the Height Field of drawingPanel3D and plottingPanel2D\nfunction changeOrientation() {\n \nvar k =1 ; // k control height 1 is for full screen, 0.9 shorten etc\nvar kapple =0.95 // control apple app height\nvar kepub =0.95 ;\n// check platform for Apps\ntry { // allow code to run in Student Learning Space \n  var iOSapp =  (typeof parent.device != 'undefined' && parent.device.platform == \"iOS\");\n  var Androidapp = (typeof parent.device != 'undefined' && parent.device.platform == \"Android\");\n} catch(e) {\n  var iOSapp = false;\n  var Androidapp = false;\n}\n// check platform for web browsers\nvar iOS =/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;\nvar iPad =/iPad/.test(navigator.userAgent) && !window.MSStream;\nvar iPhone = /iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;\nvar Android= /Android|android/i.test(navigator.userAgent);\n\n//navigator\nvar Firefox = navigator.userAgent.indexOf(\"Firefox\") != -1;\n \nswitch (window.orientation) { // using window.orientation as deciding factor\n  case 0:\n  case 180:\n    this.screenOrientation = 'portrait';\n    if (iOSapp){ // does not seems to work\n      \n      return window.screen.height*kapple;  //0.1 for app and 0.1 for nonfullscreenapp  \n    \n    }\n    else if (_isEPub){ // does not seems to work\n      //   return Math.max(window.screen.width,window.screen.height)*0.9;\n      return window.innerHeight*kepub;  //0.1 for app and 0.1 for nonfullscreenapp  \n      // return window.screen.height;\n      //  return window.innerHeight;\n      // return document.documentElement.clientHeight;\n    }\n   \n    else {\n     \n      return 100*k+\"vh\";\n    }\n    break;\n  case 90:\n  case -90:\n    this.screenOrientation = 'landscape';\n \n    if (iOSapp){ // App\n      return window.screen.width*kapple;  \n      // return window.screen.height;\n      //  return window.innerHeight;\n      //  return document.documentElement.clientHeight;\n    }\n    else if (_isEPub){ // does not seems to work\n      //   return Math.max(window.screen.width,window.screen.height)*0.9;\n      return window.innerHeight*kepub;  //0.1 for app and 0.1 for nonfullscreenapp  \n      // return window.screen.height;\n      //  return window.innerHeight;\n      // return document.documentElement.clientHeight;\n    }\n   \n    else {\n      return 100*k+\"vh\";\n      }\n    break;\n  default:\n    this.screenOrientation = 'unknown';\n    //       return (iPad)?\"\"+(window.screen.width+window.screen.height)*0.4:((iPhone)?\"\"+window.screen.width:_view._format(window.innerHeight*0.9,\"0\"));\n     if (Firefox){\n      return window.innerHeight*k;// number as of 20180831 Firefox does not support vh yet so need a separate line to handle\n      }\n      \n      else {\n        return 100*k+\"vh\"; // string every other solid deployment, Android Android App web chrome etc works in EJSS6.0beta\n        //  works in EjsS_5.3_180131\n        //window.innerHeight*k;\n}\n\n}\n \n}"
        },
        {
          "Name": "color",
          "Active": "true",
          "Internal": "false",
          "Type": "LIBRARY_EDITOR",
          "Comment": "",
          "Code": "function rgb(r, g, b){\n  return \"rgb(\"+r+\",\"+g+\",\"+b+\")\";\n}"
        },
        {
          "Name": "hitEarth",
          "Active": "true",
          "Internal": "false",
          "Type": "LIBRARY_EDITOR",
          "Comment": "",
          "Code": "//function to determine if projectile has hit earth\n//(used in ODE event handling)\nfunction hitEarth(x,y) {\n  if (!pass) {\n    return x*x+y*y-R*R;}\n  else {\n    return 0;}\n}\n\n\n\n"
        },
        {
          "Name": "circle",
          "Active": "true",
          "Internal": "false",
          "Type": "LIBRARY_EDITOR",
          "Comment": "",
          "Code": "function circle(){\n r=Math.sqrt(x*x+y*y);\n v=Math.sqrt(G*M/r);\n c=Math.atan2(y,x);\n\n vx=-v*Math.sin(-c); // lookang added - to make assignment of velocity correct\n vy=-v*Math.cos(+c);\n anglevs = Math.atan2(vy,vx);\n if ( Math.abs(anglevs-anglev)>pi/2){\n    vx=-vx; // lookang added - to make assignment of velocity correct when direction is anticlockwise\n vy=-vy;\n}\n xf=x;\n yf=y;\n circular=true;\n trigger=0;\n}"
        },
        {
          "Name": "fire",
          "Active": "true",
          "Internal": "false",
          "Type": "LIBRARY_EDITOR",
          "Comment": "",
          "Code": "function fire(){\nc=Math.atan2(vy,vx);\nv=Math.sqrt(vx*vx+vy*vy);\nv0=v; //lookang\nvx=vx+k*v0*Math.cos(c);\nvy=vy+k*v0*Math.sin(c);\nxf=x;\nyf=y;\nanglevf=anglev; // make the fire appear n remember angle\n\ntrigger=0;\nr=Math.sqrt(x*x+y*y); // lookang change to real radius\nif(G*M/r==vx*vx+vy*vy)circular=true;\nelse circular=false;\n}"
        },
        {
          "Name": "Lib Page",
          "Active": "true",
          "Internal": "false",
          "Type": "LIBRARY_EDITOR",
          "Comment": "",
          "Code": "//https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode\n// does not work for iOS \n/*jslint browser:true */\nfunction toggleFullScreen() {\n  if (!document.fullscreenElement &&    // alternative standard method\n      !document.mozFullScreenElement && !document.webkitFullscreenElement && !document.msFullscreenElement ) {  // current working methods\n    if (document.documentElement.requestFullscreen) {\n      document.documentElement.requestFullscreen();\n    } else if (document.documentElement.msRequestFullscreen) {\n      document.documentElement.msRequestFullscreen();\n    } else if (document.documentElement.mozRequestFullScreen) {\n      document.documentElement.mozRequestFullScreen();\n    } else if (document.documentElement.webkitRequestFullscreen) {\n      document.documentElement.webkitRequestFullscreen();\n    }\n  } else {\n    if (document.exitFullscreen) {\n      document.exitFullscreen();\n    } else if (document.msExitFullscreen) {\n      document.msExitFullscreen();\n    } else if (document.mozCancelFullScreen) {\n      document.mozCancelFullScreen();\n    } else if (document.webkitExitFullscreen) {\n      document.webkitExitFullscreen();\n    }\n  }\n}"
        },
        {
          "Name": "android",
          "Active": "true",
          "Internal": "false",
          "Type": "LIBRARY_EDITOR",
          "Comment": "",
          "Code": "//code reference: http://davidwalsh.name/detect-android\nfunction checkAndroid () {\n  var ua = navigator.userAgent.toLowerCase();\n  return ua.indexOf(\"android\") > -1; //&& ua.indexOf(\"mobile\");\n}"
        }
      ]
    },
    "elements": {
      "list": []
    }
  },
  "view": {
    "Tree": [
      {
        "Name": "fullscreen",
        "Type": "Panel",
        "Expanded": "true",
        "Properties": [
          {
            "name": "Width",
            "value": "Width"
          }
        ],
        "Children": [
          {
            "Name": "controlPanel",
            "Type": "Panel",
            "Expanded": "true",
            "Properties": [
              {
                "name": "Width",
                "value": "\"100%\""
              },
              {
                "name": "Display",
                "value": "!print?\"inline-flex\":\"none\""
              }
            ],
            "Children": [
              {
                "Name": "comboBox",
                "Type": "ComboBox",
                "Properties": [
                  {
                    "name": "Options",
                    "value": "[\"v=2000\",\"v=4000\",\"v=6000\",\"v=8000\",\"v=10000\",\"v=12000\",\"circular motion at surface\",\"circular motion, 2*Earth radius\",\"circular motion, 3*Earth radius\",\"circular motion, 4*Earth radius\",\"surface escape velocity, \u03b8=0\",\"surface escape velocity, \u03b8=45\",\"surface escape velocity, \u03b8=90\",\"geostationary, h=35,786 km\",\"non-geostationary, h=35,786 km\",\"non-geostationary, h=60,720 km\",\"user defined\",\"\",\"print\"]"
                  },
                  {
                    "name": "Tooltip",
                    "value": "\"select user_defined and drag the mass\""
                  },
                  {
                    "name": "OnChange",
                    "value": "//var option =  view.comboBox.getProperty(\"SelectedOptions\");\n//alert(option);\nvar opts = _view.comboBox.getProperty(\"SelectedOptions\");  // array of options\n    var option = (opts.length > 0)? opts[0]:\"\"; // selected option \n\nif(option==\"user defined\"){\n//set projectile at top of mountain and compute velocity components\n//_pause(); // prevent trace to draw from any point back to origin causing a ugly straight line\nt = 0;\nx = 0.0*R;\ny = 1.185*R;\n//vx = vi*Math.cos(theta*Math.PI/180.0);\n//vy = vi*Math.sin(theta*Math.PI/180.0);\n\n}\n//print function starts here\nelse if (option == \"print\"){\n  print = true;\n  }\n//print ends now man\nelse if(option==\"v=2000\"){\nt = 0;\n//x = 0;\n//y = 6.384E6;\n// = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = 2000;\n}\nelse if(option==\"v=4000\"){\nt = 0;\n//x = 0;\n//y = 6.384E6;\n// = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = 4000;\n}\nelse if(option==\"v=6000\"){\nt = 0;\n//x = 0;\n//y = 6.384E6;\n// = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = 6000;\n\n\n}\nelse if(option==\"v=8000\"){\nt = 0;\n//x = 0;\n//y = 6.384E6;\n// = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = 8000;\n\n\n}\nelse if(option==\"v=10000\"){\nt = 0;\n//x = 0;\n//y = 6.384E6;\n// = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = 10000;\n\n\n}\nelse if(option==\"v=12000\"){\nt = 0;\n//x = 0;\n//y = 6.384E6;\n// = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = 12000;\n\n\n}\nelse if(option==\"circular motion at surface\"){\nt = 0;\nx = 0;\ny = 6.384E6;\nr = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = Math.sqrt(6.67E-11*6.0E24/r);\n\n\n}else if(option==\"circular motion, 2*Earth radius\"){\nt = 0;\nx = 0;\ny = 2*6.38E6;\nr = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = Math.sqrt(6.67E-11*6.0E24/r);\n}\nelse if(option==\"circular motion, 3*Earth radius\"){\nt = 0;\nx = 0;\ny = 3*6.38E6;\nr = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = Math.sqrt(6.67E-11*6.0E24/r);\n}\nelse if(option==\"circular motion, 4*Earth radius\"){\nt = 0;\nx = 0;\ny = 4*6.38E6;\nr = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = Math.sqrt(6.67E-11*6.0E24/r);\n}\nelse if(option==\"surface escape velocity, \u03b8=0\"){\nt = 0;\nx = 0;\ny = 6.38E6;\nr = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = Math.sqrt(2*6.67E-11*6.0E24/r);\n}\nelse if(option==\"surface escape velocity, \u03b8=45\"){\nt = 0;\nx = 0;\ny = 6.38E6;\nr = Math.sqrt(x*x+y*y);\ntheta = 45;\nvi = Math.sqrt(2*6.67E-11*6.0E24/r);\n}\nelse if(option==\"surface escape velocity, \u03b8=90\"){\nt = 0;\nx = 0;\ny = 6.38E6;\nr = Math.sqrt(x*x+y*y);\ntheta = 90;\nvi = Math.sqrt(2*6.67E-11*6.0E24/r);\n}\n\nelse if(option==\"geostationary, h=35,786 km\"){\nt = 0;\nx = 0;\ny = Math.pow(6.67E-11*6.0E24/(omega*omega),(0.3333333));\nr = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = omega*r;\n}\n\nelse if(option==\"non-geostationary, h=35,786 km\"){\nt = 0;\nx = 0;\ny = Math.pow(6.67E-11*6.0E24/(omega*omega),(0.3333333));\nr = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = -omega*r;\n}\n\nelse if(option==\"non-geostationary, h=60,720 km\"){\nt = 0;\nx = 0;\ny = Math.pow(6.67E-11*6.0E24/(0.5*0.5*omega*omega),(0.3333333));\nr = Math.sqrt(x*x+y*y);\ntheta = 0;\nvi = 0.5*omega*r;\n}\nif (referenceframe==true) {\n  cta = 0;\nt = 0 ;\nomega = 0;\ntext3 = \"South Pole View of Earth \\nwith reference frame Earth\";\n  }\n  else {\n    cta = 0;\nt = 0 ;\nomega = 2*pi/(24*60*60);\ntext3 = \"South Pole View of Earth \\nwith reference frame Space\";\n    }\n\nvx =  vi*Math.cos(theta*Math.PI/180.0);\nvy =  vi*Math.sin(theta*Math.PI/180.0);\nvxdrag = vx*R/10000;\nvydrag = vy*R/10000;\nxf=x;\nyf=y;\n\n_update();\n\n"
                  },
                  {
                    "name": "Height",
                    "value": "cbh"
                  },
                  {
                    "name": "Font",
                    "value": "font"
                  }
                ]
              },
              {
                "Name": "worldgraph",
                "Type": "ComboBox",
                "Properties": [
                  {
                    "name": "Options",
                    "value": "[\"world\",\"graph\",\"both\",\"velocity show\",\"velocity off\",\"acceleration show\",\"acceleration off\",\"reference frame Space\",\"reference frame Earth\",\"circular orbit launch velocity\",\"fire backward thrusters\",\"fire backward thrusters2\",\"fire forward thrusters\",\"fire forward thrusters2\",\"KE vs t\",\"KE vs t off\",\"PE vs t\",\"PE vs t off\",\"TE vs t\",\"TE vs t off\",\"\",\"print\"]"
                  },
                  {
                    "name": "Tooltip",
                    "value": "\"select user_defined and drag the mass\""
                  },
                  {
                    "name": "OnChange",
                    "value": "//var option = _view.worldgraph.getProperty(\"SelectedOptions\");\nvar opts = _view.worldgraph.getProperty(\"SelectedOptions\");  // array of options\n    var option = (opts.length > 0)? opts[0]:\"\"; // selected option \n\nif ( option==\"world\"){\n world=true;\n  graph=false;\nWidth1 = \"100%\";\nWidth2 = \"0%\";\n\n//disabled=false;\n\n  }\n//function for printing starts here\nelse if (option == \"print\"){\n  print = true;\n  }\n//function ends here for printing\n  if ( option==\"both\"){\n  world=true;\n  graph=true;\nWidth1 = \"50%\";\nWidth2 = \"50%\";\n\n//disabled=false;\n\n  }\n  if ( option==\"graph\"){\n world=false;\n  graph=true;\nWidth1 = \"0%\";\nWidth2 = \"100%\";\n\n//disabled=false;\n\n  }\nelse if ( option==\"x vs t\"){\n\ngraph=true;\nxvst=true;\n//disabledworld=false;\n}\nelse if ( option==\"velocity show\"){\n\nvelocity=true;\n//disabledworld=false;\n}\nelse if ( option==\"acceleration show\"){\n\ngraph=true;\nforce=true;\n//disabledworld=false;\n}\nelse if ( option==\"KE vs t\"){\n\ngraph=true;\nKEvstime=true;\n//disabledworld=false;\n}\nelse if ( option==\"PE vs t\"){\n\ngraph=true;\nPEvstime=true;\n//disabledworld=false;\n}\nelse if ( option==\"TE vs t\"){\n\ngraph=true;\nTEvstime=true;\n//disabledworld=false;\n}\nelse if ( option==\"x vs t off\"){\n\nxvst=false;\n//disabledworld=false;\n}\nelse if ( option==\"velocity off\"){\n\n\nvelocity=false;\n//disabledworld=false;\n}\nelse if ( option==\"acceleration off\"){\n\n\nforce=false;\n//disabledworld=false;\n}\nelse if ( option==\"reference frame Earth\"){\n\n\ncta = 0;\nt = 0 ;\nomega = 0;\ntext3 = \"reference frame Earth\";\n//disabledworld=false;\n}\nelse if ( option==\"reference frame Space\"){\n\n\ncta = 0;\nt = 0 ;\nomega = 2*pi/(24*60*60);\ntext3 = \"reference frame Space\";\n//disabledworld=false;\n}\nelse if ( option==\"circular orbit launch velocity\"){\ncircular=true;\ncircle();\n//disabledworld=false;\n}\nelse if ( option==\"fire backward thrusters\"){\nk = -k; \nfire();\nvxdrag = vx*R/10000;\nvydrag = vy*R/10000;\n//vx = vxdrag*10000/R;\n//vy = vydrag*10000/R;\nk= -k;\n}\nelse if ( option==\"fire forward thrusters\"){\nfire();\nvxdrag = vx*R/10000;\nvydrag = vy*R/10000;\n}\nelse if ( option==\"fire backward thrusters2\"){\nk = -k; \nfire();\nvxdrag = vx*R/10000;\nvydrag = vy*R/10000;\n//vx = vxdrag*10000/R;\n//vy = vydrag*10000/R;\nk= -k;\n}\nelse if ( option==\"fire forward thrusters2\"){\nfire();\nvxdrag = vx*R/10000;\nvydrag = vy*R/10000;\n}\n\n\nelse if ( option==\"KE vs t off\"){\n\n\nKEvstime=false;\n//disabledworld=false;\n}\nelse if ( option==\"PE vs t off\"){\n\n\nPEvstime=false;\n//disabledworld=false;\n}\nelse if ( option==\"TE vs t off\"){\n\n\nTEvstime=false;\n//disabledworld=false;\n}\n\nelse if ( option==\"show model\"){\n\nshowmodel=true;\n}\nelse if ( option==\"hide model\"){\n\nshowmodel=false;\n}\n"
                  },
                  {
                    "name": "Height",
                    "value": "cbh"
                  },
                  {
                    "name": "Font",
                    "value": "font"
                  }
                ]
              },
              {
                "Name": "playPauseButton22",
                "Type": "TwoStateButton",
                "Properties": [
                  {
                    "name": "OffClick",
                    "value": "text=\"paused\";\n_pause();"
                  },
                  {
                    "name": "TextOn",
                    "value": "\"Play\u25ba\""
                  },
                  {
                    "name": "State",
                    "value": "_isPaused"
                  },
                  {
                    "name": "Tooltip",
                    "value": "\"Play/Pause\""
                  },
                  {
                    "name": "TextOff",
                    "value": "\"Pause\u275a\u275a\""
                  },
                  {
                    "name": "Height",
                    "value": "cbh"
                  },
                  {
                    "name": "Disabled",
                    "value": "disabledbutton"
                  },
                  {
                    "name": "OnClick",
                    "value": "_play();\ntext=\"playing\";"
                  },
                  {
                    "name": "Font",
                    "value": "fontb"
                  }
                ]
              },
              {
                "Name": "stepButton222",
                "Type": "Button",
                "Properties": [
                  {
                    "name": "Tooltip",
                    "value": "\"Step\""
                  },
                  {
                    "name": "Text",
                    "value": "\"Step\u275a\u25ba\""
                  },
                  {
                    "name": "Height",
                    "value": "cbh"
                  },
                  {
                    "name": "Disabled",
                    "value": "disabledbutton"
                  },
                  {
                    "name": "OnClick",
                    "value": "_step()"
                  },
                  {
                    "name": "Font",
                    "value": "fontb"
                  }
                ]
              },
              {
                "Name": "init",
                "Type": "Button",
                "Properties": [
                  {
                    "name": "Tooltip",
                    "value": "\"Read in values and reset projectile to top of mountain.\""
                  },
                  {
                    "name": "Text",
                    "value": "\"Store\u25bc\""
                  },
                  {
                    "name": "Height",
                    "value": "cbh"
                  },
                  {
                    "name": "OnClick",
                    "value": "_view.trail.newSegment();\n_view.ke.newSegment();\n_view.pe.newSegment();\n_view.te.newSegment();\n//_view.trail.newSegment() ==_view.trail2.newSegment() ;\nmemorycolor=memorycolor+1;\nts=t;\nt=0;\nx = 0;\ny =1.185*R;\nvx=0;\nvy =0;\n\n_initialize();\ndisabledbutton=false;"
                  },
                  {
                    "name": "Font",
                    "value": "fontb"
                  }
                ]
              },
              {
                "Name": "resetButton22",
                "Type": "Button",
                "Properties": [
                  {
                    "name": "Tooltip",
                    "value": "\"Reset\""
                  },
                  {
                    "name": "Text",
                    "value": "\"Reset\u21bb\""
                  },
                  {
                    "name": "Height",
                    "value": "cbh"
                  },
                  {
                    "name": "OnClick",
                    "value": "_reset()"
                  },
                  {
                    "name": "Font",
                    "value": "fontb"
                  }
                ]
              }
            ]
          },
          {
            "Name": "panel",
            "Type": "Panel",
            "Expanded": "true",
            "Properties": [
              {
                "name": "Height",
                "value": "\"90%\""
              },
              {
                "name": "Width",
                "value": "\"100%\""
              }
            ],
            "Children": [
              {
                "Name": "drawingPanel",
                "Type": "DrawingPanel",
                "Expanded": "false",
                "Properties": [
                  {
                    "name": "Enabled",
                    "value": "true"
                  },
                  {
                    "name": "GuttersLineColor",
                    "value": "\"Black\""
                  },
                  {
                    "name": "OnDoubleClick",
                    "value": "toggleFullScreen();"
                  },
                  {
                    "name": "SquareAspect",
                    "value": "true"
                  },
                  {
                    "name": "MaximumY",
                    "value": "ymax"
                  },
                  {
                    "name": "GuttersLineWidth",
                    "value": "3"
                  },
                  {
                    "name": "MaximumX",
                    "value": "xmax"
                  },
                  {
                    "name": "MinimumX",
                    "value": "xmin"
                  },
                  {
                    "name": "MinimumY",
                    "value": "ymin"
                  },
                  {
                    "name": "AutoScaleY",
                    "value": "false"
                  },
                  {
                    "name": "AutoScaleX",
                    "value": "false"
                  },
                  {
                    "name": "MarginY",
                    "value": "10"
                  },
                  {
                    "name": "Visibility",
                    "value": "twoD"
                  },
                  {
                    "name": "Height",
                    "value": "\"90vh\""
                  },
                  {
                    "name": "Width",
                    "value": "Width1"
                  },
                  {
                    "name": "TLMessage",
                    "value": "print?\"\":\"select from dropdown menu and click play\""
                  },
                  {
                    "name": "BRMessage",
                    "value": "!print?text2:\"\""
                  }
                ],
                "Children": [
                  {
                    "Name": "background2",
                    "Type": "Image2D",
                    "Properties": [
                      {
                        "name": "SizeX",
                        "value": "drawingsizex"
                      },
                      {
                        "name": "X",
                        "value": "0"
                      },
                      {
                        "name": "ImageUrl",
                        "value": "\"./stars2.jpg\""
                      },
                      {
                        "name": "Y",
                        "value": "0"
                      },
                      {
                        "name": "SizeY",
                        "value": "drawingsizey"
                      }
                    ]
                  },
                  {
                    "Name": "fire",
                    "Type": "Shape2D",
                    "Properties": [
                      {
                        "name": "FillColor",
                        "value": "\"Yellow\""
                      },
                      {
                        "name": "SizeX",
                        "value": "size/2"
                      },
                      {
                        "name": "ShapeType",
                        "value": "\"WHEEL\""
                      },
                      {
                        "name": "X",
                        "value": "xf"
                      },
                      {
                        "name": "Y",
                        "value": "yf"
                      },
                      {
                        "name": "SizeY",
                        "value": "size/2"
                      },
                      {
                        "name": "PixelSize",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "Name": "mountain",
                    "Type": "Shape2D",
                    "Properties": [
                      {
                        "name": "Transformation",
                        "value": "-cta"
                      },
                      {
                        "name": "FillColor",
                        "value": "\"LIGHTGRAY\""
                      },
                      {
                        "name": "SizeX",
                        "value": "R/20"
                      },
                      {
                        "name": "RelativePosition",
                        "value": "\"SOUTH\""
                      },
                      {
                        "name": "X",
                        "value": "0"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"LIGHTGRAY\""
                      },
                      {
                        "name": "Y",
                        "value": "0"
                      },
                      {
                        "name": "Visibility",
                        "value": "diagram"
                      },
                      {
                        "name": "SizeY",
                        "value": "1.185*R"
                      }
                    ]
                  },
                  {
                    "Name": "image",
                    "Type": "Image2D",
                    "Properties": [
                      {
                        "name": "Transformation",
                        "value": "-cta"
                      },
                      {
                        "name": "SizeX",
                        "value": "2*R"
                      },
                      {
                        "name": "X",
                        "value": "0"
                      },
                      {
                        "name": "Y",
                        "value": "0"
                      },
                      {
                        "name": "ImageUrl",
                        "value": "\"./NewtonsMountain/southpolepo00009_cV2.png\""
                      },
                      {
                        "name": "SizeY",
                        "value": "2*R"
                      }
                    ]
                  },
                  {
                    "Name": "earth",
                    "Type": "Shape2D",
                    "Properties": [
                      {
                        "name": "Transformation",
                        "value": "-cta"
                      },
                      {
                        "name": "FillColor",
                        "value": "\"rgba(0,0,0,0)\""
                      },
                      {
                        "name": "SizeX",
                        "value": "2*R"
                      },
                      {
                        "name": "ShapeType",
                        "value": "\"WHEEL\""
                      },
                      {
                        "name": "X",
                        "value": "0"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"Green\""
                      },
                      {
                        "name": "Y",
                        "value": "0"
                      },
                      {
                        "name": "SizeY",
                        "value": "2*R"
                      },
                      {
                        "name": "LineWidth",
                        "value": "2"
                      }
                    ]
                  },
                  {
                    "Name": "centrepoint",
                    "Type": "Shape2D",
                    "Properties": [
                      {
                        "name": "FillColor",
                        "value": "\"Red\""
                      },
                      {
                        "name": "SizeX",
                        "value": "0.04*R"
                      },
                      {
                        "name": "X",
                        "value": "0"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"Red\""
                      },
                      {
                        "name": "Y",
                        "value": "0"
                      },
                      {
                        "name": "Visibility",
                        "value": "center"
                      },
                      {
                        "name": "SizeY",
                        "value": "0.04*R"
                      }
                    ]
                  },
                  {
                    "Name": "trail",
                    "Type": "Trail2D",
                    "Properties": [
                      {
                        "name": "Active",
                        "value": "t>0"
                      },
                      {
                        "name": "Connected",
                        "value": "t>0"
                      },
                      {
                        "name": "LineColor",
                        "value": "memorycolor"
                      },
                      {
                        "name": "InputX",
                        "value": "x"
                      },
                      {
                        "name": "Visibility",
                        "value": "trace"
                      },
                      {
                        "name": "InputY",
                        "value": "y"
                      },
                      {
                        "name": "LineWidth",
                        "value": "2"
                      }
                    ]
                  },
                  {
                    "Name": "ball2",
                    "Type": "Shape2D",
                    "Properties": [
                      {
                        "name": "FillColor",
                        "value": "\"Cyan\""
                      },
                      {
                        "name": "Transformation",
                        "value": "anglev"
                      },
                      {
                        "name": "SizeX",
                        "value": "20"
                      },
                      {
                        "name": "ShapeType",
                        "value": "\"WHEEL\""
                      },
                      {
                        "name": "X",
                        "value": "x"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"Green\""
                      },
                      {
                        "name": "Y",
                        "value": "y"
                      },
                      {
                        "name": "SizeY",
                        "value": "20"
                      },
                      {
                        "name": "PixelSize",
                        "value": "true"
                      },
                      {
                        "name": "EnabledPosition",
                        "value": "\"ENABLED_Y\""
                      },
                      {
                        "name": "OnDrag",
                        "value": "//y = Math.round(y/1000)*1000;\nif (y <=6384000) y = 6384000;\nif (y >=2*R) y = 2*R;\n\n//selected[0]=\"user_defined\";\n//selected[0]=\"user_defined\";\n_view.comboBox.setSelectedOptions([\"user_defined\"]);\n\nxf=x; // align firing position display\nyf=y;\n  "
                      }
                    ]
                  },
                  {
                    "Name": "agroup",
                    "Type": "Group2D",
                    "Expanded": "false",
                    "Properties": [
                      {
                        "name": "X",
                        "value": "x+1.2*fx"
                      },
                      {
                        "name": "Y",
                        "value": "y+1.2*fy-R/10"
                      },
                      {
                        "name": "Visibility",
                        "value": "force"
                      }
                    ],
                    "Children": [
                      {
                        "Name": "atext",
                        "Type": "Text2D",
                        "Properties": [
                          {
                            "name": "FillColor",
                            "value": "\"Red\""
                          },
                          {
                            "name": "OutlineColor",
                            "value": "\"Red\""
                          },
                          {
                            "name": "RelativePosition",
                            "value": "\"CENTERED\""
                          },
                          {
                            "name": "Text",
                            "value": "!print?\"a = \" + am.toFixed(0) + \" m/s2\":\"a\""
                          },
                          {
                            "name": "EnabledPosition",
                            "value": "\"ENABLED_ANY\""
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "Name": "vgroup",
                    "Type": "Group2D",
                    "Expanded": "false",
                    "Properties": [
                      {
                        "name": "X",
                        "value": "x+vx*R/10000+R/3"
                      },
                      {
                        "name": "Y",
                        "value": "y+vy*R/10000"
                      },
                      {
                        "name": "Visibility",
                        "value": "velocity"
                      }
                    ],
                    "Children": [
                      {
                        "Name": "vtext",
                        "Type": "Text2D",
                        "Properties": [
                          {
                            "name": "FillColor",
                            "value": "\"Magenta\""
                          },
                          {
                            "name": "OutlineColor",
                            "value": "\"Magenta\""
                          },
                          {
                            "name": "RelativePosition",
                            "value": "\"CENTERED\""
                          },
                          {
                            "name": "Text",
                            "value": "!print?\"v = \" + v.toFixed(0) + \" m/s\":\"v\""
                          },
                          {
                            "name": "EnabledPosition",
                            "value": "\"ENABLED_ANY\""
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "Name": "acceleration",
                    "Type": "Arrow2D",
                    "Properties": [
                      {
                        "name": "MarkEnd",
                        "value": "\"TRIANGLE\""
                      },
                      {
                        "name": "FillColor",
                        "value": "\"Red\""
                      },
                      {
                        "name": "SizeX",
                        "value": "fx"
                      },
                      {
                        "name": "X",
                        "value": "x"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"Red\""
                      },
                      {
                        "name": "Y",
                        "value": "y"
                      },
                      {
                        "name": "Visibility",
                        "value": "force"
                      },
                      {
                        "name": "SizeY",
                        "value": "fy"
                      },
                      {
                        "name": "LineWidth",
                        "value": "3"
                      }
                    ]
                  },
                  {
                    "Name": "velocitydrag",
                    "Type": "Arrow2D",
                    "Properties": [
                      {
                        "name": "MarkEnd",
                        "value": "\"TRIANGLE\""
                      },
                      {
                        "name": "FillColor",
                        "value": "\"Magenta\""
                      },
                      {
                        "name": "SizeX",
                        "value": "vxdrag"
                      },
                      {
                        "name": "EnabledSize",
                        "value": "\"ENABLED_ANY\""
                      },
                      {
                        "name": "X",
                        "value": "x"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"Magenta\""
                      },
                      {
                        "name": "Y",
                        "value": "y"
                      },
                      {
                        "name": "Visibility",
                        "value": "velocity&&t===0"
                      },
                      {
                        "name": "SizeY",
                        "value": "vydrag"
                      },
                      {
                        "name": "LineWidth",
                        "value": "3"
                      },
                      {
                        "name": "OnDrag",
                        "value": "vx = vxdrag*10000/R;\nvy = vydrag*10000/R;\n//selected[0]=\"user_defined\";\n//selected[0]=\"user_defined\";\n_view.comboBox.setSelectedOptions([\"user_defined\"]);\n"
                      },
                      {
                        "name": "Offset",
                        "value": "\"SOUTH_WEST\""
                      }
                    ]
                  },
                  {
                    "Name": "velocitydrag2",
                    "Type": "Shape2D",
                    "Properties": [
                      {
                        "name": "FillColor",
                        "value": "\"rgba(0,255,255,0.0)\""
                      },
                      {
                        "name": "SizeX",
                        "value": "20"
                      },
                      {
                        "name": "ShapeType",
                        "value": "\"WHEEL\""
                      },
                      {
                        "name": "LineColor",
                        "value": "\"Magenta\""
                      },
                      {
                        "name": "X",
                        "value": "x+vx*R/10000"
                      },
                      {
                        "name": "Y",
                        "value": "y+vy*R/10000"
                      },
                      {
                        "name": "Visibility",
                        "value": "_isPaused"
                      },
                      {
                        "name": "SizeY",
                        "value": "20"
                      },
                      {
                        "name": "PixelSize",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "Name": "velocity",
                    "Type": "Arrow2D",
                    "Properties": [
                      {
                        "name": "MarkEnd",
                        "value": "\"TRIANGLE\""
                      },
                      {
                        "name": "FillColor",
                        "value": "\"Magenta\""
                      },
                      {
                        "name": "SizeX",
                        "value": "vx*R/10000"
                      },
                      {
                        "name": "X",
                        "value": "x"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"Magenta\""
                      },
                      {
                        "name": "Y",
                        "value": "y"
                      },
                      {
                        "name": "Visibility",
                        "value": "velocity&&t>0"
                      },
                      {
                        "name": "SizeY",
                        "value": "vy*R/10000"
                      },
                      {
                        "name": "LineWidth",
                        "value": "3"
                      },
                      {
                        "name": "Offset",
                        "value": "\"SOUTH_WEST\""
                      }
                    ]
                  },
                  {
                    "Name": "segment",
                    "Type": "Segment2D",
                    "Properties": [
                      {
                        "name": "SizeX",
                        "value": "-x"
                      },
                      {
                        "name": "X",
                        "value": "x"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"Yellow\""
                      },
                      {
                        "name": "Y",
                        "value": "y"
                      },
                      {
                        "name": "SizeY",
                        "value": "-y"
                      }
                    ]
                  },
                  {
                    "Name": "ball",
                    "Type": "Group2D",
                    "Properties": [
                      {
                        "name": "Transformation",
                        "value": "anglev"
                      },
                      {
                        "name": "X",
                        "value": "x"
                      },
                      {
                        "name": "Y",
                        "value": "y"
                      }
                    ]
                  }
                ]
              },
              {
                "Name": "plottingPanel",
                "Type": "PlottingPanel",
                "Expanded": "false",
                "Properties": [
                  {
                    "name": "Gutters",
                    "value": "[0,0,0,0]"
                  },
                  {
                    "name": "YScalePrecision",
                    "value": "0"
                  },
                  {
                    "name": "XFixedTick",
                    "value": "0"
                  },
                  {
                    "name": "AxisYFont",
                    "value": "\"normal normal 1vw \""
                  },
                  {
                    "name": "OnDoubleClick",
                    "value": "toggleFullScreen();"
                  },
                  {
                    "name": "YFixedTick",
                    "value": "0"
                  },
                  {
                    "name": "TRMessage",
                    "value": "print?\"\":\"energies versus time\""
                  },
                  {
                    "name": "XTickStep",
                    "value": "1000"
                  },
                  {
                    "name": "YTickStep",
                    "value": "ytickstep"
                  },
                  {
                    "name": "XAutoTicks",
                    "value": "false"
                  },
                  {
                    "name": "Height",
                    "value": "\"90vh\""
                  },
                  {
                    "name": "Width",
                    "value": "Width2"
                  },
                  {
                    "name": "Enabled",
                    "value": "true"
                  },
                  {
                    "name": "MaximumY",
                    "value": "TE"
                  },
                  {
                    "name": "MaximumX",
                    "value": "Math.sqrt(R^3*4*pi^2/G/M)"
                  },
                  {
                    "name": "YAutoTicks",
                    "value": "false"
                  },
                  {
                    "name": "MinimumX",
                    "value": "0"
                  },
                  {
                    "name": "MinimumY",
                    "value": "0"
                  },
                  {
                    "name": "TitleY",
                    "value": "\"energies\""
                  },
                  {
                    "name": "AxisXFont",
                    "value": "\"normal normal 1vw \""
                  },
                  {
                    "name": "AutoScaleY",
                    "value": "true"
                  },
                  {
                    "name": "TitleX",
                    "value": "\"t\""
                  },
                  {
                    "name": "AutoScaleX",
                    "value": "true"
                  },
                  {
                    "name": "MarginX",
                    "value": "20"
                  },
                  {
                    "name": "MarginY",
                    "value": "10"
                  },
                  {
                    "name": "Visibility",
                    "value": "graph"
                  },
                  {
                    "name": "XScalePrecision",
                    "value": "0"
                  },
                  {
                    "name": "BRMessage",
                    "value": "!print?\"PE = \"+PE.toExponential(3)+\" J ,\\n\"+\"KE = \"+KE.toExponential(3)+\" J ,\\n\"+\"TE = \"+TE.toExponential(3)+\" J ,\\n\"+\"t = \"+_view._format(t,\"0\")+\" s\":\"\""
                  }
                ],
                "Children": [
                  {
                    "Name": "axes2",
                    "Type": "Arrow2D",
                    "Properties": [
                      {
                        "name": "MarkEnd",
                        "value": "\"ANGLE\""
                      },
                      {
                        "name": "SizeX",
                        "value": "0"
                      },
                      {
                        "name": "X",
                        "value": "0"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"Black\""
                      },
                      {
                        "name": "Y",
                        "value": "0"
                      },
                      {
                        "name": "SizeY",
                        "value": "100000000*2"
                      },
                      {
                        "name": "LineWidth",
                        "value": "2"
                      },
                      {
                        "name": "Offset",
                        "value": "\"CENTERED\""
                      }
                    ]
                  },
                  {
                    "Name": "axes",
                    "Type": "Arrow2D",
                    "Properties": [
                      {
                        "name": "MarkEnd",
                        "value": "\"ANGLE\""
                      },
                      {
                        "name": "SizeX",
                        "value": "Math.max(Math.max(t,Math.sqrt(R^3*4*pi^2/G/M)),ts)"
                      },
                      {
                        "name": "X",
                        "value": "0"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"Black\""
                      },
                      {
                        "name": "Y",
                        "value": "0"
                      },
                      {
                        "name": "SizeY",
                        "value": "0"
                      },
                      {
                        "name": "LineWidth",
                        "value": "2"
                      }
                    ]
                  },
                  {
                    "Name": "ke",
                    "Type": "Trail2D",
                    "Properties": [
                      {
                        "name": "Connected",
                        "value": "t>0"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"MAGENTA\""
                      },
                      {
                        "name": "InputX",
                        "value": "t"
                      },
                      {
                        "name": "Visibility",
                        "value": "KEvstime"
                      },
                      {
                        "name": "InputY",
                        "value": "KE"
                      },
                      {
                        "name": "NoRepeat",
                        "value": "true"
                      },
                      {
                        "name": "LineWidth",
                        "value": "2"
                      }
                    ]
                  },
                  {
                    "Name": "ke4",
                    "Type": "Shape2D",
                    "Properties": [
                      {
                        "name": "FillColor",
                        "value": "\"Magenta\""
                      },
                      {
                        "name": "SizeX",
                        "value": "10"
                      },
                      {
                        "name": "ShapeType",
                        "value": "!print?\"ELLIPSE\":\"NONE\""
                      },
                      {
                        "name": "X",
                        "value": "t"
                      },
                      {
                        "name": "Y",
                        "value": "KE"
                      },
                      {
                        "name": "Visibility",
                        "value": "KEvstime"
                      },
                      {
                        "name": "SizeY",
                        "value": "10"
                      },
                      {
                        "name": "PixelSize",
                        "value": "true"
                      },
                      {
                        "name": "EnabledPosition",
                        "value": "_isPaused?\"ENABLED_Y\":\"\""
                      },
                      {
                        "name": "OnDrag",
                        "value": "//if (KE < 0) {\n//  KE = 0;\n//  }\n//else {\nanglev = Math.atan2(vy,vx);\nv = Math.sqrt(2*KE/m);\nvx = v*Math.cos(anglev);\nvy = v*Math.sin(anglev);\nvxdrag = R*vx/10000;\nvydrag = R*vy/10000;\n//}"
                      }
                    ]
                  },
                  {
                    "Name": "text",
                    "Type": "Text2D",
                    "Properties": [
                      {
                        "name": "FillColor",
                        "value": "\"Magenta\""
                      },
                      {
                        "name": "RelativePosition",
                        "value": "\"SOUTH\""
                      },
                      {
                        "name": "X",
                        "value": "t"
                      },
                      {
                        "name": "Y",
                        "value": "KE"
                      },
                      {
                        "name": "Text",
                        "value": "!print?\"KE =\"+KE.toExponential(3)+ \" J\":\"\""
                      },
                      {
                        "name": "Visibility",
                        "value": "KEvstime"
                      }
                    ]
                  },
                  {
                    "Name": "pe",
                    "Type": "Trail2D",
                    "Properties": [
                      {
                        "name": "Connected",
                        "value": "t>0"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"Blue\""
                      },
                      {
                        "name": "InputX",
                        "value": "t"
                      },
                      {
                        "name": "Visibility",
                        "value": "PEvstime"
                      },
                      {
                        "name": "InputY",
                        "value": "PE"
                      },
                      {
                        "name": "NoRepeat",
                        "value": "true"
                      },
                      {
                        "name": "LineWidth",
                        "value": "2"
                      }
                    ]
                  },
                  {
                    "Name": "pe3",
                    "Type": "Shape2D",
                    "Properties": [
                      {
                        "name": "FillColor",
                        "value": "\"Blue\""
                      },
                      {
                        "name": "SizeX",
                        "value": "10"
                      },
                      {
                        "name": "ShapeType",
                        "value": "!print?\"ELLIPSE\":\"NONE\""
                      },
                      {
                        "name": "X",
                        "value": "t"
                      },
                      {
                        "name": "Y",
                        "value": "PE"
                      },
                      {
                        "name": "Visibility",
                        "value": "PEvstime"
                      },
                      {
                        "name": "SizeY",
                        "value": "10"
                      },
                      {
                        "name": "PixelSize",
                        "value": "true"
                      },
                      {
                        "name": "EnabledPosition",
                        "value": "_isPaused?\"ENABLED_Y\":\"\""
                      },
                      {
                        "name": "OnDrag",
                        "value": "if (PE > -10000000) {\n  PE = -10000000;\n  }\nelse {\n\ny = -6.67E-11*m*6.0E24/PE;\nif (y <=6384000) y = 6384000;\nif (y >=2*R) y = 2*R;\n  \n}\n\n\n"
                      }
                    ]
                  },
                  {
                    "Name": "text2",
                    "Type": "Text2D",
                    "Properties": [
                      {
                        "name": "FillColor",
                        "value": "\"Blue\""
                      },
                      {
                        "name": "RelativePosition",
                        "value": "\"SOUTH\""
                      },
                      {
                        "name": "X",
                        "value": "t"
                      },
                      {
                        "name": "Y",
                        "value": "PE"
                      },
                      {
                        "name": "Text",
                        "value": "!print?\"PE =\"+PE.toExponential(3)+ \" J\":\"\""
                      },
                      {
                        "name": "Visibility",
                        "value": "PEvstime"
                      }
                    ]
                  },
                  {
                    "Name": "te",
                    "Type": "Trail2D",
                    "Properties": [
                      {
                        "name": "Connected",
                        "value": "t>0"
                      },
                      {
                        "name": "LineColor",
                        "value": "\"Black\""
                      },
                      {
                        "name": "InputX",
                        "value": "t"
                      },
                      {
                        "name": "Visibility",
                        "value": "TEvstime"
                      },
                      {
                        "name": "InputY",
                        "value": "TE"
                      },
                      {
                        "name": "NoRepeat",
                        "value": "true"
                      },
                      {
                        "name": "LineWidth",
                        "value": "2"
                      }
                    ]
                  },
                  {
                    "Name": "te3",
                    "Type": "Shape2D",
                    "Properties": [
                      {
                        "name": "FillColor",
                        "value": "\"Black\""
                      },
                      {
                        "name": "SizeX",
                        "value": "10"
                      },
                      {
                        "name": "ShapeType",
                        "value": "!print?\"ELLIPSE\":\"NONE\""
                      },
                      {
                        "name": "X",
                        "value": "t"
                      },
                      {
                        "name": "Y",
                        "value": "TE"
                      },
                      {
                        "name": "Visibility",
                        "value": "TEvstime"
                      },
                      {
                        "name": "SizeY",
                        "value": "10"
                      },
                      {
                        "name": "PixelSize",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "Name": "text22",
                    "Type": "Text2D",
                    "Properties": [
                      {
                        "name": "RelativePosition",
                        "value": "\"SOUTH\""
                      },
                      {
                        "name": "X",
                        "value": "t"
                      },
                      {
                        "name": "Y",
                        "value": "TE"
                      },
                      {
                        "name": "Text",
                        "value": "!print?\"TE =\"+TE.toExponential(3)+ \" J\":\"\""
                      },
                      {
                        "name": "Visibility",
                        "value": "TEvstime"
                      }
                    ]
                  },
                  {
                    "Name": "printenergylabels",
                    "Type": "Group2D",
                    "Expanded": "false",
                    "Properties": [
                      {
                        "name": "Visibility",
                        "value": "print"
                      }
                    ],
                    "Children": [
                      {
                        "Name": "printke",
                        "Type": "Text2D",
                        "Properties": [
                          {
                            "name": "FillColor",
                            "value": "\"Magenta\""
                          },
                          {
                            "name": "RelativePosition",
                            "value": "\"SOUTH\""
                          },
                          {
                            "name": "Text",
                            "value": "\"KE\""
                          },
                          {
                            "name": "Visibility",
                            "value": "KEvstime"
                          },
                          {
                            "name": "EnabledPosition",
                            "value": "\"ENABLED_ANY\""
                          }
                        ]
                      },
                      {
                        "Name": "printpe",
                        "Type": "Text2D",
                        "Properties": [
                          {
                            "name": "FillColor",
                            "value": "\"Blue\""
                          },
                          {
                            "name": "RelativePosition",
                            "value": "\"SOUTH\""
                          },
                          {
                            "name": "Text",
                            "value": "\"PE\""
                          },
                          {
                            "name": "Visibility",
                            "value": "PEvstime"
                          },
                          {
                            "name": "EnabledPosition",
                            "value": "\"ENABLED_ANY\""
                          }
                        ]
                      },
                      {
                        "Name": "printte",
                        "Type": "Text2D",
                        "Properties": [
                          {
                            "name": "RelativePosition",
                            "value": "\"SOUTH\""
                          },
                          {
                            "name": "Text",
                            "value": "\"TE\""
                          },
                          {
                            "name": "Visibility",
                            "value": "TEvstime"
                          },
                          {
                            "name": "EnabledPosition",
                            "value": "\"ENABLED_ANY\""
                          }
                        ]
                      },
                      {
                        "Name": "printkeball",
                        "Type": "Shape2D",
                        "Properties": [
                          {
                            "name": "FillColor",
                            "value": "\"Magenta\""
                          },
                          {
                            "name": "SizeX",
                            "value": "10"
                          },
                          {
                            "name": "ShapeType",
                            "value": "\"ELLIPSE\""
                          },
                          {
                            "name": "X",
                            "value": "1000"
                          },
                          {
                            "name": "Visibility",
                            "value": "KEvstime"
                          },
                          {
                            "name": "SizeY",
                            "value": "10"
                          },
                          {
                            "name": "PixelSize",
                            "value": "true"
                          },
                          {
                            "name": "OnDrag",
                            "value": "//if (KE < 0) {\n//  KE = 0;\n//  }\n//else {\nanglev = Math.atan2(vy,vx);\nv = Math.sqrt(2*KE/m);\nvx = v*Math.cos(anglev);\nvy = v*Math.sin(anglev);\nvxdrag = R*vx/10000;\nvydrag = R*vy/10000;\n//}"
                          },
                          {
                            "name": "EnabledPosition",
                            "value": "\"ENABLED_ANY\""
                          }
                        ]
                      },
                      {
                        "Name": "printpeball",
                        "Type": "Shape2D",
                        "Properties": [
                          {
                            "name": "FillColor",
                            "value": "\"Blue\""
                          },
                          {
                            "name": "SizeX",
                            "value": "10"
                          },
                          {
                            "name": "ShapeType",
                            "value": "\"ELLIPSE\""
                          },
                          {
                            "name": "X",
                            "value": "1000"
                          },
                          {
                            "name": "Visibility",
                            "value": "PEvstime"
                          },
                          {
                            "name": "SizeY",
                            "value": "10"
                          },
                          {
                            "name": "PixelSize",
                            "value": "true"
                          },
                          {
                            "name": "EnabledPosition",
                            "value": "\"ENABLED_ANY\""
                          },
                          {
                            "name": "OnDrag",
                            "value": "if (PE > -10000000) {\n  PE = -10000000;\n  }\nelse {\n\ny = -6.67E-11*m*6.0E24/PE;\nif (y <=6384000) y = 6384000;\nif (y >=2*R) y = 2*R;\n  \n}\n\n\n"
                          }
                        ]
                      },
                      {
                        "Name": "printteball",
                        "Type": "Shape2D",
                        "Properties": [
                          {
                            "name": "FillColor",
                            "value": "\"Black\""
                          },
                          {
                            "name": "SizeX",
                            "value": "10"
                          },
                          {
                            "name": "ShapeType",
                            "value": "\"ELLIPSE\""
                          },
                          {
                            "name": "X",
                            "value": "1000"
                          },
                          {
                            "name": "Visibility",
                            "value": "TEvstime"
                          },
                          {
                            "name": "SizeY",
                            "value": "10"
                          },
                          {
                            "name": "PixelSize",
                            "value": "true"
                          },
                          {
                            "name": "EnabledPosition",
                            "value": "\"ENABLED_ANY\""
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "Name": "html",
            "Type": "Panel",
            "Properties": [
              {
                "name": "Html",
                "value": "<h3>Watch the Satellite Motion Video</h3>\n  <iframe width=\"560\" height=\"315\" \n    src=\"https://www.youtube.com/embed/pezXVxcY99s?si=wHFoU5AOn--hKBe5\" \n    title=\"YouTube video player\" \n    frameborder=\"0\" \n    allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" \n    referrerpolicy=\"strict-origin-when-cross-origin\" \n    allowfullscreen>\n  </iframe>\n  <p>\n    Direct link: \n    <a href=\"https://www.youtube.com/watch?v=pezXVxcY99s\" target=\"_blank\">\n      https://www.youtube.com/watch?v=pezXVxcY99s\n    </a>\n  </p>\n<h2>Satellite Motion Study Guide</h2>\n\n  <h3>Quiz</h3>\n  <p><strong>Instructions:</strong> Answer the following questions in 2\u20133 sentences each.</p>\n  <ol>\n    <li>What type of path does an object follow when projected horizontally near the Earth's surface with insufficient speed to achieve orbit?</li>\n    <li>What is the primary force acting on a satellite in a circular orbit?</li>\n    <li>What is the relationship between the velocity and the gravitational force on a satellite in a circular orbit?</li>\n    <li>What is the role of gravitational force in the context of circular motion of a satellite?</li>\n    <li>What happens to the speed of a satellite in a circular orbit?</li>\n    <li>Explain why a satellite maintains a constant distance from Earth in a circular orbit?</li>\n    <li>In the context of satellite motion, what is meant by \"centripetal force?\"</li>\n    <li>What happens to the orbit of a satellite if its speed decreases?</li>\n    <li>According to the text, what is a common misconception about satellite orbits that students have?</li>\n    <li>What is the key takeaway from the simulation regarding the shapes of real satellite orbits?</li>\n  </ol>\n\n  <h3>Quiz Answer Key</h3>\n  <ol>\n    <li>An object projected horizontally near Earth\u2019s surface follows a parabolic trajectory when it lacks the speed necessary to orbit. This path curves towards the Earth due to gravity.</li>\n    <li>The primary force acting on a satellite in a circular orbit is the Earth's gravitational force. This force constantly pulls the satellite towards the center of the Earth.</li>\n    <li>The velocity of a satellite in a circular orbit is perpendicular to the gravitational force. This results in a consistent change in direction but a constant speed.</li>\n    <li>In the circular motion of a satellite, the gravitational force acts as the centripetal force. This force is always directed toward the center of the circle, causing the satellite to move in a circular path.</li>\n    <li>The speed of a satellite in a circular orbit remains constant as long as the orbital radius does not change. This constancy exists because the gravitational force does not act to speed up or slow down the object.</li>\n    <li>A satellite maintains a constant distance because its velocity is always perpendicular to the gravitational force. These forces together create a circular path around Earth at a consistent radius.</li>\n    <li>Centripetal force is the force required to keep an object moving in a circular path. It is always directed towards the center of the circular path. In the case of satellite motion, this is gravitational force.</li>\n    <li>If a satellite's speed decreases, the gravitational force will become greater than the required centripetal force causing it to be pulled closer to Earth, moving in a smaller, potentially elliptical orbit.</li>\n    <li>A common misconception that students have is that satellite orbits are always perfectly circular. In fact, real satellite orbits are more often elliptical than circular.</li>\n    <li>The simulation demonstrates that real satellite orbits are not always perfectly circular but are often elliptical, which can be observed when the satellite's speed is altered.</li>\n  </ol>"
              }
            ]
          }
        ]
      }
    ],
    "RootProperties": []
  },
  "metadata": {
    "APP": "WebEJS",
    "CreatedWith": "WebEJS : The web version of Easy JavaScript Simulations",
    "MoreInfo": "WebEJS 1.2",
    "version": "https://www.um.es/fem/wikis/webejs/"
  }
}