
//Define your own array to hold the photo album images
//Syntax: ["path_to_thumbnail", "opt_image_title", "opt_destinationurl", "opt_linktarget"]

var myvacation=new Array()
myvacation[0]=["../images/cm_8/cm_8_01_small.jpg", "", "../images/cm_8/cm_8_01.jpg"]
myvacation[1]=["../images/cm_8/cm_8_02_small.jpg", "", "../images/cm_8/cm_8_02.jpg"]
myvacation[2]=["../images/cm_8/cm_8_03_small.jpg", "", "../images/cm_8/cm_8_03.jpg"]
myvacation[3]=["../images/cm_8/cm_8_04_small.jpg", "", "../images/cm_8/cm_8_04.jpg"]
myvacation[4]=["../images/cm_8/cm_8_05_small.jpg", "", "../images/cm_8/cm_8_05.jpg"]
myvacation[5]=["../images/cm_8/cm_8_06_small.jpg", "", "../images/cm_8/cm_8_06.jpg"]
myvacation[6]=["../images/cm_8/cm_8_07_small.jpg", "", "../images/cm_8/cm_8_07.jpg"]
myvacation[7]=["../images/cm_8/cm_8_08_small.jpg", "", "../images/cm_8/cm_8_08.jpg"]
myvacation[8]=["../images/cm_8/cm_8_09_small.jpg", "", "../images/cm_8/cm_8_09.jpg"]
myvacation[9]=["../images/cm_8/cm_8_10_small.jpg", "", "../images/cm_8/cm_8_10.jpg"]

//initiate a photo gallery
//Syntax: new photogallery(imagearray, cols, rows, tablewidth, tableheight, opt_[paginatetext_prefix, paginatetext_linkprefix])
var thepics=new photogallery(myvacation, 2, 4, '500px', '600px')

//OPTIONAL: Run custom code when an image is clicked on, via "onselectphoto"
//DELETE everything below to disable
//Syntax: function(img, link){}, whereby img points to the image object of the image, and link, its link object, if defined
thepics.onselectphoto=function(img, link){
if (link!=null) //if this image is hyperlinked
window.open(link.href, "", "width=800, height=600, status=1, resizable=1, scrollbars=1")
return false //cancel default action when clicking on image, by returning false instead of true
}

