window.thumbnails = {};
															thumbnails[8953186] = clik.newPhoto({"id":8953186,"src":"Sue__Steve_Photography__-_The_gallery_on_line_-_Front_page_-V2_thumb_C66C6373-1EC9-DFB6-096C53AAB133F169.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[8953188] = clik.newPhoto({"id":8953188,"src":"Sue__Steve_Photography__-_The_gallery_on_line_-_Contact_Address_-_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[7313589] = clik.newPhoto({"id":7313589,"src":"Gallery_Exhibitors_-web_-_page_-_P1_AEB4145F-1E4F-37DC-71B29D5C957BE8E7_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":325});
															thumbnails[5960290] = clik.newPhoto({"id":5960290,"src":"Visit_Guis_-__web_-_Page_11_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":260});
															thumbnails[5960354] = clik.newPhoto({"id":5960354,"src":"Visit_Guis_-__web_-_Page_21_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":260});
															thumbnails[5977579] = clik.newPhoto({"id":5977579,"src":"Visit_Guis_-__web_-_Page_3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":260});
															thumbnails[446750] = clik.newPhoto({"id":446750,"src":"sun002x_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Sunset Cleveland","height":70});
															thumbnails[4842487] = clik.newPhoto({"id":4842487,"src":"North_Yorkshire__The_North_East_-_Page_1_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_4842487.html","width":130,"caption":"","height":195});
															thumbnails[4842489] = clik.newPhoto({"id":4842489,"src":"North_Yorkshire__The_North_East_-_Page_2_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_4842489.html","width":130,"caption":"","height":195});
															thumbnails[5710804] = clik.newPhoto({"id":5710804,"src":"web_-_page_-_temp_Page_E_thumb.jpg","galleries_id":190355,"server_id":1,"link":"photo_5710804.html","width":130,"caption":"","height":195});
															thumbnails[2560275] = clik.newPhoto({"id":2560275,"src":"Webcat-Front Cover Page-600_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2560275.html","width":130,"caption":"","height":106});
															thumbnails[4842491] = clik.newPhoto({"id":4842491,"src":"North_Yorkshire__The_North_East_-_Page_3_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_4842491.html","width":130,"caption":"","height":195});
															thumbnails[4842492] = clik.newPhoto({"id":4842492,"src":"North_Yorkshire__The_North_East_-_Page_4_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_4842492.html","width":130,"caption":"","height":195});
															thumbnails[2560276] = clik.newPhoto({"id":2560276,"src":"Webcat-Front Cover Page -2-600_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2560276.html","width":130,"caption":"","height":106});
															thumbnails[4842493] = clik.newPhoto({"id":4842493,"src":"North_Yorkshire__The_North_East_-_Page_51_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_4842493.html","width":130,"caption":"","height":195});
															thumbnails[4880761] = clik.newPhoto({"id":4880761,"src":"North_Yorkshire__The_North_East_-_Page_6_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_4880761.html","width":130,"caption":"","height":195});
															thumbnails[4880762] = clik.newPhoto({"id":4880762,"src":"North_Yorkshire__The_North_East_-_Page_7_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_4880762.html","width":130,"caption":"","height":195});
															thumbnails[4880763] = clik.newPhoto({"id":4880763,"src":"North_Yorkshire__The_North_East_-_Page_8_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_4880763.html","width":130,"caption":"","height":195});
															thumbnails[4880764] = clik.newPhoto({"id":4880764,"src":"North_Yorkshire__The_North_East_-_Page_9_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_4880764.html","width":130,"caption":"","height":195});
															thumbnails[2560047] = clik.newPhoto({"id":2560047,"src":"Webcat-Page-1-SQ-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2560047.html","width":130,"caption":"","height":106});
															thumbnails[4730966] = clik.newPhoto({"id":4730966,"src":"Lake_District__North_West_Page_11_thumb.jpg","galleries_id":35438,"server_id":1,"link":"photo_4730966.html","width":130,"caption":"","height":195});
															thumbnails[4772813] = clik.newPhoto({"id":4772813,"src":"Europe_3_--__Page_1_thumb.jpg","galleries_id":44387,"server_id":1,"link":"photo_4772813.html","width":130,"caption":"","height":195});
															thumbnails[4880765] = clik.newPhoto({"id":4880765,"src":"North_Yorkshire__The_North_East_-_Page_10_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_4880765.html","width":130,"caption":"","height":195});
															thumbnails[5895474] = clik.newPhoto({"id":5895474,"src":"Landscapes__Studies_in_Black__White_-__Page_1_thumb.jpg","galleries_id":189795,"server_id":1,"link":"photo_5895474.html","width":130,"caption":"","height":195});
															thumbnails[5895476] = clik.newPhoto({"id":5895476,"src":"Cornwall__The_Soth_West_-_web_-_Page_1_thumb.jpg","galleries_id":189794,"server_id":1,"link":"photo_5895476.html","width":130,"caption":"","height":195});
															thumbnails[5895479] = clik.newPhoto({"id":5895479,"src":"Europe_4_-_web_-_Page_1_thumb.jpg","galleries_id":44543,"server_id":1,"link":"photo_5895479.html","width":130,"caption":"","height":195});
															thumbnails[5895484] = clik.newPhoto({"id":5895484,"src":"Wildlife_2_-_web-__Page_1_thumb.jpg","galleries_id":36438,"server_id":1,"link":"photo_5895484.html","width":130,"caption":"","height":195});
															thumbnails[5895485] = clik.newPhoto({"id":5895485,"src":"Wildlife_3_-_web-__Page_1_thumb.jpg","galleries_id":37998,"server_id":1,"link":"photo_5895485.html","width":130,"caption":"","height":195});
															thumbnails[5912043] = clik.newPhoto({"id":5912043,"src":"Europe_1_-_Web_-_Page_1_thumb.jpg","galleries_id":35447,"server_id":1,"link":"photo_5912043.html","width":130,"caption":"","height":195});
															thumbnails[5912046] = clik.newPhoto({"id":5912046,"src":"Europe_2_-_web_-_page_1_thumb.jpg","galleries_id":39117,"server_id":1,"link":"photo_5912046.html","width":130,"caption":"","height":195});
															thumbnails[5912051] = clik.newPhoto({"id":5912051,"src":"Oxford__Central_England_-_Web_-_Page_1_thumb.jpg","galleries_id":190348,"server_id":1,"link":"photo_5912051.html","width":130,"caption":"","height":195});
															thumbnails[6142072] = clik.newPhoto({"id":6142072,"src":"Wildlife_1-web-__Page_1_2FED48EB-1EC9-D45B-1C25E64BBA086D97_thumb.jpg","galleries_id":36192,"server_id":1,"link":"photo_6142072.html","width":130,"caption":"","height":260});
															thumbnails[4880766] = clik.newPhoto({"id":4880766,"src":"North_Yorkshire__The_North_East_-_Page_11_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_4880766.html","width":130,"caption":"","height":195});
															thumbnails[4880767] = clik.newPhoto({"id":4880767,"src":"North_Yorkshire__The_North_East_-_Page_12_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_4880767.html","width":130,"caption":"","height":195});
															thumbnails[5710759] = clik.newPhoto({"id":5710759,"src":"web_-_page_-_temp_Page_B_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_5710759.html","width":130,"caption":"","height":195});
															thumbnails[5710785] = clik.newPhoto({"id":5710785,"src":"web_-_page_-_temp_Page_D_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_5710785.html","width":130,"caption":"","height":195});
															thumbnails[8374569] = clik.newPhoto({"id":8374569,"src":"North_york_-_web_-_Page_X_thumb.jpg","galleries_id":189760,"server_id":1,"link":"photo_8374569.html","width":130,"caption":"","height":325});
															thumbnails[2560059] = clik.newPhoto({"id":2560059,"src":"Webcat-Page-2-SQ-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2560059.html","width":130,"caption":"","height":106});
															thumbnails[4772815] = clik.newPhoto({"id":4772815,"src":"Europe_3_--__Page_2_thumb.jpg","galleries_id":44387,"server_id":1,"link":"photo_4772815.html","width":130,"caption":"","height":195});
															thumbnails[5895475] = clik.newPhoto({"id":5895475,"src":"Landscapes__Studies_in_Black__White_-__Page_2_thumb.jpg","galleries_id":189795,"server_id":1,"link":"photo_5895475.html","width":130,"caption":"","height":195});
															thumbnails[5912040] = clik.newPhoto({"id":5912040,"src":"Churches_-_Web_-_Page_2_thumb.jpg","galleries_id":82401,"server_id":1,"link":"photo_5912040.html","width":130,"caption":"","height":195});
															thumbnails[5912044] = clik.newPhoto({"id":5912044,"src":"Europe_1_-_Web_-_Page_2_thumb.jpg","galleries_id":35447,"server_id":1,"link":"photo_5912044.html","width":130,"caption":"","height":195});
															thumbnails[5912047] = clik.newPhoto({"id":5912047,"src":"Europe_2_-_web_-_page_2_thumb.jpg","galleries_id":39117,"server_id":1,"link":"photo_5912047.html","width":130,"caption":"","height":195});
															thumbnails[6677481] = clik.newPhoto({"id":6677481,"src":"Wildlife_1-web-__Page_2_thumb.jpg","galleries_id":36192,"server_id":1,"link":"photo_6677481.html","width":130,"caption":"","height":195});
															thumbnails[6677483] = clik.newPhoto({"id":6677483,"src":"Wildlife_2_-_web-__Page_2_thumb.jpg","galleries_id":36438,"server_id":1,"link":"photo_6677483.html","width":130,"caption":"","height":195});
															thumbnails[2560060] = clik.newPhoto({"id":2560060,"src":"Webcat-Page-3-SQ-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2560060.html","width":130,"caption":"","height":106});
															thumbnails[2560062] = clik.newPhoto({"id":2560062,"src":"Webcat-Page-4-SQ-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2560062.html","width":130,"caption":"","height":106});
															thumbnails[4772819] = clik.newPhoto({"id":4772819,"src":"Europe_3_--__Page_3_thumb.jpg","galleries_id":44387,"server_id":1,"link":"photo_4772819.html","width":130,"caption":"","height":195});
															thumbnails[5895465] = clik.newPhoto({"id":5895465,"src":"Scotland_-_web_-__Page_1_thumb.jpg","galleries_id":189758,"server_id":1,"link":"photo_5895465.html","width":130,"caption":"","height":195});
															thumbnails[2560078] = clik.newPhoto({"id":2560078,"src":"Webcat-Page-5-SQ-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2560078.html","width":130,"caption":"","height":106});
															thumbnails[5895466] = clik.newPhoto({"id":5895466,"src":"Scotland_-_web_-__Page_2_thumb.jpg","galleries_id":189758,"server_id":1,"link":"photo_5895466.html","width":130,"caption":"","height":195});
															thumbnails[2560080] = clik.newPhoto({"id":2560080,"src":"Webcat-Page-6-SQ-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2560080.html","width":130,"caption":"","height":106});
															thumbnails[4772823] = clik.newPhoto({"id":4772823,"src":"Europe_3_--__Page_4_thumb.jpg","galleries_id":44387,"server_id":1,"link":"photo_4772823.html","width":130,"caption":"","height":195});
															thumbnails[5843851] = clik.newPhoto({"id":5843851,"src":"WP1_-_Wedding_Stationery_-_web_-_Page_1x1_thumb.jpg","galleries_id":179191,"server_id":1,"link":"photo_5843851.html","width":130,"caption":"","height":195});
															thumbnails[5895467] = clik.newPhoto({"id":5895467,"src":"Scotland_-_web_-__Page_3_thumb.jpg","galleries_id":189758,"server_id":1,"link":"photo_5895467.html","width":130,"caption":"","height":195});
															thumbnails[6677485] = clik.newPhoto({"id":6677485,"src":"Wildlife_2_-_web-__Page_3_thumb.jpg","galleries_id":36438,"server_id":1,"link":"photo_6677485.html","width":130,"caption":"","height":195});
															thumbnails[2560097] = clik.newPhoto({"id":2560097,"src":"Webcat-Page-7-SQ-600-cont2_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2560097.html","width":130,"caption":"","height":106});
															thumbnails[4772825] = clik.newPhoto({"id":4772825,"src":"Europe_3_--__Page_5_thumb.jpg","galleries_id":44387,"server_id":1,"link":"photo_4772825.html","width":130,"caption":"","height":195});
															thumbnails[2560373] = clik.newPhoto({"id":2560373,"src":"Webcat-Page-8-PAN-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2560373.html","width":130,"caption":"","height":106});
															thumbnails[4772827] = clik.newPhoto({"id":4772827,"src":"Europe_3_--__Page_6_thumb.jpg","galleries_id":44387,"server_id":1,"link":"photo_4772827.html","width":130,"caption":"","height":195});
															thumbnails[5843852] = clik.newPhoto({"id":5843852,"src":"WP2-_Wedding_Stationery_Wadrobe_Style-_web_-_Page_1x_thumb.jpg","galleries_id":179191,"server_id":1,"link":"photo_5843852.html","width":130,"caption":"","height":195});
															thumbnails[5895469] = clik.newPhoto({"id":5895469,"src":"Around_The_World_-_Web_-_Page_1_thumb.jpg","galleries_id":38865,"server_id":1,"link":"photo_5895469.html","width":130,"caption":"","height":195});
															thumbnails[2560377] = clik.newPhoto({"id":2560377,"src":"Webcat-Page-9-PAN-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2560377.html","width":130,"caption":"","height":106});
															thumbnails[2560381] = clik.newPhoto({"id":2560381,"src":"Webcat-Page-10-PAN-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2560381.html","width":130,"caption":"","height":106});
															thumbnails[5895470] = clik.newPhoto({"id":5895470,"src":"Around_The_World_-_Web_-_Page_2_thumb.jpg","galleries_id":38865,"server_id":1,"link":"photo_5895470.html","width":130,"caption":"","height":195});
															thumbnails[2663814] = clik.newPhoto({"id":2663814,"src":"Webcat-Page-11-PAN-600-sh1_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2663814.html","width":130,"caption":"","height":106});
															thumbnails[2663815] = clik.newPhoto({"id":2663815,"src":"Webcat-Page-12-PAN-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2663815.html","width":130,"caption":"","height":106});
															thumbnails[5843853] = clik.newPhoto({"id":5843853,"src":"WP3-_Wedding_Stationery_-_web_-_Page_2x_thumb.jpg","galleries_id":179191,"server_id":1,"link":"photo_5843853.html","width":130,"caption":"","height":195});
															thumbnails[5895471] = clik.newPhoto({"id":5895471,"src":"Around_The_World_-_Web_-_Page_3_thumb.jpg","galleries_id":38865,"server_id":1,"link":"photo_5895471.html","width":130,"caption":"","height":195});
															thumbnails[2663816] = clik.newPhoto({"id":2663816,"src":"Webcat-Page-13-PAN-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2663816.html","width":130,"caption":"","height":106});
															thumbnails[2663817] = clik.newPhoto({"id":2663817,"src":"Webcat-Page-14-PAN-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2663817.html","width":130,"caption":"","height":106});
															thumbnails[2663818] = clik.newPhoto({"id":2663818,"src":"Webcat-Page-15-PAN-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2663818.html","width":130,"caption":"","height":106});
															thumbnails[2663819] = clik.newPhoto({"id":2663819,"src":"Webcat-Page-16-C5-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2663819.html","width":130,"caption":"","height":101});
															thumbnails[6386337] = clik.newPhoto({"id":6386337,"src":"WP6-_Wedding_Guisborough_Group_-web_thumb.jpg","galleries_id":179191,"server_id":1,"link":"photo_6386337.html","width":130,"caption":"","height":195});
															thumbnails[2663828] = clik.newPhoto({"id":2663828,"src":"Webcat-Page-17-C5-600-sh_thumb.jpg","galleries_id":59051,"server_id":1,"link":"photo_2663828.html","width":130,"caption":"","height":101});
															thumbnails[5544678] = clik.newPhoto({"id":5544678,"src":"BBC_-web_-_page_-_BBC-1_thumb.jpg","galleries_id":309263,"server_id":1,"link":"photo_5544678.html","width":130,"caption":"","height":195});
															thumbnails[5544681] = clik.newPhoto({"id":5544681,"src":"BBC_-web_-_page_-_BBC_-_2_thumb.jpg","galleries_id":309263,"server_id":1,"link":"photo_5544681.html","width":130,"caption":"","height":195});
															thumbnails[8448729] = clik.newPhoto({"id":8448729,"src":"Debbie_Stogden-_page_-_Weddings1_thumb.jpg","galleries_id":313992,"server_id":1,"link":"photo_8448729.html","width":130,"caption":"","height":195});
															thumbnails[8448731] = clik.newPhoto({"id":8448731,"src":"Debbie_Stogden-_page_-_Weddings_-_Page_21_thumb.jpg","galleries_id":313992,"server_id":1,"link":"photo_8448731.html","width":130,"caption":"","height":325});
															thumbnails[8477695] = clik.newPhoto({"id":8477695,"src":"Neil_Bage_-__web_-_Page_Template_thumb.jpg","galleries_id":313992,"server_id":1,"link":"photo_8477695.html","width":130,"caption":"","height":195});
															thumbnails[5541656] = clik.newPhoto({"id":5541656,"src":"RS-Glassware_-web_-_page_-_P1_thumb.jpg","galleries_id":313992,"server_id":1,"link":"photo_5541656.html","width":130,"caption":"","height":195});
															thumbnails[5541657] = clik.newPhoto({"id":5541657,"src":"RS-Glassware_-web_-_page_-_P2_thumb.jpg","galleries_id":313992,"server_id":1,"link":"photo_5541657.html","width":130,"caption":"","height":195});
															thumbnails[5541658] = clik.newPhoto({"id":5541658,"src":"RS-Glassware_-web_-_page_-_P3_thumb.jpg","galleries_id":313992,"server_id":1,"link":"photo_5541658.html","width":130,"caption":"","height":195});
															thumbnails[5541659] = clik.newPhoto({"id":5541659,"src":"RS-Glassware_-web_-_page_-_P4_thumb.jpg","galleries_id":313992,"server_id":1,"link":"photo_5541659.html","width":130,"caption":"","height":195});
															thumbnails[5541660] = clik.newPhoto({"id":5541660,"src":"RS-Glassware_-web_-_page_-_P5_thumb.jpg","galleries_id":313992,"server_id":1,"link":"photo_5541660.html","width":130,"caption":"","height":195});
															thumbnails[5541661] = clik.newPhoto({"id":5541661,"src":"Janice_Bingham-Glassware_-web_-_page_-_P11_thumb.jpg","galleries_id":313992,"server_id":1,"link":"photo_5541661.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[313992] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Also At The Gallery","link":"section376295.html","maxRecords":0.0,"photoIDs":[8448729.0,8448731.0,8477695.0,5541656.0,5541657.0,5541658.0,5541659.0,5541660.0,5541661.0],"skipIndex":0,"section_code":"section376295","featured_images":"8477695,8448731,8448729,5541661,5541660,5541659,5541658,5541657,5541656","id":313992,"singleSection":true});				  						galleries[51481] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Web Site Library","link":"gallery_51481.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":51481,"singleSection":false});				  						galleries[179191] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Stationery","link":"gallery_179191.html","maxRecords":0.0,"photoIDs":[5843851.0,5843852.0,5843853.0,6386337.0],"skipIndex":0,"section_code":"gallery","featured_images":"6386337,5843853,5843852,5843851","id":179191,"singleSection":false});				  						galleries[59051] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Greetings Cards Catalogue","link":"gallery_59051.html","maxRecords":0.0,"photoIDs":[2560275.0,2560276.0,2560047.0,2560059.0,2560060.0,2560062.0,2560078.0,2560080.0,2560097.0,2560373.0,2560377.0,2560381.0,2663814.0,2663815.0,2663816.0,2663817.0,2663818.0,2663819.0,2663828.0],"skipIndex":0,"section_code":"gallery","featured_images":"2663828,2663819,2663818,2663817,2663816,2663815,2663814,2560381,2560377,2560373","id":59051,"singleSection":false});				  						galleries[35438] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Lake District & The North West","link":"gallery_35438.html","maxRecords":0.0,"photoIDs":[4730966.0],"skipIndex":0,"section_code":"gallery","featured_images":4730966.0,"id":35438,"singleSection":false});				  						galleries[189760] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"North Yorkshire & The North East","link":"gallery_189760.html","maxRecords":0.0,"photoIDs":[4842487.0,4842489.0,4842491.0,4842492.0,4842493.0,4880761.0,4880762.0,4880763.0,4880764.0,4880765.0,4880766.0,4880767.0,5710759.0,5710785.0,8374569.0],"skipIndex":0,"section_code":"gallery","featured_images":"8374569,5710785,5710759,4880767,4880766,4880765,4880764,4880763,4880762,4880761","id":189760,"singleSection":false});				  						galleries[190335] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Shropshire, The West Midlands & Wales","link":"gallery_190335.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":190335,"singleSection":false});				  						galleries[190338] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nottinghamshire & The East Midlands","link":"gallery_190338.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":190338,"singleSection":false});				  						galleries[190341] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cambridgeshire & East Anglia","link":"gallery_190341.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":190341,"singleSection":false});				  						galleries[190348] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Oxfordshire & Central England","link":"gallery_190348.html","maxRecords":0.0,"photoIDs":[5912051.0],"skipIndex":0,"section_code":"gallery","featured_images":5912051.0,"id":190348,"singleSection":false});				  						galleries[190352] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kent & The South East","link":"gallery_190352.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":190352,"singleSection":false});				  						galleries[190353] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wiltshire & The South","link":"gallery_190353.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":190353,"singleSection":false});				  						galleries[190355] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"London","link":"gallery_190355.html","maxRecords":0.0,"photoIDs":[5710804.0],"skipIndex":0,"section_code":"gallery","featured_images":5710804.0,"id":190355,"singleSection":false});				  						galleries[189794] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cornwall & The South West","link":"gallery_189794.html","maxRecords":0.0,"photoIDs":[5895476.0],"skipIndex":0,"section_code":"gallery","featured_images":5895476.0,"id":189794,"singleSection":false});				  						galleries[189758] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scotland","link":"gallery_189758.html","maxRecords":0.0,"photoIDs":[5895465.0,5895466.0,5895467.0],"skipIndex":0,"section_code":"gallery","featured_images":"5895467,5895466,5895465","id":189758,"singleSection":false});				  						galleries[35447] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Europe 1","link":"gallery_35447.html","maxRecords":0.0,"photoIDs":[5912043.0,5912044.0],"skipIndex":0,"section_code":"gallery","featured_images":"5912044,5912043","id":35447,"singleSection":false});				  						galleries[39117] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Europe 2","link":"gallery_39117.html","maxRecords":0.0,"photoIDs":[5912046.0,5912047.0],"skipIndex":0,"section_code":"gallery","featured_images":"5912047,5912046","id":39117,"singleSection":false});				  						galleries[44387] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Europe 3","link":"gallery_44387.html","maxRecords":0.0,"photoIDs":[4772813.0,4772815.0,4772819.0,4772823.0,4772825.0,4772827.0],"skipIndex":0,"section_code":"gallery","featured_images":"4772827,4772825,4772823,4772819,4772815,4772813","id":44387,"singleSection":false});				  						galleries[44543] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Europe 4","link":"gallery_44543.html","maxRecords":0.0,"photoIDs":[5895479.0],"skipIndex":0,"section_code":"gallery","featured_images":5895479.0,"id":44543,"singleSection":false});				  						galleries[38865] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Around the World","link":"gallery_38865.html","maxRecords":0.0,"photoIDs":[5895469.0,5895470.0,5895471.0],"skipIndex":0,"section_code":"gallery","featured_images":"5895471,5895470,5895469","id":38865,"singleSection":false});				  						galleries[189795] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes & Studies in Black & White","link":"gallery_189795.html","maxRecords":0.0,"photoIDs":[5895474.0,5895475.0],"skipIndex":0,"section_code":"gallery","featured_images":"5895475,5895474","id":189795,"singleSection":false});				  						galleries[36192] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife 1","link":"gallery_36192.html","maxRecords":0.0,"photoIDs":[6142072.0,6677481.0],"skipIndex":0,"section_code":"gallery","featured_images":"6677481,6142072","id":36192,"singleSection":false});				  						galleries[36438] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife 2","link":"gallery_36438.html","maxRecords":0.0,"photoIDs":[5895484.0,6677483.0,6677485.0],"skipIndex":0,"section_code":"gallery","featured_images":"6677485,6677483,5895484","id":36438,"singleSection":false});				  						galleries[37998] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife 3","link":"gallery_37998.html","maxRecords":0.0,"photoIDs":[5895485.0],"skipIndex":0,"section_code":"gallery","featured_images":5895485.0,"id":37998,"singleSection":false});				  						galleries[82401] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Churches","link":"gallery_82401.html","maxRecords":0.0,"photoIDs":[5912040.0],"skipIndex":0,"section_code":"gallery","featured_images":5912040.0,"id":82401,"singleSection":false});				  						galleries[309263] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photographer \/ Artist Of The Month","link":"section225372.html","maxRecords":0.0,"photoIDs":[5544678.0,5544681.0],"skipIndex":0,"section_code":"section225372","featured_images":"5544681,5544678","id":309263,"singleSection":true});				  						galleries[416920] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Exhibistionists","link":"section499338.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section499338","featured_images":"","id":416920,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8953186';
imageSets[3] = '8953188,8953186,8477695,8448731,8448729,8374569,7313589,6677485,6677483,6677481,6386337,6142072,5977579,5960354,5960290,5912051,5912047,5912046,5912044,5912043,5912040,5895485,5895484,5895479,5895476,5895475,5895474,5895471,5895470,5895469,5895467,5895466,5895465,5843853,5843852,5843851,5710804,5710785,5710759,5544681,5544678,5541661,5541660,5541659,5541658,5541657,5541656,4880767,4880766,4880765';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sueandsteve/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sueandsteve/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 || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section326686.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 && 'section326686' != '') {
					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 = 'Sue & Steve Photography \'The Gallery\' Guisborough: ' + 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.item_price !== '') {
			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;
	}
}

			

