﻿function loadVideo(videoFile, w, h) {
    /*
    use flashembed to place flowplayer into HTML element 
    whose id is "example" (below this script tag)
    */
    flashembed("example",
    /* 
    first argument supplies standard Flash parameters. See full list:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701
    */
		{
		src: 'media/FlowPlayerDark.swf',
		width: w,
		height: h
},

    /*
    second argument is Flowplayer specific configuration. See full list:
    http://flowplayer.org/player/configuration.html
    */
		{config: {
		    autoPlay: true,
		    //splashImageFile: 'img/splash.jpg',
		    autoBuffering: true,
		    loop: false,
		    controlBarBackgroundColor: '0x669966', //'0x2e8860',
		    initialScale: 'scale',
		    /*streamingServer: 'fms',
		    streamingServerURL: 'rtmp://216.58.227.136/vod',
		    videoFile: videoFile*/
		    playList: [{
		    url: 'http://66.206.194.136/media/' + videoFile + '.flv',
		        overlayId: 'play'}]
	    }
        }
	    );
    //alert(videoFile);
}