﻿var photos=new Array()
var photostext=new Array()
var which=0
var dirFolder = "comics/";

//define images. You can have as many as you want:
photos[0]="ekr_2.27.05.jpg";
photos[1]="mb_3.7.05.jpg";
photos[2]="ekr_3.14.05.jpg";
photos[3]="mb_easter_3.21.05.jpg";
photos[4]="ekr_3.28.05.jpg";
photos[5]="mb_4.2.05.jpg";
photos[6]="ekr_4.10.05.jpg";
photos[7]="mb_4.17.05.jpg";
photos[8]="mb_4.25.05.jpg";
photos[9]="ekr_5.1.05.jpg";
photos[10]="ekr_5.9.05.jpg";
photos[11]="mb_5.16.05.jpg";
photos[12]="ekr_8.8.05.jpg";
photos[13]="xmas_05.jpg";
photos[14]="valentine_06.jpg";
photos[15]="mb_easter_06.jpg";
photos[16]="ekr_dadcat_3.7.06.jpg";
photos[17]="ekr_army_5.19.06.jpg";
photos[18]="mb_newchick_10.20.06.jpg";
photos[19]="ekr_temps_1.29.07.jpg";

photostext[0] = "This is the first comic that was put online. Just a typical day for Evil Kittens...";
photostext[1] = "First Mr. Bones and Death";
photostext[2] = "Work sucks for Evil Kittens...";
photostext[3] = "Its never good to owe Death anything, especially money...";
photostext[4] = "Sadcats bad night out- sometimes its just better not to tip...";
photostext[5] = "This is what furniture shopping for the dead s like...";
photostext[6] = "Prissy's bad day";
photostext[7] = "Birthday reminder";
photostext[8] = "Why Mr. Bones hate surprises from Death-";
photostext[9] = "The beggining of Guy Catmans dating woes- part 1";
photostext[10] = "The second part of Guy Catmans dating woes";
photostext[11] = "Saber envy...";
photostext[12] = "Last but not least of Guy Catmans dating woes";
photostext[13] = "Merry Christmas 2005. We made this comic into a greeting card. One of the few times Christine and I have collaborated on a project...";
photostext[14] = "Not everyone loves Valentines Day...";
photostext[15] = "Happy Easter 2006...";
photostext[16] = "Introducing Dadcat. Dadcat is Bono and Prissy's dad and is based off my Dad...";
photostext[17] = "Introducing Budcat, Bono and Prissy's younger brother. Budcat loves to drive Dadcat nuts...";
photostext[18] = "The new chick in the office...";
photostext[19] = "I swear I worked with guys like this at my last job... It was like a bad movie, smells and everything... This was the last comic I was able to finish once I went to school and work full time. More is in the works...";

//do NOT edit pass this line
var lastIndex = photos.length - 1;
var currentIndex = photos.length - 1;
var Imgy = document.getElementById("ImageSlideShow");
var pText = document.getElementById("PhotoText");
Imgy.src = dirFolder + photos[lastIndex];
Imgy.attributes["alt"].value = photostext[lastIndex];
pText.innerHTML  = photostext[lastIndex];



var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}

function nextImage()
{
    if (currentIndex != lastIndex)
    {
        currentIndex ++;
        Imgy.src = dirFolder + photos[currentIndex];
        pText.innerHTML  = photostext[currentIndex];
    }
}

function previousImage()
{
    if (currentIndex != 0)
    {
        currentIndex = currentIndex -1;
        Imgy.src = dirFolder + photos[currentIndex];
        pText.innerHTML  = photostext[currentIndex];
    }
}

function todaysImage()
{
    currentIndex = lastIndex;
    Imgy.src = dirFolder + photos[lastIndex];
    pText.innerHTML  = photostext[currentIndex];
}




