window.thumbnails = {};
															thumbnails[387793] = clik.newPhoto({"id":387793,"src":"a_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":57});
															thumbnails[8144893] = clik.newPhoto({"id":8144893,"src":"fees1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":127});
															thumbnails[8145224] = clik.newPhoto({"id":8145224,"src":"imagesCAAFCS4E_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":49});
															thumbnails[1414103] = clik.newPhoto({"id":1414103,"src":"100_0791_thumb.jpg","galleries_id":97260,"server_id":18,"link":"photo_1414103.html","width":130,"caption":"Click for details","height":173});
															thumbnails[1414106] = clik.newPhoto({"id":1414106,"src":"100_0792_thumb.jpg","galleries_id":97260,"server_id":18,"link":"photo_1414106.html","width":130,"caption":"","height":173});
															thumbnails[1414110] = clik.newPhoto({"id":1414110,"src":"100_0794_thumb.jpg","galleries_id":97260,"server_id":18,"link":"photo_1414110.html","width":130,"caption":"","height":98});
															thumbnails[1581708] = clik.newPhoto({"id":1581708,"src":"100_0831_thumb.jpg","galleries_id":105828,"server_id":18,"link":"photo_1581708.html","width":130,"caption":"Click for details","height":173});
															thumbnails[1625960] = clik.newPhoto({"id":1625960,"src":"100_0845_thumb.jpg","galleries_id":110223,"server_id":18,"link":"photo_1625960.html","width":130,"caption":"Click for details","height":98});
															thumbnails[1625969] = clik.newPhoto({"id":1625969,"src":"100_0847_thumb.jpg","galleries_id":110223,"server_id":18,"link":"photo_1625969.html","width":130,"caption":"","height":98});
															thumbnails[1625972] = clik.newPhoto({"id":1625972,"src":"100_0834_thumb.jpg","galleries_id":110223,"server_id":18,"link":"photo_1625972.html","width":130,"caption":"","height":98});
															thumbnails[1764466] = clik.newPhoto({"id":1764466,"src":"100_0868_thumb.JPG","galleries_id":117403,"server_id":18,"link":"photo_1764466.html","width":130,"caption":"Click for details","height":98});
															thumbnails[1764476] = clik.newPhoto({"id":1764476,"src":"100_0871_thumb.JPG","galleries_id":117403,"server_id":18,"link":"photo_1764476.html","width":130,"caption":"","height":98});
															thumbnails[1764480] = clik.newPhoto({"id":1764480,"src":"100_0872_thumb.JPG","galleries_id":117403,"server_id":18,"link":"photo_1764480.html","width":130,"caption":"","height":173});
															thumbnails[1764488] = clik.newPhoto({"id":1764488,"src":"100_0875_thumb.JPG","galleries_id":117403,"server_id":18,"link":"photo_1764488.html","width":130,"caption":"","height":98});
															thumbnails[1764491] = clik.newPhoto({"id":1764491,"src":"100_0877_thumb.JPG","galleries_id":117403,"server_id":18,"link":"photo_1764491.html","width":130,"caption":"","height":98});
															thumbnails[3105930] = clik.newPhoto({"id":3105930,"src":"EA1_thumb.jpg","galleries_id":190597,"server_id":18,"link":"photo_3105930.html","width":130,"caption":"Click for details","height":98});
															thumbnails[3105931] = clik.newPhoto({"id":3105931,"src":"EA2_thumb.jpg","galleries_id":190597,"server_id":18,"link":"photo_3105931.html","width":130,"caption":"","height":98});
															thumbnails[3105932] = clik.newPhoto({"id":3105932,"src":"EA3_thumb.jpg","galleries_id":190597,"server_id":18,"link":"photo_3105932.html","width":130,"caption":"","height":98});
															thumbnails[3105935] = clik.newPhoto({"id":3105935,"src":"EA4_thumb.jpg","galleries_id":190597,"server_id":18,"link":"photo_3105935.html","width":130,"caption":"","height":173});
															thumbnails[7647399] = clik.newPhoto({"id":7647399,"src":"imagesCAL1920Q_thumb.jpg","galleries_id":172952,"server_id":18,"link":"photo_7647399.html","width":130,"caption":"","height":162});
															thumbnails[8998189] = clik.newPhoto({"id":8998189,"src":"100_1348_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998189.html","width":130,"caption":"Click for details","height":98});
															thumbnails[8998288] = clik.newPhoto({"id":8998288,"src":"100_1349_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998288.html","width":130,"caption":"","height":98});
															thumbnails[8998327] = clik.newPhoto({"id":8998327,"src":"100_1353_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998327.html","width":130,"caption":"","height":173});
															thumbnails[8998336] = clik.newPhoto({"id":8998336,"src":"100_1354_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998336.html","width":130,"caption":"","height":173});
															thumbnails[8998372] = clik.newPhoto({"id":8998372,"src":"100_1355_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998372.html","width":130,"caption":"","height":173});
															thumbnails[8998383] = clik.newPhoto({"id":8998383,"src":"100_1356_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998383.html","width":130,"caption":"","height":98});
															thumbnails[8998390] = clik.newPhoto({"id":8998390,"src":"100_1352_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998390.html","width":130,"caption":"","height":98});
															thumbnails[8998395] = clik.newPhoto({"id":8998395,"src":"100_1350_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998395.html","width":130,"caption":"","height":173});
															thumbnails[8998412] = clik.newPhoto({"id":8998412,"src":"100_1351_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998412.html","width":130,"caption":"","height":173});
															thumbnails[8998422] = clik.newPhoto({"id":8998422,"src":"100_1358_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998422.html","width":130,"caption":"","height":98});
															thumbnails[8998431] = clik.newPhoto({"id":8998431,"src":"100_1357_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998431.html","width":130,"caption":"","height":173});
															thumbnails[8998440] = clik.newPhoto({"id":8998440,"src":"100_1359_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998440.html","width":130,"caption":"","height":173});
															thumbnails[8998445] = clik.newPhoto({"id":8998445,"src":"100_1360_thumb.JPG","galleries_id":473912,"server_id":18,"link":"photo_8998445.html","width":130,"caption":"","height":173});
															thumbnails[1049603] = clik.newPhoto({"id":1049603,"src":"1_thumb.jpg","galleries_id":77776,"server_id":18,"link":"photo_1049603.html","width":130,"caption":"Click for details","height":173});
															thumbnails[2398693] = clik.newPhoto({"id":2398693,"src":"lHPP0306401_thumb.jpg","galleries_id":155485,"server_id":18,"link":"photo_2398693.html","width":130,"caption":"Click for details","height":86});
															thumbnails[3539268] = clik.newPhoto({"id":3539268,"src":"6_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539268.html","width":130,"caption":"Click for details","height":98});
															thumbnails[3849737] = clik.newPhoto({"id":3849737,"src":"100_1050_thumb.jpg","galleries_id":234243,"server_id":18,"link":"photo_3849737.html","width":130,"caption":"click for details","height":173});
															thumbnails[7639060] = clik.newPhoto({"id":7639060,"src":"BELL_1_thumb.jpg","galleries_id":414207,"server_id":18,"link":"photo_7639060.html","width":130,"caption":"Click for details","height":173});
															thumbnails[8570190] = clik.newPhoto({"id":8570190,"src":"100_1314_thumb.JPG","galleries_id":452995,"server_id":18,"link":"photo_8570190.html","width":130,"caption":"Click for details","height":173});
															thumbnails[8710639] = clik.newPhoto({"id":8710639,"src":"100_1329_thumb.jpg","galleries_id":458992,"server_id":18,"link":"photo_8710639.html","width":130,"caption":"Click for details","height":173});
															thumbnails[8746367] = clik.newPhoto({"id":8746367,"src":"100_1340_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746367.html","width":130,"caption":"Click for details","height":98});
															thumbnails[2398631] = clik.newPhoto({"id":2398631,"src":"lHPP0306403_thumb.jpg","galleries_id":155485,"server_id":18,"link":"photo_2398631.html","width":130,"caption":"","height":86});
															thumbnails[3539263] = clik.newPhoto({"id":3539263,"src":"1_1_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539263.html","width":130,"caption":"","height":173});
															thumbnails[3539269] = clik.newPhoto({"id":3539269,"src":"7_1_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539269.html","width":130,"caption":"","height":173});
															thumbnails[3849740] = clik.newPhoto({"id":3849740,"src":"100_1046_thumb.jpg","galleries_id":234243,"server_id":18,"link":"photo_3849740.html","width":130,"caption":"","height":98});
															thumbnails[5628906] = clik.newPhoto({"id":5628906,"src":"Frnt_Door_block_thumb.jpg","galleries_id":319114,"server_id":18,"link":"photo_5628906.html","width":130,"caption":"Click for details","height":98});
															thumbnails[7639117] = clik.newPhoto({"id":7639117,"src":"bell2_thumb.jpg","galleries_id":414207,"server_id":18,"link":"photo_7639117.html","width":130,"caption":"","height":98});
															thumbnails[8570196] = clik.newPhoto({"id":8570196,"src":"100_1315_thumb.JPG","galleries_id":452995,"server_id":18,"link":"photo_8570196.html","width":130,"caption":"","height":173});
															thumbnails[8700702] = clik.newPhoto({"id":8700702,"src":"100_1322_thumb.jpg","galleries_id":458992,"server_id":18,"link":"photo_8700702.html","width":130,"caption":"","height":98});
															thumbnails[8700722] = clik.newPhoto({"id":8700722,"src":"100_1321_thumb.jpg","galleries_id":458992,"server_id":18,"link":"photo_8700722.html","width":130,"caption":"","height":98});
															thumbnails[8746459] = clik.newPhoto({"id":8746459,"src":"100_1341_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746459.html","width":130,"caption":"","height":98});
															thumbnails[796028] = clik.newPhoto({"id":796028,"src":"se7_thumb.jpg","galleries_id":61823,"server_id":18,"link":"photo_796028.html","width":130,"caption":"click for details","height":98});
															thumbnails[2398690] = clik.newPhoto({"id":2398690,"src":"lHPP0306404_thumb.jpg","galleries_id":155485,"server_id":18,"link":"photo_2398690.html","width":130,"caption":"","height":86});
															thumbnails[3539264] = clik.newPhoto({"id":3539264,"src":"2_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539264.html","width":130,"caption":"","height":98});
															thumbnails[3849746] = clik.newPhoto({"id":3849746,"src":"100_1045_thumb.jpg","galleries_id":234243,"server_id":18,"link":"photo_3849746.html","width":130,"caption":"","height":98});
															thumbnails[5628901] = clik.newPhoto({"id":5628901,"src":"Bathroom1_thumb.jpg","galleries_id":319114,"server_id":18,"link":"photo_5628901.html","width":130,"caption":"","height":173});
															thumbnails[5628907] = clik.newPhoto({"id":5628907,"src":"Kit1_thumb.jpg","galleries_id":319114,"server_id":18,"link":"photo_5628907.html","width":130,"caption":"","height":173});
															thumbnails[7639130] = clik.newPhoto({"id":7639130,"src":"bell_3_thumb.jpg","galleries_id":414207,"server_id":18,"link":"photo_7639130.html","width":130,"caption":"","height":98});
															thumbnails[8700736] = clik.newPhoto({"id":8700736,"src":"100_1316_thumb.jpg","galleries_id":458992,"server_id":18,"link":"photo_8700736.html","width":130,"caption":"","height":173});
															thumbnails[8746485] = clik.newPhoto({"id":8746485,"src":"100_1342_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746485.html","width":130,"caption":"","height":98});
															thumbnails[2398682] = clik.newPhoto({"id":2398682,"src":"lHPP0306402_thumb.jpg","galleries_id":155485,"server_id":18,"link":"photo_2398682.html","width":130,"caption":"","height":86});
															thumbnails[3539265] = clik.newPhoto({"id":3539265,"src":"3_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539265.html","width":130,"caption":"","height":173});
															thumbnails[3849750] = clik.newPhoto({"id":3849750,"src":"100_1049_thumb.jpg","galleries_id":234243,"server_id":18,"link":"photo_3849750.html","width":130,"caption":"","height":98});
															thumbnails[5628908] = clik.newPhoto({"id":5628908,"src":"Kit2_thumb.jpg","galleries_id":319114,"server_id":18,"link":"photo_5628908.html","width":130,"caption":"","height":173});
															thumbnails[7639146] = clik.newPhoto({"id":7639146,"src":"bell_4_thumb.jpg","galleries_id":414207,"server_id":18,"link":"photo_7639146.html","width":130,"caption":"","height":98});
															thumbnails[8700737] = clik.newPhoto({"id":8700737,"src":"100_1318_thumb.jpg","galleries_id":458992,"server_id":18,"link":"photo_8700737.html","width":130,"caption":"","height":98});
															thumbnails[8746486] = clik.newPhoto({"id":8746486,"src":"100_1331_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746486.html","width":130,"caption":"","height":98});
															thumbnails[3849753] = clik.newPhoto({"id":3849753,"src":"100_1048_thumb.jpg","galleries_id":234243,"server_id":18,"link":"photo_3849753.html","width":130,"caption":"","height":173});
															thumbnails[5628902] = clik.newPhoto({"id":5628902,"src":"Ensuite1_thumb.jpg","galleries_id":319114,"server_id":18,"link":"photo_5628902.html","width":130,"caption":"","height":173});
															thumbnails[7639153] = clik.newPhoto({"id":7639153,"src":"bell_5_thumb.jpg","galleries_id":414207,"server_id":18,"link":"photo_7639153.html","width":130,"caption":"","height":98});
															thumbnails[8700739] = clik.newPhoto({"id":8700739,"src":"100_1324_thumb.jpg","galleries_id":458992,"server_id":18,"link":"photo_8700739.html","width":130,"caption":"","height":98});
															thumbnails[8746504] = clik.newPhoto({"id":8746504,"src":"100_1332_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746504.html","width":130,"caption":"","height":98});
															thumbnails[2398700] = clik.newPhoto({"id":2398700,"src":"lHPP0306406_thumb.jpg","galleries_id":155485,"server_id":18,"link":"photo_2398700.html","width":130,"caption":"","height":86});
															thumbnails[3539266] = clik.newPhoto({"id":3539266,"src":"4_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539266.html","width":130,"caption":"","height":173});
															thumbnails[3849759] = clik.newPhoto({"id":3849759,"src":"100_1053_thumb.jpg","galleries_id":234243,"server_id":18,"link":"photo_3849759.html","width":130,"caption":"","height":98});
															thumbnails[5628910] = clik.newPhoto({"id":5628910,"src":"Kit_3_thumb.jpg","galleries_id":319114,"server_id":18,"link":"photo_5628910.html","width":130,"caption":"","height":173});
															thumbnails[7639158] = clik.newPhoto({"id":7639158,"src":"bell_6_thumb.jpg","galleries_id":414207,"server_id":18,"link":"photo_7639158.html","width":130,"caption":"","height":98});
															thumbnails[8700740] = clik.newPhoto({"id":8700740,"src":"100_1325_thumb.jpg","galleries_id":458992,"server_id":18,"link":"photo_8700740.html","width":130,"caption":"","height":173});
															thumbnails[8746509] = clik.newPhoto({"id":8746509,"src":"100_1333_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746509.html","width":130,"caption":"","height":98});
															thumbnails[1049620] = clik.newPhoto({"id":1049620,"src":"7_thumb.jpg","galleries_id":77776,"server_id":18,"link":"photo_1049620.html","width":130,"caption":"","height":173});
															thumbnails[3539267] = clik.newPhoto({"id":3539267,"src":"5_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539267.html","width":130,"caption":"","height":98});
															thumbnails[5628911] = clik.newPhoto({"id":5628911,"src":"Liv_4_thumb.jpg","galleries_id":319114,"server_id":18,"link":"photo_5628911.html","width":130,"caption":"","height":98});
															thumbnails[8700741] = clik.newPhoto({"id":8700741,"src":"100_1323_thumb.jpg","galleries_id":458992,"server_id":18,"link":"photo_8700741.html","width":130,"caption":"","height":173});
															thumbnails[8746531] = clik.newPhoto({"id":8746531,"src":"100_1334_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746531.html","width":130,"caption":"","height":98});
															thumbnails[3539270] = clik.newPhoto({"id":3539270,"src":"8_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539270.html","width":130,"caption":"","height":173});
															thumbnails[5628912] = clik.newPhoto({"id":5628912,"src":"Mstr_Bed1_thumb.jpg","galleries_id":319114,"server_id":18,"link":"photo_5628912.html","width":130,"caption":"","height":98});
															thumbnails[8700742] = clik.newPhoto({"id":8700742,"src":"100_1327_thumb.jpg","galleries_id":458992,"server_id":18,"link":"photo_8700742.html","width":130,"caption":"","height":98});
															thumbnails[8746532] = clik.newPhoto({"id":8746532,"src":"100_1335_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746532.html","width":130,"caption":"","height":98});
															thumbnails[3539271] = clik.newPhoto({"id":3539271,"src":"9_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539271.html","width":130,"caption":"","height":173});
															thumbnails[5628913] = clik.newPhoto({"id":5628913,"src":"Mstr_Bed2_thumb.jpg","galleries_id":319114,"server_id":18,"link":"photo_5628913.html","width":130,"caption":"","height":173});
															thumbnails[8700746] = clik.newPhoto({"id":8700746,"src":"100_1328_thumb.jpg","galleries_id":458992,"server_id":18,"link":"photo_8700746.html","width":130,"caption":"","height":98});
															thumbnails[8710641] = clik.newPhoto({"id":8710641,"src":"100_1330_thumb.jpg","galleries_id":458992,"server_id":18,"link":"photo_8710641.html","width":130,"caption":"","height":173});
															thumbnails[8746533] = clik.newPhoto({"id":8746533,"src":"100_1336_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746533.html","width":130,"caption":"","height":98});
															thumbnails[3539272] = clik.newPhoto({"id":3539272,"src":"10_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539272.html","width":130,"caption":"","height":98});
															thumbnails[8746534] = clik.newPhoto({"id":8746534,"src":"100_1337_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746534.html","width":130,"caption":"","height":98});
															thumbnails[3539274] = clik.newPhoto({"id":3539274,"src":"11_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539274.html","width":130,"caption":"","height":98});
															thumbnails[8746537] = clik.newPhoto({"id":8746537,"src":"100_1338_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746537.html","width":130,"caption":"","height":98});
															thumbnails[1049628] = clik.newPhoto({"id":1049628,"src":"12_thumb.jpg","galleries_id":77776,"server_id":18,"link":"photo_1049628.html","width":130,"caption":"","height":173});
															thumbnails[3539277] = clik.newPhoto({"id":3539277,"src":"12_1_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539277.html","width":130,"caption":"","height":98});
															thumbnails[8746539] = clik.newPhoto({"id":8746539,"src":"100_1339_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746539.html","width":130,"caption":"","height":98});
															thumbnails[3539281] = clik.newPhoto({"id":3539281,"src":"13_thumb.jpg","galleries_id":216665,"server_id":18,"link":"photo_3539281.html","width":130,"caption":"","height":173});
															thumbnails[8746573] = clik.newPhoto({"id":8746573,"src":"100_1343_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746573.html","width":130,"caption":"","height":98});
															thumbnails[8746628] = clik.newPhoto({"id":8746628,"src":"100_1344_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746628.html","width":130,"caption":"","height":98});
															thumbnails[8746713] = clik.newPhoto({"id":8746713,"src":"100_1345_thumb.jpg","galleries_id":460797,"server_id":18,"link":"photo_8746713.html","width":130,"caption":"","height":98});
															thumbnails[1049631] = clik.newPhoto({"id":1049631,"src":"15_thumb.jpg","galleries_id":77776,"server_id":18,"link":"photo_1049631.html","width":130,"caption":"","height":98});
															thumbnails[796018] = clik.newPhoto({"id":796018,"src":"se3_thumb.jpg","galleries_id":61823,"server_id":18,"link":"photo_796018.html","width":130,"caption":"","height":173});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[473912] = clik.newGallery({"parentGallery":24332,"usePopups":false,"title":"Southmoor Road, Hemsworth SORRY, LET AGREED!","link":"gallery_473912.html","maxRecords":0.0,"photoIDs":[8998189.0,8998288.0,8998327.0,8998336.0,8998372.0,8998383.0,8998390.0,8998395.0,8998412.0,8998422.0,8998431.0,8998440.0,8998445.0],"skipIndex":0,"section_code":"gallery","featured_images":"8998445,8998440,8998431,8998422,8998412,8998395,8998390,8998383,8998372,8998336","id":473912,"singleSection":false});				  						galleries[452995] = clik.newGallery({"parentGallery":20926,"usePopups":false,"title":"Wesley St, South Elmsall £400 pcm ","link":"gallery_452995.html","maxRecords":0.0,"photoIDs":[8570190.0,8570196.0],"skipIndex":0,"section_code":"gallery","featured_images":"8570196,8570190","id":452995,"singleSection":false});				  						galleries[110223] = clik.newGallery({"parentGallery":20926,"usePopups":false,"title":"Ashleigh Avenue, Pontefract SORRY, LET AGREED!","link":"gallery_110223.html","maxRecords":0.0,"photoIDs":[1625960.0,1625969.0,1625972.0],"skipIndex":0,"section_code":"gallery","featured_images":"1625972,1625969,1625960","id":110223,"singleSection":false});				  						galleries[414207] = clik.newGallery({"parentGallery":20926,"usePopups":false,"title":"Bell Street, Upton SORRY, LET AGREED!","link":"gallery_414207.html","maxRecords":0.0,"photoIDs":[7639060.0,7639117.0,7639130.0,7639146.0,7639153.0,7639158.0],"skipIndex":0,"section_code":"gallery","featured_images":"7639158,7639153,7639146,7639130,7639117,7639060","id":414207,"singleSection":false});				  						galleries[77776] = clik.newGallery({"parentGallery":20704,"usePopups":false,"title":"Clayton Avenue, Upton SORRY LET AGREED!","link":"gallery_77776.html","maxRecords":0.0,"photoIDs":[1049603.0,1049620.0,1049628.0,1049631.0],"skipIndex":0,"section_code":"gallery","featured_images":"1049631,1049628,1049620,1049603","id":77776,"singleSection":false});				  						galleries[319114] = clik.newGallery({"parentGallery":24332,"usePopups":false,"title":"Conisborough Way, Hemsworth, SORRY LET AGREED!","link":"gallery_319114.html","maxRecords":0.0,"photoIDs":[5628906.0,5628901.0,5628907.0,5628908.0,5628902.0,5628910.0,5628911.0,5628912.0,5628913.0],"skipIndex":0,"section_code":"gallery","featured_images":"5628913,5628912,5628911,5628910,5628908,5628907,5628906,5628902,5628901","id":319114,"singleSection":false});				  						galleries[190597] = clik.newGallery({"parentGallery":24332,"usePopups":false,"title":"Empire House, South Elmsall SORRY, LET AGREED!","link":"gallery_190597.html","maxRecords":0.0,"photoIDs":[3105930.0,3105931.0,3105932.0,3105935.0],"skipIndex":0,"section_code":"gallery","featured_images":3105930.0,"id":190597,"singleSection":false});				  						galleries[117403] = clik.newGallery({"parentGallery":20704,"usePopups":false,"title":"Glebe Street, Castleford SORRY, LET AGREED!","link":"gallery_117403.html","maxRecords":0.0,"photoIDs":[1764466.0,1764476.0,1764480.0,1764488.0,1764491.0],"skipIndex":0,"section_code":"gallery","featured_images":"1764491,1764488,1764480,1764476,1764466","id":117403,"singleSection":false});				  						galleries[155485] = clik.newGallery({"parentGallery":20926,"usePopups":false,"title":"Hall Court, Brotherton SORRY, LET AGREED!","link":"gallery_155485.html","maxRecords":0.0,"photoIDs":[2398693.0,2398631.0,2398690.0,2398682.0,2398700.0],"skipIndex":0,"section_code":"gallery","featured_images":"2398700,2398693,2398690,2398682,2398631","id":155485,"singleSection":false});				  						galleries[172952] = clik.newGallery({"parentGallery":20926,"usePopups":false,"title":"Harrow Street, South Elmsall SORRY, LET AGREED!","link":"gallery_172952.html","maxRecords":0.0,"photoIDs":[7647399.0],"skipIndex":0,"section_code":"gallery","featured_images":7647399.0,"id":172952,"singleSection":false});				  						galleries[61823] = clik.newGallery({"parentGallery":24332,"usePopups":false,"title":"Mallard Mews, South Elmsall SORRY, LET AGREED!","link":"gallery_61823.html","maxRecords":0.0,"photoIDs":[796028.0,796018.0],"skipIndex":0,"section_code":"gallery","featured_images":"796028,796018","id":61823,"singleSection":false});				  						galleries[105828] = clik.newGallery({"parentGallery":20926,"usePopups":false,"title":"Northfield Grange, South Kirkby SORRY, LET AGREED!","link":"gallery_105828.html","maxRecords":0.0,"photoIDs":[1581708.0],"skipIndex":0,"section_code":"gallery","featured_images":1581708.0,"id":105828,"singleSection":false});				  						galleries[458992] = clik.newGallery({"parentGallery":20704,"usePopups":false,"title":"Old Mill Close, Hemsworth SORRY, LET AGREED!","link":"gallery_458992.html","maxRecords":0.0,"photoIDs":[8710639.0,8700702.0,8700722.0,8700736.0,8700737.0,8700739.0,8700740.0,8700741.0,8700742.0,8700746.0,8710641.0],"skipIndex":0,"section_code":"gallery","featured_images":"8710641,8710639,8700746,8700742,8700741,8700740,8700739,8700737,8700736,8700722","id":458992,"singleSection":false});				  						galleries[216665] = clik.newGallery({"parentGallery":24332,"usePopups":false,"title":"Park View Apts, South Kirkby SORRY, LET STC","link":"gallery_216665.html","maxRecords":0.0,"photoIDs":[3539268.0,3539263.0,3539269.0,3539264.0,3539265.0,3539266.0,3539267.0,3539270.0,3539271.0,3539272.0,3539274.0,3539277.0,3539281.0],"skipIndex":0,"section_code":"gallery","featured_images":3539268.0,"id":216665,"singleSection":false});				  						galleries[234243] = clik.newGallery({"parentGallery":20926,"usePopups":false,"title":"Pontefract Road, Featherstone SORRY, LET AGREED!","link":"gallery_234243.html","maxRecords":0.0,"photoIDs":[3849737.0,3849740.0,3849746.0,3849750.0,3849753.0,3849759.0],"skipIndex":0,"section_code":"gallery","featured_images":"3849759,3849753,3849750,3849746,3849740,3849737","id":234243,"singleSection":false});				  						galleries[460797] = clik.newGallery({"parentGallery":20704,"usePopups":false,"title":"Stockingate, South Kirkby SORRY, LET AGREED!","link":"gallery_460797.html","maxRecords":0.0,"photoIDs":[8746367.0,8746459.0,8746485.0,8746486.0,8746504.0,8746509.0,8746531.0,8746532.0,8746533.0,8746534.0,8746537.0,8746539.0,8746573.0,8746628.0,8746713.0],"skipIndex":0,"section_code":"gallery","featured_images":"8746713,8746628,8746573,8746539,8746537,8746534,8746533,8746532,8746531,8746509","id":460797,"singleSection":false});				  						galleries[97260] = clik.newGallery({"parentGallery":20704,"usePopups":false,"title":"Victoria Crescent West, Barnsley SORRY, LET AGREED","link":"gallery_97260.html","maxRecords":0.0,"photoIDs":[1414103.0,1414106.0,1414110.0],"skipIndex":0,"section_code":"gallery","featured_images":"1414110,1414106,1414103","id":97260,"singleSection":false});				  						galleries[24332] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Apartments\/Flats","link":"gallery_24332.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"3539268,3105930","id":24332,"singleSection":false});				  						galleries[20704] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2 Bed Houses","link":"gallery_20704.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8746713,8746628,8746573,8746539,8746537,8746534,8746533,8746532,8746531,8746509","id":20704,"singleSection":false});				  						galleries[20926] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"3 Bed Houses","link":"gallery_20926.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8570196,8570190,7647399,7639158,7639153,7639146,7639130,7639117,7639060,3849759","id":20926,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[243619] = '8145224';
imageSets[243614] = '8144893';
imageSets[1] = '387793';
imageSets[2] = '3105930,3539268';
imageSets[3] = '3539268';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/simwilko/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/simwilko/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/simwilko/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/simwilko/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/simwilko/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/simwilko/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/simwilko/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/simwilko/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 += '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 = 'WILKINSON PROPERTY MANAGEMENT: ' + 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;
	}
}

			

