window.thumbnails = {};
															thumbnails[1842836] = clik.newPhoto({"id":1842836,"src":"Resize Wizard-52_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_1842836.html","width":130,"caption":"","height":197});
															thumbnails[3526791] = clik.newPhoto({"id":3526791,"src":"CliveandLoiuse_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_3526791.html","width":130,"caption":"","height":134});
															thumbnails[3526795] = clik.newPhoto({"id":3526795,"src":"Confetti_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_3526795.html","width":130,"caption":"","height":127});
															thumbnails[3526798] = clik.newPhoto({"id":3526798,"src":"Philandgirls_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_3526798.html","width":130,"caption":"","height":105});
															thumbnails[3526811] = clik.newPhoto({"id":3526811,"src":"Bridesmaid2bandw_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_3526811.html","width":130,"caption":"","height":196});
															thumbnails[3527141] = clik.newPhoto({"id":3527141,"src":"Philprusteveandpenv4_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_3527141.html","width":130,"caption":"","height":131});
															thumbnails[3527145] = clik.newPhoto({"id":3527145,"src":"Happy_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_3527145.html","width":130,"caption":"","height":204});
															thumbnails[3527152] = clik.newPhoto({"id":3527152,"src":"CliveadLouiseBW2_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_3527152.html","width":130,"caption":"","height":211});
															thumbnails[3527156] = clik.newPhoto({"id":3527156,"src":"Thegirlsv5_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_3527156.html","width":130,"caption":"","height":110});
															thumbnails[3527161] = clik.newPhoto({"id":3527161,"src":"KarenandRussell_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_3527161.html","width":130,"caption":"","height":94});
															thumbnails[3530453] = clik.newPhoto({"id":3530453,"src":"HerbieRoar2 copy_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_3530453.html","width":130,"caption":"","height":86});
															thumbnails[3872599] = clik.newPhoto({"id":3872599,"src":"FacePaint_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_3872599.html","width":130,"caption":"","height":131});
															thumbnails[3874632] = clik.newPhoto({"id":3874632,"src":"Fraya14_copy_31_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_3874632.html","width":130,"caption":"","height":126});
															thumbnails[3874692] = clik.newPhoto({"id":3874692,"src":"Esme9_1_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_3874692.html","width":130,"caption":"","height":130});
															thumbnails[4806755] = clik.newPhoto({"id":4806755,"src":"Rain_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_4806755.html","width":130,"caption":"","height":78});
															thumbnails[4806886] = clik.newPhoto({"id":4806886,"src":"Olivia7_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_4806886.html","width":130,"caption":"","height":128});
															thumbnails[4807003] = clik.newPhoto({"id":4807003,"src":"Loveyou_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_4807003.html","width":130,"caption":"","height":126});
															thumbnails[4807054] = clik.newPhoto({"id":4807054,"src":"TerryandOlivia_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_4807054.html","width":130,"caption":"","height":125});
															thumbnails[4807056] = clik.newPhoto({"id":4807056,"src":"Soft3_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_4807056.html","width":130,"caption":"","height":143});
															thumbnails[4807069] = clik.newPhoto({"id":4807069,"src":"Lily4_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_4807069.html","width":130,"caption":"","height":95});
															thumbnails[4807107] = clik.newPhoto({"id":4807107,"src":"RayGun_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_4807107.html","width":130,"caption":"","height":141});
															thumbnails[4815894] = clik.newPhoto({"id":4815894,"src":"Resize_Wizard-34_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4815894.html","width":130,"caption":"","height":168});
															thumbnails[4815902] = clik.newPhoto({"id":4815902,"src":"Millau_v1_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4815902.html","width":130,"caption":"","height":85});
															thumbnails[4815906] = clik.newPhoto({"id":4815906,"src":"Pinktrees_copy_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4815906.html","width":130,"caption":"","height":67});
															thumbnails[4815913] = clik.newPhoto({"id":4815913,"src":"Resize_Wizard-22_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4815913.html","width":130,"caption":"","height":181});
															thumbnails[4815998] = clik.newPhoto({"id":4815998,"src":"FistyHorse_copy2_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4815998.html","width":130,"caption":"","height":76});
															thumbnails[4816007] = clik.newPhoto({"id":4816007,"src":"Southbankshadows_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4816007.html","width":130,"caption":"","height":132});
															thumbnails[4816015] = clik.newPhoto({"id":4816015,"src":"Grey_Sky_0014_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4816015.html","width":130,"caption":"","height":76});
															thumbnails[4816020] = clik.newPhoto({"id":4816020,"src":"Waterv2velvia_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4816020.html","width":130,"caption":"","height":196});
															thumbnails[4816025] = clik.newPhoto({"id":4816025,"src":"Palms_copy_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4816025.html","width":130,"caption":"","height":86});
															thumbnails[4816106] = clik.newPhoto({"id":4816106,"src":"TrafficlightsSF1_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4816106.html","width":130,"caption":"","height":127});
															thumbnails[4816111] = clik.newPhoto({"id":4816111,"src":"F16Fantastic1_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4816111.html","width":130,"caption":"","height":196});
															thumbnails[4816115] = clik.newPhoto({"id":4816115,"src":"Spitfirev31_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4816115.html","width":130,"caption":"","height":126});
															thumbnails[4816119] = clik.newPhoto({"id":4816119,"src":"LAPalms_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4816119.html","width":130,"caption":"","height":66});
															thumbnails[4816217] = clik.newPhoto({"id":4816217,"src":"newwoods_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4816217.html","width":130,"caption":"","height":133});
															thumbnails[4816225] = clik.newPhoto({"id":4816225,"src":"NapaliCoast9_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4816225.html","width":130,"caption":"","height":85});
															thumbnails[4816245] = clik.newPhoto({"id":4816245,"src":"Ganet5_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4816245.html","width":130,"caption":"","height":139});
															thumbnails[4869822] = clik.newPhoto({"id":4869822,"src":"Sam_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_4869822.html","width":130,"caption":"","height":87});
															thumbnails[4869824] = clik.newPhoto({"id":4869824,"src":"Ruby_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_4869824.html","width":130,"caption":"","height":141});
															thumbnails[4869837] = clik.newPhoto({"id":4869837,"src":"Pruandtheboysv3_1_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_4869837.html","width":130,"caption":"","height":97});
															thumbnails[5807454] = clik.newPhoto({"id":5807454,"src":"_DSC6165copy1_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_5807454.html","width":130,"caption":"","height":132});
															thumbnails[5807456] = clik.newPhoto({"id":5807456,"src":"45secsProvia_copy_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_5807456.html","width":130,"caption":"","height":86});
															thumbnails[5807457] = clik.newPhoto({"id":5807457,"src":"WorkingDog2_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_5807457.html","width":130,"caption":"","height":130});
															thumbnails[5807459] = clik.newPhoto({"id":5807459,"src":"KingsCrossmoves_copy_3_1_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_5807459.html","width":130,"caption":"","height":137});
															thumbnails[5846507] = clik.newPhoto({"id":5846507,"src":"Gocows_copy_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_5846507.html","width":130,"caption":"","height":132});
															thumbnails[7794816] = clik.newPhoto({"id":7794816,"src":"_DSC9880_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_7794816.html","width":130,"caption":"","height":85});
															thumbnails[7794822] = clik.newPhoto({"id":7794822,"src":"_DSC52541_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_7794822.html","width":130,"caption":"","height":74});
															thumbnails[7794835] = clik.newPhoto({"id":7794835,"src":"_DSC53631_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_7794835.html","width":130,"caption":"","height":86});
															thumbnails[7794844] = clik.newPhoto({"id":7794844,"src":"FordTruck1_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_7794844.html","width":130,"caption":"","height":86});
															thumbnails[7794849] = clik.newPhoto({"id":7794849,"src":"HerbieJumpsDevilsTower_1_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_7794849.html","width":130,"caption":"","height":130});
															thumbnails[7794852] = clik.newPhoto({"id":7794852,"src":"Train2_1_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_7794852.html","width":130,"caption":"","height":89});
															thumbnails[7794855] = clik.newPhoto({"id":7794855,"src":"Bebeb5_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_7794855.html","width":130,"caption":"","height":130});
															thumbnails[8463297] = clik.newPhoto({"id":8463297,"src":"_DSC1776_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_8463297.html","width":130,"caption":"","height":97});
															thumbnails[8463300] = clik.newPhoto({"id":8463300,"src":"_DSC3303_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_8463300.html","width":130,"caption":"","height":130});
															thumbnails[8463308] = clik.newPhoto({"id":8463308,"src":"_DSC9981_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_8463308.html","width":130,"caption":"","height":140});
															thumbnails[8463319] = clik.newPhoto({"id":8463319,"src":"_DSC35231_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_8463319.html","width":130,"caption":"","height":87});
															thumbnails[8463324] = clik.newPhoto({"id":8463324,"src":"_DSC44981_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_8463324.html","width":130,"caption":"","height":132});
															thumbnails[8463330] = clik.newPhoto({"id":8463330,"src":"_DSC47551_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_8463330.html","width":130,"caption":"","height":126});
															thumbnails[8463332] = clik.newPhoto({"id":8463332,"src":"_DSC50221_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_8463332.html","width":130,"caption":"","height":130});
															thumbnails[8463380] = clik.newPhoto({"id":8463380,"src":"IndyAgfaProcess_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_8463380.html","width":130,"caption":"","height":131});
															thumbnails[8463389] = clik.newPhoto({"id":8463389,"src":"Igy6_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_8463389.html","width":130,"caption":"","height":131});
															thumbnails[8463406] = clik.newPhoto({"id":8463406,"src":"LizzieAgfa21_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_8463406.html","width":130,"caption":"","height":126});
															thumbnails[8463484] = clik.newPhoto({"id":8463484,"src":"ClareandIndy5_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_8463484.html","width":130,"caption":"","height":130});
															thumbnails[8463522] = clik.newPhoto({"id":8463522,"src":"Olivia242_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_8463522.html","width":130,"caption":"","height":129});
															thumbnails[8463539] = clik.newPhoto({"id":8463539,"src":"_DSC146311_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_8463539.html","width":130,"caption":"","height":130});
															thumbnails[8463543] = clik.newPhoto({"id":8463543,"src":"_DSC16661_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_8463543.html","width":130,"caption":"","height":104});
															thumbnails[8463547] = clik.newPhoto({"id":8463547,"src":"Olivia4_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_8463547.html","width":130,"caption":"","height":86});
															thumbnails[8477024] = clik.newPhoto({"id":8477024,"src":"_DSC99691_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_8477024.html","width":130,"caption":"","height":138});
															thumbnails[8477225] = clik.newPhoto({"id":8477225,"src":"_DSC89961_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_8477225.html","width":130,"caption":"","height":131});
															thumbnails[8477233] = clik.newPhoto({"id":8477233,"src":"_DSC99041_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_8477233.html","width":130,"caption":"","height":143});
															thumbnails[8477245] = clik.newPhoto({"id":8477245,"src":"_DSC96231_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_8477245.html","width":130,"caption":"","height":141});
															thumbnails[8477260] = clik.newPhoto({"id":8477260,"src":"Crains2_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_8477260.html","width":130,"caption":"","height":86});
															thumbnails[8477269] = clik.newPhoto({"id":8477269,"src":"Newpalm_2_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_8477269.html","width":130,"caption":"","height":195});
															thumbnails[8477291] = clik.newPhoto({"id":8477291,"src":"GirlsMarmalade300tif_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_8477291.html","width":130,"caption":"","height":101});
															thumbnails[8477299] = clik.newPhoto({"id":8477299,"src":"Beach1_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_8477299.html","width":130,"caption":"","height":86});
															thumbnails[8477318] = clik.newPhoto({"id":8477318,"src":"Southend_v5_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_8477318.html","width":130,"caption":"","height":132});
															thumbnails[8552276] = clik.newPhoto({"id":8552276,"src":"Anna9_copy1_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_8552276.html","width":130,"caption":"","height":131});
															thumbnails[8552299] = clik.newPhoto({"id":8552299,"src":"Wings_copy_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_8552299.html","width":130,"caption":"","height":131});
															thumbnails[8552308] = clik.newPhoto({"id":8552308,"src":"JoLowocontrast_copy_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_8552308.html","width":130,"caption":"","height":130});
															thumbnails[8552357] = clik.newPhoto({"id":8552357,"src":"_DSC29911_copy1_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_8552357.html","width":130,"caption":"","height":196});
															thumbnails[8554143] = clik.newPhoto({"id":8554143,"src":"Racer2_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_8554143.html","width":130,"caption":"","height":127});
															thumbnails[1761053] = clik.newPhoto({"id":1761053,"src":"Resize Wizard-311_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_1761053.html","width":130,"caption":"","height":144});
															thumbnails[3872637] = clik.newPhoto({"id":3872637,"src":"Michael17_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_3872637.html","width":130,"caption":"","height":127});
															thumbnails[4815858] = clik.newPhoto({"id":4815858,"src":"Resize_Wizard-19_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4815858.html","width":130,"caption":"","height":156});
															thumbnails[3872603] = clik.newPhoto({"id":3872603,"src":"Florenebandw4_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_3872603.html","width":130,"caption":"","height":125});
															thumbnails[3874608] = clik.newPhoto({"id":3874608,"src":"Gary6_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_3874608.html","width":130,"caption":"","height":131});
															thumbnails[4815869] = clik.newPhoto({"id":4815869,"src":"Resize_Wizard-21_thumb.jpg","galleries_id":275178,"server_id":15,"link":"photo_4815869.html","width":130,"caption":"","height":125});
															thumbnails[4806739] = clik.newPhoto({"id":4806739,"src":"Laura6Bandw_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_4806739.html","width":130,"caption":"","height":132});
															thumbnails[4806722] = clik.newPhoto({"id":4806722,"src":"Hannah_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_4806722.html","width":130,"caption":"","height":140});
															thumbnails[3526805] = clik.newPhoto({"id":3526805,"src":"Nice_thumb.jpg","galleries_id":215798,"server_id":15,"link":"photo_3526805.html","width":130,"caption":"","height":85});
															thumbnails[4806693] = clik.newPhoto({"id":4806693,"src":"Danny3_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_4806693.html","width":130,"caption":"","height":120});
															thumbnails[4828017] = clik.newPhoto({"id":4828017,"src":"DadTunisia_copy_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_4828017.html","width":130,"caption":"","height":86});
															thumbnails[4806689] = clik.newPhoto({"id":4806689,"src":"BernsFreeeezin_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_4806689.html","width":130,"caption":"","height":130});
															thumbnails[4807102] = clik.newPhoto({"id":4807102,"src":"Ed_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_4807102.html","width":130,"caption":"","height":196});
															thumbnails[4806683] = clik.newPhoto({"id":4806683,"src":"_DSC0356_thumb.jpg","galleries_id":116591,"server_id":15,"link":"photo_4806683.html","width":130,"caption":"","height":197});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[116591] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait Photography","link":"gallery_116591.html","maxRecords":0.0,"photoIDs":[1842836.0,3530453.0,3872599.0,3874632.0,3874692.0,4806886.0,4807054.0,4807069.0,4807107.0,4869822.0,4869824.0,5807454.0,7794849.0,7794855.0,8463380.0,8463389.0,8463406.0,8463484.0,8463522.0,8463539.0,8463543.0,8463547.0,8552276.0,8552299.0,8552308.0,8552357.0,3872637.0,3872603.0,3874608.0,4806722.0,4806693.0,4828017.0,4806689.0,4807102.0,4806683.0],"skipIndex":0,"section_code":"gallery","featured_images":"8552357,8552308,8552299,8552276,8463547,8463543,8463539,8463522,8463484,8463406","id":116591,"singleSection":false});				  						galleries[215798] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Event Photography","link":"gallery_215798.html","maxRecords":0.0,"photoIDs":[3526791.0,3526795.0,3526798.0,3526811.0,3527141.0,3527145.0,3527152.0,3527156.0,3527161.0,4806755.0,4807003.0,4807056.0,4869837.0,7794816.0,7794822.0,7794835.0,8463297.0,8463300.0,8463308.0,8463319.0,8463324.0,8463330.0,8463332.0,8477024.0,8477225.0,8477233.0,8477245.0,8477291.0,1761053.0,4806739.0,3526805.0],"skipIndex":0,"section_code":"gallery","featured_images":"8477291,8477245,8477233,8477225,8477024,8463332,8463330,8463324,8463319,8463308","id":215798,"singleSection":false});				  						galleries[275178] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscape Photography","link":"gallery_275178.html","maxRecords":0.0,"photoIDs":[4815894.0,4815902.0,4815906.0,4815913.0,4815998.0,4816007.0,4816015.0,4816020.0,4816025.0,4816106.0,4816111.0,4816115.0,4816119.0,4816217.0,4816225.0,4816245.0,5807456.0,5807457.0,5807459.0,5846507.0,7794844.0,7794852.0,8477260.0,8477269.0,8477299.0,8477318.0,8554143.0,4815858.0,4815869.0],"skipIndex":0,"section_code":"gallery","featured_images":"8554143,8477318,8477299,8477269,8477260,7794852,7794844,5846507,5807459,5807457","id":275178,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8554143,8552308,8552299,8552276,8477318,8477299,8477269,8477260,8477245,8463522,8463484,8463380,8463332,8463324,7794852,7794844,5807459,5807456,4869822,4816245,4816225,4816217,4816119,4816115,4816111,4816106,4816025,4816020,4816015,4816007,4815998,4815906,4815902,4807107,4807054,4806886,3874692,3874632,3872599,4815858,3872637,1761053,4815869,3872603,4806722,4806693,3526805,4828017,4806689';
imageSets[3] = '8554143,8552357,8552308,8552299,8552276,8477318,8477299,8477291,8477269,8477260,8477245,8477233,8477225,8477024,8463547,8463543,8463539,8463522,8463484,8463406,8463389,8463380,8463332,8463330,8463324,8463319,8463308,8463300,8463297,7794855,7794852,7794849,7794844,7794835,7794822,7794816,5846507,5807459,5807457,5807456,5807454,4869837,4869824,4869822,4828017,4816245,4816225,4816217,4816119,4816115';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Galbally/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Galbally/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Galbally/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Galbally/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Galbally/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Galbally/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Galbally/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:'',$detailContainer:'',
                    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 (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Christian Galbally Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		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));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			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', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		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 += '<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({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* 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 += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

