// Pop-Up Embedder Script by David Battino, www.batmosphere.com
// Version 2006-05-31  
// OK to use if this notice is included
   
function BatmoAudioPop(filedesc,filepath,WindowNumber) 
{
    PlayerWin = window.open('',WindowNumber,'width=420,height=360,top=75,left=75,screenX=75,screenY=75,resizable=1,scrollbars=0,titlebar=1,toolbar=0,menubar=0,status=1,directories=0');

    PlayerWin.focus();
    PlayerWin.document.writeln("<html><head><title>Crossroads Sermon Player</title></head>");
    PlayerWin.document.writeln("<body bgcolor='white'>");
    PlayerWin.document.writeln("<div align='center'><img src='http://www.crossroadschristianfellowship.org/images/transparentimprint.jpg'><br />");
    PlayerWin.document.writeln("<b style ='font-size:16px;color:black;font-family:Verdana,sans-serif;line-height:1.6'>" + filedesc + "</b><br />");
    PlayerWin.document.writeln("<p> </p />");
    PlayerWin.document.writeln("<object type='application/x-shockwave-flash' data='http://www.crossroadschristianfellowship.org/scripts/mp3player.swf' width='250' height='20'>");
    PlayerWin.document.writeln("<param name='movie' value='http://www.crossroadschristianfellowship.org/scripts/mp3player.swf'>");
    PlayerWin.document.writeln("<param name='wmode' value='transparent'>");
    PlayerWin.document.writeln("<param name='FlashVars' value='mp3=" + filepath + "&width=250&autoplay=1&showvolume=1&showloading=always&volumewidth=50&volumeheight=8&loadingcolor=B4B6B3&sliderovercolor=0052B6&buttonovercolor=0052B6&sliderwidth=12'>");
    PlayerWin.document.writeln("</object></div>");
    PlayerWin.document.writeln("<p style='font-size:12px;color:#d5d5d5;font-family:Verdana,sans-serif;text-align:center'><a href='" + filepath +"'>Right-click to Download</a> </p>");
    PlayerWin.document.writeln("<form><div align='center'><input type='button' value='Close' onclick='javascript:window.close();'></div></form>");
    PlayerWin.document.writeln("</body></html>");

    PlayerWin.document.close(); // "Finalizes" new window
}