// WinMedia player - width plus 6 and height plus 52 
var wmpntvv ='<object width=\"460\" height=\"412\" classid=\"clsid:22D6f312-B0F6-11D0-94AB-0080C74C7E95\" codebase=\"http:\/\/activex.microsoft.com\/activex\/controls\/mplayer\/en\/nsmp2inf.cab#Version=6,4,7,1112\"><param name=\"filename\" value=\"http:\/\/www.centralnavyband.com\/inc\/ntv-090620.wmv\" \/><param name=\"showcontrols\" value=\"true\" \/><param name=\"showstatusbar\" value=\"false\" \/><param name=\"showdisplay\" value=\"false\" \/><param name=\"autostart\" value=\"true\" \/><param name=\"videoborderwidth\" value=\"3\" \/><param name=\"videobordercolor\" value="6666ee" \/><embed name=\"ntv3\" width=\"460\" height=\"412\" type=\"application\/x-mplayer2\" src=\"http:\/\/www.centralnavyband.com\/inc\/ntv-090620.wmv\" showcontrols=\"1\" showstatusbar=\"0\" showdisplay=\"0\" autostart=\"1\" videoborderwidth=\"3\" videobordercolor=\"6666ee\" \><\/embed><\/object>';

// QuickTime player - width plus 6 and height plus 22
var qtntvv = '<object width=\"460\" height=\"382\" classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" codebase=\"http:\/\/www.apple.com\/qtactivex\/qtplugin.cab\"><param name=\"src\" value=\"http:\/\/www.centralnavyband.com\/inc\/ntv-090620.mov\" \/><param name=\"type\" value=\"video\/quicktime\" \/><param name=\"autoplay\" value=\"true\" \/><param name=\"kioskmode\" value=\"true\" \/><param name=\"bgcolor\" value=\"#6666ee\" \/><embed pluginspage=\"http:\/\/www.apple.com\/quicktime\/download\/\" src=\"http:\/\/www.centralnavyband.com\/inc\/ntv-090620.mov\"  width=\"460\" height=\"382\" type=\"video\/quicktime\" autoplay=\"true\" kioskmode=\"true\" bgcolor=\"#6666ee\"><\/embed><\/object>';

// No player found
function showplugins() {
document.getElementById('plugins').style.visibility = 'visible';
}
function hideplugins() {
document.getElementById('plugins').style.visibility = 'hidden';
}

// on Videos page
// for ntv video id="ntvvid" with and id="ntvtxt"
function selectntvthree() {
var havewmp = false;
if (navigator.plugins) {
for (i=0; i < navigator.plugins.length; i++ ) {
if (navigator.plugins[i].name.indexOf("Windows Media") >= 0) { 
havewmp = true; }
}
}
var haveqt = false;
if (navigator.plugins) {
for (i=0; i < navigator.plugins.length; i++ ) {
if (navigator.plugins[i].name.indexOf("QuickTime") >= 0) { 
haveqt = true; }
}
}
var havemp = false;
if (navigator.plugins) {
for (i=0; i < navigator.plugins.length; i++ ) {
if (navigator.plugins[i].name.indexOf("MPlayer") >= 0) { 
havemp = true; }
}
}
var inthreentvv = '';
if ((haveqt = false) && (havemp = false) && (havewmp = false)) {
showplugins();
} else {
if ((navigator.userAgent.indexOf('MSIE') != -1) || (navigator.userAgent.indexOf('Win') != -1)) {
  if (havewmp = true) { var inthreentvv = wmpntmv;}
  else if ((haveqt = true) || (havemp = true)) { var inthreentvv = qtntvv; }
} else {
   if ((haveqt = true) || (havemp = true)) { var inthreentvv = qtntvv; }
   else if (havewmp = true) { var inthreentvv = wmpntvv; }
}
var ntvthreevid = "<span style=\"margin:12px; padding:0; display:block;\">"+inthreentvv+"<\/span>";
var ntvthreetxt = "In June 2009, The Admiralty Navy Band performed at the opening of the State Hermitage Museum\'s new satellite museum in Amsterdam. Among the guests were Queen Beatrix of the Netherlands and President of the Russian Federation Dmitry Medvedev.<br \/><br \/>We wish to thank <a onfocus=\"if(this.blur)this.blur();\" href=\"http:\/\/www.ntv.ru\" target=\"_blank\" title=\"NTV Russia\">NTV Russia<\/a> for their kind permission for the use of their broadcast video.<br \/><br \/>The video clip is about 22 MB in size. If you have a low speed intenet connection, please select a version below for later viewing.<br \/><a style=\"white-space:nowrap;\" onfocus=\"if(this.blur)this.blur();\" href=\"/dwnlder.php\?file=/inc/ntv-090620.mov\" title=\"\">Apple QuickTime (.mov)</a><br /><a style=\"white-space:nowrap;\" onfocus=\"if(this.blur)this.blur();\" href=\"/dwnlder.php\?file=/inc/ntv-090620.wmv\" title=\"\">Microsoft Windows Media (.wmv)</a><br /><a style=\"white-space:nowrap;\" onfocus=\"if(this.blur)this.blur();\" href=\"/dwnlder.php\?file=/inc/ntv-090620.mp4\" title=\"\">MPEG Video (.mp4)</a><br />";
document.getElementById('ntvvid').innerHTML = null;
document.getElementById('ntvvid').innerHTML = ntvthreevid;
document.getElementById('ntvtxt').innerHTML = null;
document.getElementById('ntvtxt').innerHTML = ntvthreetxt;
}
}