window.thumbnails = new Object();
												thumbnails[97641] = new thumbnail(97641,'9275','','IMG_3862_thumb.JPG',130, 87,18,'photo_97641.html');
												thumbnails[97642] = new thumbnail(97642,'84700','','IMG_1521_thumb.jpg',130, 87,18,'photo_97642.html');
												thumbnails[97646] = new thumbnail(97646,'9275','','IMG_7386_thumb.JPG',130, 136,18,'photo_97646.html');
												thumbnails[97650] = new thumbnail(97650,'9275','','IMG_6592_thumb.JPG',130, 78,18,'photo_97650.html');
												thumbnails[97652] = new thumbnail(97652,'84700','','IMG_4545_thumb.JPG',130, 195,18,'photo_97652.html');
												thumbnails[97653] = new thumbnail(97653,'84700','','IMG_4558_thumb.JPG',130, 195,18,'photo_97653.html');
												thumbnails[97657] = new thumbnail(97657,'84700','','IMG_4166_thumb.JPG',130, 87,18,'photo_97657.html');
												thumbnails[97678] = new thumbnail(97678,'9275','','IMG_5131_thumb.jpg',130, 195,18,'photo_97678.html');
												thumbnails[97748] = new thumbnail(97748,'9275','','IMG_2133_thumb.jpg2.jpg',130, 132,18,'photo_97748.html');
												thumbnails[97749] = new thumbnail(97749,'9275','','IMG_6588_thumb.jpg',130, 87,18,'photo_97749.html');
												thumbnails[97750] = new thumbnail(97750,'9252','','IMG_2046_thumb.jpg',130, 195,18,'photo_97750.html');
												thumbnails[97751] = new thumbnail(97751,'10068','','jpac0324_thumb.jpg',130, 195,18,'photo_97751.html');
												thumbnails[97752] = new thumbnail(97752,'9275','','IMG_96831_thumb.JPG',130, 87,18,'photo_97752.html');
												thumbnails[97754] = new thumbnail(97754,'9275','','IMG_7349_thumb.JPG',130, 72,18,'photo_97754.html');
												thumbnails[97755] = new thumbnail(97755,'9275','','IMG_4504_thumb.JPG',130, 87,18,'photo_97755.html');
												thumbnails[97757] = new thumbnail(97757,'84700','','IMG_1470_thumb.jpg',130, 87,18,'photo_97757.html');
												thumbnails[97759] = new thumbnail(97759,'84700','','IMG_4573_thumb.JPG',130, 87,18,'photo_97759.html');
												thumbnails[97760] = new thumbnail(97760,'9275','','IMG_6366_thumb.jpg',130, 87,18,'photo_97760.html');
												thumbnails[97761] = new thumbnail(97761,'10068','','jpac0328_thumb.jpg',130, 96,18,'photo_97761.html');
												thumbnails[97762] = new thumbnail(97762,'9275','','IMG_0555jpg_thumb.jpg',130, 87,18,'photo_97762.html');
												thumbnails[97763] = new thumbnail(97763,'9275','','IMG_6102_thumb.jpg',130, 80,18,'photo_97763.html');
												thumbnails[97764] = new thumbnail(97764,'9275','','jpac0343_thumb.jpg',130, 87,18,'photo_97764.html');
												thumbnails[97765] = new thumbnail(97765,'9252','','IMG_0866_thumb.JPG',130, 195,18,'photo_97765.html');
												thumbnails[97766] = new thumbnail(97766,'9275','','IMG_6723_thumb.jpg',130, 76,18,'photo_97766.html');
												thumbnails[97768] = new thumbnail(97768,'9275','','IMG_6988_thumb.jpg',130, 159,18,'photo_97768.html');
												thumbnails[97769] = new thumbnail(97769,'9275','','terujpg_thumb.jpg',130, 93,18,'photo_97769.html');
												thumbnails[97770] = new thumbnail(97770,'9275','','IMG_073899_thumb.jpg',130, 37,18,'photo_97770.html');
												thumbnails[97773] = new thumbnail(97773,'84700','','jpac0321_thumb.JPG',130, 195,18,'photo_97773.html');
												thumbnails[97774] = new thumbnail(97774,'9275','','IMG_5941_thumb.jpg',130, 82,18,'photo_97774.html');
												thumbnails[97776] = new thumbnail(97776,'9275','','IMG_6569_thumb.JPG',130, 87,18,'photo_97776.html');
												thumbnails[97777] = new thumbnail(97777,'9275','','jpac0462_thumb.jpg',130, 87,18,'photo_97777.html');
												thumbnails[97779] = new thumbnail(97779,'9275','','Copy (1) of IMG_670911_thumb.jpg',130, 125,18,'photo_97779.html');
												thumbnails[102553] = new thumbnail(102553,'9275','','IMG_3780_thumb.JPG',130, 87,18,'photo_102553.html');
												thumbnails[102779] = new thumbnail(102779,'9275','','IMG_6530_thumb.jpg',130, 127,18,'photo_102779.html');
												thumbnails[102782] = new thumbnail(102782,'9275','','IMG_4272_thumb.JPG',130, 87,18,'photo_102782.html');
												thumbnails[102830] = new thumbnail(102830,'10068','','IMG_3833_thumb.jpg',130, 75,18,'photo_102830.html');
												thumbnails[102832] = new thumbnail(102832,'84700','','IMG_8671_thumb.JPG',130, 185,18,'photo_102832.html');
												thumbnails[102839] = new thumbnail(102839,'84700','','IMG_1197_thumb.jpg',130, 87,18,'photo_102839.html');
												thumbnails[102846] = new thumbnail(102846,'84700','','IMG_0330_thumb.jpg',130, 192,18,'photo_102846.html');
												thumbnails[102847] = new thumbnail(102847,'9275','','am2022_thumb.jpg',130, 292,18,'photo_102847.html');
												thumbnails[102848] = new thumbnail(102848,'84700','','IMG_4394_thumb.jpg',130, 100,18,'photo_102848.html');
												thumbnails[102852] = new thumbnail(102852,'84700','','IMG_4380_thumb.jpg',130, 171,18,'photo_102852.html');
												thumbnails[102856] = new thumbnail(102856,'84700','','jpac03351_thumb.JPG',130, 195,18,'photo_102856.html');
												thumbnails[103022] = new thumbnail(103022,'9275','','jpac0313_thumb.jpg',130, 195,18,'photo_103022.html');
												thumbnails[103023] = new thumbnail(103023,'9275','','IMG_3777_thumb.JPG',130, 87,18,'photo_103023.html');
												thumbnails[103025] = new thumbnail(103025,'9275','','havin042_thumb.jpg',130, 87,18,'photo_103025.html');
												thumbnails[103026] = new thumbnail(103026,'84700','','jpac03241_thumb.JPG',130, 195,18,'photo_103026.html');
												thumbnails[103039] = new thumbnail(103039,'9275','','IMG_6174_thumb.JPG',130, 87,18,'photo_103039.html');
												thumbnails[103040] = new thumbnail(103040,'84700','','IMG_1302_thumb.jpg',130, 87,18,'photo_103040.html');
												thumbnails[103044] = new thumbnail(103044,'84700','','IMG_0383_thumb.jpg',130, 174,18,'photo_103044.html');
												thumbnails[103049] = new thumbnail(103049,'9275','','jpac0352_thumb.jpg',130, 87,18,'photo_103049.html');
												thumbnails[103050] = new thumbnail(103050,'84700','','jpac0399_thumb.JPG',130, 87,18,'photo_103050.html');
												thumbnails[103051] = new thumbnail(103051,'9275','','jpac0319_thumb.jpg',130, 87,18,'photo_103051.html');
												thumbnails[103052] = new thumbnail(103052,'84700','','IMG_4291_thumb.jpg',130, 158,18,'photo_103052.html');
												thumbnails[103053] = new thumbnail(103053,'9275','','IMG_3036_thumb.JPG',130, 68,18,'photo_103053.html');
												thumbnails[103058] = new thumbnail(103058,'84700','','IMG_1846_thumb.JPG',130, 87,18,'photo_103058.html');
												thumbnails[103059] = new thumbnail(103059,'84700','','IMG_420611_thumb.jpg',130, 179,18,'photo_103059.html');
												thumbnails[103063] = new thumbnail(103063,'9275','','IMG_4269_thumb.JPG',130, 87,18,'photo_103063.html');
												thumbnails[103064] = new thumbnail(103064,'84700','','IMG_8839_thumb.JPG',130, 73,18,'photo_103064.html');
												thumbnails[103067] = new thumbnail(103067,'9275','','jpac0466_thumb.jpg',130, 87,18,'photo_103067.html');
												thumbnails[103071] = new thumbnail(103071,'84700','','IMG_4365_thumb.jpg',130, 184,18,'photo_103071.html');
												thumbnails[103078] = new thumbnail(103078,'9275','','IMG_7074_thumb.jpg',130, 87,18,'photo_103078.html');
												thumbnails[103081] = new thumbnail(103081,'9275','','IMG_75091_thumb.JPG',130, 151,18,'photo_103081.html');
												thumbnails[103082] = new thumbnail(103082,'9275','','jpac0354_thumb.jpg',130, 87,18,'photo_103082.html');
												thumbnails[103083] = new thumbnail(103083,'84700','','IMG_1529_thumb.jpg',130, 87,18,'photo_103083.html');
												thumbnails[103084] = new thumbnail(103084,'9275','','jpac0347_thumb.jpg',130, 87,18,'photo_103084.html');
												thumbnails[103089] = new thumbnail(103089,'9275','','IMG_65881_thumb.jpg',130, 150,18,'photo_103089.html');
												thumbnails[103095] = new thumbnail(103095,'84700','','jpac0368_thumb.JPG',130, 87,18,'photo_103095.html');
												thumbnails[103096] = new thumbnail(103096,'84700','','jpac0367_thumb.jpg',130, 87,18,'photo_103096.html');
												thumbnails[103097] = new thumbnail(103097,'9275','','jpac0467_thumb.jpg',130, 87,18,'photo_103097.html');
												thumbnails[103099] = new thumbnail(103099,'84700','','IMG_003211_thumb.jpg',130, 101,18,'photo_103099.html');
												thumbnails[103115] = new thumbnail(103115,'9252','','IMG_71501_thumb.jpg',130, 148,18,'photo_103115.html');
												thumbnails[103121] = new thumbnail(103121,'9275','','jpac0468_thumb.jpg',130, 87,18,'photo_103121.html');
												thumbnails[103127] = new thumbnail(103127,'9275','','IMG_7801_thumb.JPG',130, 115,18,'photo_103127.html');
												thumbnails[103128] = new thumbnail(103128,'9275','','jpac0300_thumb.jpg',130, 76,18,'photo_103128.html');
												thumbnails[103131] = new thumbnail(103131,'9275','','IMG_6430_thumb.jpg',130, 75,18,'photo_103131.html');
												thumbnails[103132] = new thumbnail(103132,'9275','','jpac0353_thumb.jpg',130, 87,18,'photo_103132.html');
												thumbnails[103133] = new thumbnail(103133,'9275','','jpac0342_thumb.jpg',130, 195,18,'photo_103133.html');
												thumbnails[103137] = new thumbnail(103137,'84700','','IMG_4538_thumb.JPG',130, 195,18,'photo_103137.html');
												thumbnails[103141] = new thumbnail(103141,'9275','','IMG_1025_thumb.jpg',130, 87,18,'photo_103141.html');
												thumbnails[103143] = new thumbnail(103143,'9275','','jpac0355_thumb.jpg',130, 165,18,'photo_103143.html');
												thumbnails[103148] = new thumbnail(103148,'9275','','jpac0341_thumb.jpg',130, 87,18,'photo_103148.html');
												thumbnails[103152] = new thumbnail(103152,'84700','','IMG_8842_thumb.JPG',130, 89,18,'photo_103152.html');
												thumbnails[103153] = new thumbnail(103153,'84700','','jpac0412_thumb.JPG',130, 195,18,'photo_103153.html');
												thumbnails[103154] = new thumbnail(103154,'10068','','IMG_2522143_thumb.jpg',130, 80,18,'photo_103154.html');
												thumbnails[103160] = new thumbnail(103160,'84700','','jpac0456_thumb.jpg',130, 195,18,'photo_103160.html');
												thumbnails[103164] = new thumbnail(103164,'84700','','IMG_1621_thumb.jpg',130, 87,18,'photo_103164.html');
												thumbnails[103166] = new thumbnail(103166,'84700','','IMG_1358_thumb.jpg',130, 195,18,'photo_103166.html');
												thumbnails[103168] = new thumbnail(103168,'84700','','IMG_4398_thumb.jpg',130, 84,18,'photo_103168.html');
												thumbnails[103169] = new thumbnail(103169,'84700','','IMG_9103_thumb.JPG',130, 108,18,'photo_103169.html');
												thumbnails[103171] = new thumbnail(103171,'9275','','IMG_6775_thumb.jpg',130, 49,18,'photo_103171.html');
												thumbnails[103172] = new thumbnail(103172,'9275','','jpac0312_thumb.jpg',130, 195,18,'photo_103172.html');
												thumbnails[103174] = new thumbnail(103174,'9275','','IMG_5975_thumb.jpg',130, 87,18,'photo_103174.html');
												thumbnails[103175] = new thumbnail(103175,'9275','','jpac03201_thumb.jpg',130, 87,18,'photo_103175.html');
												thumbnails[103177] = new thumbnail(103177,'84700','','jpac0451_thumb.jpg',130, 87,18,'photo_103177.html');
												thumbnails[103181] = new thumbnail(103181,'84700','','jpac0459_thumb.jpg',130, 87,18,'photo_103181.html');
												thumbnails[103182] = new thumbnail(103182,'84700','','IMG_1473_thumb.jpg',130, 195,18,'photo_103182.html');
												thumbnails[103183] = new thumbnail(103183,'9275','','IMG_7517_thumb.JPG',130, 62,18,'photo_103183.html');
												thumbnails[103184] = new thumbnail(103184,'9275','','jpac03521_thumb.jpg',130, 87,18,'photo_103184.html');
												thumbnails[103185] = new thumbnail(103185,'9275','','jpac0316_thumb.jpg',130, 87,18,'photo_103185.html');
												thumbnails[103186] = new thumbnail(103186,'84700','','IMG_420411_thumb.jpg',130, 195,18,'photo_103186.html');
												thumbnails[103190] = new thumbnail(103190,'9275','','jpac0325_thumb.jpg',130, 87,18,'photo_103190.html');
												thumbnails[103192] = new thumbnail(103192,'9275','','IMG_4101204_thumb.jpg',130, 87,18,'photo_103192.html');
												thumbnails[103194] = new thumbnail(103194,'9275','','jpac0350_thumb.jpg',130, 195,18,'photo_103194.html');
												thumbnails[103197] = new thumbnail(103197,'84700','','jpac0359_thumb.jpg',130, 87,18,'photo_103197.html');
												thumbnails[103199] = new thumbnail(103199,'84700','','IMG_2090_thumb.JPG',130, 87,18,'photo_103199.html');
												thumbnails[103201] = new thumbnail(103201,'84700','','jpac0307_thumb.jpg',130, 195,18,'photo_103201.html');
												thumbnails[107542] = new thumbnail(107542,'84700','','IMG_4421_thumb.jpg',130, 121,18,'photo_107542.html');
												thumbnails[107544] = new thumbnail(107544,'84700','','IMG_44151_thumb.jpg',130, 195,18,'photo_107544.html');
												thumbnails[107546] = new thumbnail(107546,'9275','','jpac0349_thumb.jpg',130, 87,18,'photo_107546.html');
												thumbnails[107547] = new thumbnail(107547,'84700','','IMG_4901_thumb.jpg',130, 96,18,'photo_107547.html');
												thumbnails[107549] = new thumbnail(107549,'9275','','jpac0308_thumb.jpg',130, 81,18,'photo_107549.html');
												thumbnails[107550] = new thumbnail(107550,'9275','','jpac0357_thumb.jpg',130, 87,18,'photo_107550.html');
												thumbnails[107552] = new thumbnail(107552,'9275','','jpac0348_thumb.jpg',130, 87,18,'photo_107552.html');
												thumbnails[107555] = new thumbnail(107555,'84700','','IMG_2025_thumb.JPG',130, 195,18,'photo_107555.html');
												thumbnails[107557] = new thumbnail(107557,'84700','','IMG_41901_thumb.jpg',130, 87,18,'photo_107557.html');
												thumbnails[107558] = new thumbnail(107558,'84700','','IMG_4209_thumb.jpg',130, 87,18,'photo_107558.html');
												thumbnails[107559] = new thumbnail(107559,'9275','','IMG_1664_thumb.jpg',130, 87,18,'photo_107559.html');
												thumbnails[107561] = new thumbnail(107561,'10068','','IMG_0141_thumb.JPG',130, 190,18,'photo_107561.html');
												thumbnails[107562] = new thumbnail(107562,'84700','','jpac03121_thumb.JPG',130, 87,18,'photo_107562.html');
												thumbnails[107570] = new thumbnail(107570,'84700','','IMG_1623_thumb.jpg',130, 87,18,'photo_107570.html');
												thumbnails[132185] = new thumbnail(132185,'9275','','JPG001_thumb.jpg',130, 87,18,'photo_132185.html');
												thumbnails[132196] = new thumbnail(132196,'9275','','jpac0304_thumb.jpg',130, 121,18,'photo_132196.html');
												thumbnails[305724] = new thumbnail(305724,'9275','','IMG_5710_thumb.jpg',130, 77,18,'photo_305724.html');
												thumbnails[305727] = new thumbnail(305727,'84700','','IMG_43361_thumb.jpg',130, 184,18,'photo_305727.html');
												thumbnails[305729] = new thumbnail(305729,'84700','','IMG_45231_thumb.jpg',130, 148,18,'photo_305729.html');
												thumbnails[305730] = new thumbnail(305730,'84700','','IMG_0378_thumb.jpg',130, 182,18,'photo_305730.html');
												thumbnails[305731] = new thumbnail(305731,'84700','','IMG_0388_thumb.jpg',130, 195,18,'photo_305731.html');
												thumbnails[305734] = new thumbnail(305734,'84700','','IMG_44442_thumb.jpg',130, 87,18,'photo_305734.html');
												thumbnails[305735] = new thumbnail(305735,'84700','','IMG_0382_thumb.jpg',130, 220,18,'photo_305735.html');
												thumbnails[308214] = new thumbnail(308214,'84700','','IMG_02741.jpg',130, 104,18,'photo_308214.html');
												thumbnails[308217] = new thumbnail(308217,'84700','','IMG_02891.jpg',130, 87,18,'photo_308217.html');
												thumbnails[308219] = new thumbnail(308219,'84700','','Copy (1) of IMG_0017_thumb.JPG',130, 87,18,'photo_308219.html');
												thumbnails[308221] = new thumbnail(308221,'84700','','IMG_03791.jpg',130, 152,18,'photo_308221.html');
												thumbnails[308223] = new thumbnail(308223,'84700','','jpac0379_thumb.JPG',130, 87,18,'photo_308223.html');
												thumbnails[308229] = new thumbnail(308229,'84700','','IMG_03851.jpg',130, 96,18,'photo_308229.html');
												thumbnails[308233] = new thumbnail(308233,'84700','','IMG_04401.jpg',130, 150,18,'photo_308233.html');
												thumbnails[308235] = new thumbnail(308235,'84700','','jpac0364_thumb.jpg',130, 195,18,'photo_308235.html');
												thumbnails[308239] = new thumbnail(308239,'84700','','jpac0305_thumb.jpg',130, 195,18,'photo_308239.html');
												thumbnails[308242] = new thumbnail(308242,'84700','','IMG_8889_thumb.JPG',130, 195,18,'photo_308242.html');
												thumbnails[308244] = new thumbnail(308244,'84700','','IMG_43401_thumb.jpg',130, 195,18,'photo_308244.html');
												thumbnails[5169012] = new thumbnail(5169012,'84700','','IMG_1304_thumb.jpg',130, 195,18,'photo_5169012.html');
												thumbnails[5620784] = new thumbnail(5620784,'318588','','IMG_3608_thumb.jpg',130, 158,18,'photo_5620784.html');
												thumbnails[5620818] = new thumbnail(5620818,'318588','','IMG_3656_thumb.jpg',130, 87,18,'photo_5620818.html');
												thumbnails[5620823] = new thumbnail(5620823,'318588','','IMG_3680_thumb.jpg',130, 87,18,'photo_5620823.html');
												thumbnails[5620824] = new thumbnail(5620824,'318588','','IMG_3759_thumb.jpg',130, 87,18,'photo_5620824.html');
												thumbnails[5620826] = new thumbnail(5620826,'318588','','IMG_3863_thumb.jpg',130, 87,18,'photo_5620826.html');
												thumbnails[5620841] = new thumbnail(5620841,'318588','','IMG_3785_thumb.jpg',130, 87,18,'photo_5620841.html');
												thumbnails[5620842] = new thumbnail(5620842,'318588','','IMG_3833_47756134-24E8-5EC4-4F706DBDDEC3EAC2_thumb.jpg',130, 94,18,'photo_5620842.html');
												thumbnails[5620899] = new thumbnail(5620899,'9252','','IMG_0051_thumb.JPG',130, 87,18,'photo_5620899.html');
												thumbnails[5620900] = new thumbnail(5620900,'9252','','IMG_7280_thumb.JPG',130, 179,18,'photo_5620900.html');
												thumbnails[5620901] = new thumbnail(5620901,'9252','','IMG_7209_thumb.JPG',130, 195,18,'photo_5620901.html');
												thumbnails[5620902] = new thumbnail(5620902,'9252','','IMG_7320_thumb.JPG',130, 185,18,'photo_5620902.html');
												thumbnails[5620904] = new thumbnail(5620904,'9252','','IMG_8539_thumb.jpg',130, 195,18,'photo_5620904.html');
												thumbnails[5620907] = new thumbnail(5620907,'84700','','IMG_4454_thumb.JPG',130, 129,18,'photo_5620907.html');
												thumbnails[5625613] = new thumbnail(5625613,'9252','','photo0007_thumb.JPG',100, 150,18,'photo_5625613.html');
												thumbnails[97290] = new thumbnail(97290,'84700','','IMG_1474_thumb.jpg',130, 100,18,'photo_97290.html');
												thumbnails[103146] = new thumbnail(103146,'84700','','IMG_4432_thumb.jpg',130, 177,18,'photo_103146.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[9252] = new gallery(9252,'103115,97750','Portraiture/people','gallery',[97750,97765,103115,5620899,5620900,5620901,5620902,5620904,5625613],0, 0, '', 'gallery_9252.html',0,0);
				  					galleries[318588] = new gallery(318588,'5620842,5620841,5620826,5620824,5620823,5620818,5620784','Functions & Events','gallery',[5620784,5620818,5620823,5620824,5620826,5620841,5620842],0, 0, '', 'gallery_318588.html',0,0);
				  					galleries[10068] = new gallery(10068,'103154,102830,97761,97751','Flowers & Micro','gallery',[97751,97761,102830,103154,107561],0, 0, '', 'gallery_10068.html',0,0);
				  					galleries[9275] = new gallery(9275,'103172,103171,103148,103143,103133,103132,103131,103084,103082,103053,103023,102779,102553,97779,97774,97769,97766,97678,97650,97641','Landscape','gallery',[97641,97646,97650,97678,97748,97749,97752,97754,97755,97760,97762,97763,97764,97766,97768,97769,97770,97774,97776,97777,97779,102553,102779,102782,102847,103022,103023,103025,103039,103049,103051,103053,103063,103067,103078,103081,103082,103084,103089,103097,103121,103127,103128,103131,103132,103133,103141,103143,103148,103171,103172,103174,103175,103183,103184,103185,103190,103192,103194,107546,107549,107550,107552,107559,132185,132196,305724],0, 0, '', 'gallery_9275.html',0,0);
				  					galleries[84700] = new gallery(84700,'308223,107562,107555,103182,103169,103168,103153,103146,103083,103064,103050,103044,103026,102856,102839,97773,97657,97653,97642','Wedding Photography','gallery',[97642,97652,97653,97657,97757,97759,97773,102832,102839,102846,102848,102852,102856,103026,103040,103044,103050,103052,103058,103059,103064,103071,103083,103095,103096,103099,103137,103152,103153,103160,103164,103166,103168,103169,103177,103181,103182,103186,103197,103199,103201,107542,107544,107547,107555,107557,107558,107562,107570,305727,305729,305730,305731,305734,305735,308214,308217,308219,308221,308223,308229,308233,308235,308239,308242,308244,5169012,5620907,97290,103146],0, 0, '', 'gallery_84700.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '308223,107562,107559,107555,103182,103172,103171,103169,103168,103154,103153,103148,103146,103143,103133,103132,103131,103115,103099,103084,103083,103082,103064,103053,103050,103044,103026,103023,102856,102839,102830,102779,102553,97774,97773,97769,97766,97761,97751,97750,97678,97657,97653,97650,97642,97641';
imageSets[2] = '308223,107562,107555,103182,103172,103171,103169,103168,103154,103153,103148,103146,103143,103133,103132,103131,103115,103084,103083,103082,103064,103053,103050,103044,103026,103023,102856,102839,102830,102779,102553,97779,97774,97773,97769,97766,97761,97751,97750,97678,97657,97653,97650,97642,97641';
imageSets[3] = '5625613,5620907,5620904,5620902,5620901,5620900,5620899,5620842,5620841,5620826,5620824,5620823,5620818,5620784,5169012,308244,308242,308239,308235,308233,308229,308223,308221,308219,308217,308214,305735,305734,305731,305730,305729,305727,305724,132196,132185,107570,107562,107561,107559,107558,107557,107555,107552,107550,107549,107547,107546,107544,107542,103201';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sandresekeram/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sandresekeram/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('');
		if (!basic) {
	img.src = photos[imageID].src;
	img.width = photos[imageID].width;
	img.height = photos[imageID].height;
  img.parentNode.title = img.alt = photos[imageID].caption;
	}
	else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
				
	}
			}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}
