
// install flowplayer inside previous A- tags with class="player" and configure.

//		flowplayer("a.player", {src:"flv/flowplayer-3.2.5.swf", wmode: "window"}, {
		flowplayer("a.player", {src:"flv/flowplayer-3.2.5.swf"}, {
      onBeforeLoad: function () {
          var border = "video2";
		document.getElementById(border).style.display = "block";
      },
      onUnload: function () {
          var border = "video2";
          setTimeout(function () {
		document.getElementById(border).style.display = "none";
          }, 100);
      },
//	onLastSecond: function (play) {opacity: 0},
//	onLastSecond: function (play) {play: 'null'},
      onLastSecond: function () {
        // disable play button at end of clip
        this.getPlugin("play").css({opacity: 0});
      },
	canvas: {
//		opacity: 0
//		background: '#000000 url(flv/splash.jpg) no-repeat 0 0',
		backgroundGradient: 'none',
		backgroundColor: 'transparent'
//		border: '5px solid #000000'
	},
      clip: {
		provider: "pseudo",
        scaling: "orig",
//		border: '1px solid #370000',
        onStop: function () {
          var self = this;
          setTimeout(function () {
            self.unload();
          }, 500);
          self.style.display = "none";
        },
        onFinish: function () {
          var self = this;
          setTimeout(function () {
            self.unload();
          }, 500);
          self.style.display = "none";
        }
      },
      plugins: {
		pseudo: {url: "flv/flowplayer.pseudostreaming-3.2.5.swf"},
        controls: {backgroundGradient: 'none', 
			backgroundColor: 'transparent', 
			stop: true}
      }
    });

