\n"; return newPage; } function writeQuicktimePlayer(speed) { var path=""; if (speed == "low") { path = "http://www.cnn.com/video/world/2002/01/31/wb.bin.laden.tape.ajtv.qtref.mov"; width="176"; height="148"; } else { path = "http://www.cnn.com/video/world/2002/01/31/wb.bin.laden.tape.ajtv.med.qtref.mov"; width="240"; height="195"; } var newPage ="\n"; return newPage; } function showVideoPage(player, speed) { var newPage; newPage = writeVideoHeader(); if (player == "Real") { newPage += writeRealPlayer(speed); } else if (player == "Windows Media") { newPage += writeWindowsMediaPlayer(speed); } else if (player == "Quicktime") { newPage += writeQuicktimePlayer(speed); } newPage += writeVideoFooter(player); document.write(newPage); document.close(); } function FixCookieDate (date) { var base = new Date(0); var skew = base.getTime(); if(skew > 0) date.setTime (date.getTime() - skew); } function updateAdFrame(player,speed){ if(top.bottomFrame){ top.bottomFrame.location.href = '/video/popup/bottom.exclude.html?'+category; } } function onSetClicked(){ var speed = document.Preferences.Speed.options[document.Preferences.Speed.selectedIndex].value; var player = document.Preferences.Player.options[document.Preferences.Player.selectedIndex].value; if (player == "Select player") { alert("Please select a player!"); document.Preferences.Player.focus(); return; } if(speed == "Select speed") { alert("Please select a speed!"); document.Preferences.Speed.focus(); return; } var expdate = new Date (); FixCookieDate (expdate); expdate.setTime (expdate.getTime() + (365 * 2 * 24 * 60 * 60 * 1000)); SetCookie("bitrate", speed, expdate, "/",thisdomain); SetCookie("player", player, expdate, "/",thisdomain); location.reload(); } function showPreferences() { var newPage = writeStyleHeader(); newPage +="

\n"; newPage +="\n"; newPage +=" \n"; newPage +=" \n"; newPage +=" \n"; newPage +=" \n"; newPage +=" \n"; newPage +="
To begin watching
"; newPage +=" \"New bin Laden interview surfaces\"
\n"; newPage +=" set your video preferences:


\n"; newPage +=" \n"; newPage +="

\n"; newPage +="

\n"; newPage +="



\n"; newPage +="
\n"; newPage +="\n"; newPage +=" \n"; newPage +=" \n"; newPage +=" \n"; newPage +="
CNN supports these video players:
\n"; newPage +="
\n"; newPage +=" \n"; newPage +=" \n"; newPage +="
\n"; newPage +="
\n"; newPage +="\n"; document.write(newPage); document.close(); } function resetPreferences() { var expdate = new Date (); FixCookieDate (expdate); expdate.setTime (expdate.getTime() + (365 * 2 * 24 * 60 * 60 * 1000)); SetCookie("player", "", expdate, "/",thisdomain); SetCookie("bitrate", "", expdate, "/",thisdomain); DeleteCookie("player"); DeleteCookie("bitrate"); location.reload(); }