
//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_1/cm_1_01_small.jpg", "", "../images/cm_1/cm_1_01.jpg"]
myvacation[1]=["../images/cm_1/cm_1_02_small.jpg", "", "../images/cm_1/cm_1_02.jpg"]
myvacation[2]=["../images/cm_1/cm_1_03_small.jpg", "", "../images/cm_1/cm_1_03.jpg"]
myvacation[3]=["../images/cm_1/cm_1_04_small.jpg", "", "../images/cm_1/cm_1_04.jpg"]
myvacation[4]=["../images/cm_1/cm_1_05_small.jpg", "", "../images/cm_1/cm_1_05.jpg"]
myvacation[5]=["../images/cm_1/cm_1_06_small.jpg", "", "../images/cm_1/cm_1_06.jpg"]
myvacation[6]=["../images/cm_1/cm_1_07_small.jpg", "", "../images/cm_1/cm_1_07.jpg"]
myvacation[7]=["../images/cm_1/cm_1_08_small.jpg", "", "../images/cm_1/cm_1_08.jpg"]
myvacation[8]=["../images/cm_1/cm_1_09_small.jpg", "", "../images/cm_1/cm_1_09.jpg"]
myvacation[9]=["../images/cm_1/cm_1_10_small.jpg", "", "../images/cm_1/cm_1_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
}

