
//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_5/cm_5_01_small.jpg", "", "../images/cm_5/cm_5_01.jpg"]
myvacation[1]=["../images/cm_5/cm_5_02_small.jpg", "", "../images/cm_5/cm_5_02.jpg"]
myvacation[2]=["../images/cm_5/cm_5_03_small.jpg", "", "../images/cm_5/cm_5_03.jpg"]
myvacation[3]=["../images/cm_5/cm_5_04_small.jpg", "", "../images/cm_5/cm_5_04.jpg"]
myvacation[4]=["../images/cm_5/cm_5_05_small.jpg", "", "../images/cm_5/cm_5_05.jpg"]
myvacation[5]=["../images/cm_5/cm_5_06_small.jpg", "", "../images/cm_5/cm_5_06.jpg"]
myvacation[6]=["../images/cm_5/cm_5_07_small.jpg", "", "../images/cm_5/cm_5_07.jpg"]
myvacation[7]=["../images/cm_5/cm_5_08_small.jpg", "", "../images/cm_5/cm_5_08.jpg"]
myvacation[8]=["../images/cm_5/cm_5_09_small.jpg", "", "../images/cm_5/cm_5_09.jpg"]
myvacation[9]=["../images/cm_5/cm_5_11_small.jpg", "", "../images/cm_5/cm_5_11.jpg"]
myvacation[10]=["../images/cm_5/cm_5_12_small.jpg", "", "../images/cm_5/cm_5_12.jpg"]
myvacation[11]=["../images/cm_5/cm_5_13_small.jpg", "", "../images/cm_5/cm_5_13.jpg"]
myvacation[12]=["../images/cm_5/cm_5_14_small.jpg", "", "../images/cm_5/cm_5_14.jpg"]
myvacation[13]=["../images/cm_5/cm_5_15_small.jpg", "", "../images/cm_5/cm_5_15.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
}

