}
              },
              callback: flash_publish
            });
            setTimeout( function() {
              if ($(document).data("is_server_there") == false) {
                $.mobile.changePage('#server_not_there_popup', { transition: 'pop'});
              }
            }, 5000 );
          }
        });
      })();</script>

      <script>
        PUBNUB.events.bind("sup", function(message) {
          $(document).data("is_server_there", true);
        });

        function newYoutubeDiv