function closeMovie() {
  screens = new Array (
                      ['viagra', 'Viagra'],
                      ['microphone', 'National Post (Radio)'],
                      ['nationalposttv', 'National Post (TV)'],
                      ['microphone', 'Bugle Boy (Radio)'],
                      ['bugleboy_billboard', 'Bugle Boy'],
                      ['bugle_boy', 'Bugle Boy Balloon'],
                      ['microphone', 'ELTE (Radio)'],
                      ['elte_billboard', 'ELTE Billboard (live)'],
                      ['microphone', 'WHY'],
                      ['td_securities', 'TD Securities'],
                      ['jcc', 'JCC'],
                      //['gingers_toilet', 'Gingers Toilet'],
                      ['speakouttv', 'SpeakoutTV'],
                      ['jaguar_1', 'Jaguar'],
                      //['jaguar_2', 'Jaguar 2'],
                      ['mudd_1', 'Mudd']
                      //['mudd_2', 'Mudd 2'],
                      //['mudd_3', 'Mudd 3'],
                      //['davids_shoe', 'Davids Shoes'],
                      //['davids_shoe_2', 'Davids Shoes 2'],
                      //['canadian_bagel', 'Canadian Bagel'],
                      //['arrow', 'Arrow']
                    );

  list = '<br />';
  count = screens.length;
  for (i=0; i<count; i++) {
    list += '<div class="screen_videos">';
    list += '<a href="#" onclick="showMovie(' + i + ');"><img src="img/adv/' + screens[i][0] + '_thumb.jpg" alt="' + screens[i][1] + '"  width="60" height="45" style="border:1px solid #555;" /></a><br />';
    list += '<a href="#" onclick="showMovie(' + i + ');" class="close">' + screens[i][1] + '</a>';
    list += '</div>';
  }
  document.getElementById('content').style.background = "#000";
  document.getElementById('content').innerHTML = list;
}

