function setMovie(frame) {
  movies = [
             'toto',
             'jazzy',
             'pennstar',
             'triple_a',
             'motorworld',
             'gerrity',
             'kings',
             'chevy_of_hershey',
             'keystone',
             'headstart',
             'chamber',
             'sedexho',
             'brightstar',
             'reselite',
             'mfhs'
           ];

  if (movies[frame] === undefined) {
    frame = 0;
  }

  //Ajax Updater to replace content
  new Ajax.Updater('content', 'liner_notes/'+movies[frame]+'.php', {asynchronous:true, evalScripts:true});

  playMovie(movies[frame]);
}

function playMovie(file) {
  enablejs = (playMovie.arguments.length > 1 ? playMovie.arguments[1] : false);
  autostart = (playMovie.arguments.length > 2 ? playMovie.arguments[2] : false);

  var flashvars = {
             image:'images/stills/'+file+'.png',
             file:'http://megcomm.com/movies/'+file+'.flv',
             autostart:autostart,
             displayheight:240,
             repeat:false,
             showdigits:true,
             enablejs:enablejs
           };

  var FO = { movie:"movies/flvplayer.swf",
             width:"320",
             height:"260",
             majorversion:"7",
             build:"0",
             flashvars:$H(flashvars).toQueryString()
      		 };
	UFO.create(FO, "player");
}

function getUpdate(typ,pr1,pr2) {
  if (typ == 'time') {
    if (pr1 > 0) {
      new Ajax.Updater('content', 'liner_notes/toto.php', {asynchronous:true, evalScripts:true});      
    }
  }
}