<script type='text/javascript'>
      var playItem = null;

      function createPlayer()
      {
        var flashvars =
        {
          width:               '580',
          height:              '360',
          displaywidth:        '426',
          displayheight:       '320',
          file:                'http://www.hkpuchov.sk/video/playlist.xml',
        //overstretch:         'true',  // expands to fit h & v   "true"  -will stretch them proportionally to fill the display
          overstretch:         'false', // expands to fit h or v  "false" -will stretch them to fit
        //overstretch:         'fit',   // expands to fit h & v   "fit"   -will stretch them disproportionally to fit both height and width
        //overstretch:         'none',  // displays native size   "none"  -will show all items in their original dimensions
          autostart:           'true',
          shuffle:             'false',
          repeat:              'list',
          showstop:            'true',
          showicons:           'true',
          showdigits:          'true',
          thumbsinplaylist:    'true',
          logo:                '',
          enablejs:            'true',
          javascriptid:        'mpl',
          searchbar:           'false',
          backcolor:           '0xFFFFFF', // face of buttons
          frontcolor:          '0x404040', // button symbols & playlist text
          lightcolor:          '0x808080', // highlighted playlist item
          screencolor:         '0x000000'  // screen background color
        };

        var params =
        {
          allowfullscreen:    'true',
          wmode:              'opaque',
          swliveconnect:      'true'
        };

        var attributes =
        {
          id:                 'mpl',
          name:               'mpl'
        };

        if(swfobject.getQueryParamValue('item'))
        {
          playItem = swfobject.getQueryParamValue('item');
        }

        swfobject.embedSWF('http://www.hkpuchov.sk/video/mediaplayer.swf', 'player', '580', '360', '9.0.115', false, flashvars, params, attributes);

      };
    </script>

    <script type='text/javascript'>
      function loadFile(swf, obj)
      {
        thisMovie(swf).loadFile(obj);
      };


      function thisMovie(movieName)
      {
        if(navigator.appName.indexOf('Microsoft') != -1)
        {
          return window[movieName];
        }
        else
        {
          return document[movieName];
        }
      };
    </script>