// JavaScript Document// Pop-Up Embedder Script by David Battino, www.batmosphere.com; Object tag implementation by Mark Levitt, http://digitalmedia.oreilly.com;  Customized extensively by Brian Seeger, brianseeger.comvar UniqueID = 314 // Make each link open in a new window.var DistanceFromTop = 50 // Position of first pop-upvar DistanceFromLeft = 500 // Position of first pop-upvar width = 350;var height = 139;var toffset = 0;var loffset = 0;function PlayerOpen(name_of_sound_clip,soundfilepath,linkline) {var h = height;if (name_of_sound_clip.length>27) { h = h + 27 };if (linkline) { h = h + 36 };if (!toffset) { toffset = DistanceFromTop };if (!loffset) { loffset = DistanceFromLeft };PlayWin = window.open('',UniqueID,'width=' + width + ',height=' + h + ',top=' + toffset +',left=' + loffset + ',resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0,personalbar=0');var winContent = "<HTML><HEAD><TITLE>" + name_of_sound_clip + "</TITLE><link rel='stylesheet' type='text/css' href='playerstyle.css'></HEAD><BODY bgcolor='#B0AC86'>";var bheight = h - 19 ;var bwidth = width - 18 ;winContent += "<div align='center'><table bgcolor='#F1EFDB' style='border: solid 2px #FFFFFF;' width='" + bwidth + "' height='" + bheight +"'><tr><td align='center'>";if (name_of_sound_clip.length>27) {	foo=name_of_sound_clip.split(":")	name_of_sound_clip = foo[0] + ":<br>" + foo[1]}	winContent += "<B style='color:black;font-size:18px;font-family:Verdana,sans-serif;line-height:1.5'>" + name_of_sound_clip + "</B>";winContent += "<OBJECT width='275' height='42'>";winContent += "<param name='SRC' value='" +  soundfilepath + "'>";winContent += "<param name='AUTOPLAY' VALUE='true'>";winContent += "<param name='CONTROLLER' VALUE='true'>";winContent += "<param name='BGCOLOR' VALUE='#F1EFDB'>";winContent += "<EMBED SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='275' HEIGHT='42' CONTROLLER='TRUE' BGCOLOR='#F1EFDB'></EMBED>";winContent += "</OBJECT>";if (linkline) { winContent += linkline + "<br><br>" }winContent += "<FORM><DIV align='center'><INPUT type='button' value='Close this Window' onClick='javascript:window.close();'></DIV></FORM>";winContent += "</td></tr></table></BODY></HTML>";PlayWin.document.write(winContent);if (window.focus) PlayWin.focus(); PlayWin.document.close(); // "Finalizes" new windowUniqueID = UniqueID + 1toffset = toffset + 12 // subsequent pop-ups will be this many pixels lower.loffset = loffset + 12 // subsequent pop-ups will be this many pixels to the right.if (toffset>110) { toffset = DistanceFromTop };if (loffset>110) { loffset = DistanceFromLeft };}