
 function thisMovie(movieName) {
  if (window[movieName]) {
   return window[movieName];
  } else {
   return document[movieName];
  }
 }
  
 function stopInactive (id) {
  for (i = 0; i < players.length; i++) {
   current = players.eq(i).attr("id");
   if (id != current) thisMovie(current).pauseIt();
  }
 }


 var players;
 if (typeof jQuery == "function") {
  $(document).ready (function () {
    players = $("object").filter (function() {
     return this.id.search(/player[\d_]+/gi) > -1;
    });
  });
 }
