function ExecuteScript(strId) { switch (strId) { case "6X1tQmvYpKH": Script1(); break; } } function Script1() { var player = GetPlayer(); var Landscape = "true" if (window.innerHeight > window.innerWidth){ var Landscape = "false"; } player.SetVar("Landscape", Landscape); }