var listName='Favorite Videos'; // the title of your list between single quotes
var mpic=new Array();

/* Edit link info in this order: name, image file, site title, URL
Insert each info between single quote marks, followed by a comma
(Replace '#' with the URL but leave the two quotes, i.e.
'http://www.theURL.com')
Do not edit after the URL. Add or remove lines as required */

mpic[mpic.length] = new info('Hot Webcam Girl Strips', '/vsnaps/hot_webcam_girl_strips.jpg', 'Hot Webcam Girl Strips', 'http://www.vimeo.com/clip=16448', 'm' + mpic.length);
mpic[mpic.length] = new info('Asian Webcam Girl', '/vsnaps/asian_webcam_girl.jpg',  'Asian Webcam Girl', 'http://www.vimeo.com/clip=14718', 'm' + mpic.length);
mpic[mpic.length] = new info('Hottie Compilation', '/vsnaps/hottie_compilation.jpg', 'Hottie Compilation', 'http://www.vimeo.com/clip=14707', 'm' + mpic.length);
mpic[mpic.length] = new info('Caught on Webcam', '/vsnaps/caught_on_webcam.jpg', 'Caught on Webcam', 'http://www.vimeo.com/clip=12570', 'm' + mpic.length);
mpic[mpic.length] = new info('Webcam girls', '/vsnaps/webcam_girls.jpg', 'Webcam girls', 'http://www.vimeo.com/clip=11108', 'm' + mpic.length);
mpic[mpic.length] = new info('DearCrissy', '/vsnaps/dearcrissy.jpg', 'DearCrissy', 'http://www.vimeo.com/clip=7784', 'm' + mpic.length);
mpic[mpic.length] = new info('Webcam', '/vsnaps/webcam.jpg', 'Webcam', 'http://www.vimeo.com/clip=4829', 'm' + mpic.length);
mpic[mpic.length] = new info('Kip', '/vsnaps/kip.jpg', 'Kip', 'http://www.vimeo.com/clip=905', 'm' + mpic.length);
mpic[mpic.length] = new info('Broken webcam', '/vsnaps/broken_webcam.jpg', 'Broken webcam', 'http://www.vimeo.com/clip=18553', 'm' + mpic.length);
mpic[mpic.length] = new info('Hot Drunk Girl at the Club', '/vsnaps/hot_drunk_girl_at_the_club.jpg', 'Hot Drunk Girl at the Club', 'http://www.vimeo.com/clip=10487', 'm' + mpic.length);
mpic[mpic.length] = new info('Agatha\'s Maxim Video', '/vsnaps/agathas_maxim_video.jpg', 'Agatha\'s Maxim Video', 'http://www.vimeo.com/clip=11035', 'm' + mpic.length);
mpic[mpic.length] = new info('How Guys REALLY Rate Girls', '/vsnaps/how_guys_really_rate_girls.jpg', 'How Guys REALLY Rate Girls', 'http://www.vimeo.com/clip=11637', 'm' + mpic.length);



/* ------ Do not edit below this line ------ */

var minArr=new Array();
for (i=0; i<mpic.length; i++) {
  minArr[i]=new Image();
  minArr[i].src=mpic[i].thumb;
}

function info(nam, thumb, Title, web, markID) {
  this.nam = nam;
  this.thumb = thumb;
  this.Title = Title;
  this.web = web;
  this.markID = markID;
}

function codeIt() {
  document.write('<div id="hotlist"><b>' + listName + '<\/b>');
  document.write('<hr width="100%" size="1">');
  for (j=0; j<mpic.length; j++) {
    document.write('<a target="offsite" href="');
    document.write(mpic[j].web);
    document.write('" onMouseover="preview(' + j + ',\'' + mpic[j].markID + '\')">');
    document.write(mpic[j].nam);
    document.write('<\/a><span class="arrow" id="' + mpic[j].markID + '">&nbsp;&#9668<\/span><br>');
  }
  document.write('<br>');
  document.write('<div id="preview">');
  document.write('<img class="thumbnail" alt="" name="screenshot" src="' + minArr[0].src + '" onClick="dest()">');
  document.write('<div id="caption"><\/div>');
  document.write('<P><input type="button" value="Hide preview" onClick="hide()"><\/p>');
  document.write('<\/div><\/div>');
}

function preview(t,a) {
  unmarkAll();
  document.getElementById(a).style.visibility='visible';
  document.getElementById('preview').style.display='block';
  document.getElementById('caption').innerHTML=mpic[t].Title;
  document.images.screenshot.src=minArr[t].src;
  document.images.screenshot.title='Click to visit ' + mpic[t].nam + '\'s site';
}

function dest() {
  for (x=0; x<mpic.length; x++) {
    if (document.images.screenshot.src==minArr[x].src) {
      window.open(mpic[x].web, 'offsite');
    }
  }
}

function hide() {
  document.getElementById('preview').style.display='none';
  unmarkAll();
}

function unmarkAll() {
  for (c=0; c<mpic.length; c++) document.getElementById(mpic[c].markID).style.visibility='hidden';
}