function showMovie(id) {
  elem = document.getElementById("content");
  document.getElementById("content").style.background = '#000000';
  elem.innerHTML = "";
  var contentFill = '';

  count = 13;
  if (id == count) { next = 0; }     else { next = id + 1; }
  if (id == 0)     { prev = count; } else { prev = id - 1; }

  contentFill  = '<div id="close">';
  contentFill += '<a href="#" onclick="showMovie(' + prev  + ');" class="close"><img src="img/arrow_l.jpg" border="0" alt="PREVIOUS" /></a>';
  contentFill += '<a href="#" onclick="showMovie(' + next  + ');" class="close"><img src="img/arrow_r.jpg" border="0" alt="NEXT" /></a>';
  contentFill += '<a href="#" onclick="closeMovie();" class="close"><img src="img/close.jpg" border="0" alt="CLOSE" /></a></div>';

  if (id == 0) {
    elem.style.background = 'url(img/adv/viagra.jpg)';
  }
  if (id == 1) {
    contentFill += '<br /><br /><br /><br /><br /><br /><br />';
    contentFill += '<object type="application/x-shockwave-flash" id="videoplayer3132" data="player_ch/uppod.swf" width="360" height="40">';
    contentFill += '<param name="bgcolor" value="#000000" />';
    contentFill += '<param name="allowFullScreen" value="false" />';
    contentFill += '<param name="allowScriptAccess" value="always" />';
    contentFill += '<param name="movie" value="player/uppod.swf" />';
    contentFill += '<param name="flashvars" value="comment=Sample flash&amp;st=player_ch/audio369.txt&amp;file=http://www.metricksystem.com/2008/flv/NationalPostRadio2.mp3" />'; 
    contentFill += '</object>';
  }
  if (id == 2) {
    contentFill += '<br /><br />';
    contentFill += '<object type="application/x-shockwave-flash" id="videoplayer3132" data="player_ch/uppod.swf" width="360" height="200">';
    contentFill += '<param name="bgcolor" value="#000000" />';
    contentFill += '<param name="allowFullScreen" value="false" />';
    contentFill += '<param name="allowScriptAccess" value="always" />';
    contentFill += '<param name="movie" value="player/uppod.swf" />';
    contentFill += '<param name="flashvars" value="comment=Sample flash&amp;st=player_ch/video525.txt&amp;file=http://www.metricksystem.com/2008/flv/nationalposttv.flv" />'; 
    contentFill += '</object>';
  }
  if (id == 3) {
    contentFill += '<br /><br /><br /><br /><br /><br /><br />';
    contentFill += '<object type="application/x-shockwave-flash" id="videoplayer3132" data="player_ch/uppod.swf" width="360" height="40">';
    contentFill += '<param name="bgcolor" value="#000000" />';
    contentFill += '<param name="allowFullScreen" value="false" />';
    contentFill += '<param name="allowScriptAccess" value="always" />';
    contentFill += '<param name="movie" value="player/uppod.swf" />';
    contentFill += '<param name="flashvars" value="comment=Sample flash&amp;st=player_ch/audio369.txt&amp;file=http://www.metricksystem.com/2008/flv/BugleBoyUndertheAge.mp3" />'; 
    contentFill += '</object>';
  }
  if (id == 4) {
    elem.style.background = 'url(img/adv/bugleboy_billboard.jpg)';
  }
  if (id == 5) {
    elem.style.background = 'url(img/adv/bugleboy_balloon.jpg)';
  }
  if (id == 6) {
    contentFill += '<br /><br />';
    contentFill += '<object type="application/x-shockwave-flash" id="videoplayer3132" data="player_ch/uppod.swf" width="360" height="200">';
    contentFill += '<param name="bgcolor" value="#000000" />';
    contentFill += '<param name="allowFullScreen" value="false" />';
    contentFill += '<param name="allowScriptAccess" value="always" />';
    contentFill += '<param name="movie" value="player/uppod.swf" />';
    contentFill += '<param name="flashvars" value="comment=Sample flash&amp;st=player_ch/video525.txt&amp;file=http://www.metricksystem.com/2008/flv/elte_radio.flv" />'; 
    contentFill += '</object>';
  }
  if (id == 7) {
    elem.style.background = 'url(img/adv/elte_billboard.jpg)';
  }
  if (id == 8) {
    contentFill += '<br /><br />';
    contentFill += '<object type="application/x-shockwave-flash" id="videoplayer3132" data="player_ch/uppod.swf" width="360" height="200">';
    contentFill += '<param name="bgcolor" value="#000000" />';
    contentFill += '<param name="allowFullScreen" value="false" />';
    contentFill += '<param name="allowScriptAccess" value="always" />';
    contentFill += '<param name="movie" value="player/uppod.swf" />';
    contentFill += '<param name="flashvars" value="comment=Sample flash&amp;st=player_ch/video525.txt&amp;file=http://www.metricksystem.com/2008/flv/why.flv" />'; 
    contentFill += '</object>';
  }
  if (id == 9) {
    elem.style.background = 'url(img/adv/td_securities.jpg)';
  }
  if (id == 10) {
    elem.style.background = 'url(img/adv/jcc.jpg)';
  }
  if (id == 11) {
    contentFill += '<br /><br />';
    contentFill += '<object type="application/x-shockwave-flash" id="videoplayer3132" data="player_ch/uppod.swf" width="360" height="200">';
    contentFill += '<param name="bgcolor" value="#000000" />';
    contentFill += '<param name="allowFullScreen" value="false" />';
    contentFill += '<param name="allowScriptAccess" value="always" />';
    contentFill += '<param name="movie" value="player/uppod.swf" />';
    contentFill += '<param name="flashvars" value="comment=Sample flash&amp;st=player_ch/video525.txt&amp;file=http://www.metricksystem.com/2008/flv/speakouttv.flv" />'; 
    contentFill += '</object>';
  }
  if (id == 12) {
    elem.style.background = 'url(img/adv/jaguar_1.jpg)';
  }
  if (id == 13) {
    elem.style.background = 'url(img/adv/mudd_1.jpg)';
  }
  if (id == 15) {
    elem.style.background = 'url(img/adv/mudd_1.jpg)';
  }
  if (id == 16) {
    elem.style.background = 'url(img/adv/mudd_2.jpg)';
  }
  if (id == 17) {
    elem.style.background = 'url(img/adv/mudd_3.jpg)';
  }
  if (id == 18) {
    elem.style.background = 'url(img/adv/davids_shoe.jpg)';
  }
  if (id == 19) {
    elem.style.background = 'url(img/adv/davids_shoe_2.jpg)';
  }
  if (id == 20) {
    elem.style.background = 'url(img/adv/canadian_bagel.jpg)';
  }
  if (id == 21) {
    elem.style.background = 'url(img/adv/arrow.jpg)';
  }
  
  elem.innerHTML = contentFill;
}
