// JScript source code
var UniqueID = 314 // Make each link open in a new window 
var newWinOffset = 0 // Position of first pop-up

function PlayerOpen(ThisTitle,ThisPath) { 
PlayWin = window.open('',UniqueID,'width=480,height=500,top=' + newWinOffset +',left=50,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0,personalbar=0');
PlayWin.focus(); 

var pageContent = "<HTML><HEAD><TITLE>" + ThisTitle + "</TITLE>"; 
pageContent += "<link rel='stylesheet' type='text/css' href='/kids/kids.css' /></HEAD>";
pageContent += "<OBJECT width='480' height='380'>"; 
pageContent += "<param name='SRC' value='" + ThisPath + "'>";
pageContent += "<param name='AUTOPLAY' VALUE='true'>"; 
pageContent += "<param name='CONTROLLER' VALUE='true'>";
pageContent += "<param name='BGCOLOR' VALUE='#99ccff'>"; 
pageContent += "<EMBED SRC='" + ThisPath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='480' HEIGHT='380' CONTROLLER='TRUE' BGCOLOR='#99ccff'></EMBED>";
pageContent += "</OBJECT>"; 
pageContent += "<script type='text/javascript' src='/includes/loadControl.js'></script>"; 
pageContent += "<span style='font-size:18px;color:white;font-weight:bold;padding:10px;'>" + ThisTitle + "</span>";
pageContent += "<FORM><INPUT type='button' value='Close' onclick='javascript:window.close();'></FORM>"; 
pageContent += "</BODY></HTML>"; 

PlayWin.document.write(pageContent); 
PlayWin.document.close(); // "Finalizes" new window 
UniqueID = UniqueID + 1 // newWinOffset = newWinOffset + 20 // subsequent pop-ups will be this many pixels lower 
} 


