// JavaScript Document
// Pop-Up Embedder Script by David Battino, www.batmosphere.com; Object tag implementation by Mark Levitt, http://digitalmedia.oreilly.com
var UniqueID = 314 // Make each link open in a new window.
function PlayerOpen(soundfiledesc,soundfilepath) {

PlayWin = window.open('',UniqueID,'width=332, height=406,top=262,left=134,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='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>";
winContent += "<table cellpadding='0' cellspacing='0' bgcolor='#ffffff' width='332' border='0'>";
winContent += "<tr><td colspan='2' valign='top' align='center' bgcolor='#000000' height='330'>";
winContent += "<map name='map'><area href=\"javascript:window.open('http://all-access.cstv.com/cstv/player/player.html?code=byu','VideoBroadcastMediaPlayer','toolbar=no,resizable=no,scrollbars=no,width=1000,height=710' ); void('');\" alt=\"All-Access\" title=\"All-Access\" shape=rect coords=\"83,93,255,112\"></map>";
winContent += "<img src='http://www.byucougars.com/movies/images/byu.gif' border='0' height='128' width='332' hspace='0' vspace='0' usemap='#map'>";
winContent += "<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' codebase='http://www.apple.com/qtactivex/qtplugin.cab' height='255' width='320'><param name='src' value='" + soundfilepath + "'><param name='autoplay' value='false'><param name='controller' value='true'><embed height='280' pluginspage='http://www.apple.com/quicktime/download/' src='" + soundfilepath + "' type='video/quicktime' width='320' controller='true' autoplay='false'></object>";
winContent += "</td></tr><tr><td bgcolor='#000000' height='2' width='332' valign='top'></td></tr></table></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.
}
