// WinMedia player - width plus 6 and height plus 52 
var wmppov ='<object width=\"326\" height=\"292\" 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.ru\/inc\/perf1.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=\"perf1\" width=\"326\" height=\"292\" type=\"application\/x-mplayer2\" src=\"http:\/\/www.centralnavyband.ru\/inc\/perf1.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 qtpov = '<object width=\"326\" height=\"262\" classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" codebase=\"http:\/\/www.apple.com\/qtactivex\/qtplugin.cab\"><param name=\"src\" value=\"http:\/\/www.centralnavyband.ru\/inc\/perf1.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.ru\/inc\/perf1.mov\"  width=\"326\" height=\"262\" 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 performance video id="perfvid" with and id="perftxt"
function selectperfone() {
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 inonepov = '';
if ((haveqt = false) && (havemp = false) && (havewmp = false)) {
showplugins();
} else {
if ((navigator.userAgent.indexOf('MSIE') != -1) || (navigator.userAgent.indexOf('Win') != -1)) {
  if (havewmp = true) { var inonepov = wmppov;}
  else if ((haveqt = true) || (havemp = true)) { var inonepov = qtpov; }
} else {
   if ((haveqt = true) || (havemp = true)) { var inonepov = qtpov; }
   else if (havewmp = true) { var inonepov = wmppov; }
}
var perfonevid = "<span style=\"margin:12px; padding:0; display:block;\">"+inonepov+"<\/span>";
var perfonetxt = "1. \"&#1055;&#1088;&#1086;&#1097;&#1072;&#1081;&#1090;&#1077;, &#1089;&#1082;&#1072;&#1083;&#1080;&#1089;&#1090;&#1099;&#1077; &#1075;&#1086;&#1088;&#1099;\", &#1084;&#1091;&#1079;&#1099;&#1082;&#1072; &#1045;. &#1046;&#1072;&#1088;&#1082;&#1086;&#1074;&#1089;&#1082;&#1086;&#1075;&#1086;, &#1089;&#1083;&#1086;&#1074;&#1072; &#1053;. &#1041;&#1091;&#1082;&#1080;&#1085;&#1072;, &#1089;&#1086;&#1083;&#1080;&#1089;&#1090; &#1054;&#1083;&#1077;&#1075; &#1044;&#1091;&#1088;&#1085;&#1077;&#1074;<br />2. \"&#1064;&#1091;&#1084;&#1080;&#1090; &#1074;&#1086;&#1083;&#1085;&#1072;, &#1079;&#1074;&#1077;&#1085;&#1080;&#1090; &#1089;&#1090;&#1088;&#1091;&#1085;&#1072;\", &#1084;&#1091;&#1079;&#1099;&#1082;&#1072; &#1070;.&#1057;&#1083;&#1086;&#1085;&#1086;&#1074;&#1072;, &#1089;&#1083;&#1086;&#1074;&#1072; &#1042;.&#1052;&#1072;&#1083;&#1082;&#1086;&#1074;&#1072;, &#1089;&#1086;&#1083;&#1080;&#1089;&#1090; &#1048;&#1083;&#1100;&#1103; &#1050;&#1080;&#1089;&#1077;&#1083;&#1077;&#1074;<br />3.  \"&#1059;&#1089;&#1090;&#1072;&#1083;&#1072;&#1103; &#1087;&#1086;&#1076;&#1083;&#1086;&#1076;&#1082;&#1072;\",  &#1084;&#1091;&#1079;&#1099;&#1082;&#1072; &#1040;.&#1055;&#1072;&#1093;&#1084;&#1091;&#1090;&#1086;&#1074;&#1086;&#1081;, &#1089;&#1083;&#1086;&#1074;&#1072; &#1053;. &#1044;&#1086;&#1073;&#1088;&#1086;&#1085;&#1088;&#1072;&#1074;&#1086;&#1074;&#1072;, &#1089;&#1086;&#1083;&#1080;&#1089;&#1090; &#1054;&#1083;&#1077;&#1075; &#1044;&#1091;&#1088;&#1085;&#1077;&#1074;<br />4. \"&#1071; &#1083;&#1102;&#1073;&#1083;&#1102; &#1090;&#1077;&#1073;&#1103;, &#1056;&#1086;&#1089;&#1089;&#1080;&#1103;\", &#1089;&#1083;&#1086;&#1074;&#1072; &#1052;. &#1053;&#1086;&#1078;&#1082;&#1080;&#1085;&#1072;, &#1084;&#1091;&#1079;&#1099;&#1082;&#1072; &#1044;. &#1058;&#1091;&#1093;&#1084;&#1072;&#1085;&#1086;&#1074;&#1072;, &#1089;&#1086;&#1083;&#1080;&#1089;&#1090;&#1082;&#1072; &#1042;&#1077;&#1088;&#1072; &#1050;&#1072;&#1103;&#1094;&#1082;&#1072;&#1103;<br /><br /><br /><span style=\"color: rgb(102, 102, 119);\">&#1042;&#1080;&#1076;&#1077;&#1086; &#1051;&#1080;&#1077;&#1088;&#1072; &#1059;&#1088;&#1082;&#1080;&#1090;&#1080;&#1089;&#1072;</span><br \/>&#1042;&#1080;&#1076;&#1077;&#1086; &#1086;&#1073;&#1098;&#1105;&#1084;&#1086;&#1084; &#1087;&#1088;&#1080;&#1084;&#1077;&#1088;&#1085;&#1086; 20MB. &#1045;&#1089;&#1083;&#1080; &#1091; &#1042;&#1072;&#1089; &#1085;&#1080;&#1079;&#1082;&#1072;&#1103; &#1089;&#1082;&#1086;&#1088;&#1086;&#1089;&#1090;&#1100; &#1080;&#1085;&#1090;&#1077;&#1088;&#1085;&#1077;&#1090; &#1089;&#1074;&#1103;&#1079;&#1080;, &#1074;&#1099;&#1073;&#1077;&#1088;&#1080;&#1090;&#1077; &#1092;&#1072;&#1081;&#1083; &#1074;&#1085;&#1080;&#1079;&#1091; &#1076;&#1083;&#1103; &#1073;&#1086;&#1083;&#1077;&#1077; &#1087;&#1086;&#1079;&#1076;&#1085;&#1077;&#1075;&#1086; &#1087;&#1088;&#1086;&#1089;&#1084;&#1086;&#1090;&#1088;&#1072;.<br /><a style=\"white-space:nowrap;\" onfocus=\"if(this.blur)this.blur();\" href=\"/dwnlder.php\?file=/inc/perf1.mov\" title=\"\">Apple QuickTime (.mov)</a><br /><a style=\"white-space:nowrap;\" onfocus=\"if(this.blur)this.blur();\" href=\"/dwnlder.php\?file=/inc/perf1.wmv\" title=\"\">Microsoft Windows Media (.wmv)</a><br /><a style=\"white-space:nowrap;\" onfocus=\"if(this.blur)this.blur();\" href=\"/dwnlder.php\?file=/inc/perf1.rmvb\" title=\"\">Real Video (.rmvb)</a><br />";
document.getElementById('perfvid').innerHTML = null;
document.getElementById('perfvid').innerHTML = perfonevid;
document.getElementById('perftxt').innerHTML = null;
document.getElementById('perftxt').innerHTML = perfonetxt;
}
}