/*
 *  Fullscreen video opener.
 * 
 */

function flowPlayerOpenFullScreen(config) {
  var winWidth = 450;
  var winHeight = 350;
  var winLeft = screen.width/4;
  var winTop = screen.height/4;
  var fullScreenWindow = window.open('http://testdds.weblistic.com/FlowFullscreen.html?config='+config, 'FlowPlayer', 'left=0,top=0,width=' + winWidth + ',height=' + winHeight + ',top=' + winTop + ',left=' + winLeft + ',status=no,resizable=yes');
  

  if(!fullScreenWindow)
	alert("Please disable your popup blocker to see enlarged video."); 
}

function flowPlayerExitFullScreen(config) {
  self.close();
}

function showVideo (videoFileName, id) {
        var videoHostingUrl = "http://66.151.136.115/Videos";           
        var configString = "{embedded: true,baseURL:'" + videoHostingUrl + "',playList:[{url:'playButtonSmall.png'},{url:'" + videoFileName + "'}],showPlayListButtons:true,fullScreenScriptURL:'Scripts/fullscreenvideo.js',showMenu:false,autoRewind: true,showLoopButton: false,initialScale:'scale',loop: false,autoPlay: true}";
        var fo = new SWFObject(videoHostingUrl + "/FlowPlayerBlack.swf?r="+ new Date().getTime(), id, "350", "263", "7", "#ffffff");

        fo.addParam("AllowScriptAccess", "always");
        fo.addVariable("scale","noscale");
        fo.addVariable("config", configString);
        fo.write("div" + id);
}

function showVideo1 (videoFileName, id, videowidth, videoheight) {
        var videoHostingUrl = "http://66.151.136.115/Videos";           
        var configString = "{embedded: true,baseURL:'" + videoHostingUrl + "',playList:[{url:'" + videoFileName + "'}],showPlayListButtons:true,fullScreenScriptURL:'Scripts/fullscreenvideo.js',showMenu:false,autoRewind: true,showLoopButton: false,initialScale:'scale',loop: false,autoPlay: false}";
        var fo = new SWFObject(videoHostingUrl + "/FlowPlayerBlack.swf?r="+ new Date().getTime(), id, videowidth, videoheight, "7", "#ffffff");

        fo.addParam("AllowScriptAccess", "always");
        fo.addVariable("scale","noscale");
        fo.addVariable("config", configString);
        fo.write("div" + id);
}