/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
  var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
		if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
    
  updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
  var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
      op = $.extend({},defaults,options),
      html = '', temp = '',
      photoId = op.nextPhoto.id,
      photoCaption = op.nextPhoto.caption,
      photoSrc = op.nextPhoto.src;
		
		if (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    if (op.$photo.length > 0) {
      html = $('<img/>',{
        'class': 'mainphoto photo',
        src: photoSrc,
        id: 'mainPic',
        name: 'mainPic',
        width: op.nextPhoto.width,
        height: op.nextPhoto.height,
        alt: photoCaption,
        css: op.css || {}
      });
      if (op.href) {
      	if (op.href.match(/<a/)) {
      	  html = $(op.href).append(html);
      	} else {
		  html = $('<a/>', {
			href: op.href,
			title: photoCaption
		  }).append(html);
	    }
      } else {
      	html = $('<a/>', {
			title: photoCaption
		  }).append(html);
      }
      if (op.speed == 0) {        op.$photo.html(html);        if (op.onBefore) {          op.onBefore.apply(op.$photo);        }        if (op.onAfter) {          op.onAfter.apply(op.$photo);        }      } else {        op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){            if (op.onAfter) {		    op.onAfter.apply(this);          }		  clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'www.Raviphotography.co.uk: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp = temp + '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
		
	if(img){
	      if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
        imageID = imageID[1];
      } else {
			  imageID = randomListVal(galleries[gallery_id].featured_images);
      }
							
			if (imageID != 0) {
				img.src = thumbnails[imageID].src;
				img.width = thumbnails[imageID].width;
				img.height = thumbnails[imageID].height;
				img.alt = galleries[gallery_id].title;
        if (updateLink) {
          $(img).parent().attr({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

