- hstm = new http_streaming("sess");
- hstm.hbit_set(hbit);
-
- window.onbeforeunload = onbeforeunload_cb;
- window.onunload = onunload_cb;
-
- hstm.start(sess);
- setTimeout(preload_images, 0, g_preload_img_arr, g_imgct);
+ xstm = new xynt_streaming(window, <?php printf("\"%s\", %d", $transp_type, $transp_port); ?>, 2, null /* console */, gst, 'table_php', 'sess', sess, $('sandbox'), 'index_rd.php', function(com){eval(com);});
+ xstm.hbit_set(heartbit);
+
+ window.onbeforeunload = onbeforeunload_cb;
+ window.onunload = onunload_cb;
+
+ xstm.start();
+
+ addEvent($('select_rules'), "change", function() { act_select_rules(this.value); } );
+ addEvent($('select_deck'), "change", function() { act_select_deck(this.value); } );
+ // FIXME: add this setTimeout(preload_images into data stream to avoid
+ // race on opened socket
+ // setTimeout(preload_images, 0, g_preload_img_arr, g_imgct);