var popupWindow = null;
function centeredPopup(url,winName,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
popupWindow = window.open(url,winName,settings)
}

var UniqueID = 314 // Make each link open in a new window 
var newWinOffset = 0 // Position of first pop-up

function PlayerOpen(soundfiledesc,soundfilepath) { 
PlayWin = window.open('',UniqueID,'width=682,height=600,center=' + newWinOffset +',left=0,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></HEAD><BODY bgcolor='#a2a2a2'>"; 
winContent += "<B style='font-size:15px;font-family:Times New Roman, Times, serif'>" + soundfiledesc + "</B>";

winContent += "<DIV align='left'> <img src='beelden /gringhuis_big.jpg' width='666' height='450' /> </DIV>"; 


winContent += "<OBJECT width='666' height='30'>"; 
winContent += "<param name='SRC' value='" + soundfilepath + "'>";
winContent += "<param name='AUTOPLAY' VALUE='true'>"; 
winContent += "<param name='CONTROLLER' VALUE='true'>";
winContent += "<param name='BGCOLOR' VALUE='#a2a2a2'>";
winContent += "<EMBED SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='666' HEIGHT='42' CONTROLLER='TRUE' BGCOLOR='#a2a2a2'</EMBED>";
winContent += "</OBJECT>"; 

winContent += "<DIV align='left'>Excerpt from the composition that I produced toghether  with Bear Damen for the fashion show of <br/> Elsien Gringhuis, Amsterdam Fashion Week  2011.<br/><br/></DIV>"; 
winContent += "<FORM><DIV align='left'><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 
}
