+function transport_iframe(doc, page)
+{
+ this.doc = doc;
+ this.ifra = doc.createElement("iframe");
+ this.ifra.style.visibility = "hidden";
+ doc.body.appendChild(this.ifra);
+ this.ifra.contentWindow.location.href = page;
+}
+
+transport_iframe.prototype = {
+ doc: null,
+ ifra: null,
+
+ destroy: function () { /* public */
+ if (this.ifra != null) {
+ this.doc.body.removeChild(this.ifra);
+ delete this.ifra;
+ this.ifra = null;
+ }
+ },
+
+ xstr_is_init: function () { /* public */
+ return (typeof(this.ifra.contentWindow.xynt_streaming) != 'undefined');
+ },
+
+ /* only after a successfull is_initialized call */
+ xstr_is_ready: function () { /* public */
+ return (this.ifra.contentWindow.xynt_streaming == "ready");
+ },
+
+ /* only after a successfull is_ready call to be sure the accessibility of the var */
+ xstr_set: function (xynt_streaming) { /* public */
+ this.ifra.contentWindow.xynt_streaming = xynt_streaming;
+ },
+
+ ctx_new_is_set: function () { /* public */
+ return (typeof(this.ifra.contentWindow.ctx_new) != 'undefined');
+ },
+
+ ctx_new_curlen_get: function () { /* public */
+ return (this.ifra.contentWindow.ctx_new.length);
+ },
+
+ ctx_new_getchar: function(idx) { /* public */
+ },
+
+ ctx_old_len_is_set: function () { /* public */
+ return (typeof(this.ifra.contentWindow.ctx_old_len) != 'undefined');
+ },
+
+ ctx_old_len_get: function () { /* public */
+ return (this.ifra.contentWindow.ctx_old_len);
+ },
+
+ ctx_old_len_set: function (len) { /* public */
+ this.ifra.contentWindow.ctx_old_len = len;
+ },
+
+ ctx_old_len_add: function (len) { /* public */
+ this.ifra.contentWindow.ctx_old_len += len;
+ },
+
+ new_part: function () { /* public */
+ return (this.ifra.contentWindow.ctx_new.substr(this.ifra.contentWindow.ctx_old_len));
+ },
+
+ scrcls_set: function (step) { /* public */
+ this.ifra.contentWindow.script_clean = step;
+ }
+}
+
+function xynt_streaming(win, transp_type, console, gst, from, cookiename, sess, sandbox, page, cmdproc)