// Array Remove - By John Resig (MIT Licensed) Array.prototype.remove = function (from, to) { var rest = this.slice((to || from) + 1 || this.length); this.length = from < 0 ? this.length + from : from; return this.push.apply(this, rest); }; if (!Array.prototype.indexOf) { Array.prototype.indexOf = function (elt /*, from*/) { var len = this.length >>> 0; var from = Number(arguments[1]) || 0; from = (from < 0) ? Math.ceil(from) : Math.floor(from); if (from < 0) from += len; for (; from < len; from++) { if (from in this && this[from] === elt) return from; } return -1; }; } if (!String.prototype.trim) { String.prototype.trim = function () { return this.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); }; } var hlasEngine = 0; var currentElm = new Object(); var noPlayableElms = new Array(); var baseHref = document.getElementsByTagName('base')[0].href; var cekani = null; var lastPlayer = -1; function GetQueryUrl() { if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) <= 9) return baseHref + 'modules/tts/get_speech_cli.php'; else return 'https://tts.gc-system.cz/modules/tts_srv/get_speech.php'; } function HidePlayer(playerId) { jQuery('#jquery_jplayer_' + playerId.toString()).jPlayer('stop'); jQuery('#jp_container_' + playerId.toString()).css('display', 'none'); jQuery('#tts_wrap_' + playerId.toString()).css('background-position', '0 0'); if (jQuery('#tts_wrap_' + playerId.toString()).hasClass('float')) jQuery('#tts_wrap_' + playerId.toString() + '.float').css('float', 'left'); return false; } function CreatePlayer(speechUrl, index) { var strIndex = index.toString(); var player = '