// JavaScript Document

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jay M. Rumsey, OD | http://www.nova.edu/~rumsey */

var num=0;

imgArray = [
 ['img/ecco_trends1_jun2010.gif','Makeup Trend #1'],
 ['img/ecco_trends2_jun2010.gif','Makeup Trend #2'],
 ['img/ecco_trends3_jun2010.gif','Makeup Trend #3'],
['img/ecco_trends4_jun2010.gif','Makeup Trend #4'],
 ['img/ecco_trends5_jun2010.gif','Nail Trend #1'],
 ['img/ecco_trends9_jun2010.gif','Nail Trend #2'],
  ['img/ecco_trends6_jun2010.gif','Hair Trend #1'],
   ['img/ecco_trends7_jun2010.gif','Hair Trend #2'],
    ['img/ecco_trends8_jun2010.gif','Hair Trend #3'],
	
]

function slideshow(slide_num) {
  document.getElementById('mypic').src=imgArray[slide_num][0];
  document.getElementById('mypic').alt=imgArray[slide_num][1];
 
}

function slideshowUp() {
  num++;
  num = num % imgArray.length;
  slideshow(num);
}

function slideshowBack() {
  num--;
  if (num < 0) {num=imgArray.length-1;}
  num = num % imgArray.length;
  slideshow(num);
}
