//Define your own array to hold the photo album images
//Syntax: ["path_to_thumbnail", "opt_image_title", "opt_destinationurl", "opt_linktarget"]

var bobpic=new Array()
bobpic[0]=["images/voucher/voucher_monday_blue.jpg", "Monday Blue", "vouchers/Voucher - Monday Blue.pdf"]
bobpic[1]=["images/voucher/voucher_midweek_ blue.jpg", "Midweek Blue", "vouchers/voucher - midweek_ blue.pdf"]
bobpic[2]=["images/voucher/voucher_weekends_blue.jpg", "Weekends Blue", "vouchers/voucher_weekends_blue.pdf"]
bobpic[3]=["images/voucher/voucher_monday_pink.jpg", "Monday Pink", "vouchers/voucher_monday_pink.pdf"]
bobpic[4]=["images/voucher/voucher_midweek_pink.jpg", "Midweek Pink", "vouchers/voucher_midweek_pink.pdf"]
bobpic[5]=["images/voucher/voucher_weekend_pink.jpg", "Weekend Pink", "vouchers/voucher_weekend_pink.pdf"]
bobpic[6]=["images/voucher/monday_valentines_voucher.jpg", "Valentine's Monday", "vouchers/monday_valentines_voucher.pdf"]
bobpic[7]=["images/voucher/midweek_valentines_voucher.jpg", "Valentine's Midweek", "vouchers/midweek_valentines_voucher.pdf"]
bobpic[8]=["images/voucher/weekends_valentines_voucher.jpg", "Valentine's Weekend & P/H", "vouchers/weekends_valentines_voucher.pdf"]
bobpic[9]=["images/voucher/monday_engagement.jpg", "Monday Engagement", "vouchers/monday_engagement.pdf"]
bobpic[10]=["images/voucher/midweek_engagement.jpg", "Midweek Engagement", "vouchers/midweek_engagement.pdf"]
bobpic[11]=["images/voucher/weekend_engagement.jpg", "Weekend Engagement", "vouchers/weekend_engagement.pdf"]
bobpic[12]=["images/voucher/monday_xmas_voucher.jpg", "Christmas Monday", "vouchers/monday_xmas_voucher.pdf"]
bobpic[13]=["images/voucher/midweek-xmas-voucher.jpg", "Christmas Midweek", "vouchers/midweek_xmas_voucher.pdf"]
bobpic[14]=["images/voucher/weekend-xmas-voucher.jpg", "Christmas Weekend & P/H", "vouchers/weekend_xmas_voucher.pdf"]


//initiate a photo gallery
//Syntax: new photogallery(imagearray, cols, rows, tablewidth, tableheight, opt_[paginatetext_prefix, paginatetext_linkprefix])

var thepics=new photogallery(bobpic, 3, 2, '420px', '360px', ['Browse Gallery:', ''])
//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=1024, height=768, status=1, resizable=1")
return false //cancel default action when clicking on image, by returning false instead of true
}
