var UniqueID = 314 // Make each link open in a new window 
var newWinTop = 100 // Position of first pop-up
var newWinLeft = 100 // Position of first pop-up

function PlayerOpen(soundfiledesc,soundfilepath,soundfileartist) { 
PlayWin = window.open('',UniqueID,'width=338,height=310,top=' + newWinTop +',left=' + newWinLeft +',resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0,personalbar=0');
PlayWin.focus(); 

var winContent = "<html><head><title>" + soundfiledesc + "</title><link rel='stylesheet' type='text/css' title='CSS' href='styles/style.css' media='screen'/></head><body bgcolor='#ccccff'>"; 
winContent += "<img src='images/masthead320.jpg'/><br/><hr/><br/>";
winContent += "<b style='font-size:14px;'>" + soundfiledesc + "</b><br/>";
winContent += "<b style='font-size:12px;'>by " + soundfileartist+ "</b>";

winContent += "<object width='300' height='70'>"; 
winContent += "<param name='SRC' value='" + soundfilepath + "'>";
winContent += "<param name='AUTOPLAY' VALUE='true'>"; 
winContent += "<param name='CONTROLLER' VALUE='true'>";
winContent += "<param name='BGCOLOR' VALUE='#000000'>"; 
winContent += "<embed SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='300' HEIGHT='70' CONTROLLER='TRUE' BGCOLOR='000000'></embed>";
winContent += "</object>"; 
winContent += "<form><div align='center'><input type='button' value='Close this window' onclick='javascript:window.close();'></div></form>"; 
winContent += "</body></html>"; 

PlayWin.document.write(winContent); 
PlayWin.document.close(); // "Finalizes" new window 
UniqueID = UniqueID + 1 // newWinOffset = newWinOffset + 20 // subsequent pop-ups will be this many pixels lower 
}
