· 4 years ago · Apr 05, 2021, 04:58 PM
1'use strict';
2vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_domvar"] = vhsshtml5_getCurrentDom();
3var secure_domains1 = {
4 "@V" : md5("*.oddcast.com")
5};
6var secure_domains4 = {
7 "@V" : md5("*.sitepal.com")
8};
9var secure_domains2 = {
10 "@V" : md5("127.0.0.1")
11};
12var secure_domains3 = {
13 "@V" : md5("localhost")
14};
15/** @type {number} */
16var vhssHTML_isInterruped = 0;
17/** @type {number} */
18var vhssHTML_vhTalkStarted = 0;
19/** @type {number} */
20var vhsshtml5_accountID = 5883747;
21var vhsshtml5_secretID = "uetivb9tb8108wfj";
22if (vhsshtml5_main_url["indexOf"]("vd") > -1) {
23 vhsshtml5_accountID = "8879";
24 vhsshtml5_secretID = "oddcast";
25}
26if (vhsshtml5_mobileDetection == 1) {
27 /** @type {function(): undefined} */
28 document["onclick"] = DocumentClickHandler;
29 /** @type {number} */
30 mobile_events = 1;
31} else {
32 /** @type {number} */
33 mobile_events = 1;
34}
35/**
36 * @return {undefined}
37 */
38function DocumentClickHandler() {
39 /** @type {number} */
40 mobile_events = 1;
41 /** @type {null} */
42 document["onclick"] = null;
43}
44/** @type {number} */
45var i = 0;
46for (; i < vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scripts"]["length"]; i++) {
47 vhsshtml5_str = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scripts"][i]["src"];
48 if (vhsshtml5_str["indexOf"]("main_sitepal_full_body_model.js") >= 0) {
49 /** @type {number} */
50 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sitepalmodel"] = 1;
51 }
52}
53/**
54 * @return {undefined}
55 */
56function vhsshtml5_onaddhtmlcall() {
57 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerTypo"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerTypo"] == "FB3D") {
58 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] != "") {
59 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] = "?" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
60 }
61 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] == "") {
62 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] = vhsshtml5_acc_varfb;
63 }
64 /** @type {!XMLHttpRequest} */
65 var xhr = new XMLHttpRequest;
66 var url = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_json_url_str"] + "/php/playScene/acc=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + "/json=1/ss=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ss_var"] + "/sl=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sl_var"] + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
67 /**
68 * @return {undefined}
69 */
70 xhr["onreadystatechange"] = function() {
71 if (xhr["readyState"] == 4 && xhr["status"] == 200) {
72 vhsshtml5_myArr = JSON["parse"](xhr["responseText"]);
73 if (vhsshtml5_myArr["ERROR"]) {
74 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_errormsg"] = vhsshtml5_myArr["ERROR"]["@DESC"];
75 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_errorimg"] = vhsshtml5_myArr["ERROR"]["@URL"];
76 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["innerHTML"] = "<div style='width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px;'><div class='error-image' style='width:100%;height: 100%;background-repeat: no-repeat;background-position: center center;background-size: contain;background-image: url(" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_errorimg"] + ");'></div></div>";
77 if (vhsshtml5_osStatus == 1 && vhsshtml5_osDisplayPos) {
78 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["width"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px";
79 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["parentNode"]["style"]["position"] = "relative";
80 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["position"] = "fixed";
81 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["bottom"] = "0px";
82 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["right"] = "0px";
83 var onError = vhsshtml5_osDisplayPos;
84 /** @type {null} */
85 var _nodes = null;
86 window["addEventListener"]("resize", function() {
87 if (vhsshtml5_osDisplayPos["indexOf"]("~") > -1) {
88 var node = vhsshtml5_osDisplayPos["split"]("~");
89 onError = node[0];
90 _nodes = node[1];
91 }
92 if (onError == "L") {
93 _0xfa08x11 = "left";
94 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["left"] = vhsshtml5_setCharacterPosition(_nodes);
95 } else {
96 if (onError == "R") {
97 _0xfa08x11 = "right";
98 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["right"] = vhsshtml5_setCharacterPosition(_nodes);
99 }
100 }
101 });
102 var _0xfa08x11 = "right";
103 if (onError == "L") {
104 _0xfa08x11 = "left";
105 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["left"] = vhsshtml5_setCharacterPosition(_nodes);
106 } else {
107 if (onError == "R") {
108 _0xfa08x11 = "right";
109 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["right"] = vhsshtml5_setCharacterPosition(_nodes);
110 }
111 }
112 }
113 if (create_vhsshtml5_urlparamsarrnew["length"] > 0) {
114 vhsshtml5_scenenumber = vhsshtml5_scenenumber + 1;
115 if (create_vhsshtml5_urlparamsarrnew["length"] > 0) {
116 vhsshtml5_urlparams = create_vhsshtml5_urlparamsarrnew[vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]];
117 }
118 var _0xfa08x12 = vhsshtml5_urlparams["playerType"];
119 if (_0xfa08x12 == "2d3d") {
120 call_embed_file2(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_randomvarray"][vhsshtml5_scenenumber]);
121 } else {
122 call_embed_file(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_randomvarray"][vhsshtml5_scenenumber]);
123 }
124 }
125 } else {
126 if (vhsshtml5_myArr["player"]["params"]["aiengine"]) {
127 vhssHTML_scenes[vhsshtml5_scenenumber]["aiEngine"] = vhsshtml5_myArr["player"]["params"]["aiengine"];
128 }
129 if (vhsshtml5_myArr["player"]["params"]["secureplayback"]) {
130 vhssHTML_scenes[vhsshtml5_scenenumber]["secureplayback"] = vhsshtml5_myArr["player"]["params"]["secureplayback"];
131 if (vhsshtml5_myArr["player"]["params"]["secure_domains"]["D"]) {
132 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains_var"] = vhsshtml5_myArr["player"]["params"]["secure_domains"]["D"];
133 if (vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains_var"]["length"] == undefined) {
134 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains_var"]);
135 } else {
136 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"] = vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains_var"];
137 }
138 }
139 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"]["push"](secure_domains1);
140 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"]["push"](secure_domains2);
141 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"]["push"](secure_domains3);
142 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"]["push"](secure_domains4);
143 var fullScreenElement = document["domain"];
144 if (vhssHTML_scenes[vhsshtml5_scenenumber]["secureplayback"] == 1) {
145 if (!check_domain_license(vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"], fullScreenElement)) {
146 /** @type {number} */
147 is_licensed_domain = 0;
148 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["innerHTML"] = "<div style='width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhsshtml5_height_var + "px;'><div class='error-image' style='width:100%;height: 100%;background-repeat: no-repeat;background-position: center center;background-size: contain;background-image: url(" + vhsshtml5_main_url + "/img/fb-secureplayback.png);'></div></div>";
149 } else {
150 vhsshtml5_loadHTMLScenes(vhsshtml5_myArr);
151 }
152 } else {
153 if (!check_domain_license(vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"], fullScreenElement)) {
154 /** @type {number} */
155 is_licensed_domain = 0;
156 }
157 vhsshtml5_loadHTMLScenes(vhsshtml5_myArr);
158 }
159 }
160 }
161 }
162 };
163 xhr["open"]("GET", url, true);
164 xhr["send"]();
165 } else {
166 if (vhsshtml5_myArr == "") {
167 vhsshtml5_myArr = vhsshtml5_myArrNew;
168 }
169 if (vhsshtml5_myArr["ERROR"]) {
170 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_errormsg"] = vhsshtml5_myArr["ERROR"]["@DESC"];
171 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_errorimg"] = vhsshtml5_myArr["ERROR"]["@URL"];
172 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["innerHTML"] = "<div style='width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px;'><div class='error-image' style='width:100%;height: 100%;background-repeat: no-repeat;background-position: center center;background-size: contain;background-image: url(" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_errorimg"] + ");'></div></div>";
173 if (create_vhsshtml5_urlparamsarrnew["length"] > 0) {
174 vhsshtml5_scenenumber = vhsshtml5_scenenumber + 1;
175 if (create_vhsshtml5_urlparamsarrnew["length"] > 0) {
176 vhsshtml5_urlparams = create_vhsshtml5_urlparamsarrnew[0];
177 }
178 var _0xfa08x12 = vhsshtml5_urlparams["playerType"];
179 if (_0xfa08x12 == "2d3d") {
180 call_embed_file2(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_randomvarray"][vhsshtml5_scenenumber]);
181 } else {
182 call_embed_file(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_randomvarray"][vhsshtml5_scenenumber]);
183 }
184 }
185 } else {
186 if (vhsshtml5_myArr["player"]["params"]["aiengine"]) {
187 vhssHTML_scenes[vhsshtml5_scenenumber]["aiEngine"] = vhsshtml5_myArr["player"]["params"]["aiengine"];
188 }
189 if (vhsshtml5_myArr["player"]["params"]["secureplayback"]) {
190 vhssHTML_scenes[vhsshtml5_scenenumber]["secureplayback"] = vhsshtml5_myArr["player"]["params"]["secureplayback"];
191 if (vhsshtml5_myArr["player"]["params"]["secure_domains"]["D"]) {
192 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains_var"] = vhsshtml5_myArr["player"]["params"]["secure_domains"]["D"];
193 if (vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains_var"]["length"] == undefined) {
194 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains_var"]);
195 } else {
196 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"] = vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains_var"];
197 }
198 }
199 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"]["push"](secure_domains1);
200 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"]["push"](secure_domains2);
201 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"]["push"](secure_domains3);
202 vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"]["push"](secure_domains4);
203 var fullScreenElement = document["domain"];
204 if (vhssHTML_scenes[vhsshtml5_scenenumber]["secureplayback"] == 1) {
205 if (!check_domain_license(vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"], fullScreenElement)) {
206 /** @type {number} */
207 is_licensed_domain = 0;
208 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["innerHTML"] = "<div style='width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px;'><div class='error-image' style='width:100%;height: 100%;background-repeat: no-repeat;background-position: center center;background-size: contain;background-image: url(" + vhsshtml5_main_url + "/img/2d3d-secureplayback.png);'></div></div>";
209 } else {
210 vhsshtml5_loadHTMLScenes(vhsshtml5_myArr);
211 }
212 } else {
213 if (!check_domain_license(vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"], fullScreenElement)) {
214 /** @type {number} */
215 is_licensed_domain = 0;
216 }
217 vhsshtml5_loadHTMLScenes(vhsshtml5_myArr);
218 }
219 }
220 }
221 }
222}
223/**
224 * @param {?} canCreateDiscussions
225 * @return {?}
226 */
227function vhsshtml5_loadHTMLScenes(canCreateDiscussions) {
228 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] != "") {
229 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] = "?" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
230 }
231 var _0xfa08x16 = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_json_url_str"] + "php/playScene/acc=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + "/json=1/ss=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ss_var"] + "/sl=0" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
232 /** @type {!Array} */
233 var command_codes = [];
234 if (canCreateDiscussions["player"]["assets"]["avatar"] || canCreateDiscussions["player"]["assets"]["avatarHTML5"]) {
235 if (canCreateDiscussions["player"]["assets"]["avatar"]) {
236 if (canCreateDiscussions["player"]["assets"]["avatar"]["length"] > 0) {
237 /** @type {number} */
238 av = 0;
239 for (; av < canCreateDiscussions["player"]["assets"]["avatar"]["length"]; av++) {
240 /** @type {!Array} */
241 var data = [];
242 data["id"] = canCreateDiscussions["player"]["assets"]["avatar"][av]["@id"];
243 data["type"] = canCreateDiscussions["player"]["assets"]["avatar"][av]["@type"];
244 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_modelId"] = canCreateDiscussions["player"]["assets"]["avatar"][av]["@modelId"];
245 command_codes["push"](data);
246 }
247 } else {
248 /** @type {!Array} */
249 data = [];
250 data["id"] = canCreateDiscussions["player"]["assets"]["avatar"]["@id"];
251 data["type"] = canCreateDiscussions["player"]["assets"]["avatar"]["@type"];
252 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_modelId"] = canCreateDiscussions["player"]["assets"]["avatar"]["@modelId"];
253 command_codes["push"](data);
254 }
255 }
256 if (canCreateDiscussions["player"]["assets"]["avatarHTML5"]) {
257 if (canCreateDiscussions["player"]["assets"]["avatarHTML5"]["length"] > 0) {
258 /** @type {number} */
259 av = 0;
260 for (; av < canCreateDiscussions["player"]["assets"]["avatarHTML5"]["length"]; av++) {
261 /** @type {!Array} */
262 data = [];
263 data["id"] = canCreateDiscussions["player"]["assets"]["avatarHTML5"][av]["@id"];
264 data["type"] = canCreateDiscussions["player"]["assets"]["avatarHTML5"][av]["@type"];
265 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_modelId"] = canCreateDiscussions["player"]["assets"]["avatarHTML5"]["@modelId"];
266 command_codes["push"](data);
267 }
268 } else {
269 /** @type {!Array} */
270 data = [];
271 data["id"] = canCreateDiscussions["player"]["assets"]["avatarHTML5"]["@id"];
272 data["type"] = canCreateDiscussions["player"]["assets"]["avatarHTML5"]["@type"];
273 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_modelId"] = canCreateDiscussions["player"]["assets"]["avatarHTML5"]["@modelId"];
274 command_codes["push"](data);
275 }
276 }
277 }
278 if (canCreateDiscussions["player"]["scenes"]["scene"]["length"] > 0) {
279 if (canCreateDiscussions["player"]["scenes"]["scene"]["length"] <= vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]) {
280 /** @type {number} */
281 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"] = 0;
282 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"];
283 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"];
284 }
285 var _0xfa08x19 = "";
286 if (canCreateDiscussions["player"]["scenes"]["scene"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["avatar"]) {
287 _0xfa08x19 = canCreateDiscussions["player"]["scenes"]["scene"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["avatar"]["id"];
288 } else {
289 _0xfa08x19 = canCreateDiscussions["player"]["scenes"]["scene"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["avatarHTML5"]["id"];
290 }
291 if (canCreateDiscussions["player"]["scenes"]["scene"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["avatarHTML5"]) {
292 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isCharVisible"] = canCreateDiscussions["player"]["scenes"]["scene"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["avatarHTML5"]["visible"];
293 }
294 } else {
295 _0xfa08x19 = "";
296 if (canCreateDiscussions["player"]["scenes"]["scene"]["avatar"]) {
297 _0xfa08x19 = canCreateDiscussions["player"]["scenes"]["scene"]["avatar"]["id"];
298 } else {
299 _0xfa08x19 = canCreateDiscussions["player"]["scenes"]["scene"]["avatarHTML5"]["id"];
300 }
301 if (canCreateDiscussions["player"]["scenes"]["scene"]["avatarHTML5"]) {
302 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isCharVisible"] = canCreateDiscussions["player"]["scenes"]["scene"]["avatarHTML5"]["visible"];
303 }
304 }
305 if (_0xfa08x19 != "") {
306 if (command_codes["length"] > 0) {
307 /** @type {number} */
308 av = 0;
309 for (; av < command_codes["length"]; av++) {
310 if (command_codes[av]["id"] == _0xfa08x19) {
311 if (command_codes[av]["type"] == "html5") {
312 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] = "2d";
313 } else {
314 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] = command_codes[av]["type"];
315 }
316 }
317 }
318 }
319 }
320 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fver"] = "sitepalEmbed_v1.js";
321 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] == "FB3D") {
322 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_graberror"] = canCreateDiscussions["player"]["params"]["domain_data"];
323 } else {
324 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] == "3d") {
325 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_graberror"] = canCreateDiscussions["player"]["params"]["track_url"];
326 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_graberror"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_graberror"]["replace"]("/event.php", "");
327 } else {
328 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_graberror"] = canCreateDiscussions["player"]["params"]["track_url"];
329 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_graberror"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_graberror"]["replace"]("/event.php", "");
330 }
331 }
332 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_track_url"] = canCreateDiscussions["player"]["params"]["track_url"];
333 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_originator"] = canCreateDiscussions["player"]["params"]["acclrsrvr"] + "/" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fver"] + "?doc=" + _0xfa08x16 + "||" + window["location"]["href"];
334 vhsshtml5_tracking_api("v", canCreateDiscussions["player"]["params"]["account"], canCreateDiscussions["player"]["params"]["showid"], 7, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_domvar"], 0, 0, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_etvar"], "&ev[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][]=tss");
335 vhsshtml5_tracking_api("v", canCreateDiscussions["player"]["params"]["account"], canCreateDiscussions["player"]["params"]["showid"], 7, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_domvar"], 0, 0, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_etvar"], "&ev[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][]=fver&val[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][fver][]=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fver"] + "");
336 /** @type {number} */
337 playStatus_ = 1;
338 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] = canCreateDiscussions["player"]["params"]["oh_base_url"];
339 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] == "FB3D") {
340 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_url"] = canCreateDiscussions["player"]["assets"]["engine"]["@url"];
341 } else {
342 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] == "3d") {
343 } else {
344 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_url"] = canCreateDiscussions["player"]["assets"]["engine"]["@url"];
345 }
346 }
347 var _0xfa08x1a = canCreateDiscussions["player"]["scenes"]["scene"]["playbacklimit"];
348 if (canCreateDiscussions["player"]["scenes"]["scene"]["playbacklimit"] != -1) {
349 /** @type {number} */
350 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_chk_play_back_limit"] = 1;
351 }
352 if (canCreateDiscussions) {
353 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_accId"] = canCreateDiscussions["player"]["params"]["account"];
354 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneId"] = canCreateDiscussions["player"]["params"]["showid"];
355 if (canCreateDiscussions["player"]["assets"]["audio"]) {
356 var _0xfa08x1b = canCreateDiscussions["player"]["assets"]["audio"]["@id"];
357 var PL$13 = canCreateDiscussions["player"]["scenes"]["scene"];
358 if (PL$13["length"] > 0) {
359 plays = PL$13[vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["playbacklimit"];
360 exdays = PL$13[vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["playbackdays"];
361 } else {
362 plays = PL$13["playbacklimit"];
363 exdays = PL$13["playbackdays"];
364 }
365 }
366 PL$13 = canCreateDiscussions["player"]["scenes"]["scene"];
367 if (PL$13["length"] > 0) {
368 /** @type {number} */
369 var PL$17 = 0;
370 for (; PL$17 < PL$13["length"]; PL$17++) {
371 if (PL$13[PL$17]["link"]) {
372 /** @type {!Array} */
373 var qry = [];
374 if (PL$13[PL$17]["link"]["@href"]) {
375 /** @type {string} */
376 qry["href"] = decodeURIComponent(PL$13[PL$17]["link"]["@href"]);
377 } else {
378 qry["href"] = "";
379 }
380 if (PL$13[PL$17]["link"]["@auto"]) {
381 qry["auto"] = PL$13[PL$17]["link"]["@auto"];
382 } else {
383 qry["auto"] = "";
384 }
385 if (PL$13[PL$17]["link"]["@delay"]) {
386 qry["delay"] = PL$13[PL$17]["link"]["@delay"];
387 } else {
388 qry["delay"] = "";
389 }
390 if (PL$13[PL$17]["link"]["@window"]) {
391 qry["window"] = PL$13[PL$17]["link"]["@window"];
392 } else {
393 qry["window"] = "";
394 }
395 if (PL$13[PL$17]["link"]["@button"]) {
396 qry["button"] = PL$13[PL$17]["link"]["@button"];
397 } else {
398 qry["button"] = "";
399 }
400 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"]["push"](qry);
401 } else {
402 /** @type {!Array} */
403 qry = [];
404 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"]["push"](qry);
405 }
406 }
407 } else {
408 if (PL$13["link"]) {
409 /** @type {!Array} */
410 qry = [];
411 if (PL$13["link"]["@href"]) {
412 /** @type {string} */
413 qry["href"] = decodeURIComponent(PL$13["link"]["@href"]);
414 } else {
415 qry["href"] = "";
416 }
417 if (PL$13["link"]["@auto"]) {
418 qry["auto"] = PL$13["link"]["@auto"];
419 } else {
420 qry["auto"] = "";
421 }
422 if (PL$13["link"]["@delay"]) {
423 qry["delay"] = PL$13["link"]["@delay"];
424 } else {
425 qry["delay"] = "";
426 }
427 if (PL$13["link"]["@window"]) {
428 qry["window"] = PL$13["link"]["@window"];
429 } else {
430 qry["window"] = "";
431 }
432 if (PL$13["link"]["@button"]) {
433 qry["button"] = PL$13["link"]["@button"];
434 } else {
435 qry["button"] = "";
436 }
437 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"]["push"](qry);
438 }
439 }
440 }
441 if (plays && plays > 0) {
442 playStatus_ = vhsshtml5_checkCookie(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cookieName_"], plays, exdays);
443 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_status"] = playStatus_;
444 }
445 var _0xfa08x1f = "";
446 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] == "FB3D") {
447 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] = canCreateDiscussions["player"]["params"]["content_base_url"];
448 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = "";
449 if (canCreateDiscussions["player"]["scenes"]["scene"]["length"] > 0) {
450 /** @type {number} */
451 prevNextBtn = 1;
452 /** @type {!Array} */
453 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_arr"] = [];
454 var color__len = canCreateDiscussions["player"]["scenes"]["scene"]["length"];
455 /** @type {number} */
456 PL$17 = 0;
457 for (; PL$17 < color__len; PL$17++) {
458 /** @type {!Array} */
459 var artistTrack = [];
460 artistTrack["type"] = "mp3_url";
461 var addressCount = canCreateDiscussions["player"]["assets"]["audio"]["length"];
462 /** @type {number} */
463 var iAddressLoop = 0;
464 for (; iAddressLoop < addressCount; iAddressLoop++) {
465 if (canCreateDiscussions["player"]["scenes"]["scene"][PL$17]["audio"]["id"] && canCreateDiscussions["player"]["scenes"]["scene"][PL$17]["audio"]["id"] == canCreateDiscussions["player"]["assets"]["audio"][iAddressLoop]["@id"]) {
466 artistTrack["url"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + canCreateDiscussions["player"]["assets"]["audio"][iAddressLoop]["$"];
467 }
468 }
469 if (canCreateDiscussions["player"]["scenes"]["scene"][PL$17]["playbacklimit"]) {
470 artistTrack["playbacklimit"] = canCreateDiscussions["player"]["scenes"]["scene"][PL$17]["playbacklimit"];
471 }
472 if (canCreateDiscussions["player"]["scenes"]["scene"][PL$17]["playbackdays"]) {
473 artistTrack["playbackdays"] = canCreateDiscussions["player"]["scenes"]["scene"][PL$17]["playbackdays"];
474 }
475 if (canCreateDiscussions["player"]["scenes"]["scene"][PL$17]["autoadv"]) {
476 artistTrack["_delay_time_"] = canCreateDiscussions["player"]["scenes"]["scene"][PL$17]["autoadv"];
477 }
478 if (canCreateDiscussions["player"]["scenes"]["scene"][PL$17]["audio"]["play"]) {
479 artistTrack["audioplay"] = canCreateDiscussions["player"]["scenes"]["scene"][PL$17]["audio"]["play"];
480 }
481 if (canCreateDiscussions["player"]["scenes"]["scene"][PL$17]["audio"]["id"]) {
482 artistTrack["audioid"] = canCreateDiscussions["player"]["scenes"]["scene"][PL$17]["audio"]["id"];
483 }
484 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_arr"]["push"](artistTrack);
485 }
486 if (canCreateDiscussions["player"]["assets"]["audio"]) {
487 if (canCreateDiscussions["player"]["assets"]["audio"]["length"] > 0) {
488 /** @type {number} */
489 var number = parseInt(canCreateDiscussions["player"]["assets"]["audio"]["length"]);
490 var indexLookupKey = Math["floor"](Math["random"]() * number);
491 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + canCreateDiscussions["player"]["assets"]["audio"][indexLookupKey]["$"];
492 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_audioName"] = canCreateDiscussions["player"]["assets"]["audio"][indexLookupKey]["@name"];
493 } else {
494 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + canCreateDiscussions["player"]["assets"]["audio"]["$"];
495 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_audioName"] = canCreateDiscussions["player"]["assets"]["audio"]["@name"];
496 }
497 }
498 /** @type {number} */
499 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] = 1;
500 /** @type {number} */
501 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_const_arr"] = 0;
502 } else {
503 if (canCreateDiscussions["player"]["assets"]["audio"]) {
504 if (canCreateDiscussions["player"]["assets"]["audio"]["length"] > 0) {
505 /** @type {number} */
506 number = parseInt(canCreateDiscussions["player"]["assets"]["audio"]["length"]);
507 indexLookupKey = Math["floor"](Math["random"]() * number);
508 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + canCreateDiscussions["player"]["assets"]["audio"][indexLookupKey]["$"];
509 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_audioName"] = canCreateDiscussions["player"]["assets"]["audio"][indexLookupKey]["@name"];
510 } else {
511 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + canCreateDiscussions["player"]["assets"]["audio"]["$"];
512 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_audioName"] = canCreateDiscussions["player"]["assets"]["audio"]["@name"];
513 }
514 }
515 }
516 } else {
517 var _0xfa08x26 = canCreateDiscussions["player"]["scenes"]["scene"];
518 if (_0xfa08x26) {
519 if (_0xfa08x26["length"] > 0) {
520 /** @type {number} */
521 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] = 1;
522 /** @type {number} */
523 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_const_arr"] = 0;
524 }
525 }
526 }
527 if (typeof vh_sceneLoaded == "function") {
528 _0xfa08x26 = canCreateDiscussions["player"]["scenes"]["scene"];
529 if (_0xfa08x26) {
530 if (_0xfa08x26["length"] > 0) {
531 /** @type {number} */
532 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 0;
533 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] = _0xfa08x26[vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["id"];
534 } else {
535 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] = canCreateDiscussions["player"]["scenes"]["scene"]["id"];
536 }
537 }
538 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] == "FB3D") {
539 vhsshtml5_loadFullBodyHTMLContent(playStatus_, canCreateDiscussions);
540 } else {
541 vhsshtml5_load2D3DHTMLContent(playStatus_, canCreateDiscussions);
542 }
543 } else {
544 _0xfa08x26 = canCreateDiscussions["player"]["scenes"]["scene"];
545 if (_0xfa08x26) {
546 if (_0xfa08x26["length"]) {
547 /** @type {number} */
548 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 0;
549 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] = _0xfa08x26[vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["id"];
550 if (_0xfa08x26[vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["thumbnailFullBody"]) {
551 vhssHTML_scenes[vhsshtml5_scenenumber]["overlay_minimize_thumb"] = _0xfa08x26[vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["thumbnailFullBody"];
552 }
553 var _0xfa08x27 = _0xfa08x26[vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["playbacklimit"];
554 if (_0xfa08x27 != -1) {
555 /** @type {number} */
556 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_chk_play_back_limit"] = 1;
557 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_back_limit_days"] = _0xfa08x26[vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["playbackdays"];
558 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_back_limit_counter"] = _0xfa08x26[vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["playbacklimit"];
559 }
560 } else {
561 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] = canCreateDiscussions["player"]["scenes"]["scene"]["id"];
562 _0xfa08x27 = canCreateDiscussions["player"]["scenes"]["scene"]["playbacklimit"];
563 if (canCreateDiscussions["player"]["scenes"]["scene"]["thumbnailFullBody"]) {
564 vhssHTML_scenes[vhsshtml5_scenenumber]["overlay_minimize_thumb"] = canCreateDiscussions["player"]["scenes"]["scene"]["thumbnailFullBody"];
565 }
566 if (_0xfa08x27 != -1) {
567 /** @type {number} */
568 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_chk_play_back_limit"] = 1;
569 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_back_limit_days"] = canCreateDiscussions["player"]["scenes"]["scene"]["playbackdays"];
570 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_back_limit_counter"] = canCreateDiscussions["player"]["scenes"]["scene"]["playbacklimit"];
571 }
572 }
573 }
574 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] == "FB3D") {
575 vhsshtml5_loadFullBodyHTMLContent(playStatus_, canCreateDiscussions);
576 } else {
577 vhsshtml5_load2D3DHTMLContent(playStatus_, canCreateDiscussions);
578 }
579 }
580 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] != "") {
581 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
582 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
583 } else {
584 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["push"]("");
585 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"]["push"]("");
586 }
587 return false;
588}
589/**
590 * @param {number} courseId
591 * @param {?} canCreateDiscussions
592 * @return {undefined}
593 */
594function vhsshtml5_loadFullBodyHTMLContent(courseId, canCreateDiscussions) {
595 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_background_var"] = "";
596 /** @type {number} */
597 var _0xfa08x2a = 0;
598 if (canCreateDiscussions["player"]["scenes"]["scene"]["length"] > 0 && canCreateDiscussions["player"]["params"]["displayNextPrevious"]) {
599 _0xfa08x2a = canCreateDiscussions["player"]["params"]["displayNextPrevious"];
600 }
601 if (canCreateDiscussions["player"]["params"]["sbdelay"] && canCreateDiscussions["player"]["params"]["sbdelay"] > 0) {
602 /** @type {number} */
603 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_loading_img_delay_time_"] = parseInt(canCreateDiscussions["player"]["params"]["sbdelay"]) * parseInt(1E3);
604 }
605 if (canCreateDiscussions["player"]["params"] && canCreateDiscussions["player"]["params"]["clientApi"]) {
606 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] = canCreateDiscussions["player"]["params"]["clientApi"];
607 }
608 var _0xfa08x2b = canCreateDiscussions["player"]["params"];
609 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_tts_url"] = _0xfa08x2b["domain_tts"];
610 hsshtml5_filter_url = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_tts_url"];
611 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_tts_url"]["replace"]("http://", "https://");
612 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"]["replace"]("cache-vs", "cache");
613 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_domain_vhss_url"] = _0xfa08x2b["domain_vhss"];
614 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] = _0xfa08x2b["content_base_url"];
615 if (canCreateDiscussions["player"]["assets"]["loader"]) {
616 var _0xfa08x2c = _0xfa08x2b["content_base_url"] + canCreateDiscussions["player"]["assets"]["loader"]["$"];
617 }
618 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_domain"] = _0xfa08x2b["domain_tts"];
619 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_charUrl_var"] = _0xfa08x2b["fb3d_content_base"] + "/model_" + canCreateDiscussions["player"]["assets"]["avatar"]["@modelId"] + "/" + canCreateDiscussions["player"]["assets"]["avatar"]["$"];
620 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] = canCreateDiscussions["player"]["assets"]["avatar"]["@type"];
621 var _0xfa08x2d = "";
622 /** @type {number} */
623 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_status"] = courseId;
624 if (canCreateDiscussions["player"]["params"]["volume"]) {
625 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_volume_var"] = canCreateDiscussions["player"]["params"]["volume"];
626 }
627 if (canCreateDiscussions["player"]["scenes"]["scene"]["link"]) {
628 /** @type {string} */
629 _link_ = decodeURIComponent(canCreateDiscussions["player"]["scenes"]["scene"]["link"]["@href"]);
630 _window_link_ = canCreateDiscussions["player"]["scenes"]["scene"]["link"]["@window"];
631 _time_ = canCreateDiscussions["player"]["scenes"]["scene"]["link"]["@delay"];
632 _voice_status_ = canCreateDiscussions["player"]["scenes"]["scene"]["link"]["@auto"];
633 _skin_click_status_ = canCreateDiscussions["player"]["scenes"]["scene"]["link"]["@button"];
634 if (_link_ != "" || _link_ != null) {
635 /** @type {string} */
636 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_linkUrl_var"] = _link_;
637 }
638 if (_window_link_ != "" || _window_link_ != null) {
639 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_linkWindow_var"] = _window_link_;
640 }
641 if (_time_ != "" || _time_ != null) {
642 /** @type {number} */
643 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_linkPage_After_Time_var"] = parseInt(_time_) * parseInt(1E3);
644 }
645 if (_voice_status_ != "" || _voice_status_ != null) {
646 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_linkPage_VoiceStatus_var"] = _voice_status_;
647 }
648 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_click_status"] = _skin_click_status_;
649 }
650 if (canCreateDiscussions["player"]["scenes"]["scene"]["playbackdays"]) {
651 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_back_limit_days"] = canCreateDiscussions["player"]["scenes"]["scene"]["playbackdays"];
652 }
653 if (canCreateDiscussions["player"]["scenes"]["scene"]["playbacklimit"]) {
654 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_back_limit_counter"] = canCreateDiscussions["player"]["scenes"]["scene"]["playbacklimit"];
655 }
656 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_arr"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_arr"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["type"] == "text" && vhsshtml5_mobileDetection == 1) {
657 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_arr"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["text"];
658 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_voice_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_arr"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["voice"];
659 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lang_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_arr"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["lang"];
660 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_arr"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["engine"];
661 }
662 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_final_speech_text"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"];
663 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_final_speech_url"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"];
664 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"] != "") {
665 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_current_speech_status"] = "text";
666 } else {
667 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] != "") {
668 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_current_speech_status"] = "audio";
669 }
670 }
671 if (canCreateDiscussions["player"]["scenes"]["scene"] && vhsshtml5_mobileDetection == 0) {
672 if (canCreateDiscussions["player"]["scenes"]["scene"]["length"] > 0) {
673 if (canCreateDiscussions["player"]["scenes"]["scene"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["audio"]) {
674 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] = canCreateDiscussions["player"]["scenes"]["scene"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["audio"]["play"];
675 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_id"] = canCreateDiscussions["player"]["scenes"]["scene"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["audio"]["id"];
676 }
677 } else {
678 if (canCreateDiscussions["player"]["scenes"]["scene"]["audio"]) {
679 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] = canCreateDiscussions["player"]["scenes"]["scene"]["audio"]["play"];
680 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_id"] = canCreateDiscussions["player"]["scenes"]["scene"]["audio"]["id"];
681 }
682 }
683 }
684 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_charUrl_var"] != "") {
685 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["width"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px";
686 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["overflow"] = "hidden";
687 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["height"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px";
688 var _0xfa08x2e = document["getElementById"]("_noImg_");
689 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
690 document["getElementById"]("_noImg_")["style"]["width"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px";
691 document["getElementById"]("_noImg_")["style"]["height"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px";
692 }
693 var _0xfa08x2f = "";
694 _0xfa08x2f = _0xfa08x2f + ("<link href=\"" + vhsshtml5_main_url + "css/style.css?id=1\" rel=\"stylesheet\">");
695 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"] = "url('" + _0xfa08x2c + "')";
696 if (vhsshtml5_osStatus == 1 && vhsshtml5_osDisplayPos) {
697 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["width"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px";
698 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["parentNode"]["style"]["position"] = "relative";
699 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["position"] = "fixed";
700 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["bottom"] = "0px";
701 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["right"] = "0px";
702 var symb = vhsshtml5_osDisplayPos;
703 /** @type {null} */
704 var tmp = null;
705 if (vhsshtml5_osDisplayPos["indexOf"]("~") > -1) {
706 var dummy = vhsshtml5_osDisplayPos["split"]("~");
707 symb = dummy[vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]];
708 tmp = dummy[1];
709 }
710 window["addEventListener"]("resize", function() {
711 if (symb, symb == "L") {
712 _0xfa08x11 = "left";
713 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["left"] = vhsshtml5_setCharacterPositionFB(tmp);
714 } else {
715 if (symb == "R") {
716 _0xfa08x11 = "right";
717 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["right"] = vhsshtml5_setCharacterPositionFB(tmp);
718 }
719 }
720 });
721 var _0xfa08x11 = "right";
722 if (symb == "L") {
723 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["left"] = vhsshtml5_setCharacterPositionFB(tmp);
724 } else {
725 if (symb == "R") {
726 _0xfa08x11 = "right";
727 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["right"] = vhsshtml5_setCharacterPositionFB(tmp);
728 }
729 }
730 _0xfa08x2f = _0xfa08x2f + ("<div id=\"_noImg_\" style=\"display:none; width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px;\">");
731 _0xfa08x2f = _0xfa08x2f + "<div style=\"height: 100%; width: 100%; vertical-align: middle; display: table-cell; text-align: center;\">";
732 _0xfa08x2f = _0xfa08x2f + "<a href=\"javascript:;\" id=\"_displayOverlay_\">";
733 _0xfa08x2f = _0xfa08x2f + ("<img style=\"width:50px;height:50px;display:table-cell;\" src=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_domain_vhss_url"] + vhssHTML_scenes[vhsshtml5_scenenumber]["overlay_minimize_thumb"] + "\" title=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["overlay_minimize_tooltip"] + "\" alt=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["overlay_minimize_tooltip"] + "\">");
734 _0xfa08x2f = _0xfa08x2f + "</a></div></div>";
735 if (vhsshtml5_overlayPageLoadStatus == -1) {
736 /** @type {number} */
737 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_status"] = 0;
738 _0xfa08x2f = _0xfa08x2f + ("<div class=\"main_container\" id=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"] + "\" style=\"display:none;margin:auto !important;width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px;background-image:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"] + ";background-position:center center;background-repeat:no-repeat;float:" + _0xfa08x11 + "; background-color : " + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgcolor_var"] + "\">");
739 } else {
740 _0xfa08x2f = _0xfa08x2f + ("<div class=\"main_container\" id=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"] + "\" style=\"margin:auto !important;width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px;background-image:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"] + ";background-position:center center;background-repeat:no-repeat;float:" + _0xfa08x11 + "; background-color : " + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgcolor_var"] + "\">");
741 }
742 } else {
743 _0xfa08x2f = _0xfa08x2f + ("<div class=\"main_container\" id=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"] + "\" style=\"margin:auto !important;width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px;background-image:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"] + ";background-position:center center;background-repeat:no-repeat; background-color : " + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgcolor_var"] + "\">");
744 }
745 _0xfa08x2f = _0xfa08x2f + "<div id=\"logo_status\" class=\"logo\">";
746 if (_0xfa08x2d != "") {
747 _0xfa08x2f = _0xfa08x2f + ("<img src=\"" + _0xfa08x2d + "\" />");
748 }
749 _0xfa08x2f = _0xfa08x2f + "</div>";
750 canvasWidth = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"];
751 canvasHeight = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"];
752 /** @type {number} */
753 var page_num = parseInt(canvasWidth);
754 /** @type {number} */
755 var bottomElementHeight = parseInt(page_num) * parseInt(9) / parseInt(100);
756 /** @type {number} */
757 bottomElementHeight = parseInt(bottomElementHeight) * parseInt(2) - parseInt(4);
758 bottomElementHeight = calculateButtonsDimenssionsfb(canvasHeight);
759 /** @type {number} */
760 var _0xfa08x32 = parseInt(bottomElementHeight) + parseInt(3);
761 _0xfa08x2f = _0xfa08x2f + ("<div class=\"character\" id=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"] + "\" style=\"line-height:0px !important;bottom:0px;width:" + canvasWidth + "px;height:" + canvasHeight + "px\">");
762 _0xfa08x2f = _0xfa08x2f + ("<canvas id=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"] + "\" width=\"" + canvasWidth + "\" height=\"" + canvasHeight + "\" style=\"margin-right:0px;margin-left:0px;padding-right:0px;padding-left:0px;\">");
763 _0xfa08x2f = _0xfa08x2f + "</canvas>";
764 _0xfa08x2f = _0xfa08x2f + "</div>";
765 /** @type {number} */
766 var _0xfa08x33 = parseInt(canvasHeight) / parseInt(2);
767 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
768 _0xfa08x2f = _0xfa08x2f + ("<div id=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "\" class=\"vhsshtml5_button_holder\" style=\"bottom:" + _0xfa08x33 + "px;\">");
769 _0xfa08x2f = _0xfa08x2f + ("<div class=\"button_bg\" style=\"border-radius:" + bottomElementHeight + "px;padding:2px 1px 2px 4px;background:rgb(255, 255, 255);background:rgba(255, 255, 255, 0.6) !important;\">");
770 if (_0xfa08x2a == 1) {
771 _0xfa08x2f = _0xfa08x2f + ("<span id=\"_prev\" style=\"width:" + _0xfa08x32 + "px !important;min-width:" + _0xfa08x32 + "px;max-width:" + _0xfa08x32 + "px;height:" + (bottomElementHeight + 1) + "px;\" onmouseover=\"vhsshtml5_updateButtonsImage('_prevImg_','btn_fbprev_hover.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\" onmouseout=\"vhsshtml5_updateButtonsImage('_prevImg_','btn_fbprev.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\">");
772 _0xfa08x2f = _0xfa08x2f + ("<img id=\"_prevImg_\" style=\"width:" + bottomElementHeight + "px;min-width:" + bottomElementHeight + "px;max-width:" + bottomElementHeight + "px;height:" + bottomElementHeight + "px;\" src=\"" + vhsshtml5_main_url + "img/btn_fbprev.png\" alt=\"Prev\"/>");
773 _0xfa08x2f = _0xfa08x2f + "</span>";
774 }
775 _0xfa08x2f = _0xfa08x2f + ("<span id=\"_play\" style=\"width:" + _0xfa08x32 + "px;min-width:" + _0xfa08x32 + "px;max-width:" + _0xfa08x32 + "px;height:" + (bottomElementHeight + 1) + "px;\" onmouseover=\"vhsshtml5_updateButtonsImage('_playImg_','btn_play_hover.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\" onmouseout=\"vhsshtml5_updateButtonsImage('_playImg_','btn_play.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\">");
776 _0xfa08x2f = _0xfa08x2f + ("<img id=\"_playImg_\" style=\"width:" + bottomElementHeight + "px;min-width:" + bottomElementHeight + "px;max-width:" + bottomElementHeight + "px;height:" + bottomElementHeight + "px;\" src=\"" + vhsshtml5_main_url + "img/btn_play.png\" alt=\"play\"/>");
777 _0xfa08x2f = _0xfa08x2f + "</span>";
778 _0xfa08x2f = _0xfa08x2f + ("<span id=\"_resume\" style=\"width:" + _0xfa08x32 + "px;min-width:" + _0xfa08x32 + "px;max-width:" + _0xfa08x32 + "px;height:" + (bottomElementHeight + 1) + "px;\" onmouseover=\"vhsshtml5_updateButtonsImage('_resumeImg_','btn_play_hover.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\" onmouseout=\"vhsshtml5_updateButtonsImage('_resumeImg_','btn_play.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\">");
779 _0xfa08x2f = _0xfa08x2f + ("<img id=\"_resumeImg_\" style=\"width:" + bottomElementHeight + "px;min-width:" + bottomElementHeight + "px;max-width:" + bottomElementHeight + "px;height:" + bottomElementHeight + "px;\" src=\"" + vhsshtml5_main_url + "img/btn_play.png\" alt=\"resume\"/>");
780 _0xfa08x2f = _0xfa08x2f + "</span>";
781 _0xfa08x2f = _0xfa08x2f + ("<span id=\"_pause\" style=\"width:" + _0xfa08x32 + "px;min-width:" + _0xfa08x32 + "px;max-width:" + _0xfa08x32 + "px;height:" + (bottomElementHeight + 1) + "px;\" onmouseover=\"vhsshtml5_updateButtonsImage('_pauseImg_','btn_pause_hover.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\" onmouseout=\"vhsshtml5_updateButtonsImage('_pauseImg_','btn_pause.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\">");
782 _0xfa08x2f = _0xfa08x2f + ("<img id=\"_pauseImg_\" style=\"width:" + bottomElementHeight + "px;min-width:" + bottomElementHeight + "px;max-width:" + bottomElementHeight + "px;height:" + bottomElementHeight + "px;\" src=\"" + vhsshtml5_main_url + "img/btn_pause.png\" alt=\"play\"/>");
783 _0xfa08x2f = _0xfa08x2f + "</span>";
784 _0xfa08x2f = _0xfa08x2f + ("<span style=\"display:inline-block;width:" + _0xfa08x32 + "px;min-width:" + _0xfa08x32 + "px;max-width:" + _0xfa08x32 + "px;height:" + (bottomElementHeight + 1) + "px;\" id=\"_replay\" onmouseover=\"vhsshtml5_updateButtonsImage('_replayImg_','btn_replay_hover.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\" onmouseout=\"vhsshtml5_updateButtonsImage('_replayImg_','btn_replay.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\">");
785 _0xfa08x2f = _0xfa08x2f + ("<img id=\"_replayImg_\" style=\"width:" + bottomElementHeight + "px;min-width:" + bottomElementHeight + "px;max-width:" + bottomElementHeight + "px;height:" + bottomElementHeight + "px;\" src=\"" + vhsshtml5_main_url + "img/btn_replay.png\" alt=\"replay\"/>");
786 _0xfa08x2f = _0xfa08x2f + "</span>";
787 if (_0xfa08x2a == 1) {
788 _0xfa08x2f = _0xfa08x2f + ("<span id=\"_next\" style=\"width:" + _0xfa08x32 + "px;min-width:" + _0xfa08x32 + "px;max-width:" + _0xfa08x32 + "px;height:" + (bottomElementHeight + 1) + "px;\" onmouseover=\"vhsshtml5_updateButtonsImage('_nextImg_','btn_fbnext_hover.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\" onmouseout=\"vhsshtml5_updateButtonsImage('_nextImg_','btn_fbnext.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\">");
789 _0xfa08x2f = _0xfa08x2f + ("<img id=\"_nextImg_\" style=\"width:" + bottomElementHeight + "px;min-width:" + bottomElementHeight + "px;max-width:" + bottomElementHeight + "px;height:" + bottomElementHeight + "px;\" src=\"" + vhsshtml5_main_url + "img/btn_fbnext.png\" alt=\"Next\"/>");
790 _0xfa08x2f = _0xfa08x2f + "</span>";
791 }
792 if (vhsshtml5_osStatus == 1) {
793 _0xfa08x2f = _0xfa08x2f + ("<span style=\"width:" + _0xfa08x32 + "px;min-width:" + _0xfa08x32 + "px;max-width:" + _0xfa08x32 + "px;height:" + (bottomElementHeight + 1) + "px;background:none;border:medium none;\" onmouseover=\"vhsshtml5_updateButtonsImage('_close_crossImg_','btn_cross_hover.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\" onmouseout=\"vhsshtml5_updateButtonsImage('_close_crossImg_','btn_cross.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')\" onclick=\"overlayClose()\" id=\"_close_cross\" style=\"background: none;border: none;\">");
794 _0xfa08x2f = _0xfa08x2f + ("<img id=\"_close_crossImg_\" style=\"width:" + bottomElementHeight + "px;min-width:" + bottomElementHeight + "px;max-width:" + bottomElementHeight + "px;height:" + bottomElementHeight + "px;\" src=\"" + vhsshtml5_main_url + "img/btn_cross.png\" alt=\"close\">");
795 _0xfa08x2f = _0xfa08x2f + "</span>";
796 }
797 _0xfa08x2f = _0xfa08x2f + "</div>";
798 _0xfa08x2f = _0xfa08x2f + "</div>";
799 }
800 _0xfa08x2f = _0xfa08x2f + ("<div id=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"] + "\" class=\"waiting_logo\" style=\"width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px;\">");
801 /** @type {number} */
802 var _0xfa08x34 = parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"]) - parseInt(100);
803 _0xfa08x2f = _0xfa08x2f + ("<div class=\"waiting_logo_inner\" style=\"width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + _0xfa08x34 + "px;\">");
804 _0xfa08x2f = _0xfa08x2f + ("<img src=\"" + vhsshtml5_main_url + "img/loader.gif\" alt=\"Loading..\" style=\"display:inline;\" />");
805 _0xfa08x2f = _0xfa08x2f + "</div>";
806 _0xfa08x2f = _0xfa08x2f + "</div>";
807 _0xfa08x2f = _0xfa08x2f + ("<div id=\"sp-model\" class=\"sp-model se-returnError\" style=\"display: none;\">\n <div class=\"sp-model-content\" style=\"max-width:240px;\">\n <div class=\"sp-model-inner\">\n <div id=\"sp-innerChild\">\n <div id=\"modal-body-inner\">\n <span class=\"sp-close\" popup-type=\"small\" onclick=\"vhss_spClosePopUp();\">\n <img src=\"" + vhsshtml5_main_url + "/img/btn_pop_x.png\" alt=\"\" title=\"close\">\n </span>\n <div id=\"sp-modelbody-content\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>");
808 _0xfa08x2f = _0xfa08x2f + "</div>";
809 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["innerHTML"] = _0xfa08x2f;
810 if (document["getElementById"]("_displayOverlay_")) {
811 document["getElementById"]("_displayOverlay_")["removeEventListener"]("click", vhsshtml5_displayOverlay);
812 document["getElementById"]("_displayOverlay_")["addEventListener"]("click", vhsshtml5_displayOverlay);
813 }
814 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "FB3D") {
815 if (vhsshtml5_if_filealreayaddedd(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/fb/SitepalFullBodyLiteJS3_R.js")) {
816 /** @type {number} */
817 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] = 1;
818 } else {
819 /** @type {number} */
820 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] = 0;
821 }
822 } else {
823 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "3d") {
824 if (vhsshtml5_if_filealreayaddedd(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/3d/SitePal3DJS_R.js")) {
825 /** @type {number} */
826 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] = 1;
827 } else {
828 /** @type {number} */
829 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] = 0;
830 }
831 } else {
832 if (vhsshtml5_if_filealreayaddedd(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/2d/VHSSEngine_R.js")) {
833 /** @type {number} */
834 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] = 1;
835 } else {
836 /** @type {number} */
837 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] = 0;
838 }
839 }
840 }
841 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_loadshowvar"] == 1 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] == 1) {
842 vhsshtml5_custom_jsLoaded();
843 } else {
844 if (!vhsshtml5_if_filealreayaddedd(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/fb/SitepalFullBodyLiteJS3_R.js")) {
845 vhsshtml5_loadScript(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/fb/SitepalFullBodyLiteJS3_R.js", vhsshtml5_loadPlayerVersionFile);
846 } else {
847 vhsshtml5_loadPlayerVersionFile();
848 }
849 }
850 } else {
851 /** @type {number} */
852 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_disableSpeech_"] = 1;
853 }
854 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"]["indexOf"]("load") >= 0 && (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_id"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_id"] != undefined) && (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_status"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_status"] == 1)) {
855 /** @type {number} */
856 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_onloadaudio"] = 1;
857 }
858}
859/**
860 * @param {number} courseId
861 * @param {?} canCreateDiscussions
862 * @return {undefined}
863 */
864function vhsshtml5_load2D3DHTMLContent(courseId, canCreateDiscussions) {
865 /** @type {number} */
866 var _0xfa08x2a = 0;
867 if (canCreateDiscussions["player"]["scenes"]["scene"]["length"] > 0 && canCreateDiscussions["player"]["params"]["displayNextPrevious"]) {
868 _0xfa08x2a = canCreateDiscussions["player"]["params"]["displayNextPrevious"];
869 }
870 var tiledImageBRs = canCreateDiscussions["player"]["params"];
871 var _0xfa08x36 = canCreateDiscussions["player"]["scenes"];
872 var fltScore = "";
873 var lerpstart_scale = "";
874 var availableBalanceFiat = "";
875 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_tts_url"] = tiledImageBRs["domain_tts"];
876 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_tts_url"];
877 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_tts_url"]["replace"]("http://", "https://");
878 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"]["replace"]("cache-vs", "cache-a");
879 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_domain_vhss_url"] = tiledImageBRs["acclrsrvr"];
880 /** @type {number} */
881 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_status"] = courseId;
882 /** @type {number} */
883 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_counterStatus_"] = 1;
884 /** @type {number} */
885 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_disableSpeech_"] = 0;
886 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickStatus"] = "";
887 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_currentString"] = "refresh";
888 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] = "";
889 var _0xfa08x3a = "";
890 /** @type {!Array} */
891 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"] = new Array;
892 /** @type {!Array} */
893 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"] = new Array;
894 engineUrl = tiledImageBRs["oh_base_url"];
895 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_domain"] = tiledImageBRs["domain_tts"];
896 var origNewPath = tiledImageBRs["oh_base_url"];
897 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] = tiledImageBRs["content_base_url"];
898 /** @type {!Array} */
899 var exclusion = [];
900 /** @type {!Array} */
901 var options = [];
902 /** @type {!Array} */
903 var params = [];
904 var _0xfa08x3f = "";
905 _0xfa08x3a = "";
906 /** @type {number} */
907 var _0xfa08x40 = 1;
908 /** @type {number} */
909 var _0xfa08x41 = 7;
910 if (canCreateDiscussions["player"]["params"]["volume"]) {
911 _0xfa08x41 = canCreateDiscussions["player"]["params"]["volume"];
912 }
913 if (canCreateDiscussions["player"]["params"]["sbdelay"] && canCreateDiscussions["player"]["params"]["sbdelay"] > 0) {
914 /** @type {number} */
915 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_loading_img_delay_time_"] = parseInt(canCreateDiscussions["player"]["params"]["sbdelay"]) * parseInt(1E3);
916 }
917 if (canCreateDiscussions["player"]["params"] && canCreateDiscussions["player"]["params"]["clientApi"]) {
918 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] = canCreateDiscussions["player"]["params"]["clientApi"];
919 }
920 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_bgName"] = "";
921 if (typeof canCreateDiscussions["player"]["scenes"]["scene"] != "undefined" && canCreateDiscussions["player"]["scenes"]["scene"]["length"] > 0) {
922 /** @type {!Array} */
923 exclusion = [];
924 var d = canCreateDiscussions["player"]["assets"]["avatarHTML5"];
925 if (canCreateDiscussions["player"]["assets"]["avatarHTML5"] && canCreateDiscussions["player"]["assets"]["avatar"]) {
926 /** @type {number} */
927 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_both2D3D"] = 1;
928 }
929 if (typeof d != "undefined") {
930 if (d["length"] > 0) {
931 /** @type {number} */
932 var key = 0;
933 for (; key < d["length"]; key++) {
934 /** @type {!Array} */
935 var value = new Array;
936 value["current_show"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_currentString"];
937 value["id"] = d[key]["@id"];
938 value["path"] = origNewPath + d[key]["$"];
939 value["_char_"] = d[key]["$"];
940 value["engine"] = d[key]["@engine"];
941 value["type"] = d[key]["@type"];
942 /** @type {!Array} */
943 exclusion[key] = value;
944 }
945 } else {
946 /** @type {!Array} */
947 value = new Array;
948 value["current_show"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_currentString"];
949 value["id"] = d["@id"];
950 value["path"] = origNewPath + d["$"];
951 value["_char_"] = d["$"];
952 value["engine"] = d["@engine"];
953 value["type"] = d["@type"];
954 /** @type {!Array} */
955 exclusion[0] = value;
956 }
957 }
958 if (canCreateDiscussions["player"]["assets"]["avatar"]) {
959 if (exclusion["length"] > 0) {
960 var i = exclusion["length"];
961 } else {
962 /** @type {number} */
963 i = 0;
964 }
965 d = canCreateDiscussions["player"]["assets"]["avatar"];
966 if (d["length"]) {
967 /** @type {number} */
968 key = 0;
969 for (; key < d["length"]; key++) {
970 /** @type {!Array} */
971 value = new Array;
972 value["current_show"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_currentString"];
973 value["id"] = d[key]["@id"];
974 value["path"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + d[key]["$"];
975 value["_char_"] = d[key]["$"];
976 value["engine"] = d[key]["@engine"];
977 value["type"] = d[key]["@type"];
978 /** @type {!Array} */
979 exclusion[i] = value;
980 i++;
981 }
982 } else {
983 /** @type {!Array} */
984 value = new Array;
985 value["current_show"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_currentString"];
986 value["id"] = d["@id"];
987 value["path"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + d["$"];
988 value["_char_"] = d["$"];
989 value["engine"] = d["@engine"];
990 value["type"] = d["@type"];
991 /** @type {!Array} */
992 exclusion[i] = value;
993 }
994 }
995 if (canCreateDiscussions["player"]["scenes"]["scene"]["length"] > 0) {
996 if (canCreateDiscussions["player"]["assets"]["audio"]) {
997 var d = canCreateDiscussions["player"]["assets"]["audio"];
998 if (d["length"]) {
999 /** @type {number} */
1000 key = 0;
1001 for (; key < d["length"]; key++) {
1002 /** @type {!Array} */
1003 value = new Array;
1004 value["id"] = d[key]["@id"];
1005 value["path"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + d[key]["$"];
1006 /** @type {!Array} */
1007 options[key] = value;
1008 }
1009 } else {
1010 /** @type {!Array} */
1011 value = new Array;
1012 value["id"] = d["@id"];
1013 value["path"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + d["$"];
1014 /** @type {!Array} */
1015 options[0] = value;
1016 _0xfa08x3a = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + d["$"];
1017 if (_0xfa08x3a) {
1018 /** @type {number} */
1019 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 0;
1020 } else {
1021 /** @type {number} */
1022 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 1;
1023 }
1024 }
1025 } else {
1026 /** @type {number} */
1027 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 1;
1028 }
1029 }
1030 /** @type {!Array} */
1031 params = [];
1032 if (canCreateDiscussions["player"]["assets"]["bg"]) {
1033 var d = canCreateDiscussions["player"]["assets"]["bg"];
1034 if (d["length"]) {
1035 /** @type {number} */
1036 key = 0;
1037 for (; key < d["length"]; key++) {
1038 /** @type {!Array} */
1039 value = new Array;
1040 value["id"] = d[key]["@id"];
1041 value["path"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + d[key]["$"];
1042 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_bgName"] = d[key]["@name"];
1043 /** @type {!Array} */
1044 params[key] = value;
1045 }
1046 } else {
1047 /** @type {!Array} */
1048 value = new Array;
1049 value["id"] = d["@id"];
1050 value["path"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + d["$"];
1051 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_bgName"] = d["@name"];
1052 /** @type {!Array} */
1053 params[0] = value;
1054 }
1055 }
1056 var a = canCreateDiscussions["player"]["scenes"]["scene"];
1057 if (a["length"]) {
1058 /** @type {!Array} */
1059 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"] = [];
1060 /** @type {number} */
1061 key = 0;
1062 for (; key < a["length"]; key++) {
1063 /** @type {!Array} */
1064 value = new Array;
1065 if (a[key]["autoadv"]) {
1066 /** @type {number} */
1067 value["_delay_time_"] = parseInt(a[key]["autoadv"]) * parseInt(1E3);
1068 }
1069 if (a[key]["mouse"]) {
1070 /** @type {number} */
1071 value["cursor_status"] = parseInt(a[key]["mouse"]);
1072 }
1073 /** @type {number} */
1074 var i = 0;
1075 for (; i < exclusion["length"]; i++) {
1076 if (exclusion[i]["id"] == a[key]["avatar"]["id"]) {
1077 value["current_show"] = exclusion[i]["current_show"];
1078 var _0xfa08x49 = a[key]["avatar"]["visible"];
1079 if (_0xfa08x49 == true || _0xfa08x49 == "true") {
1080 value["char"] = exclusion[i]["path"];
1081 value["_char_"] = exclusion[i]["_char_"];
1082 value["engine"] = exclusion[i]["engine"];
1083 value["_char_type_"] = exclusion[i]["type"];
1084 } else {
1085 value["_char_type_"] = "html5";
1086 }
1087 }
1088 }
1089 /** @type {number} */
1090 i = 0;
1091 for (; i < options["length"]; i++) {
1092 if (typeof a[key]["audio"]["id"] !== "undefined") {
1093 var command_codes = a[key]["audio"]["id"];
1094 var data = options[i]["id"];
1095 if (command_codes["indexOf"](data) > -1) {
1096 if (key == vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]) {
1097 _0xfa08x3a = options[i]["path"];
1098 if (_0xfa08x3a) {
1099 /** @type {number} */
1100 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 0;
1101 } else {
1102 /** @type {number} */
1103 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 1;
1104 }
1105 }
1106 value["mp3"] = options[i]["path"];
1107 }
1108 }
1109 }
1110 /** @type {number} */
1111 i = 0;
1112 for (; i < params["length"]; i++) {
1113 if (a[key]["bg"]) {
1114 if (params[i]["id"] == a[key]["bg"]["id"]) {
1115 value["background"] = params[i]["path"];
1116 }
1117 } else {
1118 value["background"] = "";
1119 }
1120 }
1121 if (a[key]["avatarHTML5"]) {
1122 value["hostx"] = a[key]["avatarHTML5"]["x"];
1123 value["hosty"] = a[key]["avatarHTML5"]["y"];
1124 value["hostscale"] = a[key]["avatarHTML5"]["scale"];
1125 } else {
1126 value["hostx"] = a[key]["avatar"]["x"];
1127 value["hosty"] = a[key]["avatar"]["y"];
1128 value["hostscale"] = a[key]["avatar"]["scale"];
1129 }
1130 if (a[key]["avatar"]["expression"]) {
1131 value["expression"] = a[key]["avatar"]["expression"]["$"];
1132 value["expression_amp"] = a[key]["avatar"]["expression"]["@amp"];
1133 }
1134 if (a[key]["audio"]["play"]) {
1135 value["play"] = a[key]["audio"]["play"];
1136 } else {
1137 value["play"] = "";
1138 }
1139 /** @type {number} */
1140 value["current_index"] = key;
1141 value["scene_id"] = a[key]["id"];
1142 if (a[key]["loopvideo"]) {
1143 value["loopvideo"] = a[key]["loopvideo"];
1144 }
1145 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sl_var"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sl_var"] > 0 && value["scene_id"] == vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sl_var"]) {
1146 /** @type {!Array} */
1147 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][0] = value;
1148 /** @type {!Array} */
1149 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][0] = value;
1150 } else {
1151 /** @type {!Array} */
1152 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][key] = value;
1153 /** @type {!Array} */
1154 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][key] = value;
1155 }
1156 }
1157 }
1158 fltScore = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["hostx"];
1159 lerpstart_scale = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["hosty"];
1160 availableBalanceFiat = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["hostscale"];
1161 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["expression"]) {
1162 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["expression"];
1163 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression_amp"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["expression_amp"];
1164 }
1165 var baseNewPath = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["char"];
1166 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["_char_type_"];
1167 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prevCharUrl_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["loopvideo"];
1168 _prevBgUrl_ = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["background"];
1169 _0xfa08x3f = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["_char_"];
1170 var _0xfa08x4d = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["engine"];
1171 var validationVM = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["background"];
1172 var _0xfa08x4f = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["play"];
1173 var _0xfa08x50 = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["id"];
1174 vhss_loopAutoPlayVid = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"]]["loopvideo"];
1175 var jiveUrl = "";
1176 var _0xfa08x52 = "";
1177 var page_num = "";
1178 var _0xfa08x54 = "";
1179 var _0xfa08x55 = "";
1180 var _0xfa08x56 = canCreateDiscussions["player"]["scenes"]["scene"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["mouse"];
1181 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"]["length"] > 1) {
1182 /** @type {number} */
1183 _0xfa08x40 = 0;
1184 }
1185 } else {
1186 if (typeof canCreateDiscussions["player"]["assets"]["avatarHTML5"] != "undefined") {
1187 baseNewPath = origNewPath + canCreateDiscussions["player"]["assets"]["avatarHTML5"]["$"];
1188 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prevCharUrl_"] = origNewPath + canCreateDiscussions["player"]["assets"]["avatarHTML5"]["$"];
1189 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] = canCreateDiscussions["player"]["assets"]["avatarHTML5"]["@type"];
1190 if (canCreateDiscussions["player"]["assets"]["bg"]) {
1191 _prevBgUrl_ = origNewPath + canCreateDiscussions["player"]["assets"]["bg"]["$"];
1192 } else {
1193 _prevBgUrl_ = "";
1194 }
1195 _0xfa08x3f = canCreateDiscussions["player"]["assets"]["avatarHTML5"]["$"];
1196 _0xfa08x4d = canCreateDiscussions["player"]["assets"]["avatarHTML5"]["@engine"];
1197 }
1198 if (typeof canCreateDiscussions["player"]["assets"]["avatar"] != "undefined") {
1199 if (canCreateDiscussions["player"]["assets"]["avatar"]["@type"] == "3d") {
1200 baseNewPath = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + canCreateDiscussions["player"]["assets"]["avatar"]["$"];
1201 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prevCharUrl_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + canCreateDiscussions["player"]["assets"]["avatar"]["$"];
1202 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] = canCreateDiscussions["player"]["assets"]["avatar"]["@type"];
1203 if (canCreateDiscussions["player"]["assets"]["bg"]) {
1204 _prevBgUrl_ = origNewPath + canCreateDiscussions["player"]["assets"]["bg"]["$"];
1205 } else {
1206 _prevBgUrl_ = "";
1207 }
1208 _0xfa08x3f = canCreateDiscussions["player"]["assets"]["avatar"]["$"];
1209 _0xfa08x4d = canCreateDiscussions["player"]["assets"]["avatar"]["@engine"];
1210 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] = "3d";
1211 fltScore = canCreateDiscussions["player"]["scenes"]["scene"]["avatarHTML5"]["x"];
1212 lerpstart_scale = canCreateDiscussions["player"]["scenes"]["scene"]["avatarHTML5"]["y"];
1213 availableBalanceFiat = canCreateDiscussions["player"]["scenes"]["scene"]["avatarHTML5"]["scale"];
1214 }
1215 }
1216 if (canCreateDiscussions["player"]["assets"]["audio"]) {
1217 if (canCreateDiscussions["player"]["assets"]["audio"]["length"] > 0) {
1218 /** @type {number} */
1219 var number = parseInt(canCreateDiscussions["player"]["assets"]["audio"]["length"]);
1220 var indexLookupKey = Math["floor"](Math["random"]() * number);
1221 _0xfa08x3a = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + canCreateDiscussions["player"]["assets"]["audio"][indexLookupKey]["$"];
1222 if (_0xfa08x3a) {
1223 /** @type {number} */
1224 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 0;
1225 } else {
1226 /** @type {number} */
1227 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 1;
1228 }
1229 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_audioName"] = canCreateDiscussions["player"]["assets"]["audio"][indexLookupKey]["@name"];
1230 } else {
1231 _0xfa08x3a = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + canCreateDiscussions["player"]["assets"]["audio"]["$"];
1232 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_audioName"] = canCreateDiscussions["player"]["assets"]["audio"]["@name"];
1233 if (_0xfa08x3a) {
1234 /** @type {number} */
1235 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 0;
1236 } else {
1237 /** @type {number} */
1238 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 1;
1239 }
1240 }
1241 } else {
1242 /** @type {number} */
1243 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 1;
1244 }
1245 if (canCreateDiscussions["player"]["scenes"]["scene"]["loopvideo"] && canCreateDiscussions["player"]["scenes"]["scene"]["loopvideo"] != "") {
1246 vhss_loopAutoPlayVid = canCreateDiscussions["player"]["scenes"]["scene"]["loopvideo"];
1247 }
1248 if (canCreateDiscussions["player"]["assets"]["bg"]) {
1249 if (canCreateDiscussions["player"]["assets"]["bg"]["length"] > 0) {
1250 /** @type {number} */
1251 number = parseInt(canCreateDiscussions["player"]["assets"]["bg"]);
1252 indexLookupKey = Math["floor"](Math["random"]() * number);
1253 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_bgName"] = canCreateDiscussions["player"]["assets"]["bg"]["@name"];
1254 } else {
1255 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_bgName"] = canCreateDiscussions["player"]["assets"]["bg"]["@name"];
1256 }
1257 }
1258 if (canCreateDiscussions["player"]["assets"]["bg"]) {
1259 /** @type {string} */
1260 var v = decodeURIComponent(canCreateDiscussions["player"]["assets"]["bg"].$);
1261 v["match"](/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/);
1262 if (RegExp["$3"]["indexOf"]("youtu") > -1 || RegExp["$3"]["indexOf"]("vimeo") > -1) {
1263 /** @type {string} */
1264 validationVM = v;
1265 } else {
1266 validationVM = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_content_base_url_"] + canCreateDiscussions["player"]["assets"]["bg"]["$"];
1267 }
1268 } else {
1269 validationVM = "";
1270 }
1271 jiveUrl = "";
1272 _0xfa08x52 = "";
1273 page_num = "";
1274 _0xfa08x54 = "";
1275 _0xfa08x55 = "";
1276 if (canCreateDiscussions["player"]["scenes"]["scene"]["link"]) {
1277 /** @type {string} */
1278 jiveUrl = decodeURIComponent(canCreateDiscussions["player"]["scenes"]["scene"]["link"]["@href"]);
1279 _0xfa08x52 = canCreateDiscussions["player"]["scenes"]["scene"]["link"]["@window"];
1280 page_num = canCreateDiscussions["player"]["scenes"]["scene"]["link"]["@delay"];
1281 _0xfa08x54 = canCreateDiscussions["player"]["scenes"]["scene"]["link"]["@auto"];
1282 _0xfa08x55 = canCreateDiscussions["player"]["scenes"]["scene"]["link"]["@button"];
1283 }
1284 if (canCreateDiscussions["player"]["scenes"]["scene"]["avatar"]) {
1285 fltScore = canCreateDiscussions["player"]["scenes"]["scene"]["avatarHTML5"]["x"];
1286 lerpstart_scale = canCreateDiscussions["player"]["scenes"]["scene"]["avatarHTML5"]["y"];
1287 availableBalanceFiat = canCreateDiscussions["player"]["scenes"]["scene"]["avatarHTML5"]["scale"];
1288 }
1289 _0xfa08x4f = "";
1290 _0xfa08x50 = "";
1291 if (canCreateDiscussions["player"]["scenes"]["scene"]["audio"] && vhsshtml5_mobileDetection == 0) {
1292 if (canCreateDiscussions["player"]["scenes"]["scene"]["audio"]["length"] > 0) {
1293 _0xfa08x4f = canCreateDiscussions["player"]["scenes"]["scene"]["audio"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["play"];
1294 _0xfa08x50 = canCreateDiscussions["player"]["scenes"]["scene"]["audio"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"]]["id"];
1295 } else {
1296 _0xfa08x4f = canCreateDiscussions["player"]["scenes"]["scene"]["audio"]["play"];
1297 _0xfa08x50 = canCreateDiscussions["player"]["scenes"]["scene"]["audio"]["id"];
1298 }
1299 }
1300 _0xfa08x56 = canCreateDiscussions["player"]["scenes"]["scene"]["mouse"];
1301 if (canCreateDiscussions["player"]["scenes"]["scene"]["avatar"]["expression"]) {
1302 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression"] = canCreateDiscussions["player"]["scenes"]["scene"]["avatar"]["expression"]["$"];
1303 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression_amp"] = canCreateDiscussions["player"]["scenes"]["scene"]["avatar"]["expression"]["@amp"];
1304 }
1305 }
1306 var newPath = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_json_url_str"] + "ccs2/vhss/watermarks/voki_watermark.gif";
1307 if (canCreateDiscussions["player"]["assets"]["loader"]) {
1308 var outFile = tiledImageBRs["content_base_url"] + canCreateDiscussions["player"]["assets"]["loader"]["$"];
1309 }
1310 /** @type {number} */
1311 var _0xfa08x5a = 1;
1312 /** @type {number} */
1313 var _0xfa08x5b = 1;
1314 var _0xfa08x5c = "";
1315 var _0xfa08x5d = canCreateDiscussions["player"]["scenes"]["scene"]["playbackdays"];
1316 /** @type {number} */
1317 var currentRelations = 1;
1318 /** @type {number} */
1319 var _0xfa08x5f = 1;
1320 _0xfa08x5c = "";
1321 if (_0xfa08x3f != "") {
1322 /** @type {number} */
1323 var addedRelations = currentRelations;
1324 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"] = _0xfa08x5c;
1325 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"] != "") {
1326 var _0xfa08x2e = document["getElementById"]("audio_l");
1327 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
1328 document["getElementById"]("audio_l")["style"]["display"] = "none";
1329 document["getElementById"]("audio_l2")["style"]["display"] = "none";
1330 }
1331 }
1332 if (jiveUrl != "" || jiveUrl != null) {
1333 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_linkUrl_var"] = jiveUrl;
1334 }
1335 if (_0xfa08x52 != "" || _0xfa08x52 != null) {
1336 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_linkWindow_var"] = _0xfa08x52;
1337 }
1338 if (page_num != "" || page_num != null) {
1339 /** @type {number} */
1340 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_linkPage_After_Time_var"] = parseInt(page_num) * parseInt(1E3);
1341 }
1342 if (_0xfa08x41 != "" || _0xfa08x41 != null) {
1343 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_volume_var"] = _0xfa08x41;
1344 }
1345 if (_0xfa08x54 != "" || _0xfa08x54 != null) {
1346 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_linkPage_VoiceStatus_var"] = _0xfa08x54;
1347 }
1348 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_final_speech_text"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"];
1349 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_final_speech_url"] = _0xfa08x3a;
1350 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"] != "") {
1351 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_current_speech_status"] = "text";
1352 } else {
1353 if (_0xfa08x3a != "") {
1354 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_current_speech_status"] = "audio";
1355 }
1356 }
1357 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_click_status"] = _0xfa08x55;
1358 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cursor_status"] = _0xfa08x56;
1359 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = _0xfa08x3a;
1360 /** @type {number} */
1361 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_voice_var"] = _0xfa08x5a;
1362 /** @type {number} */
1363 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lang_var"] = _0xfa08x5b;
1364 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_var"] = _0xfa08x4d;
1365 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_charUrl_var"] = baseNewPath;
1366 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_background_var"] = validationVM;
1367 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] = _0xfa08x4f;
1368 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_id"] = _0xfa08x50;
1369 var origNewPath = newPath;
1370 var originalOutFile = outFile;
1371 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["width"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px";
1372 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["overflow"] = "hidden";
1373 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["height"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px";
1374 var _0xfa08x2f = "";
1375 _0xfa08x2f = _0xfa08x2f + ("<link href=\"" + vhsshtml5_main_url + "css/style.css?id=1\" rel=\"stylesheet\">");
1376 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"] = "url('" + originalOutFile + "')";
1377 if (addedRelations == 1) {
1378 _0xfa08x2f = _0xfa08x2f + ("<div class=\"main_container\" id=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"] + "\" style=\"margin:auto !important;width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px;background-image:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"] + ";background-position:center center;background-repeat:no-repeat; background-color : " + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgcolor_var"] + "\">");
1379 } else {
1380 _0xfa08x2f = _0xfa08x2f + ("<div class=\"main_container\" id=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"] + "\" style=\"margin:auto !important;width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px;background-color:#DEDDDB;background-position:center center;background-repeat:no-repeat; background-color : " + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgcolor_var"] + "\">");
1381 }
1382 _0xfa08x2f = _0xfa08x2f + "<div id=\"logo_status\" class=\"logo\">";
1383 _0xfa08x2f = _0xfa08x2f + "</div>";
1384 /** @type {number} */
1385 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"] = parseFloat(fltScore);
1386 /** @type {number} */
1387 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostY"] = parseFloat(lerpstart_scale);
1388 /** @type {number} */
1389 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostScale"] = parseFloat(availableBalanceFiat);
1390 canvasWidth = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"];
1391 canvasHeight = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"];
1392 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonsleft"] = vhsshtml5_calculateLeft(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"], canvasWidth);
1393 /** @type {number} */
1394 var glyph_width = parseInt(canvasHeight) - parseInt(16);
1395 /** @type {number} */
1396 var _0xfa08x31 = parseInt(glyph_width) * parseInt(9) / parseInt(100);
1397 _0xfa08x31 = calculateButtonsDimenssions2d3d(canvasHeight);
1398 _0xfa08x2f = _0xfa08x2f + ("<div class=\"character\" id=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"] + "\" style=\"bottom:0px;width:" + canvasWidth + "px;height:" + canvasHeight + "px\">");
1399 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_threeD_width"] = canvasWidth;
1400 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_threeD_height"] = canvasHeight;
1401 _0xfa08x2f = _0xfa08x2f + "</div>";
1402 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
1403 _0xfa08x2f = _0xfa08x2f + ("<div id=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "\" class=\"vhsshtml5_button_holder\">");
1404 _0xfa08x2f = _0xfa08x2f + ("<div class=\"button_bg\" style=\"border-radius: " + _0xfa08x31 + "px;left: " + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonsleft"] + "px; padding: 3px 3px; background: rgba(0, 0, 0, 0.4) none repeat scroll 0 0;\">");
1405 if (_0xfa08x2a == 1) {
1406 _0xfa08x2f = _0xfa08x2f + "<span id=\"_prev\">";
1407 _0xfa08x2f = _0xfa08x2f + ("<img style=\"width:" + _0xfa08x31 + "px;min-width:" + _0xfa08x31 + "px;max-width:" + _0xfa08x31 + "px;height:" + _0xfa08x31 + "px;\" src=\"" + vhsshtml5_main_url + "img/btn_prev.png\" alt=\"prev\"/>");
1408 _0xfa08x2f = _0xfa08x2f + "</span>";
1409 }
1410 _0xfa08x2f = _0xfa08x2f + "<span id=\"_play\">";
1411 _0xfa08x2f = _0xfa08x2f + ("<img style=\"width:" + _0xfa08x31 + "px;min-width:" + _0xfa08x31 + "px;max-width:" + _0xfa08x31 + "px;height:" + _0xfa08x31 + "px;\" src=\"" + vhsshtml5_main_url + "img/2d3dbtn_play.png\" alt=\"play\"/>");
1412 _0xfa08x2f = _0xfa08x2f + "</span>";
1413 _0xfa08x2f = _0xfa08x2f + "<span id=\"_resume\">";
1414 _0xfa08x2f = _0xfa08x2f + ("<img style=\"width:" + _0xfa08x31 + "px;min-width:" + _0xfa08x31 + "px;max-width:" + _0xfa08x31 + "px;height:" + _0xfa08x31 + "px;\" src=\"" + vhsshtml5_main_url + "img/2d3dbtn_play.png\" alt=\"resume\"/>");
1415 _0xfa08x2f = _0xfa08x2f + "</span>";
1416 _0xfa08x2f = _0xfa08x2f + "<span id=\"_pause\">";
1417 _0xfa08x2f = _0xfa08x2f + ("<img style=\"width:" + _0xfa08x31 + "px;min-width:" + _0xfa08x31 + "px;max-width:" + _0xfa08x31 + "px;height:" + _0xfa08x31 + "px;\" src=\"" + vhsshtml5_main_url + "img/2d3dbtn_pause.png\" alt=\"play\"/>");
1418 _0xfa08x2f = _0xfa08x2f + "</span>";
1419 if (_0xfa08x40 == 1) {
1420 _0xfa08x2f = _0xfa08x2f + "<span id=\"_replay\">";
1421 _0xfa08x2f = _0xfa08x2f + ("<img style=\"width:" + _0xfa08x31 + "px;min-width:" + _0xfa08x31 + "px;max-width:" + _0xfa08x31 + "px;height:" + _0xfa08x31 + "px;\" src=\"" + vhsshtml5_main_url + "img/2d3dbtn_replay.png\" alt=\"replay\"/>");
1422 _0xfa08x2f = _0xfa08x2f + "</span>";
1423 } else {
1424 _0xfa08x2f = _0xfa08x2f + "<span id=\"_replay\"></span>";
1425 }
1426 if (_0xfa08x2a == 1) {
1427 _0xfa08x2f = _0xfa08x2f + "<span id=\"_next\">";
1428 _0xfa08x2f = _0xfa08x2f + ("<img style=\"width:" + _0xfa08x31 + "px;min-width:" + _0xfa08x31 + "px;max-width:" + _0xfa08x31 + "px;height:" + _0xfa08x31 + "px;\" src=\"" + vhsshtml5_main_url + "img/btn_next.png\" alt=\"play\"/>");
1429 _0xfa08x2f = _0xfa08x2f + "</span>";
1430 }
1431 _0xfa08x2f = _0xfa08x2f + "</div>";
1432 _0xfa08x2f = _0xfa08x2f + "</div>";
1433 }
1434 _0xfa08x2f = _0xfa08x2f + ("<div id=\"" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"] + "\" class=\"waiting_logo\" style=\"width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px;\">");
1435 _0xfa08x2f = _0xfa08x2f + ("<div class=\"waiting_logo_inner\" style=\"width:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px;height:" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px;left: " + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonsleft"] + "px;\">");
1436 _0xfa08x2f = _0xfa08x2f + ("<img src=\"" + vhsshtml5_main_url + "img/loader.gif\" alt=\"Loading..\" style=\"display:inline;\" />");
1437 _0xfa08x2f = _0xfa08x2f + "</div>";
1438 _0xfa08x2f = _0xfa08x2f + "</div>";
1439 _0xfa08x2f = _0xfa08x2f + ("<div id=\"sp-model\" class=\"sp-model se-returnError\" style=\"display: none;\">\n <div class=\"sp-model-content\">\n <div class=\"sp-model-inner\">\n <div id=\"sp-innerChild\">\n <div id=\"modal-body-inner\">\n <span class=\"sp-close\" popup-type=\"small\" onclick=\"vhss_spClosePopUp();\">\n <img src=\"" + vhsshtml5_main_url + "/img/btn_pop_x.png\" alt=\"\" title=\"close\">\n </span>\n <div id=\"sp-modelbody-content\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>");
1440 _0xfa08x2f = _0xfa08x2f + "</div>";
1441 _0xfa08x2f = _0xfa08x2f + "<input type=\"hidden\" name=\"current_index\" id=\"current_index\" value=\"0\" >";
1442 _0xfa08x2f = _0xfa08x2f + ("<input type=\"hidden\" name=\"bg_arr_\" id=\"bg_arr_\" value=\"" + params + "\" >");
1443 _0xfa08x2f = _0xfa08x2f + ("<input type=\"hidden\" name=\"mp3_arr_\" id=\"mp3_arr_\" value=\"" + options + "\" >");
1444 _0xfa08x2f = _0xfa08x2f + ("<input type=\"hidden\" name=\"mp3_arr_\" id=\"char_arr_\" value=\"" + exclusion + "\" >");
1445 _0xfa08x2f = _0xfa08x2f + "<input type=\"hidden\" name=\"const_url_\" id=\"const_url_\" value=\"\" >";
1446 _0xfa08x2f = _0xfa08x2f + "<div id=\"vhss_bgVideo\" class=\"vhss_bgVideo\"></div>";
1447 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"]["length"] > 0) {
1448 _0xfa08x2f = _0xfa08x2f + "<div id=\"vhss-bg-cacheImg\" style=\"display:none\">";
1449 var i;
1450 /** @type {number} */
1451 i = 0;
1452 for (; i < 2; i++) {
1453 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"]["length"] > 1) {
1454 _0xfa08x2f = _0xfa08x2f + ("<img src='" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][i]["background"] + "'>");
1455 } else {
1456 _0xfa08x2f = _0xfa08x2f + ("<img src='" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][i]["background"] + "'>");
1457 }
1458 }
1459 _0xfa08x2f = _0xfa08x2f + "</div>";
1460 }
1461 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["innerHTML"] = _0xfa08x2f;
1462 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] == "3d") {
1463 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_threeD_width"] = canvasWidth;
1464 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_threeD_height"] = canvasHeight;
1465 if (!vhssHTML_scenes[vhsshtml5_scenenumber]["hasOwnProperty"]("div3D") || vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] == null) {
1466 var _0xfa08x61 = document["createElement"]("div");
1467 _0xfa08x61["id"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_openfl_content"];
1468 vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] = _0xfa08x61;
1469 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["appendChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"]);
1470 }
1471 } else {
1472 var _0xfa08x62 = document["createElement"]("canvas");
1473 _0xfa08x62["id"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"];
1474 _0xfa08x62["width"] = canvasWidth;
1475 _0xfa08x62["height"] = canvasHeight;
1476 vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] = _0xfa08x62;
1477 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["appendChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"]);
1478 }
1479 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "FB3D") {
1480 if (vhsshtml5_if_filealreayaddedd(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/fb/SitepalFullBodyLiteJS3_R.js")) {
1481 /** @type {number} */
1482 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] = 1;
1483 } else {
1484 /** @type {number} */
1485 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] = 0;
1486 }
1487 } else {
1488 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "3d") {
1489 if (vhsshtml5_if_filealreayaddedd(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/3d/SitePal3DJS_R.js")) {
1490 /** @type {number} */
1491 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] = 1;
1492 } else {
1493 /** @type {number} */
1494 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] = 0;
1495 }
1496 } else {
1497 if (vhsshtml5_if_filealreayaddedd(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/2d/VHSSEngine_R.js")) {
1498 /** @type {number} */
1499 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] = 1;
1500 } else {
1501 /** @type {number} */
1502 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] = 0;
1503 }
1504 }
1505 }
1506 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] == "3d" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_both2D3D"] == 0) {
1507 if (!vhsshtml5_if_filealreayaddedd(vhsshtml5_main_url + "js/webgl.js")) {
1508 vhsshtml5_removejsfile(vhsshtml5_main_url + "js/webgl.js", "js");
1509 vhsshtml5_loadScript(vhsshtml5_main_url + "js/webgl.js", vhsshtml5_webGlLoaded);
1510 } else {
1511 vhsshtml5_webGlLoaded();
1512 }
1513 } else {
1514 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_loadshowvar"] == 1 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_avail"] == 1) {
1515 vhsshtml5_custom_jsLoaded();
1516 } else {
1517 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_both2D3D"] == 1) {
1518 /** @type {number} */
1519 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_both2D3Dcustom"] = 1;
1520 if (!vhsshtml5_if_filealreayaddedd(vhsshtml5_main_url + "js/log4javascript.js")) {
1521 vhsshtml5_loadScript(vhsshtml5_main_url + "js/log4javascript.js", vhsshtml5_load2DEngine);
1522 }
1523 setTimeout(function() {
1524 if (!vhsshtml5_if_filealreayaddedd(vhsshtml5_main_url + "js/webgl.js")) {
1525 /** @type {number} */
1526 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_both2D3Dcustom"] = 0;
1527 vhsshtml5_loadScript(vhsshtml5_main_url + "js/webgl.js", vhsshtml5_webGlLoaded);
1528 }
1529 }, 5E3);
1530 } else {
1531 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] == "3d") {
1532 if (!vhsshtml5_if_filealreayaddedd(vhsshtml5_main_url + "js/webgl.js")) {
1533 vhsshtml5_loadScript(vhsshtml5_main_url + "js/webgl.js", vhsshtml5_webGlLoaded);
1534 } else {
1535 vhsshtml5_custom_jsLoaded();
1536 }
1537 } else {
1538 if (!vhsshtml5_if_filealreayaddedd(vhsshtml5_main_url + "js/log4javascript.js")) {
1539 vhsshtml5_loadScript(vhsshtml5_main_url + "js/log4javascript.js", vhsshtml5_load2DEngine);
1540 } else {
1541 vhsshtml5_custom_jsLoaded();
1542 }
1543 }
1544 }
1545 }
1546 }
1547 } else {
1548 /** @type {number} */
1549 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_disableSpeech_"] = 1;
1550 }
1551 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"]["indexOf"]("load") >= 0 && (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_id"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_id"] != undefined) && (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_status"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_status"] == 1)) {
1552 /** @type {number} */
1553 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_onloadaudio"] = 1;
1554 }
1555}
1556/**
1557 * @param {?} mmCoreSplitViewBlock
1558 * @param {?} $state
1559 * @return {undefined}
1560 */
1561function vhsshtml5_removejsfile(mmCoreSplitViewBlock, $state) {
1562 var DOMContentLoaded = $state == "js" ? "script" : "none";
1563 var artistTrack = $state == "js" ? "src" : "none";
1564 var e = document["getElementsByTagName"](DOMContentLoaded);
1565 var target = e["length"];
1566 for (; target >= 0; target--) {
1567 if (e[target] && e[target]["getAttribute"](artistTrack) != null && e[target]["getAttribute"](artistTrack)["indexOf"](mmCoreSplitViewBlock) != -1) {
1568 e[target]["parentNode"]["removeChild"](e[target]);
1569 }
1570 }
1571}
1572/**
1573 * @param {?} __
1574 * @return {undefined}
1575 */
1576var vhsshtml5_delete_cookie = function(__) {
1577 document["cookie"] = __ + "=;expires=Thu, 01 Jan 1970 00:00:01 GMT;";
1578};
1579/**
1580 * @return {undefined}
1581 */
1582function vhsshtml5_wireUpEvents() {
1583 /**
1584 * @return {undefined}
1585 */
1586 window["onbeforeunload"] = function() {
1587 if (parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_validNavigation"]) == parseInt(0)) {
1588 vhsshtml5_delete_cookie(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cookieName_"]);
1589 } else {
1590 }
1591 };
1592 document["addEventListener"]("keydown", function(enmlHash) {
1593 if (parseInt(enmlHash["which"]) == parseInt(116) || parseInt(enmlHash["which"]) == parseInt(13)) {
1594 /** @type {number} */
1595 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_validNavigation"] = 1;
1596 }
1597 }, false);
1598}
1599/**
1600 * @param {?} identifier
1601 * @return {?}
1602 */
1603function vhsshtml5_getCookie(identifier) {
1604 var doc = document["cookie"];
1605 var id = identifier + "=";
1606 var pre = doc["indexOf"](id);
1607 if (pre == -1) {
1608 return null;
1609 }
1610 var result = document["cookie"]["indexOf"](";", pre);
1611 if (result == -1) {
1612 result = doc["length"];
1613 }
1614 return unescape(doc["substring"](pre + id["length"], result));
1615}
1616/**
1617 * @return {?}
1618 */
1619function vhsshtml5_makeid() {
1620 var _0xfa08x73 = "";
1621 var _0xfa08x74 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
1622 /** @type {number} */
1623 var i = 0;
1624 for (; i < 5; i++) {
1625 _0xfa08x73 = _0xfa08x73 + _0xfa08x74["charAt"](Math["floor"](Math["random"]() * _0xfa08x74["length"]));
1626 }
1627 return _0xfa08x73;
1628}
1629/**
1630 * @param {?} $
1631 * @param {string} level
1632 * @return {?}
1633 */
1634function vhsshtml5_getParameterByName($, level) {
1635 if (!level) {
1636 level = window["location"]["href"];
1637 }
1638 $ = $["replace"](/[\[\]]/g, "\$&");
1639 /** @type {!RegExp} */
1640 var source = new RegExp("[?&]" + $ + "(=([^&#]*)|&|#|$)");
1641 var adjustedLevel = source["exec"](level);
1642 if (!adjustedLevel) {
1643 return null;
1644 }
1645 if (!adjustedLevel[2]) {
1646 return "";
1647 }
1648 return decodeURIComponent(adjustedLevel[2]["replace"](/\+/g, " "));
1649}
1650var timeout;
1651/**
1652 * @param {?} $timeout
1653 * @param {?} type
1654 * @return {undefined}
1655 */
1656function vhsshtml5_displayButtons3($timeout, type) {
1657 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
1658 if (_checkCharacter($timeout) != "") {
1659 if ($timeout["movementX"] != 0 || $timeout["movementY"] != 0) {
1660 document["getElementById"](type)["style"]["display"] = "block";
1661 clearTimeout(timeout);
1662 /** @type {number} */
1663 timeout = setTimeout(function() {
1664 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1) {
1665 vhsshtml5_fadeaway(type);
1666 }
1667 }, 5E3);
1668 }
1669 } else {
1670 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1) {
1671 vhsshtml5_fadeaway(type);
1672 }
1673 }
1674 }
1675}
1676/**
1677 * @param {?} value
1678 * @param {?} refresh
1679 * @return {undefined}
1680 */
1681function vhsshtml5_makeMouseOutFn(value, refresh) {
1682 var _0xfa08x7d = refresh["split"]("holder");
1683 var DOMContentLoaded = "hostDiv" + _0xfa08x7d[1];
1684 var e = document["getElementById"](DOMContentLoaded);
1685 var target = vhsshtml5_traverseChildren(e);
1686 var data = value["toElement"] || value["relatedTarget"];
1687 if (!!~target["indexOf"](data)) {
1688 return;
1689 }
1690 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1) {
1691 vhsshtml5_fadeaway(refresh);
1692 }
1693}
1694/**
1695 * @param {?} ts
1696 * @return {?}
1697 */
1698function vhsshtml5_traverseChildren(ts) {
1699 /**
1700 * @param {!NodeList} options
1701 * @return {undefined}
1702 */
1703 function s(options) {
1704 /** @type {number} */
1705 var i = 0;
1706 for (; i < options["length"]; i++) {
1707 find["push"](options[i]);
1708 }
1709 }
1710 /** @type {!Array} */
1711 var frameCallbacks = [];
1712 /** @type {!Array} */
1713 var find = [];
1714 find["push"](ts);
1715 for (; find["length"] > 0;) {
1716 ts = find["pop"]();
1717 frameCallbacks["push"](ts);
1718 s(ts["children"]);
1719 }
1720 return frameCallbacks;
1721}
1722/**
1723 * @param {?} name
1724 * @return {undefined}
1725 */
1726function vhsshtml5_fadeaway(name) {
1727 if (document["getElementById"](name)) {
1728 setTimeout(function() {
1729 if (document["getElementById"](name)) {
1730 document["getElementById"](name)["style"]["opacity"] = "1.0";
1731 }
1732 }, 0);
1733 setTimeout(function() {
1734 if (document["getElementById"](name)) {
1735 document["getElementById"](name)["style"]["opacity"] = "0.9";
1736 }
1737 }, 50);
1738 setTimeout(function() {
1739 if (document["getElementById"](name)) {
1740 document["getElementById"](name)["style"]["opacity"] = "0.8";
1741 }
1742 }, 100);
1743 setTimeout(function() {
1744 if (document["getElementById"](name)) {
1745 document["getElementById"](name)["style"]["opacity"] = "0.7";
1746 }
1747 }, 150);
1748 setTimeout(function() {
1749 if (document["getElementById"](name)) {
1750 document["getElementById"](name)["style"]["opacity"] = "0.6";
1751 }
1752 }, 200);
1753 setTimeout(function() {
1754 if (document["getElementById"](name)) {
1755 document["getElementById"](name)["style"]["opacity"] = "0.5";
1756 }
1757 }, 250);
1758 setTimeout(function() {
1759 if (document["getElementById"](name)) {
1760 document["getElementById"](name)["style"]["opacity"] = "0.4";
1761 }
1762 }, 300);
1763 setTimeout(function() {
1764 if (document["getElementById"](name)) {
1765 document["getElementById"](name)["style"]["opacity"] = "0.3";
1766 }
1767 }, 350);
1768 setTimeout(function() {
1769 if (document["getElementById"](name)) {
1770 document["getElementById"](name)["style"]["opacity"] = "0.2";
1771 }
1772 }, 400);
1773 setTimeout(function() {
1774 if (document["getElementById"](name)) {
1775 document["getElementById"](name)["style"]["opacity"] = "0.1";
1776 }
1777 }, 450);
1778 setTimeout(function() {
1779 if (document["getElementById"](name)) {
1780 document["getElementById"](name)["style"]["opacity"] = "0";
1781 }
1782 }, 500);
1783 setTimeout(function() {
1784 if (document["getElementById"](name)) {
1785 document["getElementById"](name)["style"]["display"] = "none";
1786 }
1787 if (document["getElementById"](name)) {
1788 document["getElementById"](name)["style"]["opacity"] = "1";
1789 }
1790 }, 500);
1791 }
1792}
1793/**
1794 * @return {undefined}
1795 */
1796function vhsshtml5_displayButtons() {
1797 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
1798 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_timer"]);
1799 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"])["style"]["display"] = "block";
1800 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1) {
1801 /** @type {number} */
1802 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_timer"] = setTimeout(function() {
1803 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"])["style"]["display"] = "none";
1804 }, 4E3);
1805 }
1806 }
1807}
1808/**
1809 * @return {undefined}
1810 */
1811function vhsshtml5_displayButtons2() {
1812 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
1813 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"])["style"]["display"] = "block";
1814 }
1815}
1816/**
1817 * @return {undefined}
1818 */
1819function vhsshtml5_hideButtons() {
1820 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1) {
1821 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"])["style"]["display"] = "none";
1822 }
1823}
1824/**
1825 * @param {?} primaryKeyValue
1826 * @param {!Function} responseTasks
1827 * @return {undefined}
1828 */
1829function vhsshtml5_loadScript(primaryKeyValue, responseTasks) {
1830 var command_codes = document["getElementsByTagName"]("head")[0];
1831 var data = document["createElement"]("script");
1832 data["type"] = "text/javascript";
1833 data["src"] = primaryKeyValue;
1834 /** @type {!Function} */
1835 data["onload"] = responseTasks;
1836 command_codes["appendChild"](data);
1837}
1838/**
1839 * @return {undefined}
1840 */
1841function vhsshtml5_loadFBVersionFile() {
1842 vhsshtml5_loadSitepalCustomFile();
1843}
1844/**
1845 * @return {undefined}
1846 */
1847function vhsshtml5_load3DVersionFile() {
1848 vhsshtml5_loadSitepalCustomFile();
1849}
1850/**
1851 * @return {undefined}
1852 */
1853function vhsshtml5_webGlLoaded() {
1854 vhsshtml5_removejsfile(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/3d/SitePal3DJS_R.js", "js");
1855 vhsshtml5_loadScript(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/3d/SitePal3DJS_R.js", vhsshtml5_loadPlayerVersionFile);
1856}
1857/**
1858 * @return {undefined}
1859 */
1860function vhsshtml5_load2DEngine() {
1861 if (!vhsshtml5_if_filealreayaddedd(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/2d/VHSSEngine_R.js")) {
1862 vhsshtml5_loadScript(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/2d/VHSSEngine_R.js", vhsshtml5_loadPlayerVersionFile);
1863 }
1864}
1865/**
1866 * @return {undefined}
1867 */
1868function vhsshtml5_loadPlayerVersionFile() {
1869 vhsshtml5_loadSitepalCustomFile();
1870}
1871/**
1872 * @return {undefined}
1873 */
1874function vhsshtml5_loadSitepalCustomFile() {
1875 vhsshtml5_custom_jsLoaded();
1876}
1877/**
1878 * @param {?} canCreateDiscussions
1879 * @return {undefined}
1880 */
1881function vhsshtml5_drag_init(canCreateDiscussions) {
1882 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_selected"] = canCreateDiscussions;
1883 /** @type {number} */
1884 vhssHTML_scenes[vhsshtml5_scenenumber]["x_elem"] = vhssHTML_scenes[vhsshtml5_scenenumber]["x_pos"] - vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_selected"]["offsetLeft"];
1885 /** @type {number} */
1886 vhssHTML_scenes[vhsshtml5_scenenumber]["y_elem"] = vhssHTML_scenes[vhsshtml5_scenenumber]["y_pos"] - vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_selected"]["offsetTop"];
1887}
1888/**
1889 * @param {?} canCreateDiscussions
1890 * @return {undefined}
1891 */
1892function vhsshtml5_move_elem(canCreateDiscussions) {
1893 vhssHTML_scenes[vhsshtml5_scenenumber]["x_pos"] = document["all"] ? window["event"]["clientX"] : canCreateDiscussions["pageX"];
1894 vhssHTML_scenes[vhsshtml5_scenenumber]["y_pos"] = document["all"] ? window["event"]["clientY"] : canCreateDiscussions["pageY"];
1895 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_selected"] !== null) {
1896 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_selected"]) {
1897 /** @type {number} */
1898 var Yxlabel = vhssHTML_scenes[vhsshtml5_scenenumber]["x_pos"] - vhssHTML_scenes[vhsshtml5_scenenumber]["x_elem"];
1899 /** @type {number} */
1900 var Xvertical = vhssHTML_scenes[vhsshtml5_scenenumber]["y_pos"] - vhssHTML_scenes[vhsshtml5_scenenumber]["y_elem"];
1901 if (vhsshtml5_osDisplayPosH == "L" || vhsshtml5_osDisplayPosH == "C") {
1902 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_selected"]["style"]["left"] = Yxlabel + "px";
1903 } else {
1904 var Ymain = window["innerWidth"];
1905 /** @type {number} */
1906 var _0xfa08x98 = Ymain - (Yxlabel + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"]) - 15;
1907 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_selected"]["style"]["right"] = _0xfa08x98 + "px";
1908 }
1909 if (vhsshtml5_osDisplayPosV == "T") {
1910 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_selected"]["style"]["top"] = Xvertical + "px";
1911 } else {
1912 var Xmain = window["innerHeight"];
1913 /** @type {number} */
1914 var _0xfa08x9a = Xmain - (Xvertical + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"]) - 15;
1915 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_selected"]["style"]["bottom"] = _0xfa08x9a + "px";
1916 }
1917 }
1918 }
1919}
1920/**
1921 * @return {undefined}
1922 */
1923function vhsshtml5_destroy() {
1924 /** @type {null} */
1925 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_selected"] = null;
1926}
1927/**
1928 * @return {undefined}
1929 */
1930function vhsshtml5_custom_jsLoaded() {
1931 var reverseIsSingle = document["getElementById"]("divVHSS-inner");
1932 var reverseValue = document["getElementById"]("divDrag");
1933 if (reverseIsSingle && reverseValue) {
1934 /**
1935 * @return {?}
1936 */
1937 document["getElementById"]("divDrag")["onmousedown"] = function() {
1938 vhsshtml5_drag_init(document["getElementById"]("divVHSS-inner"));
1939 return false;
1940 };
1941 /** @type {function(?): undefined} */
1942 document["onmousemove"] = vhsshtml5_move_elem;
1943 /** @type {function(): undefined} */
1944 document["onmouseup"] = vhsshtml5_destroy;
1945 }
1946 vhsshtml5_checkCanvasAvailability();
1947 /** @type {number} */
1948 jsFileLoaded = 1;
1949 if (window["console"]) {
1950 console["log"]("js files loaded");
1951 }
1952}
1953/**
1954 * @return {undefined}
1955 */
1956function vhsshtml5_addHoverEvents() {
1957 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
1958 document["getElementById"]("_play")["setAttribute"]("onmouseover", "vhsshtml5_updateButtonsImage('_playImg_','btn_play_hover.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
1959 document["getElementById"]("_play")["setAttribute"]("onmouseout", "vhsshtml5_updateButtonsImage('_playImg_','btn_play.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
1960 document["getElementById"]("_resume")["setAttribute"]("onmouseover", "vhsshtml5_updateButtonsImage('_resumeImg_','btn_play_hover.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
1961 document["getElementById"]("_resume")["setAttribute"]("onmouseout", "vhsshtml5_updateButtonsImage('_resumeImg_','btn_play.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
1962 document["getElementById"]("_pause")["setAttribute"]("onmouseover", "vhsshtml5_updateButtonsImage('_pauseImg_','btn_pause_hover.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
1963 document["getElementById"]("_pause")["setAttribute"]("onmouseout", "vhsshtml5_updateButtonsImage('_pauseImg_','btn_pause.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
1964 document["getElementById"]("_replay")["setAttribute"]("onmouseover", "vhsshtml5_updateButtonsImage('_replayImg_','btn_replay_hover.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
1965 document["getElementById"]("_replay")["setAttribute"]("onmouseout", "vhsshtml5_updateButtonsImage('_replayImg_','btn_replay.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
1966 document["getElementById"]("_close_cross")["setAttribute"]("onmouseover", "vhsshtml5_updateButtonsImage('_close_crossImg_','btn_cross_hover.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
1967 document["getElementById"]("_close_cross")["setAttribute"]("onmouseout", "vhsshtml5_updateButtonsImage('_close_crossImg_','btn_cross.png','" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
1968 }
1969}
1970/**
1971 * @param {?} name
1972 * @param {?} courseId
1973 * @param {?} key
1974 * @return {undefined}
1975 */
1976function vhsshtml5_updateButtonsImage(name, courseId, key) {
1977 if (vhsshtml5_mobileDetection == 0) {
1978 var courseContentPage = vhsshtml5_main_url + "img/" + courseId;
1979 var obj = document["getElementById"](key);
1980 obj["querySelector"]("#" + name)["src"] = courseContentPage;
1981 }
1982}
1983/**
1984 * @param {number} access_token_secret
1985 * @param {number} userId
1986 * @return {?}
1987 */
1988function vhsshtml5_gcd_(access_token_secret, userId) {
1989 return userId == 0 ? access_token_secret : vhsshtml5_gcd_(userId, access_token_secret % userId);
1990}
1991/**
1992 * @param {?} id_local
1993 * @return {?}
1994 */
1995function vhsshtml5_getFutureDate(id_local) {
1996 /** @type {!Date} */
1997 var expected_date2 = new Date;
1998 var filename = expected_date2["getDate"]();
1999 var urls = expected_date2["getMonth"]() + 1;
2000 var qualifier = expected_date2["getFullYear"]();
2001 if (filename < 10) {
2002 filename = "0" + filename;
2003 }
2004 if (urls < 10) {
2005 urls = "0" + urls;
2006 }
2007 var target = urls + "/" + filename + "/" + qualifier;
2008 /** @type {!Date} */
2009 var t = new Date(target);
2010 t["setDate"](t["getDate"]() + parseInt(id_local));
2011 var _0xfa08xae = "";
2012 switch(t["getUTCDay"]()) {
2013 case 0:
2014 _0xfa08xae = "Mon";
2015 break;
2016 case 1:
2017 _0xfa08xae = "Tue";
2018 break;
2019 case 2:
2020 _0xfa08xae = "Wed";
2021 break;
2022 case 3:
2023 _0xfa08xae = "Thu";
2024 break;
2025 case 4:
2026 _0xfa08xae = "Fri";
2027 break;
2028 case 5:
2029 _0xfa08xae = "Sat";
2030 break;
2031 case 6:
2032 _0xfa08xae = "Sun";
2033 break;
2034 }
2035 _0xfa08xae = "";
2036 switch(t["getUTCDay"]()) {
2037 case 0:
2038 _0xfa08xae = "Jan";
2039 break;
2040 case 1:
2041 _0xfa08xae = "Feb";
2042 break;
2043 case 2:
2044 _0xfa08xae = "Mar";
2045 break;
2046 case 3:
2047 _0xfa08xae = "Apr";
2048 break;
2049 case 4:
2050 _0xfa08xae = "May";
2051 break;
2052 case 5:
2053 _0xfa08xae = "June";
2054 break;
2055 case 6:
2056 _0xfa08xae = "July";
2057 break;
2058 case 6:
2059 _0xfa08xae = "July";
2060 break;
2061 }
2062 return _0xfa08xae + ", " + t["getUTCDate"]() + " " + t["getUTCMonth"]() + " " + t["getUTCFullYear"]() + " " + t["getUTCHours"]() + ":" + t["getUTCMinutes"]() + ":" + t["getUTCSeconds"]() + " UTC";
2063}
2064/**
2065 * @return {undefined}
2066 */
2067function vhsshtml5_story() {
2068 if (window["console"]) {
2069 console["log"]("readStory loaded");
2070 }
2071}
2072/**
2073 * @param {?} distance
2074 * @param {?} speed
2075 * @return {?}
2076 */
2077function vhsshtml5_calculateLeft(distance, speed) {
2078 /** @type {number} */
2079 var y = distance * speed;
2080 return y;
2081}
2082/**
2083 * @param {number} key
2084 * @return {?}
2085 */
2086function vhsshtml5_setCharacterPosition(key) {
2087 var newTarget = "";
2088 if (key !== null) {
2089 var value = window["innerWidth"];
2090 /** @type {number} */
2091 var index = value / 2;
2092 var offset = vhsshtml5_calculateLeft(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"]);
2093 offset = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] / 2 + offset;
2094 if (parseInt(key) + offset > index) {
2095 /** @type {number} */
2096 key = index;
2097 /** @type {number} */
2098 newTarget = index - parseInt(key);
2099 } else {
2100 /** @type {number} */
2101 newTarget = index - (offset + parseInt(key));
2102 }
2103 } else {
2104 value = window["innerWidth"];
2105 if (value > "1800") {
2106 newTarget = "400px";
2107 } else {
2108 if (value > "1600") {
2109 newTarget = "300px";
2110 } else {
2111 if (value > "1400") {
2112 newTarget = "200px";
2113 } else {
2114 if (value > "1200") {
2115 newTarget = "100px";
2116 } else {
2117 newTarget = "0px";
2118 }
2119 }
2120 }
2121 }
2122 }
2123 return newTarget;
2124}
2125/**
2126 * @param {string} d
2127 * @return {?}
2128 */
2129function vhsshtml5_setCharacterPositionFB(d) {
2130 var x = "";
2131 if (d === null) {
2132 if (left > "1800") {
2133 d = "400";
2134 } else {
2135 if (left > "1600") {
2136 d = "300";
2137 } else {
2138 if (left > "1400") {
2139 d = "200";
2140 } else {
2141 if (left > "1200") {
2142 d = "100";
2143 } else {
2144 d = "0";
2145 }
2146 }
2147 }
2148 }
2149 var zeroSizeMax = window["innerWidth"];
2150 /** @type {number} */
2151 var pixelSizeTargetMax = 1200;
2152 /** @type {string} */
2153 delta = d;
2154 d = Math["max"](100, (zeroSizeMax - pixelSizeTargetMax) / 2 - 100);
2155 }
2156 var left = window["innerWidth"];
2157 /** @type {number} */
2158 var split = left / 2;
2159 var i = vhsshtml5_calculateLeft(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"]);
2160 i = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] / 2 + i;
2161 /** @type {number} */
2162 x = parseInt(d);
2163 if (parseInt(d) > i) {
2164 /** @type {number} */
2165 x = parseInt(d) - i;
2166 }
2167 if (x + parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"]) > left) {
2168 /** @type {number} */
2169 x = left - parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"]);
2170 }
2171 x = x + "px";
2172 return x;
2173}
2174/**
2175 * @param {?} name
2176 * @param {number} type
2177 * @param {number} selector
2178 * @return {undefined}
2179 */
2180function vhsshtml5_setCookie(name, type, selector) {
2181 var subject = vhsshtml5_getCookie(name);
2182 if (subject !== "" && subject !== null && typeof subject !== undefined) {
2183 var dataTypes = document["cookie"]["split"]("|");
2184 var dot_ref = "expires=" + dataTypes[1];
2185 var err = type + "|" + dataTypes[1];
2186 } else {
2187 /** @type {!Date} */
2188 var expected_date2 = new Date;
2189 if (selector == 0) {
2190 expected_date2["setTime"](expected_date2["getTime"]() + 1 * 60 * 60 * 1E3);
2191 } else {
2192 expected_date2["setTime"](expected_date2["getTime"]() + selector * 24 * 60 * 60 * 1E3);
2193 }
2194 dot_ref = "expires=" + expected_date2["toUTCString"]();
2195 err = type + "|" + expected_date2["toUTCString"]();
2196 }
2197 document["cookie"] = name + "=" + err + "; " + dot_ref;
2198}
2199/**
2200 * @param {?} name
2201 * @param {number} type
2202 * @param {undefined} noQualityRestore
2203 * @return {?}
2204 */
2205function vhsshtml5_checkCookie(name, type, noQualityRestore) {
2206 /** @type {number} */
2207 var G__26637_26640 = type;
2208 var cookieValue = vhsshtml5_getCookie(name);
2209 if (cookieValue !== "" && cookieValue !== null && typeof cookieValue !== undefined) {
2210 /** @type {number} */
2211 G__26637_26640 = parseInt(cookieValue) - 1;
2212 if (G__26637_26640 >= 0) {
2213 vhsshtml5_setCookie(name, G__26637_26640, noQualityRestore);
2214 }
2215 } else {
2216 vhsshtml5_setCookie(name, type, noQualityRestore);
2217 }
2218 if (G__26637_26640 > 0) {
2219 return 1;
2220 } else {
2221 return 0;
2222 }
2223}
2224/**
2225 * @param {?} prefix
2226 * @param {undefined} message
2227 * @param {number} elem
2228 * @return {?}
2229 */
2230function vhsshtml5_checkCookieAI(prefix, message, elem) {
2231 var message = vhsshtml5_getCookieAI(prefix);
2232 if (window["console"]) {
2233 console["log"](message + " -- Cookie Value");
2234 }
2235 if (message !== "" && message !== null && typeof message !== undefined) {
2236 return message;
2237 } else {
2238 vhsshtml5_setCookie(prefix, message, elem);
2239 if (window["console"]) {
2240 console["log"](message + " -- New cookie value");
2241 }
2242 return message;
2243 }
2244}
2245/**
2246 * @param {number} height
2247 * @param {?} values
2248 * @return {?}
2249 */
2250function vhsshtml5_randomString(height, values) {
2251 var previousSource = "";
2252 /** @type {number} */
2253 var whatToScale = height;
2254 for (; whatToScale > 0; --whatToScale) {
2255 previousSource = previousSource + values[Math["floor"](Math["random"]() * values["length"])];
2256 }
2257 return previousSource;
2258}
2259/**
2260 * @param {?} s
2261 * @return {?}
2262 */
2263function vhsshtml5_getCookieAI(s) {
2264 var data = s + "=";
2265 var cmd = document["cookie"]["split"](";");
2266 /** @type {number} */
2267 var i = 0;
2268 for (; i < cmd["length"]; i++) {
2269 var component = cmd[i];
2270 for (; component["charAt"](0) == " ";) {
2271 component = component["substring"](1);
2272 }
2273 if (component["indexOf"](data) == 0) {
2274 var _0xfa08xcf = component["substring"](data["length"], component["length"]);
2275 return _0xfa08xcf["split"]("|")[0];
2276 }
2277 }
2278 return "";
2279}
2280/**
2281 * @param {?} boardManager
2282 * @param {?} isSlidingUp
2283 * @param {?} $cont
2284 * @param {number} config
2285 * @param {?} msg
2286 * @param {number} context
2287 * @param {number} i0
2288 * @param {?} j0
2289 * @param {?} dMax
2290 * @return {undefined}
2291 */
2292function vhsshtml5_tracking_api(boardManager, isSlidingUp, $cont, config, msg, context, i0, j0, dMax) {
2293 /** @type {!XMLHttpRequest} */
2294 var widgetArr = new XMLHttpRequest;
2295 var relationName = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_track_url"] + "?apt=" + boardManager + "&acc=" + isSlidingUp + "&shw=" + $cont + "&emb=" + config + "&dom=" + msg + "&uni=" + context + "&sm=" + i0 + "" + dMax + "";
2296 /**
2297 * @return {undefined}
2298 */
2299 widgetArr["onreadystatechange"] = function() {
2300 if (widgetArr["readyState"] == 4 && widgetArr["status"] == 200) {
2301 var _maskLayer = widgetArr["responseText"];
2302 if (window["console"]) {
2303 console["log"](_maskLayer);
2304 }
2305 var _0xfa08x2e = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"]);
2306 if (_0xfa08x2e) {
2307 if (_0xfa08x2e["length"] > 0 && typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
2308 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"])["style"]["display"] = "none";
2309 }
2310 }
2311 }
2312 };
2313 widgetArr["open"]("GET", relationName, true);
2314 widgetArr["send"]();
2315 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_etvar"] += 2;
2316}
2317/**
2318 * @param {!Array} value
2319 * @param {string} url
2320 * @param {?} beatCallback
2321 * @return {undefined}
2322 */
2323function vhsshtml5_graberrors_api(value, url, beatCallback) {
2324 appVer = window["location"]["href"];
2325 /** @type {!XMLHttpRequest} */
2326 var widgetArr = new XMLHttpRequest;
2327 var relationName = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_graberror"] + "/grabError.php?addInfo=" + encodeURIComponent(url) + "&appVer=" + encodeURIComponent(appVer) + "&error=" + encodeURIComponent(value) + "&originator=" + encodeURIComponent(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_originator"]) + "";
2328 /**
2329 * @return {undefined}
2330 */
2331 widgetArr["onreadystatechange"] = function() {
2332 if (widgetArr["readyState"] == 4 && widgetArr["status"] == 200) {
2333 var _maskLayer = widgetArr["responseText"];
2334 if (window["console"]) {
2335 console["log"](_maskLayer);
2336 }
2337 }
2338 };
2339 widgetArr["open"]("GET", relationName, true);
2340 widgetArr["send"]();
2341}
2342/**
2343 * @return {?}
2344 */
2345function vhsshtml5_getCurrentDom() {
2346 var no = window["location"]["host"];
2347 if (no["indexOf"]("www.") >= 0) {
2348 var tmpSlug = no;
2349 } else {
2350 tmpSlug = "www." + no;
2351 }
2352 return tmpSlug;
2353}
2354/**
2355 * @param {?} mmCoreSplitViewBlock
2356 * @return {?}
2357 */
2358function vhsshtml5_if_filealreayaddedd(mmCoreSplitViewBlock) {
2359 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scripts"] = document["getElementsByTagName"]("script");
2360 /** @type {number} */
2361 var i = 0;
2362 for (; i < vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scripts"]["length"]; i++) {
2363 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scripts"][i]) {
2364 vhsshtml5_str = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scripts"][i]["src"];
2365 if (vhsshtml5_str["indexOf"](mmCoreSplitViewBlock) >= 0) {
2366 return true;
2367 }
2368 }
2369 }
2370 return false;
2371}
2372/**
2373 * @return {?}
2374 */
2375function vhsshtml5_random_string() {
2376 var _0xfa08x73 = "";
2377 var _0xfa08x74 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
2378 /** @type {number} */
2379 var i = 0;
2380 for (; i < 5; i++) {
2381 _0xfa08x73 = _0xfa08x73 + _0xfa08x74["charAt"](Math["floor"](Math["random"]() * _0xfa08x74["length"]));
2382 }
2383 return _0xfa08x73;
2384}
2385/**
2386 * @return {undefined}
2387 */
2388function vhsshtml5_displayOverlay() {
2389 document["getElementById"]("_noImg_")["style"]["display"] = "none";
2390 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["display"] = "block";
2391 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["display"] = "block";
2392 vhsshtml5_clickPlay(vhsshtml5_scenenumber);
2393}
2394/**
2395 * @param {number} name
2396 * @return {?}
2397 */
2398function calculateButtonsPaddingDimenssionsfb(name) {
2399 /** @type {number} */
2400 var a = parseInt(name);
2401 /** @type {number} */
2402 var groupNamePrefix = parseInt(a) * parseFloat(.84) / parseInt(100);
2403 /** @type {number} */
2404 var dupeNameCount = parseInt(a) * parseFloat(.84) / parseInt(100);
2405 /** @type {number} */
2406 var _0xfa08xe9 = parseInt(a) * parseFloat(1.3) / parseInt(100);
2407 return groupNamePrefix + "px " + dupeNameCount + "px " + groupNamePrefix + "px " + _0xfa08xe9 + "px";
2408}
2409/**
2410 * @param {number} value
2411 * @return {?}
2412 */
2413function calculateButtonsDimenssionsfb(value) {
2414 /** @type {number} */
2415 var key = parseInt(value);
2416 /** @type {number} */
2417 var total_pageviews_raw = parseInt(key) * parseFloat(9) / parseInt(100);
2418 if (total_pageviews_raw > 125) {
2419 /** @type {number} */
2420 total_pageviews_raw = 125;
2421 }
2422 return parseInt(total_pageviews_raw);
2423}
2424/**
2425 * @param {number} x
2426 * @return {?}
2427 */
2428function calculateButtonsDimenssions2d3d(x) {
2429 /** @type {number} */
2430 var page_num = parseInt(x) - parseInt(16);
2431 /** @type {number} */
2432 var glyph_width = parseInt(page_num) * parseInt(16) / parseInt(100);
2433 /** @type {number} */
2434 var _0xfa08xec = parseInt(glyph_width) * parseInt(2);
2435 if (_0xfa08xec > 125) {
2436 /** @type {number} */
2437 _0xfa08xec = 125;
2438 }
2439 return _0xfa08xec;
2440}
2441/**
2442 * @param {!NodeList} PL$53
2443 * @param {?} name
2444 * @return {?}
2445 */
2446function check_domain_license(PL$53, name) {
2447 var code = md5(name);
2448 if (PL$53) {
2449 /** @type {number} */
2450 var PL$54 = 0;
2451 for (; PL$54 < PL$53["length"]; PL$54++) {
2452 if (PL$53[PL$54]["@V"] == code) {
2453 return true;
2454 }
2455 }
2456 var _0xfa08xf0 = "";
2457 var id = name;
2458 var ret = "";
2459 var email = "";
2460 var tiledImageBRs = name["split"](".");
2461 var tiledImageBR = tiledImageBRs["length"];
2462 if (id["indexOf"]("www") < 0) {
2463 _0xfa08xf0 = name["split"](".");
2464 _0xfa08xf0["splice"](0, 0, "www");
2465 id = _0xfa08xf0["join"](".");
2466 }
2467 if (id["indexOf"]("www") > -1) {
2468 _0xfa08xf0 = id["split"](".");
2469 _0xfa08xf0[0] = "*";
2470 ret = _0xfa08xf0["join"](".");
2471 }
2472 if (tiledImageBR > 2) {
2473 _0xfa08xf0 = name["split"](".");
2474 _0xfa08xf0[0] = "*";
2475 email = _0xfa08xf0["join"](".");
2476 }
2477 if (name != "") {
2478 name = md5(name);
2479 }
2480 if (id != "") {
2481 id = md5(id);
2482 }
2483 if (ret != "") {
2484 ret = md5(ret);
2485 }
2486 if (email != "") {
2487 email = md5(email);
2488 }
2489 /** @type {number} */
2490 PL$54 = 0;
2491 for (; PL$54 < vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"]["length"]; PL$54++) {
2492 if (vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"][PL$54]["@V"] == name || vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"][PL$54]["@V"] == id || vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"][PL$54]["@V"] == ret || vhssHTML_scenes[vhsshtml5_scenenumber]["secure_domains"][PL$54]["@V"] == email) {
2493 return true;
2494 }
2495 }
2496 }
2497 return false;
2498}
2499/**
2500 * @return {undefined}
2501 */
2502function DisplaybuttonsForMobile() {
2503 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
2504 setTimeout(function() {
2505 var _0xfa08xf7 = document["getElementsByTagName"]("body")[0];
2506 _0xfa08xf7["click"]();
2507 }, 1E3);
2508 var window = document["getElementsByClassName"]("vhsshtml5_button_holder");
2509 var helloComponent = window["length"];
2510 /** @type {number} */
2511 var testPropertyName = 0;
2512 for (; testPropertyName < helloComponent; testPropertyName++) {
2513 window[testPropertyName]["style"]["display"] = "block";
2514 }
2515 }
2516}
2517vh_mc = function() {
2518 /**
2519 * @param {!Object} spawnPatternJson
2520 * @return {undefined}
2521 */
2522 function _buildWaypointModelListFromRoute(spawnPatternJson) {
2523 var myVar;
2524 for (myVar in spawnPatternJson) {
2525 var myLabel = spawnPatternJson[myVar];
2526 arrayValueHash[myVar] = myLabel;
2527 }
2528 if (log4javascript != "") {
2529 if (arrayValueHash["debug_window"] == "true" || arrayValueHash["debug_window"] == true) {
2530 logger = log4javascript["getDefaultLogger"]();
2531 } else {
2532 logger = log4javascript["getNullLogger"]();
2533 }
2534 }
2535 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "FB3D") {
2536 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = new com["oddcast"]["app"]["openfl"]["engine3DGLView"].GLViewMain;
2537 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = vhsshtml5_glv["getHostAPI"]();
2538 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Obj_"] = vhsshtml5_glv["getHostAPI"]();
2539 }
2540 }
2541 /**
2542 * @param {number} group
2543 * @return {undefined}
2544 */
2545 function haveGroupOnServer(group) {
2546 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["resume"]();
2547 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["stopPlayingAudio"]();
2548 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][group]["hostx"];
2549 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostY"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][group]["hosty"];
2550 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostScale"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][group]["hostscale"];
2551 vh_mc["loadPlayerDimensions"]();
2552 /** @type {number} */
2553 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] = group;
2554 /** @type {number} */
2555 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] = 0;
2556 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["loopvideo"] != "") {
2557 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioStarted"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["loopvideo"];
2558 }
2559 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["play"] != undefined) {
2560 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][group]["play"];
2561 }
2562 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"] != undefined) {
2563 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"];
2564 }
2565 if (_prevBgUrl_ != vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"]) {
2566 _bkgrnd = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"];
2567 displayBackground();
2568 }
2569 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["mp3"] && (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"] != "")) {
2570 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeAttribute"]("onmousemove");
2571 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] != 1) {
2572 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeAttribute"]("onclick");
2573 }
2574 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["mp3"];
2575 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"]["shift"]();
2576 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
2577 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"]["indexOf"]("load") > -1 && vhsshtml5_mobileDetection == 0) {
2578 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "3d") {
2579 unload2DEngine();
2580 if (vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] != null && document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["contains"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"])) {
2581 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"]);
2582 }
2583 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] == 0 && vhssHTML_scenes[vhsshtml5_scenenumber]["scenechanged"] == 0) {
2584 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["mp3"];
2585 vhsshtml5_clickPlay(vhsshtml5_scenenumber);
2586 }
2587 } else {
2588 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] != undefined && vhssHTML_scenesObj["vhsshtml5_is3d"] <= 0) {
2589 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"]["unload"]();
2590 /** @type {null} */
2591 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = null;
2592 /** @type {null} */
2593 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
2594 if (window["console"]) {
2595 console["log"]("3d engine unloaded.");
2596 }
2597 }
2598 if (vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] != null && vhssHTML_scenes[vhsshtml5_scenenumber]["hasOwnProperty"]("div3D") && document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["contains"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"])) {
2599 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"]);
2600 }
2601 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] == 0 && vhssHTML_scenes[vhsshtml5_scenenumber]["scenechanged"] == 0) {
2602 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["mp3"];
2603 vhsshtml5_clickPlay(vhsshtml5_scenenumber);
2604 }
2605 }
2606 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["shift"]();
2607 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
2608 }
2609 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"]["indexOf"]("ro") > -1) {
2610 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["setAttribute"]("onmousemove", "_mouseMoveCharacter(event,this," + vhsshtml5_scenenumber + ")");
2611 var timeStamp = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"]);
2612 timeStamp["addEventListener"]("mouseout", vhsshtml5_onmoveval(timeStamp), true);
2613 if (vhssHTML_scenes[vhsshtml5_scenenumber]["scenechanged"] == 1) {
2614 /** @type {number} */
2615 vhssHTML_scenes[vhsshtml5_scenenumber]["scenechanged"] = 0;
2616 }
2617 audioFinishedCallback("", 0);
2618 }
2619 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"]["indexOf"]("click") > -1) {
2620 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["setAttribute"]("onclick", "_clickCharacter(event,this," + vhsshtml5_scenenumber + ")");
2621 if (vhssHTML_scenes[vhsshtml5_scenenumber]["scenechanged"] == 1) {
2622 /** @type {number} */
2623 vhssHTML_scenes[vhsshtml5_scenenumber]["scenechanged"] = 0;
2624 }
2625 audioFinishedCallback("", 0);
2626 }
2627 } else {
2628 if (vhssHTML_scenes[vhsshtml5_scenenumber]["scenechanged"] == 1) {
2629 /** @type {number} */
2630 vhssHTML_scenes[vhsshtml5_scenenumber]["scenechanged"] = 0;
2631 }
2632 audioFinishedCallback("", 0);
2633 }
2634 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prevCharUrl_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"];
2635 _prevBgUrl_ = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"];
2636 if (typeof vh_sceneLoaded == "function" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhSceneStatus_"] == 1) {
2637 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"]["length"] >= 1) {
2638 /** @type {number} */
2639 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhscenecalled"] = 1;
2640 vh_sceneLoaded(parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]) + 1, vhsshtml5_scenenumber);
2641 } else {
2642 /** @type {number} */
2643 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhscenecalled"] = 1;
2644 vh_sceneLoaded(0, vhsshtml5_scenenumber);
2645 }
2646 }
2647 }
2648 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"] = {};
2649 var PING_ROUTE = {
2650 debug_window : false,
2651 version : "vokiAPI_v0.1"
2652 };
2653 var arrayValueHash = PING_ROUTE;
2654 return {
2655 init : function(spawnPatternJson, navigationLibrary) {
2656 _buildWaypointModelListFromRoute(spawnPatternJson, navigationLibrary);
2657 },
2658 loadPlayer : function(id, force, cb) {
2659 _loadPlayer(id, force);
2660 _canvas = id;
2661 /** @type {string} */
2662 _bkgrnd = cb;
2663 return {
2664 status : "ok"
2665 };
2666 },
2667 loadPlayerDimensions : function() {
2668 _loadPlayerDimensions();
2669 },
2670 setGaze : function(max, initialValue, value) {
2671 if (typeof value == "degrees" || isNaN(max) || max == "") {
2672 /** @type {number} */
2673 max = 0;
2674 }
2675 if (typeof initialValue == "undefined" || isNaN(initialValue) || initialValue == "") {
2676 /** @type {number} */
2677 initialValue = 0;
2678 }
2679 if (typeof value == "undefined" || isNaN(value) || value == "") {
2680 /** @type {number} */
2681 value = 100;
2682 }
2683 _setGaze(parseInt(max), parseInt(initialValue), parseInt(value));
2684 },
2685 followCursor : function(unhighlightedCode) {
2686 _followCursor(unhighlightedCode);
2687 },
2688 setGazeAtPoint : function(mmCoreSplitViewBlock, $state, UserState) {
2689 _setGazeAtPoint(mmCoreSplitViewBlock, $state, UserState);
2690 },
2691 sayText : function(textObject, text, result, config, url, response, rootTag, nativeTag) {
2692 /** @type {string} */
2693 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["txt"] = textObject;
2694 /** @type {string} */
2695 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["voice"] = text;
2696 /** @type {string} */
2697 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["lang"] = result;
2698 /** @type {string} */
2699 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["engine"] = config;
2700 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effect"] = url;
2701 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effLevel"] = response;
2702 _say(textObject, text, result, config, url, response, rootTag, nativeTag);
2703 },
2704 setPlayerVolume : function(host) {
2705 _setPlayerVolume(host);
2706 },
2707 loadShow : function(canCreateDiscussions) {
2708 /** @type {number} */
2709 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_loadshowvar"] = 1;
2710 /** @type {number} */
2711 vhsshtml5_osStatus = 0;
2712 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = "";
2713 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] != "") {
2714 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] = "&" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
2715 }
2716 /** @type {!XMLHttpRequest} */
2717 var xhr = new XMLHttpRequest;
2718 var url = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_json_url_str"] + "php/playScene/acc=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + "/ss=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ss_var"] + "/sl=0/ind=" + canCreateDiscussions + "?json=1" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
2719 /**
2720 * @return {undefined}
2721 */
2722 xhr["onreadystatechange"] = function() {
2723 if (xhr["readyState"] == 4 && xhr["status"] == 200) {
2724 var canCreateDiscussions = JSON["parse"](xhr["responseText"]);
2725 vhsshtml5_loadHTMLScenes(canCreateDiscussions);
2726 }
2727 };
2728 xhr["open"]("GET", url, true);
2729 xhr["send"]();
2730 },
2731 sayAudio : function(downcodeFunc, firebaseRef, siteName) {
2732 if (!vh_mc) {
2733 return;
2734 }
2735 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] != "") {
2736 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] = "&" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
2737 }
2738 /** @type {!XMLHttpRequest} */
2739 var self = new XMLHttpRequest;
2740 var oldV = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_json_url_str"] + "/admin/getAudioByNameMP3.php?audioname=" + downcodeFunc + "&acc=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
2741 /**
2742 * @return {undefined}
2743 */
2744 self["onreadystatechange"] = function() {
2745 if (self["readyState"] == 4 && self["status"] == 200) {
2746 var origMenu = self["responseText"];
2747 origMenu = origMenu["replace"]("location=", "");
2748 responseTxtArr = origMenu["split"]("&");
2749 if (origMenu != "ERROR 2" && responseTxtArr[0] != "ERROR 1") {
2750 vhsshtml5_audiosarr[siteName] = responseTxtArr[0];
2751 } else {
2752 vhsshtml5_audiosarr["splice"](siteName, 1);
2753 }
2754 }
2755 };
2756 self["open"]("GET", oldV, true);
2757 self["send"]();
2758 },
2759 saySilent : function(isBgroundImg) {
2760 _saySilent(isBgroundImg);
2761 },
2762 loadText : function(onSuccess, onFailure, i, url, text, href) {
2763 vh_mc["hideLoader"]();
2764 if (typeof vh_ttsLoaded == "function") {
2765 vh_ttsLoaded(onSuccess, vhsshtml5_scenenumber);
2766 }
2767 },
2768 sayURL : function(recursionLevel) {
2769 /** @type {string} */
2770 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_final_url"] = recursionLevel;
2771 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["txt"] = vhsshtml5_getParameterByName("text", recursionLevel);
2772 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["voice"] = vhsshtml5_getParameterByName("voice", recursionLevel);
2773 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["lang"] = vhsshtml5_getParameterByName("language", recursionLevel);
2774 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["engine"] = vhsshtml5_getParameterByName("engine", recursionLevel);
2775 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effect"] = vhsshtml5_getParameterByName("fx_type", recursionLevel);
2776 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effLevel"] = vhsshtml5_getParameterByName("fx_level", recursionLevel);
2777 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["sayUrl"](recursionLevel, fileErrorCallback, audioLoadedCallback, audioStartedCallback, audioFinishedCallback);
2778 },
2779 loadAudio : function(data) {
2780 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] != "") {
2781 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] = "&" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
2782 }
2783 /** @type {!XMLHttpRequest} */
2784 var self = new XMLHttpRequest;
2785 var oldV = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_json_url_str"] + "/admin/getAudioByNameMP3.php?audioname=" + data + "&acc=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
2786 /**
2787 * @return {undefined}
2788 */
2789 self["onreadystatechange"] = function() {
2790 if (self["readyState"] == 4 && self["status"] == 200) {
2791 var origMenu = self["responseText"];
2792 origMenu = origMenu["replace"]("location=", "");
2793 responseTxtArr = origMenu["split"]("&");
2794 if (origMenu != "ERROR 2" && responseTxtArr[0] != "ERROR 1") {
2795 if (typeof vh_audioLoaded == "function") {
2796 vh_audioLoaded(data, vhsshtml5_scenenumber);
2797 }
2798 } else {
2799 if (window["console"]) {
2800 console["log"](origMenu + " Bad Audio");
2801 }
2802 if (vhsshtml5_audiosarr["length"] == 0 && vhssHTML_vhTalkStarted == 1) {
2803 if (typeof vh_talkEnded == "function") {
2804 vh_talkEnded(0, vhsshtml5_scenenumber);
2805 }
2806 }
2807 /** @type {number} */
2808 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_talkkstarted"] = 1;
2809 vh_mc["hideLoader"]();
2810 }
2811 }
2812 };
2813 self["open"]("GET", oldV, true);
2814 self["send"]();
2815 },
2816 setBackground : function(value) {
2817 if (value !== "" && value !== undefined) {
2818 if (document["getElementById"]("vhss_bgVideo")) {
2819 document["getElementById"]("vhss_bgVideo")["style"]["display"] = "block";
2820 }
2821 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] != "") {
2822 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] = "&" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
2823 }
2824 /** @type {!XMLHttpRequest} */
2825 var _related2 = new XMLHttpRequest;
2826 var relationName = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_json_url_str"] + "/php/admin/getBGByNameV2/bgname=" + value + "&acc=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
2827 /**
2828 * @return {undefined}
2829 */
2830 _related2["onreadystatechange"] = function() {
2831 if (_related2["readyState"] == 4 && _related2["status"] == 200) {
2832 var _0xfa08x11a = _related2["responseText"]["replace"]("location=", "");
2833 var tiledImageBRs = _0xfa08x11a["split"]("&");
2834 if (tiledImageBRs[0] != "ERROR") {
2835 var tiledImageBR = tiledImageBRs[0];
2836 tiledImageBR = tiledImageBR["replace"]("http://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
2837 tiledImageBR = tiledImageBR["replace"]("https://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
2838 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = "url('" + tiledImageBR + "')";
2839 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundSize"] = "cover";
2840 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundRepeat"] = "no-repeat";
2841 }
2842 }
2843 };
2844 _related2["open"]("GET", relationName, true);
2845 _related2["send"]();
2846 } else {
2847 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = "unset";
2848 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundSize"] = "unset";
2849 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundRepeat"] = "unset";
2850 }
2851 },
2852 gotoNextScene : function() {
2853 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneloadinprogress"] == 0) {
2854 /** @type {number} */
2855 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_nextprevinterrupt"] = 1;
2856 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickStatus"] = "gotoScene";
2857 /** @type {number} */
2858 var offset = parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]) + parseInt(1);
2859 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset] !== undefined) {
2860 /** @type {number} */
2861 var frameDataOffset = offset + parseInt(1);
2862 appendBgImage(frameDataOffset);
2863 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prevCharUrl_"] == vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["char"]) {
2864 haveGroupOnServer(offset);
2865 } else {
2866 followCursorCopy(0);
2867 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cursor_status"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["cursor_status"];
2868 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["_char_type_"];
2869 /** @type {!Array} */
2870 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_interrupt_arr"] = [];
2871 /** @type {number} */
2872 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] = 1;
2873 /** @type {number} */
2874 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 0;
2875 /** @type {number} */
2876 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] = offset;
2877 setscenelinks(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]);
2878 if (!vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][offset]["mp3"]) {
2879 /** @type {number} */
2880 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 1;
2881 } else {
2882 /** @type {number} */
2883 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 0;
2884 }
2885 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["play"] != undefined) {
2886 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["play"];
2887 }
2888 /** @type {number} */
2889 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] = 0;
2890 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"] != undefined) {
2891 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"];
2892 }
2893 Character3DUnload();
2894 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["loopvideo"] != "") {
2895 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioStarted"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["loopvideo"];
2896 }
2897 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][offset]["mp3"];
2898 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["length"] <= 1) {
2899 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["shift"]();
2900 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
2901 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"]["shift"]();
2902 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
2903 }
2904 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["hostx"];
2905 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostY"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["hosty"];
2906 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostScale"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["hostscale"];
2907 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "html5") {
2908 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"];
2909 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundSize"] = "unset";
2910 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] != undefined && vhssHTML_scenesObj["vhsshtml5_is3d"] <= 0) {
2911 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"]["unload"]();
2912 /** @type {null} */
2913 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = null;
2914 /** @type {null} */
2915 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
2916 if (window["console"]) {
2917 console["log"]("3d engine unloaded.");
2918 }
2919 }
2920 if (vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] != null && vhssHTML_scenes[vhsshtml5_scenenumber]["hasOwnProperty"]("div3D") && document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["contains"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"])) {
2921 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"]);
2922 }
2923 if (vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] == null) {
2924 var _0xfa08x62 = document["createElement"]("canvas");
2925 _0xfa08x62["id"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"];
2926 _0xfa08x62["width"] = canvasWidth;
2927 _0xfa08x62["height"] = canvasHeight;
2928 vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] = _0xfa08x62;
2929 }
2930 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["appendChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"]);
2931 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] = new com["oddcast"]["app"]["vhss_extraction"].VHSSHostJS;
2932 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"]["initAPI"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"]);
2933 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["shift"]();
2934 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]);
2935 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["shift"]();
2936 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"]);
2937 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Obj_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"];
2938 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] == 1) {
2939 vh_mc["resumeAudio"]();
2940 vh_mc["stopSpeech"]();
2941 }
2942 vh_mc["init"]({
2943 debug_window : true
2944 }, vhsshtml5_callback);
2945 if (typeof vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"] != "undefined") {
2946 vh_mc["displayLoader"]();
2947 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"]);
2948 } else {
2949 _bkgrnd = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"];
2950 var objtxt = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setStageDimensions"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"]);
2951 resize_buttons(objtxt);
2952 characterFullyLoaded();
2953 }
2954 } else {
2955 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "3d") {
2956 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"];
2957 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundSize"] = "unset";
2958 unload2DEngine();
2959 if (vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] != null && document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["contains"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"])) {
2960 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"]);
2961 }
2962 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] == "" || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] == null) {
2963 if (vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] == null) {
2964 var _0xfa08x61 = document["createElement"]("div");
2965 _0xfa08x61["id"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_openfl_content"];
2966 vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] = _0xfa08x61;
2967 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["appendChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"]);
2968 lime["embed"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_openfl_content"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_threeD_width"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_threeD_height"]);
2969 } else {
2970 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["appendChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"]);
2971 }
2972 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = new com["oddcast"]["app"]["openfl"]["engine3DGLView"].GLViewMain;
2973 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"]["getHostAPI"]();
2974 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["shift"]();
2975 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]);
2976 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["shift"]();
2977 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"]);
2978 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Obj_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"];
2979 }
2980 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"]);
2981 } else {
2982 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["expression"];
2983 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression_amp"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["expression_amp"];
2984 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] == 1) {
2985 vh_mc["stopSpeech"]();
2986 }
2987 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] == "") {
2988 vh_mc["init"]({
2989 debug_window : true
2990 }, vhsshtml5_callback);
2991 }
2992 vh_mc["displayLoader"]();
2993 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][offset]["char"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][offset]["background"]);
2994 }
2995 }
2996 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prevCharUrl_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][offset]["char"];
2997 _prevBgUrl_ = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][offset]["background"];
2998 vhsshtml5_addButtonEvents();
2999 }
3000 }
3001 } else {
3002 if (window["console"]) {
3003 console["log"]("Scene loading is already in progress.");
3004 }
3005 }
3006 },
3007 gotoPrevScene : function() {
3008 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneloadinprogress"] == 0) {
3009 /** @type {number} */
3010 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_nextprevinterrupt"] = 1;
3011 /** @type {number} */
3012 var e = parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]) - parseInt(1);
3013 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickStatus"] = "gotoScene";
3014 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][e] !== undefined) {
3015 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prevCharUrl_"] == vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][e]["char"]) {
3016 haveGroupOnServer(e);
3017 } else {
3018 followCursorCopy(0);
3019 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cursor_status"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][e]["cursor_status"];
3020 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][e]["_char_type_"];
3021 /** @type {!Array} */
3022 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_interrupt_arr"] = [];
3023 /** @type {number} */
3024 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] = 1;
3025 /** @type {number} */
3026 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 0;
3027 /** @type {number} */
3028 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] = e;
3029 setscenelinks(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]);
3030 if (!vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][e]["mp3"]) {
3031 /** @type {number} */
3032 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 1;
3033 } else {
3034 /** @type {number} */
3035 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 0;
3036 }
3037 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][e]["play"] != undefined) {
3038 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][e]["play"];
3039 }
3040 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"] != undefined) {
3041 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"];
3042 }
3043 /** @type {number} */
3044 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] = 0;
3045 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["loopvideo"] != "") {
3046 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioStarted"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["loopvideo"];
3047 }
3048 Character3DUnload();
3049 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][e]["mp3"];
3050 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["length"] <= 1) {
3051 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["shift"]();
3052 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
3053 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"]["shift"]();
3054 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
3055 }
3056 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "html5") {
3057 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"];
3058 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundSize"] = "unset";
3059 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] != undefined && vhssHTML_scenesObj["vhsshtml5_is3d"] <= 0) {
3060 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"]["unload"]();
3061 /** @type {null} */
3062 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = null;
3063 /** @type {null} */
3064 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
3065 if (window["console"]) {
3066 console["log"]("3d engine unloaded.");
3067 }
3068 }
3069 if (vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] != null && vhssHTML_scenes[vhsshtml5_scenenumber]["hasOwnProperty"]("div3D") && document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["contains"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"])) {
3070 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"]);
3071 }
3072 if (vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] == null) {
3073 var _0xfa08x62 = document["createElement"]("canvas");
3074 _0xfa08x62["id"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"];
3075 _0xfa08x62["width"] = canvasWidth;
3076 _0xfa08x62["height"] = canvasHeight;
3077 vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] = _0xfa08x62;
3078 }
3079 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["appendChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"]);
3080 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] = new com["oddcast"]["app"]["vhss_extraction"].VHSSHostJS;
3081 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"]["initAPI"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"]);
3082 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["shift"]();
3083 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]);
3084 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["shift"]();
3085 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"]);
3086 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Obj_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"];
3087 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] == 1) {
3088 vh_mc["resumeAudio"]();
3089 vh_mc["stopSpeech"]();
3090 }
3091 vh_mc["init"]({
3092 debug_window : true
3093 }, vhsshtml5_callback);
3094 if (typeof vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"] != "undefined") {
3095 vh_mc["displayLoader"]();
3096 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"]);
3097 } else {
3098 _bkgrnd = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"];
3099 var objtxt = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setStageDimensions"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"]);
3100 resize_buttons(objtxt);
3101 /** @type {number} */
3102 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneloadinprogress"] = 0;
3103 characterFullyLoaded();
3104 }
3105 } else {
3106 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "3d") {
3107 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"];
3108 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundSize"] = "unset";
3109 unload2DEngine();
3110 if (vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] != null && document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["contains"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"])) {
3111 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"]);
3112 }
3113 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] == "" || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] == null) {
3114 if (vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] == null) {
3115 var _0xfa08x61 = document["createElement"]("div");
3116 _0xfa08x61["id"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_openfl_content"];
3117 vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] = _0xfa08x61;
3118 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["appendChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"]);
3119 lime["embed"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_openfl_content"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_threeD_width"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_threeD_height"]);
3120 } else {
3121 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["appendChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"]);
3122 }
3123 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = new com["oddcast"]["app"]["openfl"]["engine3DGLView"].GLViewMain;
3124 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"]["getHostAPI"]();
3125 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["shift"]();
3126 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]);
3127 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["shift"]();
3128 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"]);
3129 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Obj_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"];
3130 }
3131 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"]);
3132 } else {
3133 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][e]["hostx"];
3134 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostY"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][e]["hosty"];
3135 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostScale"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][e]["hostscale"];
3136 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][e]["expression"];
3137 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression_amp"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][e]["expression_amp"];
3138 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] == 1) {
3139 vh_mc["stopSpeech"]();
3140 }
3141 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] == "") {
3142 vh_mc["init"]({
3143 debug_window : true
3144 }, vhsshtml5_callback);
3145 }
3146 vh_mc["displayLoader"]();
3147 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][e]["char"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][e]["background"]);
3148 }
3149 }
3150 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prevCharUrl_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][e]["char"];
3151 _prevBgUrl_ = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][e]["background"];
3152 vhsshtml5_addButtonEvents();
3153 }
3154 }
3155 } else {
3156 if (window["console"]) {
3157 console["log"]("Scene loading is already in progress.");
3158 }
3159 }
3160 },
3161 gotoScene : function(time) {
3162 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneloadinprogress"] == 0) {
3163 /** @type {number} */
3164 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_nextprevinterrupt"] = 1;
3165 if (time["indexOf"]("-") > -1) {
3166 var sArrDayId = time["split"]("-");
3167 /** @type {number} */
3168 var tmp = parseInt(sArrDayId[0]);
3169 /** @type {number} */
3170 var number = parseInt(sArrDayId[1]);
3171 time = Math["floor"](Math["random"]() * number) + tmp;
3172 }
3173 /** @type {number} */
3174 var offset = parseInt(time) - parseInt(1);
3175 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickStatus"] = "gotoScene";
3176 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset] !== undefined) {
3177 /** @type {number} */
3178 var frameDataOffset = offset + parseInt(1);
3179 appendBgImage(frameDataOffset);
3180 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prevCharUrl_"] == vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["char"]) {
3181 haveGroupOnServer(offset);
3182 } else {
3183 followCursorCopy(0);
3184 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cursor_status"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["cursor_status"];
3185 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["_char_type_"];
3186 /** @type {!Array} */
3187 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_interrupt_arr"] = [];
3188 if (!vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][offset]["mp3"]) {
3189 /** @type {number} */
3190 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 1;
3191 } else {
3192 /** @type {number} */
3193 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 0;
3194 }
3195 /** @type {number} */
3196 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] = offset;
3197 /** @type {number} */
3198 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] = 1;
3199 /** @type {number} */
3200 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 0;
3201 setscenelinks(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]);
3202 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["play"] != undefined) {
3203 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["play"];
3204 }
3205 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["loopvideo"] != "") {
3206 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioStarted"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["loopvideo"];
3207 }
3208 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"] != undefined) {
3209 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"];
3210 }
3211 /** @type {number} */
3212 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] = 0;
3213 Character3DUnload();
3214 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][offset]["mp3"];
3215 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["length"] <= 1) {
3216 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["shift"]();
3217 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
3218 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"]["shift"]();
3219 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
3220 }
3221 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "html5") {
3222 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"];
3223 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundSize"] = "unset";
3224 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] != undefined && vhssHTML_scenesObj["vhsshtml5_is3d"] <= 0) {
3225 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"]["unload"]();
3226 /** @type {null} */
3227 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = null;
3228 /** @type {null} */
3229 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
3230 if (window["console"]) {
3231 console["log"]("3d engine unloaded.");
3232 }
3233 }
3234 if (vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] != null && vhssHTML_scenes[vhsshtml5_scenenumber]["hasOwnProperty"]("div3D") && document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["contains"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"])) {
3235 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"]);
3236 }
3237 if (vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] == null) {
3238 var _0xfa08x62 = document["createElement"]("canvas");
3239 _0xfa08x62["id"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"];
3240 _0xfa08x62["width"] = canvasWidth;
3241 _0xfa08x62["height"] = canvasHeight;
3242 vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] = _0xfa08x62;
3243 }
3244 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["appendChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"]);
3245 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] = new com["oddcast"]["app"]["vhss_extraction"].VHSSHostJS;
3246 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"]["initAPI"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"]);
3247 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["shift"]();
3248 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]);
3249 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["shift"]();
3250 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"]);
3251 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Obj_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"];
3252 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] == 1) {
3253 vh_mc["resumeAudio"]();
3254 vh_mc["stopSpeech"]();
3255 }
3256 vh_mc["init"]({
3257 debug_window : true
3258 }, vhsshtml5_callback);
3259 vh_mc["displayLoader"]();
3260 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"]);
3261 } else {
3262 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["hostx"];
3263 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostY"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["hosty"];
3264 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostScale"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["hostscale"];
3265 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["expression"];
3266 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression_amp"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][offset]["expression_amp"];
3267 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] == 1) {
3268 vh_mc["stopSpeech"]();
3269 }
3270 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] == "") {
3271 vh_mc["init"]({
3272 debug_window : true
3273 }, vhsshtml5_callback);
3274 }
3275 vh_mc["displayLoader"]();
3276 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][offset]["char"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][offset]["background"]);
3277 }
3278 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prevCharUrl_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][offset]["char"];
3279 _prevBgUrl_ = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_management_arr_"][offset]["background"];
3280 vhsshtml5_addButtonEvents();
3281 }
3282 }
3283 } else {
3284 if (window["console"]) {
3285 console["log"]("Scene loading is already in progress.");
3286 }
3287 }
3288 },
3289 setNextSceneIndex : function(aNum) {
3290 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickStatus"] = "gotoScene";
3291 if (aNum["indexOf"]("-") > -1) {
3292 var sArrDayId = aNum["split"]("-");
3293 /** @type {number} */
3294 var whiteRating = parseInt(sArrDayId[0]);
3295 /** @type {number} */
3296 var number = parseInt(sArrDayId[1]);
3297 var numpaged = Math["floor"](Math["random"]() * number) + whiteRating;
3298 /** @type {number} */
3299 var _0xfa08x124 = parseInt(numpaged) - parseInt(1);
3300 } else {
3301 /** @type {number} */
3302 _0xfa08x124 = parseInt(aNum) - parseInt(1);
3303 }
3304 /** @type {number} */
3305 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] = _0xfa08x124;
3306 },
3307 setColor : function(value, color) {
3308 _setColor(value, color);
3309 },
3310 setLink : function(container, item, value) {
3311 _setLink(container, item, value);
3312 },
3313 restart : function() {
3314 _say(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["txt"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["voice"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["lang"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["engine"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effect"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effLevel"]);
3315 },
3316 stopSpeech : function() {
3317 _stopSpeech();
3318 },
3319 recenter : function() {
3320 _recenter();
3321 },
3322 pauseAudio : function() {
3323 _freezeToggle("pause");
3324 },
3325 getCurrentAudioProgress : function() {
3326 _getCurrentAudioProgress();
3327 },
3328 resumeAudio : function() {
3329 _freezeToggle("resume");
3330 },
3331 freezeToggle : function() {
3332 _freezeToggle();
3333 },
3334 setIdleMovement : function($phone, initialValue) {
3335 _setIdleMovement($phone, initialValue);
3336 },
3337 setSpeechMovement : function(quantityNeeded) {
3338 _setSpeechMovement(quantityNeeded);
3339 },
3340 sayAIResponse : function(mmCoreLogEnabledDefault, mmCoreLogEnabledConfigName, newSrc, isBgroundImg, nmeaMessage, isSlidingUp, $cont, $slides) {
3341 if (typeof nmeaMessage != undefined) {
3342 /** @type {null} */
3343 nmeaMessage = null;
3344 }
3345 var _0xfa08x12e = mmCoreLogEnabledDefault["replace"]("%20", "");
3346 var _0xfa08x107 = "<p class=\"ques\">Q - " + _0xfa08x12e + "</p>";
3347 var ijsObject = "sitepalaisession";
3348 var i = vhsshtml5_randomString(32, "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
3349 var start = i;
3350 /** @type {number} */
3351 var data = 1;
3352 var path = vhsshtml5_checkCookieAI(ijsObject, start, data);
3353 var result = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_domain_vhss_url"] + "/ai/input.php?sess=" + path;
3354 result = result["replace"]("http://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
3355 result = result["replace"]("https://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
3356 /** @type {!XMLHttpRequest} */
3357 var self = new XMLHttpRequest;
3358 /**
3359 * @return {undefined}
3360 */
3361 self["onreadystatechange"] = function() {
3362 if (self["readyState"] == 4 && self["status"] == 200) {
3363 var origMenu = self["responseText"];
3364 if (origMenu["indexOf"]("error=") == -1) {
3365 var widgetArr = origMenu["split"]("&display=");
3366 var _maskLayer = widgetArr[0];
3367 _maskLayer = _maskLayer["replace"]("response=", "");
3368 var _0xfa08x2e = document["getElementsByName"]("message");
3369 if (typeof vh_aiResponse == "function") {
3370 vh_aiResponse(widgetArr[1], vhsshtml5_scenenumber);
3371 }
3372 vh_mc["sayText"](_maskLayer, mmCoreLogEnabledConfigName, newSrc, isBgroundImg, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"], 0, $slides);
3373 } else {
3374 if (window["console"]) {
3375 console["log"]("Error Occured.");
3376 }
3377 }
3378 }
3379 };
3380 self["open"]("POST", result, true);
3381 self["setRequestHeader"]("Content-type", "application/x-www-form-urlencoded");
3382 self["send"]("text=" + mmCoreLogEnabledDefault + "&aiEngine=" + vhssHTML_scenes[vhsshtml5_scenenumber]["aiEngine"] + "&botid=" + nmeaMessage + "&acc=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"]);
3383 },
3384 setStatus : function(oInput, sStatus, sMessage) {
3385 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_interrupt_mode"] = oInput;
3386 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_progress_interval"] = sStatus;
3387 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_gaze_speed"] = sMessage;
3388 },
3389 sayAIResponseExported : function(mmCoreLogEnabledDefault, mmCoreLogEnabledConfigName, newSrc, isBgroundImg, isSlidingUp, $cont, $slides, callback) {
3390 var _0xfa08x12e = mmCoreLogEnabledDefault["replace"]("%20", "");
3391 var _0xfa08x107 = "<p class=\"ques\">Q - " + _0xfa08x12e + "</p>";
3392 document["getElementById"]("aIresponse")["innerHTML"] += _0xfa08x107;
3393 var ijsObject = "sitepalaisession";
3394 var i = vhsshtml5_randomString(32, "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
3395 var start = i;
3396 /** @type {number} */
3397 var data = 1;
3398 var path = vhsshtml5_checkCookieAI(ijsObject, start, data);
3399 var result = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_domain_vhss_url"] + "/ai/input.php?sess=" + path;
3400 result = result["replace"]("http://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
3401 result = result["replace"]("https://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
3402 /** @type {!XMLHttpRequest} */
3403 var self = new XMLHttpRequest;
3404 /**
3405 * @return {undefined}
3406 */
3407 self["onreadystatechange"] = function() {
3408 if (self["readyState"] == 4 && self["status"] == 200) {
3409 var origMenu = self["responseText"];
3410 if (origMenu["indexOf"]("error=") == -1) {
3411 var _0xfa08x133 = origMenu["split"]("&display=");
3412 var _0xfa08x107 = "<p class=\"ans\">A - " + _0xfa08x133[1] + "</p>";
3413 document["getElementById"]("aIresponse")["innerHTML"] += _0xfa08x107;
3414 document["getElementById"]("textToSay2")["value"] = "";
3415 vh_mc["sayText"](_0xfa08x133[1], mmCoreLogEnabledConfigName, newSrc, isBgroundImg, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"], 0, callback);
3416 } else {
3417 if (window["console"]) {
3418 console["log"]("Error Occured.");
3419 }
3420 }
3421 }
3422 };
3423 self["open"]("POST", result, true);
3424 self["setRequestHeader"]("Content-type", "application/x-www-form-urlencoded");
3425 self["send"]("text=" + mmCoreLogEnabledDefault + "&aiEngine=" + vhssHTML_scenes[vhsshtml5_scenenumber]["aiEngine"] + "&botid=" + isSlidingUp + "&acc=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"]);
3426 },
3427 replay : function() {
3428 vh_mc["displayLoader"]();
3429 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"] != "") {
3430 vh_mc["sayText"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_voice_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lang_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_var"]);
3431 } else {
3432 var artistTrack = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"];
3433 vh_mc["sayAudio"](artistTrack, "");
3434 }
3435 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
3436 document["getElementById"]("_play")["style"]["display"] = "none";
3437 document["getElementById"]("_resume")["style"]["display"] = "none";
3438 document["getElementById"]("_pause")["style"]["display"] = "inline-block";
3439 document["getElementById"]("_replay")["style"]["display"] = "inline-block";
3440 document["getElementById"]("_resume")["style"]["width"] = "50%";
3441 }
3442 },
3443 replay2 : function() {
3444 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"] != "") {
3445 _say(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["txt"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["voice"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["lang"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["engine"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effect"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effLevel"]);
3446 } else {
3447 var artistTrack = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["mp3"];
3448 vh_mc["sayAudio"](artistTrack, "");
3449 }
3450 },
3451 setBackgroundColor : function(callback) {
3452 if (typeof _canvas == "undefined") {
3453 return;
3454 }
3455 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundColor"] = "#" + callback;
3456 },
3457 charLoadStatus : function(canCreateDiscussions) {
3458 _stopSpeech();
3459 },
3460 displayLoader : function() {
3461 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_loading_img_delay_time_"] > 0) {
3462 /** @type {number} */
3463 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_myTimer"] = setTimeout(function() {
3464 if (typeof vh_displayLoaderCalled == "function") {
3465 vh_displayLoaderCalled();
3466 }
3467 var _0xfa08x2e = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"]);
3468 if (_0xfa08x2e) {
3469 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
3470 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"])["style"]["display"] = "block";
3471 }
3472 }
3473 }, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_loading_img_delay_time_"]);
3474 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_myTimer"]);
3475 }
3476 },
3477 hideLoader : function() {
3478 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_myTimer"]);
3479 /** @type {number} */
3480 var _0xfa08x139 = 0;
3481 for (; _0xfa08x139 < vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"]["length"]; _0xfa08x139++) {
3482 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"][i]);
3483 }
3484 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundSize"] = "cover";
3485 var _0xfa08x2e = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"]);
3486 if (_0xfa08x2e) {
3487 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"])["style"]["display"] = "none";
3488 }
3489 },
3490 isPointOverHost : function(mmCoreSplitViewBlock, $state) {
3491 return _isPointOverHost(mmCoreSplitViewBlock, $state);
3492 },
3493 is3D : function() {
3494 return _is3D();
3495 },
3496 say : function(text, title, options, processor, data, callback) {
3497 return _say(text, title, options, processor, data, callback);
3498 },
3499 sayie10 : function(mmCoreSplitViewBlock) {
3500 return _sayie10(mmCoreSplitViewBlock);
3501 },
3502 setFacialExpression : function(isBgroundImg, $state, Chat) {
3503 return _setFacialExpression(isBgroundImg, $state, Chat);
3504 },
3505 getAvailableExpressions : function() {
3506 return _getAvailableExpressions();
3507 },
3508 clearExpressionList : function() {
3509 return _clearExpressionList();
3510 },
3511 resize : function(elem, newSize) {
3512 return _resize(elem, newSize);
3513 },
3514 emptyaudioCallback : function(isBgroundImg) {
3515 return _emptyaudioCallback(isBgroundImg);
3516 },
3517 playAudio : function(target, image) {
3518 return _playAudio(target, image);
3519 }
3520 };
3521}();
3522/**
3523 * @param {?} version
3524 * @param {?} force
3525 * @return {undefined}
3526 */
3527function _loadPlayer(version, force) {
3528 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_added3Ddiv"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_added3Ddiv"] + 1;
3529 if (window["console"]) {
3530 console["log"]("loadPersona triggered.");
3531 }
3532 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["loadPersona"](force, errorWhileCharacterLoading, characterLoadedOnScreen, characterFullyLoaded);
3533 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setHostPos"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostY"]);
3534 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setHostScale"](parseFloat(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostScale"]), 1);
3535 var objtxt = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setStageDimensions"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"]);
3536 changedBtnPosition(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"]);
3537 resize_buttons(objtxt);
3538}
3539/**
3540 * @return {undefined}
3541 */
3542function _loadPlayerDimensions() {
3543 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setHostPos"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostY"]);
3544 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setHostScale"](parseFloat(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostScale"]), 1);
3545 var objtxt = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setStageDimensions"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"]);
3546 changedBtnPosition(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"]);
3547 resize_buttons(objtxt);
3548}
3549/**
3550 * @param {string} pwd
3551 * @return {undefined}
3552 */
3553function audioLoadedCallback(pwd) {
3554 /** @type {number} */
3555 var _0xfa08x139 = 0;
3556 for (; _0xfa08x139 < vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"]["length"]; _0xfa08x139++) {
3557 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"][i]);
3558 }
3559 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeOut_var"]);
3560 var _0xfa08x2e = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"]);
3561 if (_0xfa08x2e) {
3562 if (_0xfa08x2e["length"] > 0 && typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
3563 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"])["style"]["display"] = "none";
3564 }
3565 }
3566 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"])["style"]["display"] = "none";
3567 if (window["console"]) {
3568 console["log"]("Audio Loaded");
3569 }
3570 if (pwd && pwd != "" && pwd != undefined) {
3571 if (pwd["indexOf"]("presound.mp3") < 0) {
3572 /** @type {string} */
3573 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = pwd;
3574 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["length"] <= 1) {
3575 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["shift"]();
3576 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
3577 }
3578 }
3579 }
3580 var numCount = vhsshtml5_getParameterByName("allowAlert", pwd);
3581 if (numCount == 1) {
3582 numCount = vhsshtml5_getParameterByName("text", pwd);
3583 if (numCount != null) {
3584 alert("The text \"" + numCount + "\" is loaded.");
3585 }
3586 }
3587 /** @type {number} */
3588 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_eventStatus"] = 1;
3589}
3590/**
3591 * @param {?} formatters
3592 * @param {?} customFormatters
3593 * @return {undefined}
3594 */
3595function audioStartedCallback(formatters, customFormatters) {
3596 /** @type {number} */
3597 vhsshtml5_isErrorNotOccured = 1;
3598 /** @type {number} */
3599 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioStarted"] = 1;
3600 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] != "") {
3601 vhsshtml5VidPlay();
3602 }
3603 if (window["console"]) {
3604 console["log"]("Audio Started");
3605 }
3606 if (vhssHTML_vhTalkStarted == 0) {
3607 /** @type {number} */
3608 vhssHTML_vhTalkStarted = 1;
3609 if (typeof vh_talkStarted == "function") {
3610 vh_talkStarted(vhsshtml5_scenenumber);
3611 }
3612 }
3613 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] == "start") {
3614 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] > 0) {
3615 setTimeout(function() {
3616 var _0xfa08x2e = document["getElementsByTagName"]("iframe");
3617 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] !== "") {
3618 if (_0xfa08x2e["length"] > 0 && typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] == "_self") {
3619 setClickforLink0(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"]);
3620 } else {
3621 setClickforLink1(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"]);
3622 }
3623 }
3624 }, parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"]) * 1E3);
3625 } else {
3626 var _0xfa08x2e = document["getElementsByTagName"]("iframe");
3627 if (_0xfa08x2e["length"] > 0 && typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] == "_self") {
3628 setClickforLink0(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"]);
3629 } else {
3630 setClickforLink1(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"]);
3631 }
3632 }
3633 }
3634 vhsshtml5_tracking_api("v", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_accId"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneId"], 7, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_domvar"], 0, 0, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_etvar"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apvar"]);
3635 /** @type {number} */
3636 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audrun"] = 0;
3637 /** @type {number} */
3638 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scripts"] = 0;
3639 /** @type {number} */
3640 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] = 1;
3641 if (typeof vh_audioStarted == "function" && formatters["indexOf"]("presound.mp3") < 0) {
3642 vh_audioStarted(vhsshtml5_scenenumber);
3643 }
3644 if (typeof vh_audioProgress == "function" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_progress_interval"] > 0) {
3645 clearInterval(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioTimer_"]);
3646 /** @type {number} */
3647 var rumbleSpeed = parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_seconds_interval"]) * parseInt(1E3);
3648 /** @type {number} */
3649 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioTimer_"] = setInterval(function() {
3650 calculateAudioPercentage();
3651 }, rumbleSpeed);
3652 }
3653 vh_mc["hideLoader"]();
3654 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_myTimer"]);
3655 /** @type {number} */
3656 var _0xfa08x139 = 0;
3657 for (; _0xfa08x139 < vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"]["length"]; _0xfa08x139++) {
3658 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"][i]);
3659 }
3660 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeOut_var"]);
3661 _0xfa08x2e = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"]);
3662 if (_0xfa08x2e) {
3663 if (_0xfa08x2e["length"] > 0 && typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
3664 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"])["style"]["display"] = "none";
3665 }
3666 }
3667 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"])["style"]["display"] = "none";
3668 vhsshtml5_enabledButtons();
3669 vhsshtml5_displayPauseReplayButtons();
3670}
3671/**
3672 * @param {string} a
3673 * @param {number} i
3674 * @param {!Array} array
3675 * @return {undefined}
3676 */
3677function audioFinishedCallback(a, i, array) {
3678 vhsshtml5_audiosarr["shift"]();
3679 if (vhsshtml5_audiosarr["length"] <= 0) {
3680 /** @type {number} */
3681 vhsshtml5_audiorunning = 0;
3682 } else {
3683 vhsshtml5_callAudiotoPlay();
3684 }
3685 /** @type {number} */
3686 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioStarted"] = 0;
3687 /** @type {number} */
3688 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] = 0;
3689 /** @type {number} */
3690 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneloadinprogress"] = 0;
3691 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] != "") {
3692 vhsshtml5VidStop();
3693 }
3694 /** @type {number} */
3695 vhssHTML_scenes[vhsshtml5_scenenumber]["audarrempty"] = 1;
3696 vhsshtml5_enabledButtons();
3697 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_myTimer"]);
3698 /** @type {number} */
3699 var timeoutField = 0;
3700 for (; timeoutField < vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"]["length"]; timeoutField++) {
3701 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"][i]);
3702 }
3703 var _0xfa08x2e = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"]);
3704 if (_0xfa08x2e) {
3705 if (_0xfa08x2e["length"] > 0 && typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
3706 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"])["style"]["display"] = "none";
3707 }
3708 }
3709 if (document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"])) {
3710 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5___loading__"])["style"]["display"] = "none";
3711 }
3712 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] == "end" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] == 1) {
3713 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] > 0) {
3714 setTimeout(function() {
3715 var _0xfa08x2e = document["getElementsByTagName"]("iframe");
3716 if (_0xfa08x2e["length"] > 0 && typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] == "_self") {
3717 setClickforLink0(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"]);
3718 } else {
3719 setClickforLink1(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"]);
3720 }
3721 }, parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"]) * 1E3);
3722 } else {
3723 _0xfa08x2e = document["getElementsByTagName"]("iframe");
3724 if (_0xfa08x2e["length"] > 0 && typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] == "_self") {
3725 setClickforLink0(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"]);
3726 } else {
3727 setClickforLink1(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"]);
3728 }
3729 }
3730 }
3731 var aStatedRank = checkAndSetAutoAdvance();
3732 /** @type {number} */
3733 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 1;
3734 /** @type {number} */
3735 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audrun"] = 0;
3736 /** @type {number} */
3737 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scripts"] = 0;
3738 /** @type {number} */
3739 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] = 0;
3740 /** @type {number} */
3741 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_onloadaudio"] = 0;
3742 /** @type {number} */
3743 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_intruptloopplayed"] = 0;
3744 if (window["console"]) {
3745 console["log"]("Audio Finished.");
3746 }
3747 if (typeof vh_audioProgress == "function" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_progress_interval"] > 0) {
3748 clearInterval(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioTimer_"]);
3749 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_eventStatus"] == 1) {
3750 vh_audioProgress(100, vhsshtml5_scenenumber);
3751 }
3752 }
3753 if (a && a != "" && a != undefined) {
3754 if (a["indexOf"]("presound.mp3") < 0) {
3755 var testAsync = vhsshtml5_getParameterByName("status", a);
3756 }
3757 if (typeof vh_audioEnded == "function" && a["indexOf"]("presound.mp3") < 0) {
3758 vh_audioEnded(vhsshtml5_scenenumber);
3759 }
3760 }
3761 vhsshtml5_enabledButtons();
3762 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_myTimer"]);
3763 /** @type {number} */
3764 timeoutField = 0;
3765 for (; timeoutField < vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"]["length"]; timeoutField++) {
3766 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"][timeoutField]);
3767 }
3768 if (vhsshtml5_audiosarr["length"] <= 1) {
3769 vhsshtml5_tracking_api("v", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_accId"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneId"], 7, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_domvar"], 0, 0, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_etvar"], "&ev[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][]=ae");
3770 }
3771 finishAudioAndShows();
3772 /** @type {number} */
3773 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickaudioPlay"] = 0;
3774 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] == 1 && vhssHTML_scenes[vhsshtml5_scenenumber]["audarrempty"] == 1 && vhssHTML_scenes[vhsshtml5_scenenumber]["audioadded"] == 0 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_assignedAudioLoaded"] == 1) {
3775 /** @type {number} */
3776 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhscenecalled"] = 0;
3777 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_disableSpeech_"] == 1) {
3778 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"]["length"] > 0) {
3779 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_const_arr"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"];
3780 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]) {
3781 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["_delay_time_"] != undefined) {
3782 aStatedRank = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["_delay_time_"];
3783 }
3784 }
3785 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] + 1] && (aStatedRank != undefined && !isNaN(aStatedRank)) && array === undefined) {
3786 var soupName = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] + parseInt(1);
3787 appendBgImage(soupName);
3788 startAutoAdvance(aStatedRank);
3789 } else {
3790 /** @type {number} */
3791 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 1;
3792 }
3793 }
3794 }
3795 }
3796 /** @type {number} */
3797 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_eventStatus"] = 0;
3798 /** @type {number} */
3799 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_donotplay"] = 0;
3800 if (vhssHTML_scenes[vhsshtml5_scenenumber]["setid"] && vhssHTML_scenes[vhsshtml5_scenenumber]["setid"] != "") {
3801 vhsshtml5_clickPlay(vhssHTML_scenes[vhsshtml5_scenenumber]["setid"]);
3802 }
3803}
3804/**
3805 * @param {number} num
3806 * @return {undefined}
3807 */
3808function startAutoAdvance(num) {
3809 if (window["console"]) {
3810 console["log"]("AutoAdvance called");
3811 }
3812 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_nextprevinterrupt"] == 0) {
3813 /** @type {number} */
3814 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneloadinprogress"] = 1;
3815 num = num + 1E3;
3816 setTimeout(function() {
3817 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] + 1;
3818 setscenelinks(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]);
3819 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["cursor_status"]) {
3820 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cursor_status"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["cursor_status"];
3821 } else {
3822 /** @type {number} */
3823 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cursor_status"] = 0;
3824 }
3825 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["_char_type_"];
3826 /** @type {number} */
3827 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fromscene"] = 1;
3828 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["play"] != undefined) {
3829 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["play"];
3830 }
3831 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prevCharUrl_"] == vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"]) {
3832 vhssCheckItPreScene(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]);
3833 } else {
3834 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["hostx"];
3835 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostY"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["hosty"];
3836 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostScale"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["hostscale"];
3837 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"] != undefined) {
3838 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playvar"];
3839 }
3840 /** @type {number} */
3841 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] = 0;
3842 Character3DUnload();
3843 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["loopvideo"] != "") {
3844 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioStarted"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["loopvideo"];
3845 }
3846 if (!vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["mp3"]) {
3847 /** @type {number} */
3848 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 1;
3849 } else {
3850 /** @type {number} */
3851 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 0;
3852 }
3853 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["mp3"];
3854 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["shift"]();
3855 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
3856 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"]["shift"]();
3857 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
3858 vhsshtml5_addButtonEvents();
3859 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prevCharUrl_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"];
3860 _prevBgUrl_ = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"];
3861 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "html5") {
3862 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"];
3863 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundSize"] = "unset";
3864 /** @type {boolean} */
3865 var _0xfa08x149 = true;
3866 if (vhssHTML_scenes["length"] > 1) {
3867 /** @type {number} */
3868 var i = 0;
3869 for (; i < vhssHTML_scenes["length"]; i++) {
3870 if (vhssHTML_scenes[i]["vhsshtml5_playerType"] == "3d") {
3871 /** @type {boolean} */
3872 _0xfa08x149 = false;
3873 }
3874 if (i + 1 == vhssHTML_scenes["length"] && _0xfa08x149) {
3875 unload3DEngine();
3876 }
3877 }
3878 } else {
3879 unload3DEngine();
3880 }
3881 if (vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] != null && vhssHTML_scenes[vhsshtml5_scenenumber]["hasOwnProperty"]("div3D") && document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["contains"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"])) {
3882 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"]);
3883 }
3884 if (vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] == null) {
3885 var _0xfa08x62 = document["createElement"]("canvas");
3886 _0xfa08x62["id"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"];
3887 _0xfa08x62["width"] = canvasWidth;
3888 _0xfa08x62["height"] = canvasHeight;
3889 vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] = _0xfa08x62;
3890 }
3891 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["appendChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"]);
3892 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] = new com["oddcast"]["app"]["vhss_extraction"].VHSSHostJS;
3893 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"]["initAPI"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"]);
3894 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["shift"]();
3895 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]);
3896 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["shift"]();
3897 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"]);
3898 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Obj_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"];
3899 vh_mc["init"]({
3900 debug_window : true
3901 }, vhsshtml5_callback);
3902 if (typeof vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"] != "undefined") {
3903 vh_mc["displayLoader"]();
3904 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"]);
3905 } else {
3906 _bkgrnd = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"];
3907 var objtxt = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setStageDimensions"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"]);
3908 resize_buttons(objtxt);
3909 /** @type {number} */
3910 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneloadinprogress"] = 0;
3911 characterFullyLoaded();
3912 }
3913 } else {
3914 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "3d") {
3915 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgImage"];
3916 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundSize"] = "unset";
3917 unload2DEngine();
3918 if (vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] != null && document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["contains"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"])) {
3919 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"]);
3920 }
3921 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] == "" || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] == null) {
3922 if (vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] == null) {
3923 var _0xfa08x61 = document["createElement"]("div");
3924 _0xfa08x61["id"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_openfl_content"];
3925 vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] = _0xfa08x61;
3926 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["appendChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"]);
3927 lime["embed"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_openfl_content"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_threeD_width"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_threeD_height"]);
3928 } else {
3929 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["appendChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"]);
3930 }
3931 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = new com["oddcast"]["app"]["openfl"]["engine3DGLView"].GLViewMain;
3932 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"]["getHostAPI"]();
3933 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["shift"]();
3934 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]);
3935 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["shift"]();
3936 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"]);
3937 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Obj_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"];
3938 }
3939 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"]);
3940 } else {
3941 unload2DEngine();
3942 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] != undefined) {
3943 if (vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] != null && document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["contains"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"])) {
3944 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeChild"](vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"]);
3945 }
3946 }
3947 vh_mc["displayLoader"]();
3948 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["hostx"];
3949 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostY"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["hosty"];
3950 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostScale"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["hostscale"];
3951 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["expression"];
3952 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression_amp"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["expression_amp"];
3953 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["char"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["background"]);
3954 }
3955 }
3956 }
3957 }, num);
3958 } else {
3959 if (window["console"]) {
3960 console["log"]("Scene loading is already in progress.");
3961 }
3962 }
3963}
3964/**
3965 * @return {undefined}
3966 */
3967function unload2DEngine() {
3968 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] != undefined) {
3969 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"]["unload"]();
3970 /** @type {null} */
3971 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] = null;
3972 /** @type {null} */
3973 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
3974 if (window["console"]) {
3975 console["log"]("2d engine unloaded.");
3976 }
3977 }
3978}
3979/**
3980 * @return {undefined}
3981 */
3982function unloadFB3DEngine() {
3983 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] != null && vhssHTML_scenes[vhsshtml5_scenenumber]["is_multiplechars"] == 0) {
3984 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"]["unload"]();
3985 /** @type {null} */
3986 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = null;
3987 /** @type {null} */
3988 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
3989 }
3990}
3991/**
3992 * @return {undefined}
3993 */
3994function unload3DEngine() {
3995 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] != undefined && vhssHTML_scenesObj["vhsshtml5_is3d"] <= 0) {
3996 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"]["unload"]();
3997 /** @type {null} */
3998 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = null;
3999 /** @type {null} */
4000 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
4001 }
4002}
4003/**
4004 * @return {undefined}
4005 */
4006function finishAudioAndShows() {
4007 if (vhsshtml5_audiosarr["length"] == 0 && (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] == 0 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhscenecalled"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickaudioPlay"] == 1)) {
4008 if (vhssHTML_vhTalkStarted == 1) {
4009 if (typeof vh_talkEnded == "function") {
4010 vh_talkEnded(vhsshtml5_scenenumber);
4011 }
4012 }
4013 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] != "") {
4014 vhsshtml5VidStop();
4015 }
4016 var DOMContentLoaded = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"];
4017 var timeStamp = document["getElementById"](DOMContentLoaded);
4018 if (timeStamp) {
4019 timeStamp["querySelector"]("#_play")["style"]["display"] = "inline-block";
4020 timeStamp["querySelector"]("#_pause")["style"]["display"] = "none";
4021 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] != "FB3D") {
4022 timeStamp["querySelector"]("#_replay")["style"]["display"] = "none";
4023 }
4024 timeStamp["querySelector"]("#_resume")["style"]["display"] = "none";
4025 timeStamp["querySelector"]("#_play")["style"]["width"] = "auto";
4026 }
4027 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlay_close_status"] == 1) {
4028 setTimeout(function() {
4029 overlayClose();
4030 }, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlay_close_value"] * 1E3);
4031 } else {
4032 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlay_close_status"] == 2) {
4033 minimizeVhost();
4034 }
4035 }
4036 } else {
4037 vhssHTML_scenes[vhsshtml5_scenenumber]["audioarrr"]["shift"]();
4038 }
4039}
4040/**
4041 * @return {undefined}
4042 */
4043function Character3DUnload() {
4044 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] != null) {
4045 if (typeof vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["resume"] == "function") {
4046 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["resume"]();
4047 }
4048 if (typeof vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["stopPlayingAudio"] == "function") {
4049 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["stopPlayingAudio"]();
4050 }
4051 if (typeof vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["unloadPersona"] == "function") {
4052 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["unloadPersona"]();
4053 }
4054 if (window["console"]) {
4055 console["log"]("3d character unload");
4056 }
4057 }
4058}
4059/**
4060 * @return {?}
4061 */
4062function checkAndSetAutoAdvance() {
4063 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] == 1) {
4064 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_disableSpeech_"] == 1) {
4065 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]) {
4066 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["_delay_time_"] != undefined) {
4067 var b = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["_delay_time_"];
4068 }
4069 }
4070 if (b == undefined && isNaN(b)) {
4071 /** @type {number} */
4072 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] = 0;
4073 }
4074 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] == 1) {
4075 if (!vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] + 1]) {
4076 /** @type {number} */
4077 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] = 0;
4078 }
4079 }
4080 }
4081 }
4082 return b;
4083}
4084/**
4085 * @param {string} url
4086 * @param {!Array} data
4087 * @return {undefined}
4088 */
4089function fileErrorCallback(url, data) {
4090 /** @type {!Array} */
4091 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"] = data;
4092 if (window["console"]) {
4093 console["log"](url + "--" + data + "Error!!!");
4094 }
4095 if (data["indexOf"]("Audio Requires User Input") === -1) {
4096 vhsshtml5_graberrors_api(data, url);
4097 }
4098 if (!vhssHTML_scenes[vhsshtml5_scenenumber]["audioarrr"][0]) {
4099 /** @type {number} */
4100 vhssHTML_scenes[vhsshtml5_scenenumber]["audioarrr"][0] = 0;
4101 }
4102 /** @type {number} */
4103 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_eventStatus"] = 1;
4104 audioFinishedCallback(url, "", data);
4105}
4106/**
4107 * @param {string} connection
4108 * @param {!Array} maxRadius
4109 * @return {undefined}
4110 */
4111function errorWhileCharacterLoading(connection, maxRadius) {
4112 vhsshtml5_graberrors_api(maxRadius, connection);
4113 if (window["console"]) {
4114 console["log"]("Error while character loading..");
4115 }
4116}
4117/**
4118 * @param {?} canCreateDiscussions
4119 * @return {undefined}
4120 */
4121function characterLoadedOnScreen(canCreateDiscussions) {
4122 vh_mc["hideLoader"]();
4123 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "3d" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression"] !== "1") {
4124 vh_mc["setFacialExpression"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_expression_amp"]);
4125 }
4126 changedBtnPosition(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"]);
4127 if (window["console"]) {
4128 console["log"]("Character loaded on screen.");
4129 }
4130}
4131/**
4132 * @param {?} canCreateDiscussions
4133 * @return {undefined}
4134 */
4135function characterFullyLoaded(canCreateDiscussions) {
4136 /** @type {number} */
4137 vhsshtml5_characterLoaded = 1;
4138 vhsshtml5_totalScenesLoaded = vhsshtml5_totalScenesLoaded + 1;
4139 vh_mc["hideLoader"]();
4140 if (parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"]) == 1 || parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"]) == 2) {
4141 if (document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"]) && vhsshtml5_mobileDetection == 0) {
4142 if (parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"]) == 2) {
4143 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"])["style"]["display"] = "block";
4144 }
4145 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["setAttribute"]("onmousemove", "vhsshtml5_displayButtons3(event,'" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
4146 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["setAttribute"]("ontouchstart", "vhsshtml5_displayButtons3(event,'" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
4147 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["setAttribute"]("onmouseout", "vhsshtml5_makeMouseOutFn(event,'" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
4148 } else {
4149 DisplaybuttonsForMobile();
4150 }
4151 }
4152 /** @type {number} */
4153 fb_embed_called = 0;
4154 create_vhsshtml5_urlparamsarrnew["shift"]();
4155 displayBackground();
4156 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"]["length"] > 0) {
4157 /** @type {number} */
4158 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fromscene"] = 1;
4159 }
4160 vhsshtml5_tracking_api("v", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_accId"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneId"], 7, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_domvar"], 0, 0, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_etvar"], "&ev[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][]=sv");
4161 /** @type {number} */
4162 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sayfunctions"] = 0;
4163 /** @type {number} */
4164 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] = 0;
4165 /** @type {number} */
4166 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_onloadaudio"] = 0;
4167 /** @type {number} */
4168 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_intruptloopplayed"] = 0;
4169 /** @type {number} */
4170 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlayCharStatus"] = 1;
4171 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cursor_status"] > 0) {
4172 /** @type {number} */
4173 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cursor_status"] = parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cursor_status"]) / 2;
4174 }
4175 followCursorCopy(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cursor_status"]);
4176 var _0xfa08x2e = document["getElementsByName"]("divDrag");
4177 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4178 if (document["getElementById"]("divDrag") != null) {
4179 document["getElementById"]("divDrag")["style"]["display"] = "block";
4180 }
4181 if (document["getElementById"]("overlay-controls") != null) {
4182 document["getElementById"]("overlay-controls")["style"]["display"] = "block";
4183 }
4184 }
4185 if (window["console"]) {
4186 console["log"]("Character fully loaded.");
4187 }
4188 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_volume_var"] != "") {
4189 vh_mc["setPlayerVolume"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_volume_var"]);
4190 }
4191 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] != undefined && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"]["indexOf"]("load") <= -1) {
4192 /** @type {number} */
4193 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 1;
4194 } else {
4195 /** @type {number} */
4196 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isnotAudio"] = 0;
4197 }
4198 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] == undefined) {
4199 /** @type {number} */
4200 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickaudioPlay"] = 0;
4201 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] == 1 && vhssHTML_scenes[vhsshtml5_scenenumber]["audarrempty"] == 1 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_assignedAudioLoaded"] == 1) {
4202 /** @type {number} */
4203 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhscenecalled"] = 0;
4204 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_disableSpeech_"] == 1) {
4205 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"]["length"] > 0) {
4206 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_const_arr"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"];
4207 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]) {
4208 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["_delay_time_"] != undefined) {
4209 var aStatedRank = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]]["_delay_time_"];
4210 }
4211 }
4212 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] + 1] && (aStatedRank != undefined && !isNaN(aStatedRank))) {
4213 var soupName = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] + parseInt(1);
4214 /** @type {number} */
4215 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_nextprevinterrupt"] = 0;
4216 appendBgImage(soupName);
4217 startAutoAdvance(aStatedRank);
4218 } else {
4219 /** @type {number} */
4220 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 1;
4221 }
4222 }
4223 }
4224 }
4225 }
4226 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] != undefined && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] != "") {
4227 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeAttribute"]("onmousemove");
4228 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] != 1) {
4229 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeAttribute"]("onclick");
4230 }
4231 /** @type {number} */
4232 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 1;
4233 /** @type {number} */
4234 vhssHTML_scenes[vhsshtml5_scenenumber]["onloadcall"] = 0;
4235 /** @type {number} */
4236 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_assignedAudioLoaded"] = 0;
4237 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"]["indexOf"]("load") > -1 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_status"] == 1 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlay_play_status"] == 1 && vhsshtml5_mobileDetection == 0 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isSVE"] == 0) {
4238 /** @type {number} */
4239 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 1;
4240 if (create_vhsshtml5_urlparamsarrnew["length"] <= 0) {
4241 /** @type {number} */
4242 vhssHTML_scenes[vhsshtml5_scenenumber]["onloadcall"] = 1;
4243 /** @type {number} */
4244 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_assignedAudioLoaded"] = 1;
4245 vhsshtml5_clickPlay(vhsshtml5_scenenumber);
4246 }
4247 }
4248 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"]["indexOf"]("ro") > -1) {
4249 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["setAttribute"]("onmousemove", "_mouseMoveCharacter(event,this," + vhsshtml5_scenenumber + ")");
4250 var timeStamp = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"]);
4251 timeStamp["addEventListener"]("mouseout", vhsshtml5_onmoveval(timeStamp), true);
4252 /** @type {number} */
4253 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 1;
4254 }
4255 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"]["indexOf"]("click") > -1 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlay_play_status"] == 1) {
4256 /** @type {number} */
4257 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 1;
4258 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["setAttribute"]("onclick", "_clickCharacter(event,this," + vhsshtml5_scenenumber + ")");
4259 }
4260 }
4261 /** @type {number} */
4262 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_disableSpeech_"] = 1;
4263 /** @type {number} */
4264 _vokiSceneStatus_ = 0;
4265 /** @type {number} */
4266 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_nextprevinterrupt"] = 0;
4267 /** @type {number} */
4268 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneloadinprogress"] = 0;
4269 if (typeof vh_sceneLoaded == "function" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhSceneStatus_"] == 1) {
4270 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"]["length"] >= 1) {
4271 /** @type {number} */
4272 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhscenecalled"] = 1;
4273 vh_sceneLoaded(parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]) + 1, vhsshtml5_scenenumber);
4274 } else {
4275 /** @type {number} */
4276 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhscenecalled"] = 1;
4277 vh_sceneLoaded(0, vhsshtml5_scenenumber);
4278 }
4279 }
4280 if (create_vhsshtml5_urlparamsarrnew["length"] > 0) {
4281 vhsshtml5_scenenumber = vhsshtml5_scenenumber + 1;
4282 if (create_vhsshtml5_urlparamsarrnew["length"] > 0) {
4283 vhsshtml5_urlparams = create_vhsshtml5_urlparamsarrnew[0];
4284 }
4285 var _0xfa08x12 = vhsshtml5_urlparams["playerType"];
4286 if (_0xfa08x12 == "2d3d") {
4287 call_embed_file2(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_randomvarray"][vhsshtml5_scenenumber]);
4288 } else {
4289 call_embed_file(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_randomvarray"][vhsshtml5_scenenumber]);
4290 }
4291 } else {
4292 /** @type {number} */
4293 vhsshtml5_isPlayerReady = 1;
4294 }
4295}
4296/**
4297 * @return {undefined}
4298 */
4299function displayBackground() {
4300 bkgrnd = _bkgrnd;
4301 if (bkgrnd && bkgrnd != "") {
4302 if (document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])) {
4303 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = "none";
4304 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundColor"] = "transparent";
4305 /** @type {string} */
4306 var host_yaml_uri = decodeURIComponent(bkgrnd);
4307 host_yaml_uri["match"](/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/);
4308 var isRegExp = RegExp["$6"];
4309 if (bkgrnd["indexOf"](".mp4") > -1 || bkgrnd["indexOf"](".flv") > -1) {
4310 var _0xfa08x157 = "";
4311 if (parseInt(vhss_loopAutoPlayVid) == 1) {
4312 console["log"]("hererererer");
4313 _0xfa08x157 = "autoplay";
4314 }
4315 var _0xfa08x158 = "<video id=\"video1\" muted loop " + _0xfa08x157 + " style=\"display:none\" playsinline></video>";
4316 document["getElementById"]("vhss_bgVideo")["innerHTML"] = _0xfa08x158;
4317 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] = "video";
4318 var command_codes = document["getElementById"]("video1");
4319 command_codes["style"]["display"] = "block";
4320 var data = document["createElement"]("source");
4321 data["src"] = bkgrnd;
4322 data["type"] = "video/mp4";
4323 command_codes["appendChild"](data);
4324 /**
4325 * @return {undefined}
4326 */
4327 command_codes["onloadstart"] = function() {
4328 resizeVideo(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"]);
4329 };
4330 } else {
4331 if (RegExp["$3"]["indexOf"]("youtu") > -1 || RegExp["$3"]["indexOf"]("vimeo") > -1) {
4332 document["getElementById"]("vhss_bgVideo")["style"]["height"] = "0px";
4333 document["getElementById"]("vhss_bgVideo")["style"]["width"] = "0px";
4334 if (RegExp["$3"]["indexOf"]("youtu") > -1) {
4335 var i = "player";
4336 if (!vhsshtml5_if_filealreayaddedd("//www.youtube.com/player_api")) {
4337 vhsshtml5_loadScript("//www.youtube.com/player_api", function() {
4338 if (window["console"]) {
4339 console["log"]("youtube player_api load");
4340 }
4341 });
4342 }
4343 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] = "youtube";
4344 var p = "https://www.youtube.com/embed/" + isRegExp + "?enablejsapi=1&html5=1&controls=0&mute=1&showinfo=0&loop=1";
4345 } else {
4346 if (RegExp["$3"]["indexOf"]("vimeo") > -1) {
4347 i = "player1";
4348 if (!vhsshtml5_if_filealreayaddedd("//player.vimeo.com/api/player.js")) {
4349 vhsshtml5_loadScript("//player.vimeo.com/api/player.js", function() {
4350 if (window["console"]) {
4351 console["log"]("vimeo player.js");
4352 }
4353 });
4354 }
4355 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] = "vimeo";
4356 p = "https://player.vimeo.com/video/" + isRegExp + "?api=1&background=1&mute=0&autoplay=0&loop=1";
4357 }
4358 }
4359 var sv_ind = document["createElement"]("iframe");
4360 sv_ind["id"] = i;
4361 sv_ind["style"]["width"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] + "px";
4362 sv_ind["style"]["height"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] + "px";
4363 sv_ind["style"]["transform"] = "scale(1.4)";
4364 sv_ind["src"] = p;
4365 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["appendChild"](sv_ind);
4366 } else {
4367 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = "url('" + bkgrnd + "')";
4368 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundSize"] = "cover";
4369 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundRepeat"] = "no-repeat";
4370 }
4371 }
4372 }
4373 } else {
4374 if (document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])) {
4375 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgcolor_var"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgcolor_var"] != "") {
4376 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundColor"] = "#" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgcolor_var"];
4377 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = "none";
4378 } else {
4379 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = "none";
4380 }
4381 }
4382 }
4383}
4384/**
4385 * @param {?} mmCoreSplitViewBlock
4386 * @return {undefined}
4387 */
4388function sayURL(mmCoreSplitViewBlock) {
4389 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_final_url"] = mmCoreSplitViewBlock;
4390 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["sayUrl"](mmCoreSplitViewBlock, fileErrorCallback, audioLoadedCallback, audioStartedCallback, audioFinishedCallback);
4391}
4392/**
4393 * @param {?} callback
4394 * @return {undefined}
4395 */
4396function loadCharacter(callback) {
4397 if (window["console"]) {
4398 console["log"]("loadPersona triggered.");
4399 }
4400 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["loadPersona"](callback, errorWhileCharacterLoading, characterLoadedOnScreen, characterFullyLoaded);
4401}
4402/**
4403 * @return {undefined}
4404 */
4405function _getCurrentAudioProgress() {
4406 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["getCurrentAudioProgress"]();
4407}
4408/**
4409 * @return {undefined}
4410 */
4411function _resumeAudio() {
4412 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] != "") {
4413 vhsshtml5VidPlay();
4414 }
4415 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["resumeAudio"]();
4416}
4417/**
4418 * @return {undefined}
4419 */
4420function _pauseAudio() {
4421 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] != "") {
4422 vhsshtml5VidPaused();
4423 }
4424 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["pauseAudio"]();
4425}
4426/**
4427 * @return {undefined}
4428 */
4429function _recenter() {
4430 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["recenter"]();
4431}
4432/**
4433 * @param {?} isBgroundImg
4434 * @return {undefined}
4435 */
4436function _saySilent(isBgroundImg) {
4437 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["saySilent"](isBgroundImg);
4438}
4439/**
4440 * @param {?} text
4441 * @return {undefined}
4442 */
4443function _followCursor(text) {
4444 if (window["console"]) {
4445 console["log"]("followCursor:" + text);
4446 }
4447 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["followCursor"](text);
4448}
4449/**
4450 * @param {?} mmCoreSplitViewBlock
4451 * @param {?} $state
4452 * @param {?} UserState
4453 * @return {undefined}
4454 */
4455function _setGazeAtPoint(mmCoreSplitViewBlock, $state, UserState) {
4456 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "FB3D") {
4457 if (window["console"]) {
4458 console["log"]("Not Supported.");
4459 }
4460 } else {
4461 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] != "") {
4462 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setGazeAtPoint"](mmCoreSplitViewBlock, $state, UserState);
4463 }
4464 }
4465}
4466/**
4467 * @param {?} array
4468 * @return {?}
4469 */
4470function hexToRgb(array) {
4471 var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i["exec"](array);
4472 return result ? {
4473 r : parseInt(result[1], 16),
4474 g : parseInt(result[2], 16),
4475 b : parseInt(result[3], 16)
4476 } : null;
4477}
4478/**
4479 * @param {(Array|HTMLCollection|Node|NodeList|Window|string)} h
4480 * @return {?}
4481 */
4482function h2d(h) {
4483 return parseInt(h, 16);
4484}
4485/**
4486 * @param {?} value
4487 * @param {?} text
4488 * @return {undefined}
4489 */
4490function _setColor(value, text) {
4491 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "FB3D") {
4492 text = text["replace"]("#", "");
4493 var unicodeEnd = h2d(text);
4494 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setColor"](value, unicodeEnd);
4495 } else {
4496 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "3d") {
4497 if (window["console"]) {
4498 console["log"]("Not Supported.");
4499 }
4500 } else {
4501 text = text["replace"]("#", "");
4502 unicodeEnd = h2d(text);
4503 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setColor"](value, unicodeEnd);
4504 }
4505 }
4506}
4507/**
4508 * @param {string} value
4509 * @param {!Array} text
4510 * @param {?} type
4511 * @return {undefined}
4512 */
4513function _setLink(value, text, type) {
4514 if (text == "" || text == undefined) {
4515 text = "_blank";
4516 }
4517 if (value != "" || value != undefined) {
4518 /** @type {string} */
4519 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] = value;
4520 }
4521 /** @type {!Array} */
4522 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] = text;
4523 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] == 1) {
4524 var fieldExists = document["getElementsByTagName"]("iframe");
4525 if (fieldExists["length"] > 0 && typeof fieldExists !== "undefined" && fieldExists !== null && (text == "" || text == "_self")) {
4526 fieldExists = document["getElementById"](type);
4527 if (typeof fieldExists !== "undefined" && fieldExists !== null) {
4528 document["getElementById"](type)["setAttribute"]("onclick", "setClickforLink0('" + value + "')");
4529 }
4530 } else {
4531 fieldExists = document["getElementsByTagName"]("iframe");
4532 if (fieldExists["length"] > 0 && typeof fieldExists !== "undefined" && fieldExists !== null) {
4533 document["getElementsByTagName"]("iframe")[0]["src"] = "";
4534 }
4535 fieldExists = document["getElementById"](type);
4536 if (typeof fieldExists !== "undefined" && fieldExists !== null) {
4537 document["getElementById"](type)["setAttribute"]("onclick", "setClickforLink1('" + value + "','" + text + "')");
4538 }
4539 }
4540 }
4541}
4542/**
4543 * @param {number} mmCoreSplitViewBlock
4544 * @param {number} $state
4545 * @param {number} breadcrumbs
4546 * @return {undefined}
4547 */
4548function _setGaze(mmCoreSplitViewBlock, $state, breadcrumbs) {
4549 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "FB3D") {
4550 if (window["console"]) {
4551 console["log"]("Not Supported.");
4552 }
4553 } else {
4554 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setGaze"](mmCoreSplitViewBlock, $state, breadcrumbs);
4555 }
4556}
4557/**
4558 * @return {undefined}
4559 */
4560function _replay() {
4561 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["replayAudio"]();
4562}
4563/**
4564 * @param {string} text
4565 * @param {string} _
4566 * @param {string} value
4567 * @param {string} name
4568 * @param {?} options
4569 * @param {?} url
4570 * @param {number} rootTag
4571 * @param {?} nativeTag
4572 * @return {undefined}
4573 */
4574function _say(text, _, value, name, options, url, rootTag, nativeTag) {
4575 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apvar"] = "&ev[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][]=actts&val[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][actts][]=0" + name + "0" + value + "0" + _ + "&ev[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][]=aptts&val[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][aptts][]=0" + name + "0" + value + "0" + _ + "";
4576 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] = options;
4577 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] = url;
4578 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_myTimer"]);
4579 /** @type {number} */
4580 var timeoutField = 0;
4581 for (; timeoutField < vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"]["length"]; timeoutField++) {
4582 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"][timeoutField]);
4583 }
4584 /** @type {string} */
4585 text = unescape(text);
4586 name = name.toString();
4587 _ = _.toString();
4588 value = value.toString();
4589 var paintval = "";
4590 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ieversion"] && (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ieversion"] == 10 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ieversion"] == 11) || rootTag == 1) {
4591 var rule_id = Math["floor"](Math["random"]() * 1E14 + 1);
4592 var filter_value_container_id = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + "_" + rule_id;
4593 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] != undefined && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] != undefined) {
4594 var ret = name + value + _ + text + "1" + "mp3" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] + filter_value_container_id + vhsshtml5_accountID + vhsshtml5_secretID;
4595 paintval = "&FX_TYPE=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] + "&FX_LEVEL=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] + "&FNAME=" + filter_value_container_id;
4596 } else {
4597 ret = name + value + _ + text + "1" + "mp3" + filter_value_container_id + vhsshtml5_accountID + vhsshtml5_secretID;
4598 paintval = "&FNAME=" + filter_value_container_id;
4599 }
4600 ret = md5(ret);
4601 /** @type {string} */
4602 var textPxLength = encodeURIComponent(text);
4603 /** @type {!XMLHttpRequest} */
4604 var xhr = new XMLHttpRequest;
4605 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"]["replace"]("cache-a", "cache");
4606 console["log"]("vhsshtml5_filter_url", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"]);
4607 var url = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"] + "/tts/gen.php?EID=" + name + "&LID=" + value + "&VID=" + _ + "&TXT=" + textPxLength + "&IS_UTF8=1&EXT=mp3" + paintval + "&ACC=" + vhsshtml5_accountID + "&API=&SESSION=&CS=" + ret + "";
4608 url = url["replace"]("http://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
4609 url = url["replace"]("https://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
4610 /**
4611 * @return {undefined}
4612 */
4613 xhr["onreadystatechange"] = function() {
4614 if (xhr["readyState"] == 4 && xhr["status"] == 200) {
4615 var zeroSizeMax = "";
4616 var zeroSizeMaxes = JSON["parse"](xhr["responseText"]);
4617 zeroSizeMax = zeroSizeMaxes["URL"];
4618 zeroSizeMax = zeroSizeMax["replace"]("http://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
4619 zeroSizeMax = zeroSizeMax["replace"]("https://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
4620 videoMp3URL = zeroSizeMax;
4621 if (rootTag == 1) {
4622 setTimeout(function() {
4623 vhsshtml5_audiosarr[nativeTag] = zeroSizeMax;
4624 }, 2E3);
4625 } else {
4626 vhsshtml5_audiosarr[nativeTag] = zeroSizeMax;
4627 }
4628 }
4629 };
4630 xhr["open"]("GET", url, true);
4631 xhr["send"]();
4632 } else {
4633 rule_id = Math["floor"](Math["random"]() * 1E14 + 1);
4634 filter_value_container_id = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + rule_id;
4635 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] != undefined && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] != undefined) {
4636 ret = name + value + _ + text + "1" + "mp3" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] + vhsshtml5_accountID + vhsshtml5_secretID;
4637 paintval = "&FX_TYPE=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] + "&FX_LEVEL=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] + "&FNAME=";
4638 } else {
4639 ret = name + value + _ + text + "1" + "mp3" + vhsshtml5_accountID + vhsshtml5_secretID;
4640 paintval = "&FNAME=";
4641 }
4642 ret = md5(ret);
4643 /** @type {string} */
4644 textPxLength = encodeURIComponent(text);
4645 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"]["replace"]("cache-a", "cache");
4646 var jumps = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"] + "/tts/gen.php?EID=" + name + "&LID=" + value + "&VID=" + _ + "&TXT=" + textPxLength + "&IS_UTF8=1&EXT=mp3" + paintval + "&ACC=" + vhsshtml5_accountID + "&API=&SESSION=&CS=" + ret + "";
4647 jumps = jumps["replace"]("http://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
4648 jumps = jumps["replace"]("https://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
4649 vhsshtml5_audiosarr[nativeTag] = jumps;
4650 }
4651}
4652/**
4653 * @param {(Array|string)} format
4654 * @param {number} data
4655 * @return {undefined}
4656 */
4657function _playAudio(format, data) {
4658 if (data == undefined) {
4659 /** @type {number} */
4660 data = 0;
4661 }
4662 /** @type {(Array|string)} */
4663 vhsshtml5_lastPlayed = format;
4664 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["sayUrl"](format, data, true, fileErrorCallback, audioLoadedCallback, audioStartedCallback, audioFinishedCallback);
4665}
4666/**
4667 * @return {undefined}
4668 */
4669function _stopSpeech() {
4670 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_myTimer"]);
4671 /** @type {number} */
4672 var _0xfa08x139 = 0;
4673 for (; _0xfa08x139 < vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"]["length"]; _0xfa08x139++) {
4674 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"][i]);
4675 }
4676 /** @type {!Array} */
4677 vhsshtml5_audiosarr = [];
4678 if (typeof vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["stopPlayingAudio"] == "function") {
4679 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["stopPlayingAudio"]();
4680 }
4681 /** @type {number} */
4682 vhsshtml5_audiorunning = 0;
4683 if (window["console"]) {
4684 console["log"]("StopSpeech triggered.");
4685 }
4686}
4687/**
4688 * @param {?} canCreateDiscussions
4689 * @return {undefined}
4690 */
4691function _freezeToggle(canCreateDiscussions) {
4692 if (canCreateDiscussions == "pause") {
4693 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] != "") {
4694 vhsshtml5VidPaused();
4695 }
4696 } else {
4697 if (canCreateDiscussions == "resume") {
4698 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] != "") {
4699 vhsshtml5VidPlay();
4700 }
4701 }
4702 }
4703 var _0xfa08x17d = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["freezeToggle"]();
4704}
4705/**
4706 * @param {?} isBgroundImg
4707 * @param {number} key
4708 * @param {number} text
4709 * @return {undefined}
4710 */
4711function _setFacialExpression(isBgroundImg, key, text) {
4712 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "3d") {
4713 if (window["console"]) {
4714 console["log"]("expression=" + isBgroundImg + " weight=" + key + " duration=" + text);
4715 }
4716 if (text == undefined) {
4717 /** @type {number} */
4718 text = -1;
4719 }
4720 if (key <= 0) {
4721 /** @type {number} */
4722 key = 1;
4723 }
4724 if (isBgroundImg == "") {
4725 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["get3DspecificAPI"]()["clearExpressionList"]();
4726 } else {
4727 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["get3DspecificAPI"]()["clearExpressionList"]();
4728 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["get3DspecificAPI"]()["setExpression"](isBgroundImg, key, 0, text);
4729 }
4730 }
4731}
4732/**
4733 * @return {?}
4734 */
4735function _getAvailableExpressions() {
4736 return vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["get3DspecificAPI"]()["getAvailableExpressions"]();
4737}
4738/**
4739 * @return {undefined}
4740 */
4741function _clearExpressionList() {
4742 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["get3DspecificAPI"]()["clearExpressionList"]();
4743}
4744/**
4745 * @param {number} num
4746 * @return {undefined}
4747 */
4748function _setSpeechMovement(num) {
4749 if (typeof num == "degrees" || isNaN(num) || num == "") {
4750 /** @type {number} */
4751 num = 50;
4752 }
4753 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setSpeechMovement"](num);
4754}
4755/**
4756 * @param {?} newTooltipsyEl
4757 * @param {?} text
4758 * @return {undefined}
4759 */
4760function _setIdleMovement(newTooltipsyEl, text) {
4761 if (window["console"]) {
4762 console["log"]("freq = " + newTooltipsyEl + " radius = " + text);
4763 }
4764 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setIdleMovement"](newTooltipsyEl, text);
4765}
4766/**
4767 * @param {number} text
4768 * @return {?}
4769 */
4770function _setPlayerVolume(text) {
4771 if (typeof text == "undefined" || isNaN(text) || text < 0 || text > 10) {
4772 return "fail";
4773 }
4774 if (window["console"]) {
4775 console["log"]("Volume Level : " + text);
4776 }
4777 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setHostVolume"](parseInt(text));
4778}
4779/**
4780 * @param {?} mmCoreSplitViewBlock
4781 * @param {?} $state
4782 * @return {?}
4783 */
4784function _isPointOverHost(mmCoreSplitViewBlock, $state) {
4785 return vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["isPointOverHost"](mmCoreSplitViewBlock, $state);
4786}
4787/**
4788 * @return {?}
4789 */
4790function _is3D() {
4791 return vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["is3D"]();
4792}
4793/**
4794 * @param {?} array
4795 * @param {?} index
4796 * @return {undefined}
4797 */
4798function _resize(array, index) {
4799 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_width_var"] = array;
4800 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_height_var"] = index;
4801 var t = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["setStageDimensions"](array, index);
4802 resize_buttons(t);
4803 if (window["console"]) {
4804 console["log"]("canvas dimensions changed to " + array + "*" + index);
4805 }
4806}
4807/**
4808 * @param {?} isBgroundImg
4809 * @return {undefined}
4810 */
4811function _emptyaudioCallback(isBgroundImg) {
4812 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["sayUrl"](isBgroundImg, 0, true, fileErrorCallback, audioLoadedCallback, audioStartedCallback, audioFinishedCallback);
4813}
4814/**
4815 * @return {undefined}
4816 */
4817function vhsshtml5_addButtonEvents() {
4818 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
4819 var _0xfa08x2e = document["getElementById"]("_play");
4820 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4821 var _0xfa08xa4 = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"]);
4822 _0xfa08xa4["querySelector"]("#_play")["removeAttribute"]("onclick", "vhsshtml5_clickPlayButton(" + vhsshtml5_scenenumber + ")");
4823 _0xfa08xa4["querySelector"]("#_play")["setAttribute"]("onclick", "vhsshtml5_clickPlayButton(" + vhsshtml5_scenenumber + ")");
4824 _0xfa08xa4["querySelector"]("#_play")["addEventListener"]("click", function() {
4825 /** @type {number} */
4826 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_counterStatus_"] = 0;
4827 });
4828 }
4829 _0xfa08x2e = document["getElementById"]("sayAudio__");
4830 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4831 document["getElementById"]("sayAudio__")["removeEventListener"]("click", vhsshtml5_clickSayAudio);
4832 document["getElementById"]("sayAudio__")["addEventListener"]("click", vhsshtml5_clickSayAudio);
4833 document["getElementById"]("sayAudio__")["addEventListener"]("click", function() {
4834 /** @type {number} */
4835 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_counterStatus_"] = 0;
4836 });
4837 }
4838 _0xfa08x2e = document["getElementById"]("_prev");
4839 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4840 _0xfa08xa4["querySelector"]("#_prev")["removeAttribute"]("onclick", "vhsshtml5_clickPrevButton(" + vhsshtml5_scenenumber + ")");
4841 _0xfa08xa4["querySelector"]("#_prev")["setAttribute"]("onclick", "vhsshtml5_clickPrevButton(" + vhsshtml5_scenenumber + ")");
4842 document["getElementById"]("_prev")["addEventListener"]("click", function() {
4843 /** @type {number} */
4844 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_counterStatus_"] = 1;
4845 });
4846 }
4847 _0xfa08x2e = document["getElementById"]("_next");
4848 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4849 _0xfa08xa4["querySelector"]("#_next")["removeAttribute"]("onclick", "vhsshtml5_clickNextButton(" + vhsshtml5_scenenumber + ")");
4850 _0xfa08xa4["querySelector"]("#_next")["setAttribute"]("onclick", "vhsshtml5_clickNextButton(" + vhsshtml5_scenenumber + ")");
4851 document["getElementById"]("_next")["addEventListener"]("click", function() {
4852 /** @type {number} */
4853 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_counterStatus_"] = 1;
4854 });
4855 }
4856 _0xfa08x2e = document["getElementById"]("_resume");
4857 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4858 _0xfa08xa4 = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"]);
4859 _0xfa08xa4["querySelector"]("#_resume")["removeAttribute"]("onclick", "vhsshtml5_clickResumeButton(" + vhsshtml5_scenenumber + ")");
4860 _0xfa08xa4["querySelector"]("#_resume")["setAttribute"]("onclick", "vhsshtml5_clickResumeButton(" + vhsshtml5_scenenumber + ")");
4861 document["getElementById"]("_resume")["addEventListener"]("click", function() {
4862 /** @type {number} */
4863 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_counterStatus_"] = 0;
4864 });
4865 }
4866 _0xfa08x2e = document["getElementById"]("_pause");
4867 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4868 _0xfa08xa4 = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"]);
4869 _0xfa08xa4["querySelector"]("#_pause")["removeAttribute"]("onclick", "vhsshtml5_clickPauseButton(" + vhsshtml5_scenenumber + ")");
4870 _0xfa08xa4["querySelector"]("#_pause")["setAttribute"]("onclick", "vhsshtml5_clickPauseButton(" + vhsshtml5_scenenumber + ")");
4871 document["getElementById"]("_pause")["addEventListener"]("click", function() {
4872 /** @type {number} */
4873 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_counterStatus_"] = 0;
4874 });
4875 }
4876 _0xfa08x2e = document["getElementById"]("_replay");
4877 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4878 _0xfa08xa4 = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"]);
4879 _0xfa08xa4["querySelector"]("#_replay")["removeAttribute"]("onclick", "vhsshtml5_clickReplay(" + vhsshtml5_scenenumber + ")");
4880 _0xfa08xa4["querySelector"]("#_replay")["setAttribute"]("onclick", "vhsshtml5_clickReplay(" + vhsshtml5_scenenumber + ")");
4881 _0xfa08xa4["querySelector"]("#_replay")["addEventListener"]("click", function() {
4882 /** @type {number} */
4883 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_counterStatus_"] = 0;
4884 });
4885 }
4886 _0xfa08x2e = document["getElementById"]("play_text");
4887 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4888 document["getElementById"]("play_text")["addEventListener"]("click", function() {
4889 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"] = document["getElementById"]("txt")["value"];
4890 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_voice_var"] = document["getElementById"]("voice")["value"];
4891 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lang_var"] = document["getElementById"]("language")["value"];
4892 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_var"] = document["getElementById"]("engine")["value"];
4893 if (vhssHTML_scenes[vhsshtml5_scenenumber]["is_licensed_domain"] == 0) {
4894 alert(vhssHTML_scenes[vhsshtml5_scenenumber]["secureplaybackmessage"]);
4895 } else {
4896 vh_mc["sayText"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_voice_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lang_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_var"]);
4897 document["getElementById"]("_play")["style"]["display"] = "none";
4898 document["getElementById"]("_resume")["style"]["display"] = "none";
4899 document["getElementById"]("_pause")["style"]["display"] = "inline-block";
4900 document["getElementById"]("_replay")["style"]["display"] = "inline-block";
4901 }
4902 });
4903 }
4904 _0xfa08x2e = document["getElementById"]("set_gaze");
4905 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4906 document["getElementById"]("set_gaze")["addEventListener"]("click", function() {
4907 var artistTrack = document["getElementById"]("degree")["value"];
4908 var GET_AUTH_URL_TIMEOUT = document["getElementById"]("duration")["value"];
4909 var numKeysDeleted = document["getElementById"]("magnitude")["value"];
4910 vh_mc["setGaze"](artistTrack, GET_AUTH_URL_TIMEOUT, numKeysDeleted);
4911 });
4912 }
4913 _0xfa08x2e = document["getElementById"]("_update_volume");
4914 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4915 document["getElementById"]("_update_volume")["addEventListener"]("click", function() {
4916 var artistTrack = document["getElementById"]("volume")["value"];
4917 vh_mc["setPlayerVolume"](artistTrack);
4918 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"] = document["getElementById"]("txt")["value"];
4919 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_voice_var"] = document["getElementById"]("voice")["value"];
4920 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lang_var"] = document["getElementById"]("language")["value"];
4921 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_var"] = document["getElementById"]("engine")["value"];
4922 if (vhssHTML_scenes[vhsshtml5_scenenumber]["is_licensed_domain"] == 0) {
4923 alert(vhssHTML_scenes[vhsshtml5_scenenumber]["secureplaybackmessage"]);
4924 } else {
4925 vh_mc["sayText"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_text_var"], vhsshtml5_voice_var, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lang_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_engine_var"]);
4926 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
4927 document["getElementById"]("_play")["style"]["display"] = "none";
4928 document["getElementById"]("_resume")["style"]["display"] = "none";
4929 document["getElementById"]("_pause")["style"]["display"] = "inline-block";
4930 document["getElementById"]("_replay")["style"]["display"] = "inline-block";
4931 }
4932 }
4933 });
4934 }
4935 _0xfa08x2e = document["getElementById"]("_playAudio");
4936 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4937 document["getElementById"]("_playAudio")["addEventListener"]("click", function() {
4938 var artistTrack = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"];
4939 vh_mc["sayAudio"](artistTrack, "");
4940 });
4941 }
4942 _0xfa08x2e = document["getElementById"]("_freezeToggle");
4943 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
4944 document["getElementById"]("_freezeToggle")["addEventListener"]("click", function() {
4945 vh_mc["freezeToggle"]();
4946 });
4947 }
4948 }
4949}
4950/**
4951 * @return {undefined}
4952 */
4953function vhsshtml5_clickSayAudio() {
4954 if (mobile_events == 1) {
4955 var _0xfa08x110 = document["getElementById"]("sayName__")["value"];
4956 /** @type {!XMLHttpRequest} */
4957 var xhr = new XMLHttpRequest;
4958 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] != "") {
4959 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] = "&" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
4960 }
4961 var url = vhsshtml5_main_url + "json/get_mp3_file.php?acc=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + "&audio=" + _0xfa08x110 + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
4962 /**
4963 * @return {undefined}
4964 */
4965 xhr["onreadystatechange"] = function() {
4966 if (xhr["readyState"] == 4 && xhr["status"] == 200) {
4967 var widgetArr = JSON["parse"](xhr["responseText"]);
4968 if (widgetArr["status"] == 1) {
4969 var _maskLayer = widgetArr["url"];
4970 vh_mc["sayAudio"](_maskLayer, "");
4971 } else {
4972 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["innerHTML"] = html;
4973 }
4974 }
4975 };
4976 xhr["open"]("GET", url, true);
4977 xhr["send"]();
4978 }
4979}
4980/**
4981 * @param {?} canCreateDiscussions
4982 * @return {undefined}
4983 */
4984function vhsshtml5_callback(canCreateDiscussions) {
4985 logMsg(canCreateDiscussions["type"] + ": " + canCreateDiscussions["message"]);
4986}
4987/**
4988 * @param {undefined} allowOffline
4989 * @return {undefined}
4990 */
4991function vhsshtml5_clickPlayButton(allowOffline) {
4992 vhsshtml5_clickPlay(allowOffline);
4993 if (mobile_events == 1) {
4994 if (typeof vh_playPause == "function") {
4995 vh_playPause(1, vhsshtml5_scenenumber);
4996 }
4997 }
4998}
4999/**
5000 * @param {number} canCreateDiscussions
5001 * @return {undefined}
5002 */
5003function vhsshtml5_clickPrevButton(canCreateDiscussions) {
5004 /** @type {number} */
5005 vhsshtml5_scenenumber = canCreateDiscussions;
5006 gotoPrevScene();
5007}
5008/**
5009 * @param {?} canCreateDiscussions
5010 * @return {undefined}
5011 */
5012function vhsshtml5_clickNextButton(canCreateDiscussions) {
5013 vhsshtml5_scenenumber = canCreateDiscussions;
5014 gotoNextScene();
5015}
5016/**
5017 * @param {undefined} isBgroundImg
5018 * @return {undefined}
5019 */
5020function vhsshtml5_clickResumeButton(isBgroundImg) {
5021 vhsshtml5_clickResume(isBgroundImg);
5022 if (mobile_events == 1) {
5023 if (typeof vh_playPause == "function") {
5024 vh_playPause(1, vhsshtml5_scenenumber);
5025 }
5026 }
5027}
5028/**
5029 * @param {undefined} isBgroundImg
5030 * @return {undefined}
5031 */
5032function vhsshtml5_clickPauseButton(isBgroundImg) {
5033 vhsshtml5_clickPause(isBgroundImg);
5034 if (mobile_events == 1) {
5035 if (typeof vh_playPause == "function") {
5036 vh_playPause(0, vhsshtml5_scenenumber);
5037 }
5038 }
5039}
5040/**
5041 * @param {number} allowOffline
5042 * @return {undefined}
5043 */
5044function vhsshtml5_clickPlay(allowOffline) {
5045 selectPortal(allowOffline + 1);
5046 if (vhssHTML_scenes[vhsshtml5_scenenumber]["is_pause"] == 1) {
5047 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]) {
5048 vh_mc["resumeAudio"]();
5049 }
5050 }
5051 if (mobile_events == 1) {
5052 var audioLoader = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"];
5053 vhssHTML_handleProcessAudioRequests("clickPlay", {
5054 "audio" : audioLoader
5055 });
5056 }
5057}
5058/**
5059 * @param {?} callback
5060 * @param {?} data
5061 * @return {undefined}
5062 */
5063function vhssHTML_handleProcessAudioRequests(callback, data) {
5064 if (data["audio"] && data["audio"] != "" || data["txt"] && data["txt"] != "") {
5065 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_interrupt_mode"] == 1 && (callback != "clickPlay" || callback != "replay")) {
5066 stopSpeechh();
5067 /** @type {!Array} */
5068 vhsshtml5_audiosarr = [];
5069 }
5070 if ((vhsshtml5_mobileDetection == 1 || vhsshtml5_isMacSafari == 1) && vhsshtml5_isEmptyPlayed == 0) {
5071 var _0xfa08x16 = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/actv8/presound.mp3";
5072 vhsshtml5_audiosarr[0] = _0xfa08x16;
5073 /** @type {number} */
5074 vhsshtml5_isEmptyPlayed = 1;
5075 }
5076 var datapointIndex = vhsshtml5_audiosarr["length"];
5077 vhsshtml5_audiosarr["push"]("");
5078 switch(callback) {
5079 case "sayAudio":
5080 vh_mc["sayAudio"](data["audio"], data["stTime"], datapointIndex);
5081 break;
5082 case "sayText":
5083 vh_mc["sayText"](data["txt"], data["voice"], data["lang"], data["engine"], data["fxType"], data["fxLevel"], data["isvideoEditor"], datapointIndex);
5084 break;
5085 case "clickPlay":
5086 vhsshtml5_audiosarr[datapointIndex] = data["audio"];
5087 break;
5088 case "replay":
5089 /** @type {!Array} */
5090 vhsshtml5_audiosarr = [];
5091 /** @type {number} */
5092 vhsshtml5_audiorunning = 0;
5093 vhsshtml5_audiosarr[0] = data["audio"];
5094 break;
5095 case "sayAIResponse":
5096 vh_mc["sayAIResponse"](data["txt"], data["voice"], data["lang"], data["engine"], data["fxType"], data["fxLevel"], 0, datapointIndex);
5097 break;
5098 case "sayAIResponseExported":
5099 vh_mc["sayAIResponseExported"](data["txt"], data["voice"], data["lang"], data["engine"], data["fxType"], data["fxLevel"], 0, datapointIndex);
5100 break;
5101 case "loadAudio":
5102 vh_mc["loadAudio"](data["audio"], data["stTime"], datapointIndex);
5103 break;
5104 case "loadText":
5105 vh_mc["loadText"](data["txt"], data["voice"], data["lang"], data["engine"], data["fxType"], data["fxLevel"], 0, datapointIndex);
5106 break;
5107 default:
5108 }
5109 if (vhsshtml5_audiosarr["length"] > 0 && vhsshtml5_callAudiocalled == 0 && vhsshtml5_audiorunning == 0) {
5110 /** @type {number} */
5111 vhsshtml5_callAudiocalled = 1;
5112 vhsshtml5_callAudiotoPlay(data["stTime"]);
5113 }
5114 }
5115}
5116/**
5117 * @param {?} mmCoreSplitViewBlock
5118 * @return {undefined}
5119 */
5120function vhsshtml5_callAudiotoPlay(mmCoreSplitViewBlock) {
5121 /** @type {number} */
5122 vhssHTML_isInterruped = 0;
5123 if (!delay && delay === undefined) {
5124 /** @type {number} */
5125 var delay = setInterval(function() {
5126 if (vhsshtml5_audiosarr[0] != "") {
5127 /** @type {number} */
5128 vhsshtml5_callAudiocalled = 0;
5129 /** @type {number} */
5130 vhsshtml5_audiorunning = 1;
5131 clearInterval(delay);
5132 vh_mc["playAudio"](vhsshtml5_audiosarr[0], mmCoreSplitViewBlock);
5133 }
5134 }, 100);
5135 }
5136}
5137/**
5138 * @param {number} isBgroundImg
5139 * @return {undefined}
5140 */
5141function vhsshtml5_clickPlay_ro(isBgroundImg) {
5142 /** @type {number} */
5143 vhsshtml5_scenenumber = isBgroundImg;
5144 if (mobile_events == 1) {
5145 var audioLoader = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"];
5146 vh_mc["sayAudio"](audioLoader, "");
5147 vhssHTML_handleProcessAudioRequests("clickPlay", {
5148 "audio" : audioLoader
5149 });
5150 }
5151}
5152/**
5153 * @param {number} isBgroundImg
5154 * @return {undefined}
5155 */
5156function vhsshtml5_clickResume(isBgroundImg) {
5157 /** @type {number} */
5158 vhsshtml5_scenenumber = isBgroundImg;
5159 if (mobile_events == 1) {
5160 /** @type {number} */
5161 vhssHTML_scenes[vhsshtml5_scenenumber]["is_pause"] = 0;
5162 if (typeof vh_audioProgress == "function" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_progress_interval"] > 0) {
5163 clearInterval(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioTimer_"]);
5164 /** @type {number} */
5165 var rumbleSpeed = parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_seconds_interval"]) * parseInt(1E3);
5166 /** @type {number} */
5167 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioTimer_"] = setInterval(function() {
5168 calculateAudioPercentage();
5169 }, rumbleSpeed);
5170 }
5171 vh_mc["hideLoader"]();
5172 vh_mc["resumeAudio"]();
5173 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["setAttribute"]("clickEvent", "replay");
5174 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
5175 var DOMContentLoaded = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"];
5176 var timeStamp = document["getElementById"](DOMContentLoaded);
5177 timeStamp["querySelector"]("#_play")["style"]["display"] = "none";
5178 timeStamp["querySelector"]("#_resume")["style"]["display"] = "none";
5179 timeStamp["querySelector"]("#_pause")["style"]["display"] = "inline-block";
5180 timeStamp["querySelector"]("#_replay")["style"]["display"] = "inline-block";
5181 }
5182 }
5183}
5184/**
5185 * @param {number} isBgroundImg
5186 * @return {undefined}
5187 */
5188function vhsshtml5_clickPause(isBgroundImg) {
5189 /** @type {number} */
5190 vhsshtml5_scenenumber = isBgroundImg;
5191 if (mobile_events == 1) {
5192 /** @type {number} */
5193 vhssHTML_scenes[vhsshtml5_scenenumber]["is_pause"] = 1;
5194 if (typeof vh_audioProgress == "function") {
5195 clearInterval(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audioTimer_"]);
5196 }
5197 vh_mc["hideLoader"]();
5198 vh_mc["pauseAudio"]();
5199 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["setAttribute"]("clickEvent", "pause");
5200 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
5201 var DOMContentLoaded = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"];
5202 var timeStamp = document["getElementById"](DOMContentLoaded);
5203 timeStamp["querySelector"]("#_play")["style"]["display"] = "none";
5204 timeStamp["querySelector"]("#_resume")["style"]["display"] = "inline-block";
5205 timeStamp["querySelector"]("#_pause")["style"]["display"] = "none";
5206 timeStamp["querySelector"]("#_replay")["style"]["display"] = "inline-block";
5207 }
5208 }
5209}
5210/**
5211 * @param {number} canCreateDiscussions
5212 * @return {undefined}
5213 */
5214function vhsshtml5_clickReplay(canCreateDiscussions) {
5215 /** @type {number} */
5216 vhsshtml5_scenenumber = canCreateDiscussions;
5217 if (mobile_events == 1) {
5218 vhssHTML_handleProcessAudioRequests("replay", {
5219 "audio" : vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]
5220 });
5221 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
5222 var DOMContentLoaded = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"];
5223 var timeStamp = document["getElementById"](DOMContentLoaded);
5224 timeStamp["querySelector"]("#_play")["style"]["display"] = "none";
5225 timeStamp["querySelector"]("#_resume")["style"]["display"] = "none";
5226 timeStamp["querySelector"]("#_pause")["style"]["display"] = "inline-block";
5227 timeStamp["querySelector"]("#_replay")["style"]["display"] = "inline-block";
5228 }
5229 }
5230}
5231/**
5232 * @param {?} $ionicHistory
5233 * @param {?} mmCoreSplitViewBlock
5234 * @param {string} $state
5235 * @return {undefined}
5236 */
5237function vhsshtml5_startSitepal($ionicHistory, mmCoreSplitViewBlock, $state) {
5238 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "FB3D") {
5239 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] != null && vhssHTML_scenes[vhsshtml5_scenenumber]["is_multiplechars"] == 0) {
5240 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"]["unload"]();
5241 /** @type {null} */
5242 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = null;
5243 /** @type {null} */
5244 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
5245 }
5246 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] != null && vhssHTML_scenes[vhsshtml5_scenenumber]["is_multiplechars"] == 0) {
5247 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"]["unload"]();
5248 /** @type {null} */
5249 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] = null;
5250 /** @type {null} */
5251 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
5252 }
5253 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] != undefined) {
5254 vh_mc["init"]({
5255 debug_window : true
5256 }, vhsshtml5_callback);
5257 }
5258 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], mmCoreSplitViewBlock, $state);
5259 } else {
5260 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "3d") {
5261 if (vhssHTML_scenes[vhsshtml5_scenenumber]["sitePalFullbodyLiteJS"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["sitePalFullbodyLiteJS"] != null && vhssHTML_scenes[vhsshtml5_scenenumber]["is_multiplechars"] == 0) {
5262 vhssHTML_scenes[vhsshtml5_scenenumber]["sitePalFullbodyLiteJS"]["unload"]();
5263 /** @type {null} */
5264 vhssHTML_scenes[vhsshtml5_scenenumber]["sitePalFullbodyLiteJS"] = null;
5265 /** @type {null} */
5266 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
5267 }
5268 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] != null && vhssHTML_scenes[vhsshtml5_scenenumber]["is_multiplechars"] == 0) {
5269 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"]["unload"]();
5270 /** @type {null} */
5271 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] = null;
5272 /** @type {null} */
5273 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
5274 }
5275 lime["embed"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_openfl_content"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_threeD_width"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_threeD_height"]);
5276 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = new com["oddcast"]["app"]["openfl"]["engine3DGLView"].GLViewMain;
5277 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"]["getHostAPI"]();
5278 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]);
5279 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"]);
5280 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_characterarr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"]);
5281 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Obj_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"];
5282 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], mmCoreSplitViewBlock, $state);
5283 } else {
5284 if (vhssHTML_scenes[vhsshtml5_scenenumber]["sitePalFullbodyLiteJS"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["sitePalFullbodyLiteJS"] != null && vhssHTML_scenes[vhsshtml5_scenenumber]["is_multiplechars"] == 0) {
5285 vhssHTML_scenes[vhsshtml5_scenenumber]["sitePalFullbodyLiteJS"]["unload"]();
5286 /** @type {null} */
5287 vhssHTML_scenes[vhsshtml5_scenenumber]["sitePalFullbodyLiteJS"] = null;
5288 /** @type {null} */
5289 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
5290 }
5291 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] != null && vhssHTML_scenes[vhsshtml5_scenenumber]["is_multiplechars"] == 0) {
5292 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"]["unload"]();
5293 /** @type {null} */
5294 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_glv"] = null;
5295 /** @type {null} */
5296 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = null;
5297 }
5298 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"] = new com["oddcast"]["app"]["vhss_extraction"].VHSSHostJS;
5299 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostJS"]["initAPI"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"]);
5300 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]);
5301 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"]);
5302 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_characterarr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"]);
5303 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Obj_"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"];
5304 vh_mc["init"]({
5305 debug_window : true
5306 }, vhsshtml5_callback);
5307 if ($ionicHistory == "true") {
5308 vh_mc["loadPlayer"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"], mmCoreSplitViewBlock, $state);
5309 } else {
5310 /** @type {string} */
5311 _bkgrnd = $state;
5312 resize_buttons(scale);
5313 vh_mc["idleLoadedCallback"]();
5314 }
5315 }
5316 }
5317 vhsshtml5_addButtonEvents();
5318}
5319/**
5320 * @return {undefined}
5321 */
5322function vhsshtml5_checkCanvasAvailability() {
5323 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] == "3d") {
5324 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_is3d"] += 1;
5325 vhsshtml5_startSitepal(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isCharVisible"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_charUrl_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_background_var"]);
5326 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"]["length"] > 0) {
5327 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["href"]) {
5328 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["href"];
5329 } else {
5330 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] = "";
5331 }
5332 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["auto"]) {
5333 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["auto"];
5334 } else {
5335 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] = "";
5336 }
5337 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["delay"]) {
5338 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["delay"];
5339 } else {
5340 /** @type {number} */
5341 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] = 0;
5342 }
5343 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["window"]) {
5344 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["window"];
5345 } else {
5346 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] = "_blank";
5347 }
5348 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["button"]) {
5349 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["button"];
5350 } else {
5351 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] = "";
5352 }
5353 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] == 1 && (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] != "http://")) {
5354 SetLink(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"]);
5355 } else {
5356 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeAttribute"]("onclick");
5357 }
5358 }
5359 } else {
5360 var _0xfa08x2e = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"]);
5361 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
5362 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_playerType"] == "FB3D") {
5363 vhssHTML_scenes[vhsshtml5_scenenumber]["sitePalFullbodyLiteJS"] = new com["oddcast"]["app"]["js"]["sitepalFullbodyLite"].SitePalFullbodyLiteJS;
5364 IEngine = vhssHTML_scenes[vhsshtml5_scenenumber]["sitePalFullbodyLiteJS"]["initAPI"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostCanvas"]);
5365 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] = IEngine;
5366 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"]["push"](IEngine);
5367 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"]);
5368 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_characterarr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"]);
5369 var onBlinkCanvas = IEngine["setStageDimensions"](canvasWidth, canvasHeight);
5370 resize_buttons(onBlinkCanvas);
5371 IEngine["setStageMaxHeight"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_maxHeight"]);
5372 if (window["console"]) {
5373 console["log"]("loadPersona triggered.");
5374 }
5375 IEngine["loadPersona"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_charUrl_var"], function(_search_text, message) {
5376 vhsshtml5_graberrors_api(message, _search_text);
5377 if (window["console"]) {
5378 console["log"](message + "--Error while character loading..");
5379 }
5380 }, function(canCreateDiscussions) {
5381 vh_mc["hideLoader"]();
5382 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_volume_var"] != "") {
5383 vh_mc["setPlayerVolume"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_volume_var"]);
5384 }
5385 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_background_var"] != "") {
5386 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = "url('" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_background_var"] + "')";
5387 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundSize"] = "cover";
5388 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundRepeat"] = "no-repeat";
5389 } else {
5390 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgcolor_var"] != "") {
5391 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = "none";
5392 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundColor"] = "#" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_bgcolor_var"];
5393 } else {
5394 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = "none";
5395 }
5396 }
5397 vhsshtml5_addButtonEvents();
5398 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_arr"]["length"] > 0) {
5399 /** @type {number} */
5400 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] = 1;
5401 }
5402 }, function(canCreateDiscussions) {
5403 vhsshtml5_tracking_api("v", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_accId"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneId"], 7, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_domvar"], 0, 0, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_etvar"], "&ev[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][]=sv");
5404 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"]["length"] > 0) {
5405 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["href"]) {
5406 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][vhsshtml5_scenenumber]["href"];
5407 } else {
5408 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] = "";
5409 }
5410 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["auto"]) {
5411 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][vhsshtml5_scenenumber]["auto"];
5412 } else {
5413 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] = "";
5414 }
5415 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["delay"]) {
5416 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][vhsshtml5_scenenumber]["delay"];
5417 } else {
5418 /** @type {number} */
5419 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] = 0;
5420 }
5421 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["window"]) {
5422 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][vhsshtml5_scenenumber]["window"];
5423 } else {
5424 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] = "_blank";
5425 }
5426 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["button"]) {
5427 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][vhsshtml5_scenenumber]["button"];
5428 } else {
5429 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] = "";
5430 }
5431 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] == 1 && (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] != "http://")) {
5432 SetLink(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"]);
5433 } else {
5434 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeAttribute"]("onclick");
5435 }
5436 }
5437 vhsshtml5_characterLoadedSuccessfully();
5438 });
5439 } else {
5440 vhsshtml5_startSitepal(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isCharVisible"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_charUrl_var"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_background_var"]);
5441 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"]["length"] > 0) {
5442 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["href"]) {
5443 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["href"];
5444 } else {
5445 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] = "";
5446 }
5447 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["auto"]) {
5448 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["auto"];
5449 } else {
5450 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] = "";
5451 }
5452 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["delay"]) {
5453 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["delay"];
5454 } else {
5455 /** @type {number} */
5456 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] = 0;
5457 }
5458 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["window"]) {
5459 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["window"];
5460 } else {
5461 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] = "_blank";
5462 }
5463 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["button"]) {
5464 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][0]["button"];
5465 } else {
5466 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] = "";
5467 }
5468 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] == 1 && (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] != "http://")) {
5469 SetLink(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"]);
5470 } else {
5471 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeAttribute"]("onclick");
5472 }
5473 }
5474 }
5475 } else {
5476 vhsshtml5_checkCanvasAvailability();
5477 }
5478 }
5479}
5480/**
5481 * @return {undefined}
5482 */
5483function vhsshtml5_characterLoadedSuccessfully() {
5484 /** @type {number} */
5485 vhsshtml5_characterLoaded = 1;
5486 vh_mc["hideLoader"]();
5487 if (parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"]) == 1 || parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"]) == 2) {
5488 if (document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"]) && vhsshtml5_mobileDetection == 0) {
5489 if (parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"]) == 2) {
5490 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"])["style"]["display"] = "block";
5491 }
5492 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["setAttribute"]("onmousemove", "vhsshtml5_displayButtons3(event,'" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
5493 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["setAttribute"]("ontouchstart", "vhsshtml5_displayButtons3(event,'" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
5494 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["setAttribute"]("onmouseout", "vhsshtml5_makeMouseOutFn(event,'" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"] + "')");
5495 } else {
5496 DisplaybuttonsForMobile();
5497 }
5498 }
5499 /** @type {number} */
5500 fb_embed_called = 0;
5501 create_vhsshtml5_urlparamsarrnew["shift"]();
5502 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_arr"]["length"] > 0) {
5503 /** @type {number} */
5504 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fromscene"] = 1;
5505 }
5506 /** @type {number} */
5507 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlayCharStatus"] = 1;
5508 var _0xfa08x2e = document["getElementsByName"]("divDrag");
5509 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
5510 if (document["getElementById"]("divDrag") != null) {
5511 document["getElementById"]("divDrag")["style"]["display"] = "block";
5512 }
5513 if (document["getElementById"]("overlay-controls") != null) {
5514 document["getElementById"]("overlay-controls")["style"]["display"] = "block";
5515 }
5516 }
5517 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"]) {
5518 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeAttribute"]("onmousemove");
5519 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_a rr_button"] != 1) {
5520 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeAttribute"]("onclick");
5521 }
5522 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"]["indexOf"]("load") > -1 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["length"] > 0 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_status"] == 1 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlay_play_status"] == 1 && vhsshtml5_mobileDetection == 0 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isSVE"] == 0) {
5523 if (create_vhsshtml5_urlparamsarrnew["length"] <= 0) {
5524 /** @type {number} */
5525 vhssHTML_scenes[vhsshtml5_scenenumber]["onloadcall"] = 1;
5526 /** @type {number} */
5527 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_assignedAudioLoaded"] = 1;
5528 vhsshtml5_clickPlay(vhsshtml5_scenenumber);
5529 }
5530 } else {
5531 /** @type {number} */
5532 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 1;
5533 /** @type {number} */
5534 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_assignedAudioLoaded"] = 0;
5535 }
5536 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"]["indexOf"]("ro") > -1) {
5537 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["setAttribute"]("onmousemove", "_mouseMoveCharacter(event,this," + vhsshtml5_scenenumber + ")");
5538 var timeStamp = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"]);
5539 timeStamp["addEventListener"]("mouseout", vhsshtml5_onmoveval(timeStamp), true);
5540 /** @type {number} */
5541 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 1;
5542 }
5543 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"]["indexOf"]("click") > -1 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlay_play_status"] == 1) {
5544 /** @type {number} */
5545 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 1;
5546 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["setAttribute"]("onclick", "_clickCharacter(event,this," + vhsshtml5_scenenumber + ")");
5547 }
5548 }
5549 if (window["console"]) {
5550 console["log"]("Character fully loaded.");
5551 }
5552 if (typeof vh_sceneLoaded == "function" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhSceneStatus_"] == 1) {
5553 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_arr"]["length"] >= 1) {
5554 /** @type {number} */
5555 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhscenecalled"] = 1;
5556 vh_sceneLoaded(parseInt(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"]) + 1, vhsshtml5_scenenumber);
5557 } else {
5558 /** @type {number} */
5559 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhscenecalled"] = 1;
5560 vh_sceneLoaded(0, vhsshtml5_scenenumber);
5561 }
5562 }
5563 if (create_vhsshtml5_urlparamsarrnew["length"] > 0) {
5564 vhsshtml5_scenenumber = vhsshtml5_scenenumber + 1;
5565 if (create_vhsshtml5_urlparamsarrnew["length"] > 0) {
5566 vhsshtml5_urlparams = create_vhsshtml5_urlparamsarrnew[0];
5567 }
5568 var _0xfa08x12 = vhsshtml5_urlparams["playerType"];
5569 if (_0xfa08x12 == "2d3d") {
5570 call_embed_file2(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_randomvarray"][vhsshtml5_scenenumber]);
5571 } else {
5572 call_embed_file(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_randomvarray"][vhsshtml5_scenenumber]);
5573 }
5574 } else {
5575 /** @type {number} */
5576 vhsshtml5_isPlayerReady = 1;
5577 }
5578 /** @type {number} */
5579 vhsshtml5_disableSpeech_ = 1;
5580 /** @type {number} */
5581 _vokiSceneStatus_ = 0;
5582}
5583/**
5584 * @return {undefined}
5585 */
5586function vhsshtml5_disabledButtons() {
5587 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
5588 var PL$20 = document["getElementsByTagName"]("a");
5589 var PL$21;
5590 /** @type {number} */
5591 PL$21 = 0;
5592 for (; PL$21 < PL$20["length"]; PL$21 = PL$21 + 1) {
5593 if (PL$20[PL$21]["getAttribute"]("href") == "javascript:vh_mc.readStory();") {
5594 PL$20[PL$21]["className"] += " __readyStory__";
5595 } else {
5596 if (PL$20[PL$21]["getAttribute"]("href") == "javascript:vh_mc.freezeToggle();") {
5597 PL$20[PL$21]["className"] += " __freezeToggle__";
5598 } else {
5599 if (PL$20[PL$21]["getAttribute"]("href") == "javascript:vh_mc.stopSpeech();") {
5600 PL$20[PL$21]["className"] += " __stopSpeech__";
5601 }
5602 }
5603 }
5604 }
5605 var _0xfa08x2e = document["getElementsByClassName"]("__readyStory__")[0];
5606 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
5607 document["getElementsByClassName"]("__readyStory__")[0]["setAttribute"]("href", "javascript:;");
5608 }
5609 _0xfa08x2e = document["getElementsByClassName"]("__freezeToggle__")[0];
5610 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
5611 document["getElementsByClassName"]("__freezeToggle__")[0]["setAttribute"]("href", "javascript:;");
5612 }
5613 _0xfa08x2e = document["getElementsByClassName"]("__stopSpeech__")[0];
5614 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
5615 document["getElementsByClassName"]("__stopSpeech__")[0]["setAttribute"]("href", "javascript:;");
5616 }
5617 _0xfa08x2e = document["getElementsByClassName"]("__replaySpeech__")[0];
5618 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
5619 document["getElementsByClassName"]("__replaySpeech__")[0]["setAttribute"]("href", "javascript:;");
5620 }
5621 document["getElementById"]("_play")["setAttribute"]("disabled", "disabled");
5622 document["getElementById"]("_resume")["setAttribute"]("disabled", "disabled");
5623 document["getElementById"]("_pause")["setAttribute"]("disabled", "disabled");
5624 document["getElementById"]("_replay")["setAttribute"]("disabled", "disabled");
5625 }
5626}
5627/**
5628 * @return {undefined}
5629 */
5630function vhsshtml5_enabledButtons() {
5631 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
5632 var _0xfa08x2e = document["getElementsByClassName"]("__readyStory__")[0];
5633 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
5634 document["getElementsByClassName"]("__readyStory__")[0]["setAttribute"]("href", "javascript:vh_mc.readStory();");
5635 }
5636 _0xfa08x2e = document["getElementsByClassName"]("__freezeToggle__")[0];
5637 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
5638 document["getElementsByClassName"]("__freezeToggle__")[0]["setAttribute"]("href", "javascript:vh_mc.freezeToggle();");
5639 }
5640 _0xfa08x2e = document["getElementsByClassName"]("__stopSpeech__")[0];
5641 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
5642 document["getElementsByClassName"]("__stopSpeech__")[0]["setAttribute"]("href", "javascript:vh_mc.stopSpeech();");
5643 }
5644 _0xfa08x2e = document["getElementsByClassName"]("__replaySpeech__")[0];
5645 if (typeof _0xfa08x2e !== "undefined" && _0xfa08x2e !== null) {
5646 document["getElementsByClassName"]("__replaySpeech__")[0]["setAttribute"]("href", "javascript:vhsshtml5_clickReplay(" + vhsshtml5_scenenumber + ");");
5647 }
5648 if (document["getElementById"]("_play")) {
5649 document["getElementById"]("_play")["removeAttribute"]("disabled");
5650 }
5651 if (document["getElementById"]("_resume")) {
5652 document["getElementById"]("_resume")["removeAttribute"]("disabled");
5653 }
5654 if (document["getElementById"]("_pause")) {
5655 document["getElementById"]("_pause")["removeAttribute"]("disabled");
5656 }
5657 if (document["getElementById"]("_replay")) {
5658 document["getElementById"]("_replay")["removeAttribute"]("disabled");
5659 }
5660 }
5661}
5662/**
5663 * @return {undefined}
5664 */
5665function vhsshtml5_displayPauseReplayButtons() {
5666 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
5667 var DOMContentLoaded = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"];
5668 var timeStamp = document["getElementById"](DOMContentLoaded);
5669 timeStamp["querySelector"]("#_play")["style"]["display"] = "none";
5670 timeStamp["querySelector"]("#_resume")["style"]["display"] = "none";
5671 timeStamp["querySelector"]("#_pause")["style"]["display"] = "inline-block";
5672 timeStamp["querySelector"]("#_replay")["style"]["display"] = "inline-block";
5673 }
5674}
5675/**
5676 * @param {?} data
5677 * @return {undefined}
5678 */
5679function loadAudio(data) {
5680 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
5681 if (window["console"]) {
5682 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
5683 }
5684 return;
5685 }
5686 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_interrupt_mode"] == 1) {
5687 stopSpeechh();
5688 }
5689 if (typeof vh_talkStarted == "function") {
5690 vh_talkStarted(vhsshtml5_scenenumber);
5691 }
5692 if (!vh_mc) {
5693 return;
5694 }
5695 if ((vhsshtml5_mobileDetection == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isMacSafari"] == 1) && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_emptyplayed"] == 0) {
5696 var artistTrack = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/actv8/presound.mp3";
5697 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["sayUrl"](artistTrack, 0, true, emptyPlayedFileErrorCallback, emptyPlayedaudioLoadedCallback, emptyPlayedaudioStartedCallback, emptyPlayedaudioFinishedCallback);
5698 setTimeout(function() {
5699 vh_mc["loadAudio"](data);
5700 }, 5E3);
5701 } else {
5702 vh_mc["loadAudio"](data);
5703 }
5704}
5705/**
5706 * @param {?} onSuccess
5707 * @param {?} onFailure
5708 * @param {?} i
5709 * @param {?} url
5710 * @param {?} text
5711 * @param {?} href
5712 * @return {undefined}
5713 */
5714function loadText(onSuccess, onFailure, i, url, text, href) {
5715 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
5716 if (window["console"]) {
5717 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
5718 }
5719 return;
5720 }
5721 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_interrupt_mode"] == 1) {
5722 stopSpeechh();
5723 }
5724 if (typeof vh_talkStarted == "function") {
5725 vh_talkStarted(vhsshtml5_scenenumber);
5726 }
5727 if (!vh_mc) {
5728 return;
5729 }
5730 if ((vhsshtml5_mobileDetection == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isMacSafari"] == 1) && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_emptyplayed"] == 0) {
5731 /** @type {number} */
5732 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_emptyplayed"] = 1;
5733 var artistTrack = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/actv8/presound.mp3";
5734 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["sayUrl"](artistTrack, 0, true, emptyPlayedFileErrorCallback, emptyPlayedaudioLoadedCallback, emptyPlayedaudioStartedCallback, emptyPlayedaudioFinishedCallback);
5735 setTimeout(function() {
5736 vh_mc["loadText"](onSuccess, onFailure, i, url, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"], "js");
5737 }, 2E3);
5738 } else {
5739 vh_mc["loadText"](onSuccess, onFailure, i, url, vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"], "js");
5740 }
5741}
5742/**
5743 * @param {boolean} audio
5744 * @param {string} value
5745 * @return {?}
5746 */
5747function sayAudio(audio, value) {
5748 if (value !== undefined) {
5749 /** @type {string} */
5750 vhsshtml5_stTime = value;
5751 }
5752 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
5753 if (window["console"]) {
5754 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
5755 }
5756 return;
5757 }
5758 if (mobile_events == 1) {
5759 vhssHTML_handleProcessAudioRequests("sayAudio", {
5760 "audio" : audio,
5761 "stTime" : value
5762 });
5763 }
5764 if (vhsshtml5_apiFunctionCalled == 0 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ieversion"] == "") {
5765 /** @type {number} */
5766 vhsshtml5_apiFunctionCalled = 1;
5767 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"] = "";
5768 /** @type {number} */
5769 vhsshtml5_isErrorNotOccured = 0;
5770 return new Promise(function(callback, canCreateDiscussions) {
5771 /** @type {number} */
5772 var chat_retry = setInterval(function() {
5773 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"] != "") {
5774 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"]["indexOf"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_NotAllowedError"]) > -1) {
5775 callback({
5776 "status" : "NotAllowed",
5777 "message" : vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"]
5778 });
5779 } else {
5780 callback({
5781 "status" : "Failure",
5782 "message" : vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"]
5783 });
5784 }
5785 /** @type {number} */
5786 vhsshtml5_apiFunctionCalled = 0;
5787 clearInterval(chat_retry);
5788 } else {
5789 if (vhsshtml5_isErrorNotOccured == 1) {
5790 callback({
5791 "status" : "Success",
5792 "message" : ""
5793 });
5794 /** @type {number} */
5795 vhsshtml5_apiFunctionCalled = 0;
5796 clearInterval(chat_retry);
5797 }
5798 }
5799 }, 100);
5800 });
5801 }
5802}
5803/**
5804 * @return {undefined}
5805 */
5806function emptyPlayedFileErrorCallback() {
5807 /** @type {number} */
5808 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] = 0;
5809 /** @type {number} */
5810 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_emptyplayed"] = 1;
5811 /** @type {number} */
5812 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_emptyaudio"] = 1;
5813 /** @type {number} */
5814 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_emptyaudiorunning"] = 0;
5815 setTimeout(function() {
5816 vh_mc["hideLoader"]();
5817 }, 1E3);
5818 if (window["console"]) {
5819 console["log"]("emptyPlayed FileErrorCallback.");
5820 }
5821 emptyPlayedaudioFinishedCallback();
5822}
5823/**
5824 * @return {undefined}
5825 */
5826function emptyPlayedaudioLoadedCallback() {
5827 /** @type {number} */
5828 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] = 1;
5829 /** @type {number} */
5830 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_emptyaudiorunning"] = 1;
5831 if (window["console"]) {
5832 console["log"]("emptyPlayed audioLoadedCallback.");
5833 }
5834}
5835/**
5836 * @return {undefined}
5837 */
5838function emptyPlayedaudioStartedCallback() {
5839 if (window["console"]) {
5840 console["log"]("emptyPlayed audioStartedCallback.");
5841 }
5842}
5843/**
5844 * @return {undefined}
5845 */
5846function emptyPlayedaudioFinishedCallback() {
5847 /** @type {number} */
5848 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] = 0;
5849 /** @type {number} */
5850 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_emptyplayed"] = 1;
5851 /** @type {number} */
5852 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_emptyaudio"] = 1;
5853 /** @type {number} */
5854 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_emptyaudiorunning"] = 0;
5855 var artistTrack = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_interrupt_arr"][0];
5856 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_interrupt_arr"]["shift"]();
5857 vh_mc["emptyaudioCallback"](artistTrack);
5858 if (window["console"]) {
5859 console["log"]("emptyPlayed audioFinishedCallback");
5860 }
5861}
5862/**
5863 * @param {!Object} text
5864 * @param {string} voice
5865 * @param {string} language
5866 * @param {?} engine
5867 * @param {?} effect
5868 * @param {?} level
5869 * @param {!Array} result
5870 * @return {?}
5871 */
5872 function sayText(text, voice, language, engine, effect, level, result) {
5873
5874 videoMp3URL = '';
5875 isVideoMp3URLNeeded = 0;
5876
5877 if (result == undefined) {
5878 result = '';
5879 }
5880
5881 if (vhssHTML_scenes[vhsshtml5_scenenumber]['vhsshtml5_clientAPI'] == 0) {
5882 if (window['console']) {
5883 console['log']('Client API is unavailable for your plan. Please upgrade your plan.');
5884 }
5885 return;
5886 }
5887
5888 if (mobile_events == 1) {
5889
5890 if (vhssHTML_scenes[vhsshtml5_scenenumber]['is_licensed_domain'] == 0) {
5891 alert(vhssHTML_scenes[vhsshtml5_scenenumber]['secureplaybackmessage']);
5892 } else {
5893 vhssHTML_handleProcessAudioRequests('sayText', {
5894 "txt" : text,
5895 "voice" : voice,
5896 "lang" : language,
5897 "engine" : engine,
5898 "fxLevel" : level,
5899 "fxType" : effect,
5900 "isvideoEditor" : result
5901 });
5902 }
5903
5904 if (vhsshtml5_apiFunctionCalled == 0 && vhssHTML_scenes[vhsshtml5_scenenumber]['vhsshtml5_ieversion'] == '') {
5905
5906 vhsshtml5_apiFunctionCalled = 1;
5907 vhssHTML_scenes[vhsshtml5_scenenumber]['vhsshtml5_isErrorOccured'] = '';
5908 vhsshtml5_isErrorNotOccured = 0;
5909
5910 return new Promise(function(callback, canCreateDiscussions) {
5911
5912 var chat_retry = setInterval(function() {
5913
5914 if (vhssHTML_scenes[vhsshtml5_scenenumber]['vhsshtml5_isErrorOccured'] != '') {
5915
5916 if (vhssHTML_scenes[vhsshtml5_scenenumber]['vhsshtml5_isErrorOccured']['indexOf'](vhssHTML_scenes[vhsshtml5_scenenumber]['vhsshtml5_NotAllowedError']) > -1) {
5917
5918 callback({
5919 "status" : 'NotAllowed',
5920 "message" : vhssHTML_scenes[vhsshtml5_scenenumber]['vhsshtml5_isErrorOccured']
5921 });
5922 } else {
5923 callback({
5924 "status" : 'Failure',
5925 "message" : vhssHTML_scenes[vhsshtml5_scenenumber]['vhsshtml5_isErrorOccured']
5926 });
5927 }
5928
5929 vhsshtml5_apiFunctionCalled = 0;
5930 clearInterval(chat_retry);
5931 } else {
5932 if (vhsshtml5_isErrorNotOccured == 1 && (isVideoMp3URLNeeded == 0 || videoMp3URL !== '')) {
5933 if (result == 1) {
5934 callback({
5935 "status" : 'Success',
5936 "message" : '',
5937 "videoMp3URL" : videoMp3URL
5938 });
5939 } else {
5940 callback({
5941 "status" : 'Success',
5942 "message" : ''
5943 });
5944 }
5945 /** @type {number} */
5946 vhsshtml5_apiFunctionCalled = 0;
5947 clearInterval(chat_retry);
5948 }
5949 }
5950 }, 10);
5951 });
5952 }
5953 }
5954}
5955
5956
5957/**
5958 * @param {?} mmCoreSplitViewBlock
5959 * @return {undefined}
5960 */
5961function saySilent(mmCoreSplitViewBlock) {
5962 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
5963 if (window["console"]) {
5964 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
5965 }
5966 return;
5967 }
5968 if (mobile_events == 1) {
5969 if (!vh_mc) {
5970 return;
5971 }
5972 vh_mc["saySilent"](mmCoreSplitViewBlock);
5973 }
5974}
5975/**
5976 * @param {?} volume
5977 * @return {undefined}
5978 */
5979function setPlayerVolume(volume) {
5980 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
5981 if (window["console"]) {
5982 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
5983 }
5984 return;
5985 }
5986 if (!vh_mc) {
5987 return;
5988 }
5989 vh_mc["setPlayerVolume"](volume);
5990}
5991/**
5992 * @return {undefined}
5993 */
5994function stopSpeech() {
5995 if (!vh_mc) {
5996 return;
5997 }
5998 vh_mc["stopSpeech"]();
5999}
6000/**
6001 * @return {undefined}
6002 */
6003function stopSpeechh() {
6004 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6005 if (window["console"]) {
6006 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6007 }
6008 return;
6009 }
6010 if (!vh_mc) {
6011 return;
6012 }
6013 vh_mc["stopSpeech"]();
6014}
6015/**
6016 * @param {!Object} txt
6017 * @param {string} file
6018 * @param {string} options
6019 * @param {?} engine
6020 * @param {?} mcInfo
6021 * @param {?} tagList
6022 * @param {?} add
6023 * @return {?}
6024 */
6025function sayAIResponse(txt, file, options, engine, mcInfo, tagList, add) {
6026 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6027 if (window["console"]) {
6028 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6029 }
6030 return;
6031 }
6032 if (mobile_events == 1) {
6033 if (vhssHTML_scenes[vhsshtml5_scenenumber]["is_licensed_domain"] == 0) {
6034 alert(vhssHTML_scenes[vhsshtml5_scenenumber]["secureplaybackmessage"]);
6035 } else {
6036 vhssHTML_handleProcessAudioRequests("sayAIResponse", {
6037 "txt" : txt,
6038 "voice" : file,
6039 "lang" : options,
6040 "engine" : engine,
6041 "fxLevel" : add,
6042 "fxType" : tagList
6043 });
6044 }
6045 }
6046 if (vhsshtml5_apiFunctionCalled == 0 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ieversion"] == "") {
6047 /** @type {number} */
6048 vhsshtml5_apiFunctionCalled = 1;
6049 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"] = "";
6050 /** @type {number} */
6051 vhsshtml5_isErrorNotOccured = 0;
6052 return new Promise(function(callback, canCreateDiscussions) {
6053 /** @type {number} */
6054 var chat_retry = setInterval(function() {
6055 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"] != "") {
6056 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"]["indexOf"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_NotAllowedError"]) > -1) {
6057 callback({
6058 "status" : "NotAllowed",
6059 "message" : vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"]
6060 });
6061 } else {
6062 callback({
6063 "status" : "Failure",
6064 "message" : vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"]
6065 });
6066 }
6067 /** @type {number} */
6068 vhsshtml5_apiFunctionCalled = 0;
6069 clearInterval(chat_retry);
6070 } else {
6071 if (vhsshtml5_isErrorNotOccured == 1) {
6072 callback({
6073 "status" : "Success",
6074 "message" : ""
6075 });
6076 /** @type {number} */
6077 vhsshtml5_apiFunctionCalled = 0;
6078 clearInterval(chat_retry);
6079 }
6080 }
6081 }, 100);
6082 });
6083 }
6084}
6085/**
6086 * @param {!Object} txt
6087 * @param {string} file
6088 * @param {string} options
6089 * @param {?} engine
6090 * @param {?} mcInfo
6091 * @param {?} tagList
6092 * @param {?} add
6093 * @return {undefined}
6094 */
6095function sayAIResponseExported(txt, file, options, engine, mcInfo, tagList, add) {
6096 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6097 if (window["console"]) {
6098 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6099 }
6100 return;
6101 }
6102 if (mobile_events == 1) {
6103 if (vhssHTML_scenes[vhsshtml5_scenenumber]["is_licensed_domain"] == 0) {
6104 alert(vhssHTML_scenes[vhsshtml5_scenenumber]["secureplaybackmessage"]);
6105 }
6106 if (!vh_mc) {
6107 return;
6108 }
6109 vhssHTML_handleProcessAudioRequests("sayAIResponseExported", {
6110 "txt" : txt,
6111 "voice" : file,
6112 "lang" : options,
6113 "engine" : engine,
6114 "fxLevel" : add,
6115 "fxType" : tagList
6116 });
6117 }
6118}
6119/**
6120 * @param {?} sendInit
6121 * @return {undefined}
6122 */
6123function setBackground(sendInit) {
6124 if (window["console"]) {
6125 console["log"]("changing background");
6126 }
6127 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6128 if (window["console"]) {
6129 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6130 }
6131 return;
6132 }
6133 if (!vh_mc) {
6134 return;
6135 }
6136 vh_mc["setBackground"](sendInit);
6137}
6138/**
6139 * @param {?} ledIndex
6140 * @param {?} hexColor
6141 * @return {undefined}
6142 */
6143function setColor(ledIndex, hexColor) {
6144 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6145 if (window["console"]) {
6146 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6147 }
6148 return;
6149 }
6150 if (!vh_mc) {
6151 return;
6152 }
6153 vh_mc["setColor"](ledIndex, hexColor);
6154}
6155/**
6156 * @param {?} array
6157 * @return {?}
6158 */
6159function hexToRgb(array) {
6160 var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i["exec"](array);
6161 return result ? {
6162 r : parseInt(result[1], 16),
6163 g : parseInt(result[2], 16),
6164 b : parseInt(result[3], 16)
6165 } : null;
6166}
6167/**
6168 * @param {?} mmCoreSplitViewBlock
6169 * @param {?} $state
6170 * @param {?} breadcrumbs
6171 * @return {undefined}
6172 */
6173function SetLink(mmCoreSplitViewBlock, $state, breadcrumbs) {
6174 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6175 if (window["console"]) {
6176 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6177 }
6178 return;
6179 }
6180 if (!vh_mc) {
6181 return;
6182 }
6183 vh_mc["setLink"](mmCoreSplitViewBlock, $state, breadcrumbs);
6184}
6185/**
6186 * @param {number} mmCoreSplitViewBlock
6187 * @return {undefined}
6188 */
6189function followCursor(mmCoreSplitViewBlock) {
6190 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6191 if (window["console"]) {
6192 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6193 }
6194 return;
6195 }
6196 /** @type {number} */
6197 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cursor_status"] = mmCoreSplitViewBlock;
6198 var DOM_CONTENT_LOADED = "";
6199 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"]["length"] > 0) {
6200 DOM_CONTENT_LOADED = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"];
6201 }
6202 if (mmCoreSplitViewBlock == 0) {
6203 vh_mc["followCursor"](mmCoreSplitViewBlock);
6204 document["getElementById"](DOM_CONTENT_LOADED)["removeAttribute"]("onmousemove");
6205 } else {
6206 if (mmCoreSplitViewBlock == 1) {
6207 vh_mc["followCursor"](1);
6208 document["getElementById"](DOM_CONTENT_LOADED)["setAttribute"]("onmousemove", "setGazeAtPoint(event,'" + vhsshtml5_scenenumber + "')");
6209 } else {
6210 if (mmCoreSplitViewBlock == 2) {
6211 vh_mc["followCursor"](1);
6212 document["getElementById"](DOM_CONTENT_LOADED)["removeAttribute"]("onmousemove");
6213 document["getElementsByTagName"]("body")[0]["removeAttribute"]("onmousemove");
6214 document["getElementsByTagName"]("body")[0]["setAttribute"]("onmousemove", "setGazeAtPointInBody(event)");
6215 }
6216 }
6217 }
6218}
6219/**
6220 * @param {number} val
6221 * @return {undefined}
6222 */
6223function followCursorCopy(val) {
6224 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6225 if (window["console"]) {
6226 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6227 }
6228 return;
6229 }
6230 /** @type {number} */
6231 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cursor_status"] = val;
6232 console["log"]("vhsshtml5_cursor_status", vhsshtml5_scenenumber, val);
6233 var DOM_CONTENT_LOADED = "";
6234 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"]["length"] > 0) {
6235 DOM_CONTENT_LOADED = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"];
6236 }
6237 if (val == 0) {
6238 vh_mc["followCursor"](val);
6239 document["getElementById"](DOM_CONTENT_LOADED)["removeAttribute"]("onmousemove");
6240 } else {
6241 if (val == 1) {
6242 vh_mc["followCursor"](1);
6243 document["getElementById"](DOM_CONTENT_LOADED)["setAttribute"]("onmousemove", "setGazeAtPoint(event,'" + vhsshtml5_scenenumber + "')");
6244 } else {
6245 if (val == 2) {
6246 vh_mc["followCursor"](1);
6247 document["getElementById"](DOM_CONTENT_LOADED)["removeAttribute"]("onmousemove");
6248 document["getElementsByTagName"]("body")[0]["setAttribute"]("onmousemove", "setGazeAtPointInBody(event)");
6249 }
6250 }
6251 }
6252 if (window["console"]) {
6253 console["log"]("mouse mode ->", val, "scene number ->", vhsshtml5_scenenumber);
6254 }
6255}
6256/**
6257 * @param {?} key
6258 * @return {?}
6259 */
6260function getOffsetLeftTop(key) {
6261 /** @type {number} */
6262 var total_a = 0;
6263 /** @type {number} */
6264 var total_b = 0;
6265 do {
6266 if (!isNaN(key["offsetLeft"])) {
6267 total_a = total_a + key["offsetLeft"];
6268 total_b = total_b + key["offsetTop"];
6269 }
6270 } while (key = key["offsetParent"]);
6271 var state = {
6272 offsetLeft : total_a,
6273 offsetTop : total_b
6274 };
6275 return state;
6276}
6277/**
6278 * @param {?} p
6279 * @param {string} record
6280 * @return {undefined}
6281 */
6282function setGazeAtPoint(p, record) {
6283 if (vhsshtml5_totalScenesLoaded == vhssHTML_scenes["length"]) {
6284 if (record != undefined) {
6285 /** @type {string} */
6286 vhsshtml5_scenenumber = record;
6287 }
6288 }
6289 var DOMContentLoaded = "";
6290 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_characterarr"]["length"] > 0) {
6291 DOMContentLoaded = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_characterarr"][vhsshtml5_scenenumber];
6292 }
6293 if (!vh_mc) {
6294 return;
6295 }
6296 if (document["getElementById"](DOMContentLoaded)) {
6297 var timeStamp = document["getElementById"](DOMContentLoaded);
6298 var duration = getOffsetLeftTop(timeStamp);
6299 var s = duration["offsetLeft"];
6300 var d = duration["offsetTop"];
6301 /** @type {number} */
6302 var xdiff = p["pageX"] - s;
6303 /** @type {number} */
6304 var newChartRight = p["pageY"] - d;
6305 /** @type {number} */
6306 var numKeysDeleted = 3;
6307 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] == 0 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_interrupt_arr"]["length"] == 0) {
6308 vh_mc["setGazeAtPoint"](xdiff, newChartRight, numKeysDeleted);
6309 }
6310 }
6311}
6312/**
6313 * @param {?} res
6314 * @param {string} searchQuery
6315 * @return {undefined}
6316 */
6317function setGazeAtPointInBody(res, searchQuery) {
6318 if (vhsshtml5_totalScenesLoaded == vhssHTML_scenes["length"]) {
6319 if (searchQuery != undefined) {
6320 /** @type {string} */
6321 vhsshtml5_scenenumber = searchQuery;
6322 }
6323 }
6324 var b = "";
6325 if (!vh_mc) {
6326 return;
6327 }
6328 /** @type {number} */
6329 var artistTrack = 1;
6330 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audiorunning"] == 0 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_interrupt_arr"]["length"] == 0) {
6331 /** @type {number} */
6332 var cc = 0;
6333 for (; cc < vhssHTML_scenes["length"]; cc++) {
6334 if (vhssHTML_scenes[cc]["vhsshtml5_characterarr"]["length"] > 0) {
6335 b = vhssHTML_scenes[cc]["vhsshtml5_characterarr"][cc];
6336 }
6337 if (document["getElementById"](b)) {
6338 var itemData = document["getElementById"](b);
6339 var reverseItemData = getOffsetLeftTop(itemData);
6340 var trackCurrentTime = reverseItemData["offsetLeft"];
6341 var currentPositionY = reverseItemData["offsetTop"];
6342 /** @type {number} */
6343 var audioCtxTime = res["pageX"] - trackCurrentTime;
6344 /** @type {number} */
6345 var reLocationY = res["pageY"] - currentPositionY;
6346 if (vhssHTML_scenes[cc]["vhsshtml5_prev_player_type_"] !== "FB3D" && (vhssHTML_scenes[cc]["vhsshtml5_cursor_status"] == 2 || vhssHTML_scenes[cc]["vhsshtml5_cursor_status"] == "2")) {
6347 if (vhssHTML_scenes[cc]["vhsshtml5_show_arr_"]["length"] > 0) {
6348 if (typeof vhssHTML_scenes[cc]["vhsshtml5_show_arr_"][vhssHTML_scenes[cc]["vhsshtml5_var_current_index"]] !== undefined && typeof vhssHTML_scenes[cc]["vhsshtml5_show_arr_"][vhssHTML_scenes[cc]["vhsshtml5_var_current_index"]]["char"] != "undefined") {
6349 if (vhssHTML_scenes[cc]["vhsshtml5_api"] != "") {
6350 vhssHTML_scenes[cc]["vhsshtml5_api"]["setGazeAtPoint"](audioCtxTime, reLocationY, artistTrack);
6351 }
6352 }
6353 } else {
6354 if (vhssHTML_scenes[cc]["vhsshtml5_api"] != "") {
6355 vhssHTML_scenes[cc]["vhsshtml5_api"]["setGazeAtPoint"](audioCtxTime, reLocationY, artistTrack);
6356 }
6357 }
6358 }
6359 }
6360 }
6361 }
6362}
6363/**
6364 * @return {undefined}
6365 */
6366function freezeToggle() {
6367 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6368 if (window["console"]) {
6369 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6370 }
6371 return;
6372 }
6373 if (!vh_mc) {
6374 return;
6375 }
6376 if (document["getElementById"]("_pause")["style"]["display"] == "inline-block" && document["getElementById"]("_resume")["style"]["display"] == "none") {
6377 vh_mc["hideLoader"]();
6378 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
6379 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["setAttribute"]("clickEvent", "pause");
6380 document["getElementById"]("_play")["style"]["display"] = "none";
6381 document["getElementById"]("_resume")["style"]["display"] = "inline-block";
6382 document["getElementById"]("_pause")["style"]["display"] = "none";
6383 document["getElementById"]("_replay")["style"]["display"] = "inline-block";
6384 }
6385 } else {
6386 if (document["getElementById"]("_resume")["style"]["display"] == "inline-block" && document["getElementById"]("_pause")["style"]["display"] == "none") {
6387 vh_mc["hideLoader"]();
6388 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
6389 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["setAttribute"]("clickEvent", "replay");
6390 document["getElementById"]("_play")["style"]["display"] = "none";
6391 document["getElementById"]("_resume")["style"]["display"] = "none";
6392 document["getElementById"]("_pause")["style"]["display"] = "inline-block";
6393 document["getElementById"]("_replay")["style"]["display"] = "inline-block";
6394 }
6395 }
6396 }
6397 vh_mc["freezeToggle"]();
6398}
6399/**
6400 * @return {undefined}
6401 */
6402function recenter() {
6403 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6404 if (window["console"]) {
6405 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6406 }
6407 return;
6408 }
6409 if (!vh_mc) {
6410 return;
6411 }
6412 vh_mc["recenter"]();
6413}
6414/**
6415 * @param {?} mmCoreSplitViewBlock
6416 * @param {?} $state
6417 * @param {?} breadcrumbs
6418 * @return {undefined}
6419 */
6420function setGaze(mmCoreSplitViewBlock, $state, breadcrumbs) {
6421 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6422 if (window["console"]) {
6423 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6424 }
6425 return;
6426 }
6427 if (!vh_mc) {
6428 return;
6429 }
6430 vh_mc["setGaze"](mmCoreSplitViewBlock, $state, breadcrumbs);
6431}
6432/**
6433 * @param {number} uuid
6434 * @param {number} $scope
6435 * @param {number} KeyService
6436 * @return {undefined}
6437 */
6438function setFacialExpression(uuid, $scope, KeyService) {
6439 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6440 if (window["console"]) {
6441 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6442 }
6443 return;
6444 }
6445 if (!vh_mc) {
6446 return;
6447 }
6448 if (uuid && (uuid != "" || uuid != null)) {
6449 /** @type {number} */
6450 uuid = uuid;
6451 } else {
6452 /** @type {number} */
6453 uuid = 0;
6454 }
6455 if ($scope && ($scope != "" || $scope != null)) {
6456 /** @type {number} */
6457 $scope = $scope;
6458 } else {
6459 /** @type {number} */
6460 $scope = 1;
6461 }
6462 if (KeyService && (KeyService != "" || KeyService != null)) {
6463 /** @type {number} */
6464 KeyService = KeyService * 1E3;
6465 } else {
6466 /** @type {number} */
6467 KeyService = -1;
6468 }
6469 vh_mc["setFacialExpression"](uuid, $scope, KeyService);
6470}
6471/**
6472 * @return {?}
6473 */
6474function getAvailableExpressions() {
6475 if (!vh_mc) {
6476 return;
6477 }
6478 return vh_mc["getAvailableExpressions"]();
6479}
6480/**
6481 * @return {undefined}
6482 */
6483function clearExpressionList() {
6484 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6485 if (window["console"]) {
6486 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6487 }
6488 return;
6489 }
6490 if (!vh_mc) {
6491 return;
6492 }
6493 vh_mc["clearExpressionList"]();
6494}
6495/**
6496 * @param {number} index
6497 * @return {undefined}
6498 */
6499function replay(index) {
6500 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6501 if (window["console"]) {
6502 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6503 }
6504 return;
6505 }
6506 if (mobile_events == 1) {
6507 if (index && index == 1) {
6508 vhssHTML_handleProcessAudioRequests("replay", {
6509 "audio" : vhsshtml5_lastPlayed
6510 });
6511 } else {
6512 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_status"] == 1) {
6513 vhssHTML_handleProcessAudioRequests("replay", {
6514 "audio" : vhsshtml5_lastPlayed
6515 });
6516 }
6517 }
6518 }
6519}
6520/**
6521 * @return {undefined}
6522 */
6523function runQueue() {
6524 if (mobile_events == 1) {
6525 var offlineforum = document["getElementById"]("const_url_")["value"];
6526 var cost = document["getElementById"]("mp3_arr_")["value"]["split"](",");
6527 var gas = document["getElementById"]("bg_arr_")["value"]["split"](",");
6528 var courseContentPage = offlineforum + cost[0];
6529 var forumFolderPath = offlineforum + gas[0];
6530 cost["shift"]();
6531 gas["shift"]();
6532 document["getElementById"]("mp3_arr_")["value"] = cost;
6533 document["getElementById"]("bg_arr_")["value"] = gas;
6534 vh_mc["sayAudio"](courseContentPage + "?status=0", "");
6535 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundImage"] = "url('" + forumFolderPath + "')";
6536 }
6537}
6538/**
6539 * @param {?} mmCoreSplitViewBlock
6540 * @param {?} $state
6541 * @return {undefined}
6542 */
6543function setIdleMovement(mmCoreSplitViewBlock, $state) {
6544 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6545 if (window["console"]) {
6546 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6547 }
6548 return;
6549 }
6550 if (!vh_mc) {
6551 return;
6552 }
6553 vh_mc["setIdleMovement"](mmCoreSplitViewBlock, $state);
6554}
6555/**
6556 * @param {?} mmCoreSplitViewBlock
6557 * @return {undefined}
6558 */
6559function setSpeechMovement(mmCoreSplitViewBlock) {
6560 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6561 if (window["console"]) {
6562 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6563 }
6564 return;
6565 }
6566 if (!vh_mc) {
6567 return;
6568 }
6569 vh_mc["setSpeechMovement"](mmCoreSplitViewBlock);
6570}
6571/**
6572 * @param {?} url
6573 * @return {undefined}
6574 */
6575function loadScene(url) {
6576 if (vhsshtml5_characterLoaded !== 1) {
6577 if (window["console"]) {
6578 console["log"]("A character is already loading. Please click again after it loads.");
6579 }
6580 return;
6581 }
6582 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6583 if (window["console"]) {
6584 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6585 }
6586 return;
6587 }
6588 loadShow(url);
6589}
6590/**
6591 * @param {?} mmCoreSplitViewBlock
6592 * @return {undefined}
6593 */
6594function setNextSceneIndex(mmCoreSplitViewBlock) {
6595 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6596 if (window["console"]) {
6597 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6598 }
6599 return;
6600 }
6601 if (!vh_mc) {
6602 return;
6603 }
6604 vh_mc["setNextSceneIndex"](mmCoreSplitViewBlock);
6605}
6606/**
6607 * @param {?} args
6608 * @return {undefined}
6609 */
6610function gotoScene(args) {
6611 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6612 if (window["console"]) {
6613 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6614 }
6615 return;
6616 }
6617 if (!vh_mc) {
6618 return;
6619 }
6620 vh_mc["gotoScene"](args);
6621}
6622/**
6623 * @return {undefined}
6624 */
6625function gotoNextScene() {
6626 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6627 if (window["console"]) {
6628 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6629 }
6630 return;
6631 }
6632 if (!vh_mc) {
6633 return;
6634 }
6635 vh_mc["gotoNextScene"]();
6636}
6637/**
6638 * @return {undefined}
6639 */
6640function gotoPrevScene() {
6641 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6642 if (window["console"]) {
6643 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6644 }
6645 return;
6646 }
6647 if (!vh_mc) {
6648 return;
6649 }
6650 vh_mc["gotoPrevScene"]();
6651}
6652/**
6653 * @param {?} mmCoreSplitViewBlock
6654 * @return {undefined}
6655 */
6656function preloadScene(mmCoreSplitViewBlock) {
6657 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6658 if (window["console"]) {
6659 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6660 }
6661 return;
6662 }
6663 if (!vh_mc) {
6664 return;
6665 }
6666 vh_mc["preloadScene"](mmCoreSplitViewBlock);
6667}
6668/**
6669 * @return {undefined}
6670 */
6671function preloadNextScene() {
6672 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6673 if (window["console"]) {
6674 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6675 }
6676 return;
6677 }
6678 if (!vh_mc) {
6679 return;
6680 }
6681 vh_mc["preloadNextScene"]();
6682}
6683/**
6684 * @return {?}
6685 */
6686function callSceneStatus() {
6687 if (typeof vh_sceneLoaded == "function" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_vhSceneStatus_"] == 1) {
6688 if (vhsshtml5_vh_sceneLoaded == 0) {
6689 /** @type {number} */
6690 vhsshtml5_vh_sceneLoaded = 1;
6691 vh_sceneLoaded(0, vhsshtml5_scenenumber);
6692 }
6693 return false;
6694 }
6695}
6696/**
6697 * @return {undefined}
6698 */
6699function calculateAudioPercentage() {
6700 var a = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Obj_"] != "" ? vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Obj_"]["getCurrentAudioProgress"]() : vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["getCurrentAudioProgress"]();
6701 if (a != -1) {
6702 if (isNaN(a)) {
6703 /** @type {number} */
6704 a = 0;
6705 }
6706 /** @type {number} */
6707 var whiteRating = parseInt(parseFloat(a) * parseFloat(100));
6708 /** @type {number} */
6709 progressmade = whiteRating;
6710 if (whiteRating > "0") {
6711 vh_audioProgress(whiteRating, vhsshtml5_scenenumber);
6712 }
6713 }
6714}
6715/**
6716 * @param {?} newSrc
6717 * @param {number} isBgroundImg
6718 * @return {undefined}
6719 */
6720function overlayOpen(newSrc, isBgroundImg) {
6721 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6722 if (window["console"]) {
6723 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6724 }
6725 return;
6726 }
6727 if (vhsshtml5_osStatus == 1) {
6728 overlayClose();
6729 if (window["showVhost"] != null) {
6730 if (newSrc == "min") {
6731 minimizeVhost();
6732 } else {
6733 if (isBgroundImg == 2) {
6734 if (plays && plays > 0) {
6735 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_status"] = vhsshtml5_checkCookie(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cookieName_"], plays, exdays);
6736 }
6737 }
6738 showVhost(isBgroundImg);
6739 }
6740 }
6741 }
6742}
6743/**
6744 * @return {undefined}
6745 */
6746function minimizeVhost() {
6747 stopSpeechh();
6748 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "FB3D") {
6749 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["display"] = "block";
6750 } else {
6751 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["display"] = "none";
6752 }
6753 document["getElementById"]("_noImg_")["style"]["display"] = "table";
6754 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["display"] = "none";
6755 if (document["getElementById"]("overlay-controls")) {
6756 document["getElementById"]("overlay-controls")["style"]["display"] = "none";
6757 }
6758 if (document["getElementById"]("divDrag-outer")) {
6759 document["getElementById"]("divDrag-outer")["style"]["display"] = "none";
6760 }
6761}
6762/**
6763 * @param {number} isBgroundImg
6764 * @return {undefined}
6765 */
6766function showVhost(isBgroundImg) {
6767 document["getElementById"]("_noImg_")["style"]["display"] = "none";
6768 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["display"] = "block";
6769 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["display"] = "block";
6770 if (document["getElementById"]("overlay-controls")) {
6771 document["getElementById"]("overlay-controls")["style"]["display"] = "block";
6772 }
6773 if (document["getElementById"]("divDrag-outer")) {
6774 document["getElementById"]("divDrag-outer")["style"]["display"] = "block";
6775 }
6776 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlayCharStatus"] == 1 && isBgroundImg == 1) {
6777 vhsshtml5_clickPlay(vhsshtml5_scenenumber);
6778 } else {
6779 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"]) {
6780 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_var"]["indexOf"]("load") > -1 && isBgroundImg == 2 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlayCharStatus"] == 1) {
6781 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_chk_play_back_limit"] == 1) {
6782 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] != "") {
6783 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] = "&" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
6784 }
6785 /** @type {!XMLHttpRequest} */
6786 var self = new XMLHttpRequest;
6787 var oldV = vhsshtml5_main_url + "json/check_cookie.php?status=0&session_name=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_cookieName_"] + "&days=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_back_limit_days"] + "&counter=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_play_back_limit_counter"] + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
6788 /**
6789 * @return {undefined}
6790 */
6791 self["onreadystatechange"] = function() {
6792 if (self["readyState"] == 4 && self["status"] == 200) {
6793 var origMenu = self["responseText"];
6794 if (origMenu == 1) {
6795 /** @type {number} */
6796 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlay_play_status"] = 1;
6797 vhsshtml5_clickPlay(vhsshtml5_scenenumber);
6798 }
6799 }
6800 };
6801 self["open"]("GET", oldV, true);
6802 self["send"]();
6803 } else {
6804 /** @type {number} */
6805 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlay_play_status"] = 1;
6806 vhsshtml5_clickPlay(vhsshtml5_scenenumber);
6807 }
6808 }
6809 }
6810 }
6811}
6812/**
6813 * @return {undefined}
6814 */
6815function overlayClose() {
6816 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6817 if (window["console"]) {
6818 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6819 }
6820 return;
6821 }
6822 if (vhsshtml5_osStatus == 1) {
6823 stopSpeechh();
6824 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["display"] = "none";
6825 document["getElementById"]("_noImg_")["style"]["display"] = "none";
6826 if (document["getElementById"]("overlay-controls")) {
6827 document["getElementById"]("overlay-controls")["style"]["display"] = "none";
6828 }
6829 if (document["getElementById"]("divDrag-outer")) {
6830 document["getElementById"]("divDrag-outer")["style"]["display"] = "none";
6831 }
6832 }
6833}
6834/**
6835 * @return {undefined}
6836 */
6837function overlayClosefb() {
6838 if (vhsshtml5_osStatus == 1) {
6839 stopSpeechh();
6840 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["style"]["display"] = "none";
6841 document["getElementById"]("_noImg_")["style"]["display"] = "none";
6842 }
6843}
6844/**
6845 * @param {?} x
6846 * @return {?}
6847 */
6848function getPosition(x) {
6849 /** @type {number} */
6850 var tick_x = 0;
6851 /** @type {number} */
6852 var totalPass = 0;
6853 for (; x;) {
6854 if (x["tagName"] == "BODY") {
6855 var transition = x["scrollLeft"] || document["documentElement"]["scrollLeft"];
6856 var t1 = x["scrollTop"] || document["documentElement"]["scrollTop"];
6857 tick_x = tick_x + (x["offsetLeft"] - transition + x["clientLeft"]);
6858 totalPass = totalPass + (x["offsetTop"] - t1 + x["clientTop"]);
6859 } else {
6860 tick_x = tick_x + (x["offsetLeft"] - x["scrollLeft"] + x["clientLeft"]);
6861 totalPass = totalPass + (x["offsetTop"] - x["scrollTop"] + x["clientTop"]);
6862 }
6863 x = x["offsetParent"];
6864 }
6865 return {
6866 x : tick_x,
6867 y : totalPass
6868 };
6869}
6870/**
6871 * @param {?} $timeout
6872 * @return {?}
6873 */
6874function _checkCharacter($timeout) {
6875 if (!vh_mc) {
6876 return;
6877 }
6878 var p = getPosition($timeout["currentTarget"]);
6879 /** @type {number} */
6880 var changedRelationTypeControls = $timeout["clientX"] - p["x"];
6881 /** @type {number} */
6882 var relation = $timeout["clientY"] - p["y"];
6883 var relationControls = vh_mc["isPointOverHost"](changedRelationTypeControls, relation);
6884 return relationControls;
6885}
6886/**
6887 * @param {?} timeStamp
6888 * @return {?}
6889 */
6890function vhsshtml5_onmoveval(timeStamp) {
6891 var command_codes = vhsshtml5_traverseChildren(timeStamp);
6892 return function clickWithWebdriver(selector) {
6893 var data = selector["toElement"] || selector["relatedTarget"];
6894 if (!!~command_codes["indexOf"](data)) {
6895 return;
6896 }
6897 /** @type {number} */
6898 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_onmove"] = 0;
6899 };
6900}
6901/**
6902 * @param {?} $timeout
6903 * @param {?} $selectOptionMange
6904 * @param {number} isBgroundImg
6905 * @return {undefined}
6906 */
6907function _clickCharacter($timeout, $selectOptionMange, isBgroundImg) {
6908 /** @type {number} */
6909 vhsshtml5_scenenumber = isBgroundImg;
6910 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] == 0) {
6911 if (_checkCharacter($timeout) == "host") {
6912 /** @type {number} */
6913 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_assignedAudioLoaded"] = 1;
6914 /** @type {number} */
6915 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] = 1;
6916 /** @type {number} */
6917 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlay_play_status"] = 1;
6918 vhsshtml5_clickPlay_ro(isBgroundImg);
6919 /** @type {number} */
6920 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 1;
6921 }
6922 } else {
6923 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] == 1) {
6924 if (_checkCharacter($timeout) == "host") {
6925 /** @type {number} */
6926 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] = 2;
6927 vhsshtml5_clickPause(isBgroundImg);
6928 }
6929 } else {
6930 if (_checkCharacter($timeout) == "host") {
6931 /** @type {number} */
6932 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] = 1;
6933 vhsshtml5_clickResume(isBgroundImg);
6934 }
6935 }
6936 }
6937}
6938/**
6939 * @param {?} $timeout
6940 * @param {?} $selectOptionMange
6941 * @param {number} isBgroundImg
6942 * @return {undefined}
6943 */
6944function _mouseMoveCharacter($timeout, $selectOptionMange, isBgroundImg) {
6945 /** @type {number} */
6946 vhsshtml5_scenenumber = isBgroundImg;
6947 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] == 0) {
6948 if (_checkCharacter($timeout) == "host") {
6949 /** @type {number} */
6950 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_assignedAudioLoaded"] = 1;
6951 /** @type {number} */
6952 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clickchar"] = 1;
6953 /** @type {number} */
6954 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_overlay_play_status"] = 1;
6955 vhsshtml5_clickPlay_ro(isBgroundImg);
6956 /** @type {number} */
6957 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scenesDone"] = 1;
6958 }
6959 }
6960}
6961/**
6962 * @param {?} $this
6963 * @param {?} type
6964 * @param {?} s
6965 * @param {number} url
6966 * @return {undefined}
6967 */
6968function setStatus($this, type, s, url) {
6969 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6970 if (window["console"]) {
6971 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6972 }
6973 return;
6974 }
6975 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_seconds_interval"] = type;
6976 if (!vh_mc) {
6977 return;
6978 }
6979 vh_mc["setStatus"]($this, type, s);
6980 if (url !== undefined) {
6981 setDisplayControls(url);
6982 }
6983}
6984/**
6985 * @param {?} mmCoreSplitViewBlock
6986 * @return {undefined}
6987 */
6988function custom_animate(mmCoreSplitViewBlock) {
6989 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
6990 if (window["console"]) {
6991 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
6992 }
6993 return;
6994 }
6995 if (!vh_mc) {
6996 return;
6997 }
6998 vh_mc["animate"](mmCoreSplitViewBlock);
6999}
7000/**
7001 * @param {?} viewportBR
7002 * @param {?} currentTime
7003 * @return {?}
7004 */
7005function dynamicResize(viewportBR, currentTime) {
7006 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
7007 if (window["console"]) {
7008 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
7009 }
7010 return;
7011 }
7012 characternum = vhsshtml5_scenenumber;
7013 if (!vh_mc) {
7014 return;
7015 }
7016 var _0xfa08xa4 = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"]);
7017 _0xfa08xa4["style"]["width"] = viewportBR + "px";
7018 _0xfa08xa4["style"]["height"] = currentTime + "px";
7019 var fftBinsOfFreq = document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["children"];
7020 /** @type {number} */
7021 i = 0;
7022 for (; i < fftBinsOfFreq["length"]; i++) {
7023 if (fftBinsOfFreq[i]["className"] != "vhss_bgVideo") {
7024 fftBinsOfFreq[i]["style"]["width"] = viewportBR + "px";
7025 fftBinsOfFreq[i]["style"]["height"] = currentTime + "px";
7026 }
7027 }
7028 _0xfa08xa4["querySelector"](".character")["style"]["width"] = viewportBR + "px";
7029 _0xfa08xa4["querySelector"](".character")["style"]["height"] = currentTime + "px";
7030 _0xfa08xa4["querySelector"](".waiting_logo")["style"]["width"] = viewportBR + "px";
7031 _0xfa08xa4["querySelector"](".waiting_logo_inner")["style"]["width"] = viewportBR + "px";
7032 _0xfa08xa4["querySelector"](".waiting_logo")["style"]["height"] = currentTime + "px";
7033 _0xfa08xa4["querySelector"](".waiting_logo_inner")["style"]["height"] = currentTime + "px";
7034 var $modalButtons = _0xfa08xa4["querySelector"](".character")["children"];
7035 /** @type {number} */
7036 i = 0;
7037 for (; i < $modalButtons["length"]; i++) {
7038 $modalButtons[i]["setAttribute"]("width", viewportBR + "px");
7039 $modalButtons[i]["setAttribute"]("height", currentTime + "px");
7040 }
7041 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "FB3D") {
7042 /** @type {number} */
7043 var _0xfa08x33 = parseInt(currentTime) / parseInt(2);
7044 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
7045 _0xfa08xa4["querySelector"](".vhsshtml5_button_holder")["style"]["bottom"] = _0xfa08x33 + "px";
7046 }
7047 } else {
7048 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "3d") {
7049 $modalButtons = _0xfa08xa4["querySelector"](".character");
7050 var fftBinsOfFreq = $modalButtons["querySelectorAll"]("div");
7051 /** @type {number} */
7052 i = 0;
7053 for (; i < fftBinsOfFreq["length"]; i++) {
7054 fftBinsOfFreq[i]["style"]["width"] = viewportBR + "px";
7055 fftBinsOfFreq[i]["style"]["height"] = currentTime + "px";
7056 }
7057 var alertTypes = $modalButtons["querySelectorAll"]("canvas");
7058 /** @type {number} */
7059 i = 0;
7060 for (; i < alertTypes["length"]; i++) {
7061 alertTypes[i]["setAttribute"]("width", viewportBR + "px");
7062 alertTypes[i]["setAttribute"]("height", currentTime + "px");
7063 }
7064 }
7065 var tileBR = vhsshtml5_calculateLeft(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostX"], viewportBR);
7066 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
7067 _0xfa08xa4["querySelector"](".button_bg")["style"]["left"] = tileBR + "px";
7068 _0xfa08xa4["querySelector"](".waiting_logo_inner")["style"]["left"] = tileBR + "px";
7069 }
7070 }
7071 return vh_mc["resize"](viewportBR, currentTime);
7072 resizeVideo(viewportBR, currentTime);
7073}
7074/**
7075 * @param {?} text
7076 * @return {undefined}
7077 */
7078function resize_buttons(text) {
7079 characternum = vhsshtml5_scenenumber;
7080 if (window["console"]) {
7081 console["log"]("scale = " + text);
7082 }
7083 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "FB3D") {
7084 heightvar = "340";
7085 } else {
7086 heightvar = "300";
7087 }
7088 /** @type {number} */
7089 var input = parseInt(heightvar) * parseFloat(text);
7090 var _0xfa08xa4 = document["getElementsByClassName"]("_html5Player");
7091 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "FB3D") {
7092 var buttonChecker = calculateButtonsPaddingDimenssionsfb(input);
7093 var date = calculateButtonsDimenssionsfb(input);
7094 if (vhsshtml5_mobileDetection == 1) {
7095 /** @type {number} */
7096 date = date * 1.2;
7097 }
7098 /** @type {number} */
7099 var runtime = parseInt(input) * parseFloat(1.25) / parseInt(100);
7100 /** @type {number} */
7101 var time = runtime / 2;
7102 if (vhsshtml5_mobileDetection == 1) {
7103 /** @type {number} */
7104 time = time * 1.2;
7105 }
7106 var html = time + "px";
7107 var _0xfa08x20e = time + parseFloat(.4) + "px";
7108 var fulldate = date + time;
7109 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
7110 _0xfa08xa4[characternum]["querySelector"](".button_bg")["style"]["borderRadius"] = date + "px";
7111 _0xfa08xa4[characternum]["querySelector"](".button_bg")["style"]["padding"] = buttonChecker;
7112 var _0xfa08xce = _0xfa08xa4[characternum]["querySelector"](".button_bg");
7113 var fftBinsOfFreq = _0xfa08xce["querySelectorAll"]("span");
7114 var i;
7115 /** @type {number} */
7116 i = 0;
7117 for (; i < fftBinsOfFreq["length"]; i++) {
7118 fftBinsOfFreq[i]["style"]["paddingTop"] = html;
7119 fftBinsOfFreq[i]["style"]["paddingBottom"] = _0xfa08x20e;
7120 fftBinsOfFreq[i]["style"]["width"] = fulldate + "px";
7121 fftBinsOfFreq[i]["style"]["minWidth"] = fulldate + "px";
7122 fftBinsOfFreq[i]["style"]["maxWidth"] = fulldate + "px";
7123 fftBinsOfFreq[i]["style"]["height"] = date + "px";
7124 }
7125 var PL$13 = _0xfa08xce["querySelectorAll"]("img");
7126 var PL$17;
7127 /** @type {number} */
7128 PL$17 = 0;
7129 for (; PL$17 < PL$13["length"]; PL$17++) {
7130 PL$13[PL$17]["style"]["width"] = date + "px";
7131 PL$13[PL$17]["style"]["minWidth"] = date + "px";
7132 PL$13[PL$17]["style"]["maxWidth"] = date + "px";
7133 PL$13[PL$17]["style"]["height"] = date + "px";
7134 }
7135 }
7136 } else {
7137 date = calculateButtonsDimenssions2d3d(input);
7138 if (vhsshtml5_mobileDetection == 1) {
7139 /** @type {number} */
7140 date = date * 1.2;
7141 }
7142 var next_planting = date + 18;
7143 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
7144 _0xfa08xa4[characternum]["querySelector"](".vhsshtml5_button_holder")["style"]["bottom"] = next_planting + "px";
7145 _0xfa08xa4[characternum]["querySelector"](".button_bg")["style"]["borderRadius"] = date + "px";
7146 _0xfa08xce = _0xfa08xa4[characternum]["querySelector"](".button_bg");
7147 fftBinsOfFreq = _0xfa08xce["querySelectorAll"]("img");
7148 /** @type {number} */
7149 i = 0;
7150 for (; i < fftBinsOfFreq["length"]; i++) {
7151 fftBinsOfFreq[i]["style"]["width"] = date + "px";
7152 fftBinsOfFreq[i]["style"]["minWidth"] = date + "px";
7153 fftBinsOfFreq[i]["style"]["maxWidth"] = date + "px";
7154 fftBinsOfFreq[i]["style"]["height"] = date + "px";
7155 }
7156 }
7157 }
7158}
7159/**
7160 * @return {?}
7161 */
7162function is3D() {
7163 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_clientAPI"] == 0) {
7164 if (window["console"]) {
7165 console["log"]("Client API is unavailable for your plan. Please upgrade your plan.");
7166 }
7167 return;
7168 }
7169 if (!vh_mc) {
7170 return;
7171 }
7172 return vh_mc["is3D"]();
7173}
7174/**
7175 * @param {?} formatters
7176 * @param {?} customFormatters
7177 * @return {undefined}
7178 */
7179function sendMultipleAudioCalls(formatters, customFormatters) {
7180 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] != "") {
7181 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] = "&" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
7182 }
7183 /** @type {!XMLHttpRequest} */
7184 var self = new XMLHttpRequest;
7185 var oldV = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_json_url_str"] + "/admin/getAudioByNameMP3.php?audioname=" + formatters + "&acc=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
7186 /**
7187 * @return {undefined}
7188 */
7189 self["onreadystatechange"] = function() {
7190 if (self["readyState"] == 4 && self["status"] == 200) {
7191 var origMenu = self["responseText"];
7192 origMenu = origMenu["replace"]("location=", "");
7193 responseTxtArr = origMenu["split"]("&");
7194 if (origMenu != "ERROR 2" && responseTxtArr[0] != "ERROR 1") {
7195 if (vhsshtml5_mobileDetection == 1 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sitepalmodel"] == 1 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fromloopaudio"] == 0) {
7196 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = responseTxtArr[0];
7197 vh_mc["hideLoader"]();
7198 } else {
7199 /** @type {number} */
7200 var artistTrack = 0;
7201 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sayaudioarrnew"][0]) {
7202 artistTrack = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sayaudioarrnew"][0]["stTime"];
7203 }
7204 vh_mc["sayAudio"](responseTxtArr[0], artistTrack);
7205 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sayaudioarrnew"]["shift"]();
7206 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sayaudioarr"]["shift"]();
7207 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sayaudioarrnew"][0]) {
7208 sendMultipleAudioCalls(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sayaudioarrnew"][0]["audioName"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sayaudioarrnew"][0]["stTime"]);
7209 }
7210 }
7211 } else {
7212 if (window["console"]) {
7213 console["log"](origMenu + " Bad Audio");
7214 }
7215 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sayaudioarrnew"]["shift"]();
7216 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sayaudioarr"]["shift"]();
7217 if (typeof vh_audioEnded == "function") {
7218 vh_audioEnded(vhsshtml5_scenenumber);
7219 }
7220 if (typeof vh_talkEnded == "function" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sayaudioarrnew"] == 0) {
7221 vh_talkEnded(vhsshtml5_scenenumber);
7222 }
7223 /** @type {number} */
7224 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_talkkstarted"] = 1;
7225 /** @type {number} */
7226 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_audrun"] = 0;
7227 vh_mc["hideLoader"]();
7228 }
7229 }
7230 };
7231 self["open"]("GET", oldV, true);
7232 self["send"]();
7233}
7234/**
7235 * @param {string} text
7236 * @param {?} i
7237 * @param {?} n
7238 * @param {?} val
7239 * @param {?} data
7240 * @param {?} preflightData
7241 * @param {number} prefetch
7242 * @return {undefined}
7243 */
7244function sendMultipleTextCalls(text, i, n, val, data, preflightData, prefetch) {
7245 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apvar"] = "&ev[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][]=actts&val[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][actts][]=0" + val + "0" + n + "0" + i + "&ev[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][]=aptts&val[" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_scene_Id"] + "][aptts][]=0" + val + "0" + n + "0" + i + "";
7246 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] = data;
7247 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] = preflightData;
7248 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_myTimer"]);
7249 /** @type {number} */
7250 var timeoutField = 0;
7251 for (; timeoutField < vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"]["length"]; timeoutField++) {
7252 clearTimeout(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_timeout_arr_"][timeoutField]);
7253 }
7254 vh_mc["displayLoader"]();
7255 /** @type {string} */
7256 text = unescape(text);
7257 val = val.toString();
7258 i = i.toString();
7259 n = n.toString();
7260 var paintval = "";
7261 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ieversion"] && (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ieversion"] == 10 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ieversion"] == 11) || prefetch == 1) {
7262 /** @type {number} */
7263 isVideoMp3URLNeeded = 1;
7264 var rule_id = Math["floor"](Math["random"]() * 1E14 + 1);
7265 var filter_value_container_id = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + "_" + rule_id;
7266 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] != undefined && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] != undefined) {
7267 var ret = val + n + i + text + "1" + "mp3" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] + filter_value_container_id + vhsshtml5_accountID + vhsshtml5_secretID;
7268 paintval = "&FX_TYPE=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] + "&FX_LEVEL=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] + "&FNAME=" + filter_value_container_id;
7269 } else {
7270 ret = val + n + i + text + "1" + "mp3" + filter_value_container_id + vhsshtml5_accountID + vhsshtml5_secretID;
7271 paintval = "&FNAME=" + filter_value_container_id;
7272 }
7273 ret = md5(ret);
7274 /** @type {string} */
7275 var encodedUri = encodeURIComponent(text);
7276 /** @type {!XMLHttpRequest} */
7277 var xhr = new XMLHttpRequest;
7278 var url = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"] + "/tts/gen.php?EID=" + val + "&LID=" + n + "&VID=" + i + "&TXT=" + encodedUri + "&IS_UTF8=1&EXT=mp3" + paintval + "&ACC=" + vhsshtml5_accountID + "&API=&SESSION=&CS=" + ret + "";
7279 url = url["replace"]("http://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
7280 url = url["replace"]("https://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
7281 /**
7282 * @return {undefined}
7283 */
7284 xhr["onreadystatechange"] = function() {
7285 if (xhr["readyState"] == 4 && xhr["status"] == 200) {
7286 var proValue = "";
7287 var node = JSON["parse"](xhr["responseText"]);
7288 proValue = node["URL"];
7289 proValue = proValue["replace"]("http://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
7290 proValue = proValue["replace"]("https://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
7291 videoMp3URL = proValue;
7292 /** @type {number} */
7293 vhsshtml5_isErrorNotOccured = 1;
7294 if (prefetch == 1) {
7295 setTimeout(function() {
7296 vh_mc["sayie10"](proValue);
7297 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"]["shift"]();
7298 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarr"]["shift"]();
7299 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]) {
7300 text = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["txt"];
7301 i = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["voice"];
7302 n = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["lang"];
7303 val = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["engine"];
7304 data = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["level1"];
7305 preflightData = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["level2"];
7306 /** @type {string} */
7307 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["txt"] = text;
7308 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["voice"] = i;
7309 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["lang"] = n;
7310 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["engine"] = val;
7311 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effect"] = data;
7312 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effLevel"] = preflightData;
7313 sendMultipleTextCalls(text, i, n, val, data, preflightData, prefetch);
7314 }
7315 }, 2E3);
7316 } else {
7317 vh_mc["sayie10"](proValue);
7318 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"]["shift"]();
7319 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarr"]["shift"]();
7320 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]) {
7321 text = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["txt"];
7322 i = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["voice"];
7323 n = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["lang"];
7324 val = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["engine"];
7325 data = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["level1"];
7326 preflightData = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["level2"];
7327 /** @type {string} */
7328 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["txt"] = text;
7329 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["voice"] = i;
7330 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["lang"] = n;
7331 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["engine"] = val;
7332 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effect"] = data;
7333 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effLevel"] = preflightData;
7334 sendMultipleTextCalls(text, i, n, val, data, preflightData, prefetch);
7335 }
7336 }
7337 }
7338 };
7339 xhr["open"]("GET", url, true);
7340 xhr["send"]();
7341 } else {
7342 rule_id = Math["floor"](Math["random"]() * 1E14 + 1);
7343 filter_value_container_id = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + rule_id;
7344 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] != undefined && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] != undefined) {
7345 ret = val + n + i + text + "1" + "mp3" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] + vhsshtml5_accountID + vhsshtml5_secretID;
7346 paintval = "&FX_TYPE=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_type"] + "&FX_LEVEL=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_fx_level"] + "&FNAME=";
7347 } else {
7348 ret = val + n + i + text + "1" + "mp3" + vhsshtml5_accountID + vhsshtml5_secretID;
7349 paintval = "&FNAME=";
7350 }
7351 ret = md5(ret);
7352 /** @type {string} */
7353 encodedUri = encodeURIComponent(text);
7354 var artistTrack = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_filter_url"] + "/tts/gen.php?EID=" + val + "&LID=" + n + "&VID=" + i + "&TXT=" + encodedUri + "&IS_UTF8=1&EXT=mp3" + paintval + "&ACC=" + vhsshtml5_accountID + "&API=&SESSION=&CS=" + ret + "";
7355 artistTrack = artistTrack["replace"]("http://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
7356 artistTrack = artistTrack["replace"]("https://", vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_protocol_var"]);
7357 vh_mc["sayie10"](artistTrack);
7358 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"]["shift"]();
7359 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarr"]["shift"]();
7360 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]) {
7361 text = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["txt"];
7362 i = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["voice"];
7363 n = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["lang"];
7364 val = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["engine"];
7365 data = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["level1"];
7366 preflightData = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_saytextarrnew"][0]["level2"];
7367 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["txt"] = text;
7368 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["voice"] = i;
7369 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["lang"] = n;
7370 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["engine"] = val;
7371 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effect"] = data;
7372 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_lastPlay"]["effLevel"] = preflightData;
7373 sendMultipleTextCalls(text, i, n, val, data, preflightData);
7374 }
7375 }
7376}
7377/**
7378 * @param {?} canCreateDiscussions
7379 * @return {undefined}
7380 */
7381function setClickforLink0(canCreateDiscussions) {
7382 document["getElementsByTagName"]("iframe")[0]["src"] = canCreateDiscussions;
7383}
7384/**
7385 * @param {?} markup
7386 * @param {?} selector
7387 * @return {undefined}
7388 */
7389function setClickforLink1(markup, selector) {
7390 if (markup != "http://") {
7391 window["open"](markup, selector);
7392 }
7393}
7394/**
7395 * @param {?} ballNumber
7396 * @return {undefined}
7397 */
7398function setscenelinks(ballNumber) {
7399 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"]["length"] > 0) {
7400 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][ballNumber]) {
7401 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][ballNumber]["href"]) {
7402 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][ballNumber]["href"]) {
7403 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][ballNumber]["href"];
7404 } else {
7405 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] = "";
7406 }
7407 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][ballNumber]["auto"]) {
7408 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][ballNumber]["auto"];
7409 } else {
7410 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] = "";
7411 }
7412 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][ballNumber]["delay"]) {
7413 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][ballNumber]["delay"];
7414 } else {
7415 /** @type {number} */
7416 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] = 0;
7417 }
7418 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][ballNumber]["window"]) {
7419 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][ballNumber]["window"];
7420 } else {
7421 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] = "_blank";
7422 }
7423 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][ballNumber]["button"]) {
7424 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr"][ballNumber]["button"];
7425 } else {
7426 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] = "";
7427 }
7428 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] == 1 && (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] != "" && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] != "http://")) {
7429 SetLink(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"], vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"]);
7430 } else {
7431 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeAttribute"]("onclick");
7432 }
7433 } else {
7434 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_window"] = "_blank";
7435 /** @type {number} */
7436 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_delay"] = 0;
7437 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_href"] = "";
7438 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_auto"] = "";
7439 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_link_arr_button"] = "";
7440 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_character"])["removeAttribute"]("onclick");
7441 }
7442 }
7443 }
7444}
7445/**
7446 * @param {(boolean|number|string)} srcWidth
7447 * @param {(boolean|number|string)} srcHeight
7448 * @param {(boolean|number|string)} maxWidth
7449 * @param {(boolean|number|string)} maxHeight
7450 * @return {?}
7451 */
7452function calculateAspectRatioFit(srcWidth, srcHeight, maxWidth, maxHeight) {
7453 var ratio = Math["min"](maxWidth / srcWidth, maxHeight / srcHeight);
7454 return {
7455 width : srcWidth * ratio,
7456 height : srcHeight * ratio
7457 };
7458}
7459/**
7460 * @return {undefined}
7461 */
7462function vhsshtml5VidPlay() {
7463 if (vhss_loopAutoPlayVid != 1) {
7464 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] == "video") {
7465 var _0xfa08x220 = document["getElementsByTagName"]("video")[0];
7466 _0xfa08x220["play"]();
7467 } else {
7468 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] == "youtube") {
7469 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5Player"]["playVideo"]();
7470 } else {
7471 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] == "vimeo") {
7472 var uid = document["getElementById"]("player1");
7473 var newRecord = new Vimeo.Player(uid);
7474 newRecord["play"]();
7475 }
7476 }
7477 }
7478 }
7479}
7480/**
7481 * @return {undefined}
7482 */
7483function vhsshtml5VidPaused() {
7484 if (vhss_loopAutoPlayVid != 1) {
7485 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] == "video") {
7486 var _0xfa08x220 = document["getElementsByTagName"]("video")[0];
7487 _0xfa08x220["pause"]();
7488 } else {
7489 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] == "youtube") {
7490 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5Player"]["pauseVideo"]();
7491 } else {
7492 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] == "vimeo") {
7493 var uid = document["getElementById"]("player1");
7494 var newRecord = new Vimeo.Player(uid);
7495 newRecord["pause"]();
7496 }
7497 }
7498 }
7499 }
7500}
7501/**
7502 * @return {undefined}
7503 */
7504function vhsshtml5VidStop() {
7505 if (vhss_loopAutoPlayVid != 1) {
7506 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] == "video") {
7507 var _0xfa08x220 = document["getElementsByTagName"]("video")[0];
7508 _0xfa08x220["pause"]();
7509 } else {
7510 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] == "youtube") {
7511 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5Player"]["stopVideo"]();
7512 } else {
7513 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5VideoType"] == "vimeo") {
7514 var uid = document["getElementById"]("player1");
7515 var newRecord = new Vimeo.Player(uid);
7516 newRecord["pause"]();
7517 }
7518 }
7519 }
7520 }
7521}
7522/**
7523 * @return {undefined}
7524 */
7525function onYouTubePlayerAPIReady() {
7526 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5Player"] = new YT.Player("player", {});
7527}
7528/**
7529 * @param {?} canCreateDiscussions
7530 * @return {?}
7531 */
7532function sayMP3Audio(canCreateDiscussions) {
7533 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = canCreateDiscussions;
7534 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["shift"]();
7535 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"]["push"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"]);
7536 vhsshtml5_clickPlay(0);
7537 if (vhsshtml5_apiFunctionCalled == 0 && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ieversion"] == "") {
7538 /** @type {number} */
7539 vhsshtml5_apiFunctionCalled = 1;
7540 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"] = "";
7541 /** @type {number} */
7542 vhsshtml5_isErrorNotOccured = 0;
7543 return new Promise(function(callback, canCreateDiscussions) {
7544 /** @type {number} */
7545 var chat_retry = setInterval(function() {
7546 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"] != "") {
7547 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"]["indexOf"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_NotAllowedError"]) > -1) {
7548 callback({
7549 "status" : "NotAllowed",
7550 "message" : vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"]
7551 });
7552 } else {
7553 callback({
7554 "status" : "Failure",
7555 "message" : vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_isErrorOccured"]
7556 });
7557 }
7558 /** @type {number} */
7559 vhsshtml5_apiFunctionCalled = 0;
7560 clearInterval(chat_retry);
7561 } else {
7562 if (vhsshtml5_isErrorNotOccured == 1) {
7563 callback({
7564 "status" : "Success",
7565 "message" : ""
7566 });
7567 /** @type {number} */
7568 vhsshtml5_apiFunctionCalled = 0;
7569 clearInterval(chat_retry);
7570 }
7571 }
7572 }, 100);
7573 });
7574 }
7575}
7576/**
7577 * @param {?} canCreateDiscussions
7578 * @return {undefined}
7579 */
7580function vhssSP_DisResError(canCreateDiscussions) {
7581 document["getElementById"]("sp-model")["style"]["display"] = "block";
7582 document["getElementById"]("sp-modelbody-content")["innerHTML"] = canCreateDiscussions;
7583}
7584/**
7585 * @return {undefined}
7586 */
7587function vhss_spClosePopUp() {
7588 document["getElementById"]("sp-model")["style"]["display"] = "none";
7589}
7590/**
7591 * @param {?} value
7592 * @return {undefined}
7593 */
7594function changedBtnPosition(value) {
7595 var indexLookupKey = vhsshtml5_scenenumber;
7596 var maxx = vhsshtml5_calculateLeft(value, canvasWidth);
7597 if (document["getElementsByClassName"]("_html5Player")) {
7598 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 1 || vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] == 2) {
7599 var nextIdLookup = document["getElementsByClassName"]("_html5Player");
7600 nextIdLookup[indexLookupKey]["querySelector"](".button_bg")["style"]["left"] = maxx + "px";
7601 nextIdLookup[indexLookupKey]["querySelector"](".waiting_logo_inner")["style"]["left"] = maxx + "px";
7602 }
7603 }
7604}
7605/**
7606 * @param {number} soupName
7607 * @return {undefined}
7608 */
7609function appendBgImage(soupName) {
7610 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][soupName] !== undefined && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][soupName]["background"] !== undefined) {
7611 /** @type {number} */
7612 var indexLookupKey = 0;
7613 for (; indexLookupKey <= soupName; indexLookupKey++) {
7614 var p = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_show_arr_"][indexLookupKey]["background"];
7615 var _0xfa08x22f = document["getElementById"]("vhss-bg-cacheImg");
7616 var fftBinsOfFreq = _0xfa08x22f["querySelectorAll"]("img");
7617 /** @type {number} */
7618 var _0xfa08x231 = 0;
7619 /** @type {number} */
7620 var i = 0;
7621 for (; i < fftBinsOfFreq["length"]; i++) {
7622 var debug = fftBinsOfFreq[i]["src"];
7623 if (debug == p) {
7624 /** @type {number} */
7625 _0xfa08x231 = 1;
7626 }
7627 }
7628 if (_0xfa08x231 == 0) {
7629 var playerList = document["createElement"]("img");
7630 playerList["src"] = p;
7631 document["getElementById"]("vhss-bg-cacheImg")["appendChild"](playerList);
7632 }
7633 }
7634 }
7635}
7636/**
7637 * @param {?} viewportBR
7638 * @param {?} currentTime
7639 * @return {undefined}
7640 */
7641function resizeVideo(viewportBR, currentTime) {
7642 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ieversion"] != "") {
7643 var _0xfa08x237 = document["getElementById"]("video1");
7644 _0xfa08x237["style"]["transform"] = "scale(1.6)";
7645 }
7646}
7647/**
7648 * @param {string} value
7649 * @return {undefined}
7650 */
7651function setBackgroundColor(value) {
7652 if (value !== "" && value !== undefined) {
7653 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundColor"] = "#" + value;
7654 } else {
7655 if (document["getElementById"]("vhss_bgVideo")) {
7656 document["getElementById"]("vhss_bgVideo")["style"]["display"] = "none";
7657 }
7658 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_hostDiv"])["style"]["backgroundColor"] = "transparent";
7659 }
7660}
7661/**
7662 * @param {number} n
7663 * @return {undefined}
7664 */
7665function setDisplayControls(n) {
7666 /** @type {number} */
7667 n = parseInt(n);
7668 if (n !== 0 && n !== 1 && n != 2) {
7669 return;
7670 }
7671 /** @type {number} */
7672 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_buttonControls"] = n;
7673 if (n == 2) {
7674 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"])["style"]["display"] = "block";
7675 }
7676 if (n == 0 || n == 1) {
7677 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_button_holder"])["style"]["display"] = "none";
7678 }
7679}
7680/**
7681 * @param {undefined} scene
7682 * @return {undefined}
7683 */
7684function selectScene(scene) {
7685 selectPortal(scene);
7686}
7687/**
7688 * @param {number} type
7689 * @return {undefined}
7690 */
7691function selectPortal(type) {
7692 if (vhsshtml5_characterLoaded !== 1) {
7693 if (window["console"]) {
7694 console["log"]("A character is already loading. Please click again after it loads.");
7695 }
7696 return;
7697 }
7698 stopSpeechh();
7699 /** @type {number} */
7700 vhsshtml5_scenenumber = type - 1;
7701}
7702/**
7703 * @return {?}
7704 */
7705function getSceneAttributes() {
7706 var sceneName = "";
7707 var _0xfa08x1bb = "";
7708 var _0xfa08x118 = "";
7709 var modelID = "";
7710 if (vhssHTML_scenes[vhsshtml5_scenenumber] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneId"]) {
7711 sceneName = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneId"];
7712 }
7713 if (vhssHTML_scenes[vhsshtml5_scenenumber] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_bgName"]) {
7714 _0xfa08x1bb = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_bgName"];
7715 }
7716 if (vhssHTML_scenes[vhsshtml5_scenenumber] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_audioName"]) {
7717 _0xfa08x118 = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_audioName"];
7718 }
7719 if (vhssHTML_scenes[vhsshtml5_scenenumber] && vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_modelId"]) {
7720 modelID = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_modelId"];
7721 }
7722 return {
7723 "sceneID" : sceneName,
7724 "bgName" : _0xfa08x1bb,
7725 "audioName" : _0xfa08x118,
7726 "modelID" : modelID
7727 };
7728}
7729/**
7730 * @param {!Array} altviewerURL
7731 * @return {undefined}
7732 */
7733function loadSceneByID(altviewerURL) {
7734 if (vhsshtml5_characterLoaded !== undefined) {
7735 if (vhsshtml5_characterLoaded !== 1) {
7736 if (window["console"]) {
7737 console["log"]("A character is already loading. Please click again after it loads.");
7738 }
7739 return;
7740 }
7741 }
7742 if (altviewerURL == undefined) {
7743 altviewerURL = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_ss_var"];
7744 }
7745 /** @type {number} */
7746 var innerHeight = 0;
7747 /** @type {number} */
7748 vhsshtml5_characterLoaded = 0;
7749 if (innerHeight !== undefined && innerHeight > 0) {
7750 /** @type {number} */
7751 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"] = parseInt(innerHeight) - 1;
7752 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"];
7753 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"];
7754 } else {
7755 /** @type {number} */
7756 innerHeight = 0;
7757 /** @type {number} */
7758 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"] = 0;
7759 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_firstslide"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"];
7760 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_var_current_index"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_sceneIndex"];
7761 }
7762 /** @type {!Array} */
7763 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr"] = [];
7764 /** @type {!Array} */
7765 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_vararr_roclick"] = [];
7766 /** @type {!Array} */
7767 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiarr"] = [];
7768 /** @type {!Array} */
7769 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_apiplayertype"] = [];
7770 /** @type {!Array} */
7771 vhssHTML_scenes[vhsshtml5_scenenumber]["audioarrr"] = [];
7772 /** @type {number} */
7773 vhsshtml5_loadshowvar = 1;
7774 /** @type {number} */
7775 vhsshtml5_osStatus = 0;
7776 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_mp3_var"] = "";
7777 /** @type {number} */
7778 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] = 0;
7779 /** @type {number} */
7780 vhssHTML_scenes[vhsshtml5_scenenumber]["scenechanged"] = 1;
7781 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"] && typeof vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["stopPlayingAudio"] == "function") {
7782 stopSpeech();
7783 }
7784 /** @type {null} */
7785 vhssHTML_scenes[vhsshtml5_scenenumber]["div3D"] = null;
7786 /** @type {null} */
7787 vhssHTML_scenes[vhsshtml5_scenenumber]["canvas"] = null;
7788 /** @type {number} */
7789 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_story_play_status"] = 0;
7790 /** @type {!XMLHttpRequest} */
7791 var self = new XMLHttpRequest;
7792 var oldV = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_track_domain"] + "/scenestatus.php?sc=" + altviewerURL + "&t=vhss&r=" + vhsshtml5_makeid();
7793 /**
7794 * @return {undefined}
7795 */
7796 self["onreadystatechange"] = function() {
7797 if (self["readyState"] == 4 && self["status"] == 200) {
7798 var origMenu = self["responseText"];
7799 origMenu = origMenu["trim"]();
7800 if (origMenu == "ok") {
7801 vhsshtml5_main_url = vhssHTML_scenes[vhsshtml5_scenenumber][_0xeb17[1E3]] + "/vhss_players/sitepal/";
7802 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_json_url_str"] = vhssHTML_scenes[vhsshtml5_scenenumber][_0xeb17[1E3]] + "/";
7803 } else {
7804 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] = "r=" + vhsshtml5_makeid();
7805 vhsshtml5_main_url = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_non_accelerated_domain"] + "/vhss_players/sitepal/";
7806 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_json_url_str"] = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_non_accelerated_domain"] + "/";
7807 }
7808 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] != "") {
7809 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"] = "&" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
7810 }
7811 /** @type {!XMLHttpRequest} */
7812 var xhr = new XMLHttpRequest;
7813 var url = vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_json_url_str"] + "php/playScene/acc=" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_acc_var"] + "/ss=" + altviewerURL + "/sl=0/ind=" + 0 + "?json=1" + vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_rnd"];
7814 /**
7815 * @return {undefined}
7816 */
7817 xhr["onreadystatechange"] = function() {
7818 if (xhr["readyState"] == 4 && xhr["status"] == 200) {
7819 var canCreateDiscussions = JSON["parse"](xhr["responseText"]);
7820 if (canCreateDiscussions["ERROR"]) {
7821 vhsshtml5_errormsg = canCreateDiscussions["ERROR"]["@DESC"];
7822 vhsshtml5_errorimg = canCreateDiscussions["ERROR"]["@URL"];
7823 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["innerHTML"] = "<img src='" + vhsshtml5_errorimg + "' style='width:100%;' alt='Error Image'/><p>" + vhsshtml5_errormsg + "</p>";
7824 } else {
7825 vhsshtml5_loadHTMLScenes(canCreateDiscussions);
7826 }
7827 }
7828 };
7829 xhr["open"]("GET", url, true);
7830 xhr["send"]();
7831 }
7832 };
7833 self["open"]("GET", oldV, true);
7834 self["send"]();
7835}
7836/**
7837 * @param {?} mmCoreSplitViewBlock
7838 * @return {undefined}
7839 */
7840function loadSceneByIndex(mmCoreSplitViewBlock) {
7841 loadShow(mmCoreSplitViewBlock);
7842}
7843/**
7844 * @return {undefined}
7845 */
7846function unloadScene() {
7847 /** @type {number} */
7848 vhsshtml5_characterLoaded = 1;
7849 Character3DUnload();
7850 unload2DEngine();
7851 unload3DEngine();
7852 unloadFB3DEngine();
7853 vhsshtml5_removejsfile(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/fb/SitepalFullBodyLiteJS3_R.js", "js");
7854 vhsshtml5_removejsfile(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/3d/SitePal3DJS_R.js", "js");
7855 vhsshtml5_removejsfile(vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5__oh_base_url_"] + "/engines/html5/2d/VHSSEngine_R.js", "js");
7856 vhsshtml5_removejsfile(vhsshtml5_main_url + "js/webgl.js", "js");
7857 vhsshtml5_removejsfile(vhsshtml5_main_url + "js/log4javascript.js", "js");
7858 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["innerHTML"] = "";
7859 document["getElementById"](vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_html5Player"])["removeAttribute"]("style");
7860}
7861/**
7862 * @param {?} val
7863 * @return {undefined}
7864 */
7865function setBlinking(val) {
7866 if (vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_prev_player_type_"] == "3d") {
7867 /** @type {number} */
7868 var artistTrack = (100 - parseInt(val)) / 100;
7869 vhssHTML_scenes[vhsshtml5_scenenumber]["vhsshtml5_api"]["hostAPI"]["setEditValue"]("ADVANCED", "Blink Average Interval", artistTrack, 0);
7870 } else {
7871 if (window["console"]) {
7872 console["log"]("This feature is valid for 3D characters only");
7873 }
7874 }
7875}
7876;