// Pop-Up Embedder Script by David Battino, www.batmosphere.com
// Version 2006-05-31  
// OK to use if this notice is included

function flvplayer(filepath,WindowNumber) 
{
    PlayerWin = window.open('',WindowNumber,'width=350,height=315,top=75,left=75,screenX=75,screenY=75,resizable=1,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0');

    PlayerWin.focus();
    PlayerWin.document.writeln("<html><head><title>Video Sermon Player</title></head>");
    PlayerWin.document.writeln("<body bgcolor='#000000'>"); // specify background img if desired
    PlayerWin.document.writeln("<div align='center' style='margin: 0;'>");
    PlayerWin.document.writeln("<embed src='http://www.summitnorthwest.org/sermons/mediaplayer/player.swf' wmode='opaque' width='95%' height='80%' allowscriptaccess='always' allowfullscreen='true' flashvars='file=" + filepath + "&autostart=true&fullscreen=true&skin=http://www.summitnorthwest.org/sermons/mediaplayer/nacht_skin.swf' />");
    PlayerWin.document.writeln("</div>");
    PlayerWin.document.writeln("<form style='margin: 0;'><div align='center' style='margin: 5px 0 0 0;'><input type='button' value='Close this window' onclick='javascript:window.close();' style='margin-bottom: 5px'><br /><font color='#cccccc' size='1'>Not working? <a href='http://get.adobe.com/flashplayer/' target='_blank'><font color='#cccccc'>Get Adobe Flash Player</font></a></font></div></form>");
    PlayerWin.document.writeln("</body></html>");

    PlayerWin.document.close(); // "Finalizes" new window
}
