window.thumbnails = {};
															thumbnails[9057592] = clik.newPhoto({"id":9057592,"src":"11_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9057592.html","width":260,"caption":"BMW Car Magazine Feb 2012 Front Cover Photo","height":343});
															thumbnails[9028798] = clik.newPhoto({"id":9028798,"src":"003_thumb_7DB2BC95-1EC9-D45B-1C56DE2120443AC8.jpg","galleries_id":475489,"server_id":15,"link":"photo_9028798.html","width":260,"caption":"Outdoor Australia Magazine front cover","height":347});
															thumbnails[9018606] = clik.newPhoto({"id":9018606,"src":"0033_thumb.jpg","galleries_id":353728,"server_id":15,"link":"photo_9018606.html","width":260,"caption":"","height":390});
															thumbnails[9018688] = clik.newPhoto({"id":9018688,"src":"0040_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9018688.html","width":260,"caption":"","height":173});
															thumbnails[9018828] = clik.newPhoto({"id":9018828,"src":"0064_thumb.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018828.html","width":260,"caption":"","height":173});
															thumbnails[9018833] = clik.newPhoto({"id":9018833,"src":"0065_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018833.html","width":260,"caption":"","height":173});
															thumbnails[9033830] = clik.newPhoto({"id":9033830,"src":"2_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9033830.html","width":260,"caption":"Australian Classic Car Magazine front cover","height":343});
															thumbnails[9034728] = clik.newPhoto({"id":9034728,"src":"IMG_6542_thumb.JPG","galleries_id":475446,"server_id":15,"link":"photo_9034728.html","width":260,"caption":"","height":390});
															thumbnails[9057631] = clik.newPhoto({"id":9057631,"src":"4_DPS_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9057631.html","width":260,"caption":"GT Porsche magazine, 1978 Porsche 911 SC article","height":172});
															thumbnails[9057636] = clik.newPhoto({"id":9057636,"src":"5_DPS_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9057636.html","width":260,"caption":"Caravan World Magazine, Western Australia travel article","height":180});
															thumbnails[9057641] = clik.newPhoto({"id":9057641,"src":"6_DPS_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9057641.html","width":260,"caption":"BMW Car magazine Z4 v bike twin test photo feature","height":174});
															thumbnails[9018409] = clik.newPhoto({"id":9018409,"src":"0011_thumb.jpg","galleries_id":353728,"server_id":15,"link":"photo_9018409.html","width":260,"caption":"","height":391});
															thumbnails[9018517] = clik.newPhoto({"id":9018517,"src":"0017_thumb.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018517.html","width":260,"caption":"","height":174});
															thumbnails[9018618] = clik.newPhoto({"id":9018618,"src":"0034_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9018618.html","width":260,"caption":"","height":173});
															thumbnails[9018660] = clik.newPhoto({"id":9018660,"src":"0037_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018660.html","width":260,"caption":"","height":173});
															thumbnails[9018728] = clik.newPhoto({"id":9018728,"src":"0045_thumb_7DA7BF4C-1EC9-D45B-1C4E54AC7D756A32.jpg","galleries_id":475446,"server_id":15,"link":"photo_9018728.html","width":260,"caption":"","height":390});
															thumbnails[9057609] = clik.newPhoto({"id":9057609,"src":"1_1_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9057609.html","width":260,"caption":"Caravan World Magazine front cover photo","height":360});
															thumbnails[9057625] = clik.newPhoto({"id":9057625,"src":"3_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9057625.html","width":260,"caption":"Australian Classic Car Magazine, Triumph TR3a front cover photo","height":343});
															thumbnails[9018505] = clik.newPhoto({"id":9018505,"src":"0016_thumb_7DACDB67-1EC9-D45B-1C1FA10E4ED6BF50.jpg","galleries_id":475446,"server_id":15,"link":"photo_9018505.html","width":260,"caption":"","height":390});
															thumbnails[9018527] = clik.newPhoto({"id":9018527,"src":"0018_thumb.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018527.html","width":260,"caption":"","height":174});
															thumbnails[9018596] = clik.newPhoto({"id":9018596,"src":"00301_thumb.jpg","galleries_id":353728,"server_id":15,"link":"photo_9018596.html","width":260,"caption":"","height":390});
															thumbnails[9018747] = clik.newPhoto({"id":9018747,"src":"0047_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9018747.html","width":260,"caption":"","height":173});
															thumbnails[9028705] = clik.newPhoto({"id":9028705,"src":"_MG_0033_1_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9028705.html","width":260,"caption":"","height":173});
															thumbnails[9030926] = clik.newPhoto({"id":9030926,"src":"SAVE0006_thumb_7D7C72B6-1EC9-D45B-1C2B5B43EBE4DECA.jpg","galleries_id":475489,"server_id":15,"link":"photo_9030926.html","width":260,"caption":"Camper Trailer Australia Magazine front cover","height":347});
															thumbnails[9033619] = clik.newPhoto({"id":9033619,"src":"T04_Rex911_Page_1sm_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9033619.html","width":260,"caption":"Tarmac Magazine Porsche 911 article","height":186});
															thumbnails[9057806] = clik.newPhoto({"id":9057806,"src":"12_DPS_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9057806.html","width":260,"caption":"BMW Car Magazine article, 1 Series Active E electric car","height":174});
															thumbnails[9057645] = clik.newPhoto({"id":9057645,"src":"7_DPS_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9057645.html","width":260,"caption":"Tarmac Magazine, words & photography article on BMW 2002 racer","height":182});
															thumbnails[9018679] = clik.newPhoto({"id":9018679,"src":"0039_thumb.jpg","galleries_id":475446,"server_id":15,"link":"photo_9018679.html","width":260,"caption":"","height":173});
															thumbnails[9018776] = clik.newPhoto({"id":9018776,"src":"0051_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9018776.html","width":260,"caption":"","height":173});
															thumbnails[9018823] = clik.newPhoto({"id":9018823,"src":"0063_thumb.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018823.html","width":260,"caption":"","height":173});
															thumbnails[9028848] = clik.newPhoto({"id":9028848,"src":"cover_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9028848.html","width":260,"caption":"","height":173});
															thumbnails[9030887] = clik.newPhoto({"id":9030887,"src":"_MG_8426_thumb_7C3A8B5B-1EC9-D45B-1C42796F6D07B8C4.jpg","galleries_id":353728,"server_id":15,"link":"photo_9030887.html","width":260,"caption":"","height":389});
															thumbnails[9057654] = clik.newPhoto({"id":9057654,"src":"9_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9057654.html","width":260,"caption":"HSV GTS First Drive article, Performance Car Magazine","height":355});
															thumbnails[9033615] = clik.newPhoto({"id":9033615,"src":"porsche356a_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9033615.html","width":260,"caption":"GT Porsche Magazine Poster","height":352});
															thumbnails[9057657] = clik.newPhoto({"id":9057657,"src":"10_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9057657.html","width":260,"caption":"GT Porsche Magazine, 1968 Porsche 911E SWB words & photo article","height":347});
															thumbnails[9018572] = clik.newPhoto({"id":9018572,"src":"0024_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018572.html","width":260,"caption":"","height":173});
															thumbnails[9018573] = clik.newPhoto({"id":9018573,"src":"0025_thumb.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018573.html","width":260,"caption":"","height":173});
															thumbnails[9018705] = clik.newPhoto({"id":9018705,"src":"0042_thumb.jpg","galleries_id":353728,"server_id":15,"link":"photo_9018705.html","width":260,"caption":"","height":390});
															thumbnails[9028822] = clik.newPhoto({"id":9028822,"src":"IMG_7406_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9028822.html","width":260,"caption":"","height":173});
															thumbnails[9030915] = clik.newPhoto({"id":9030915,"src":"IMG_4141_thumb.jpg","galleries_id":475446,"server_id":15,"link":"photo_9030915.html","width":260,"caption":"","height":173});
															thumbnails[9033794] = clik.newPhoto({"id":9033794,"src":"fpv_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9033794.html","width":260,"caption":" Ford FPV GT review, Sunshine Coast Daily Newspaper","height":353});
															thumbnails[9018317] = clik.newPhoto({"id":9018317,"src":"0001_thumb.jpg","galleries_id":475446,"server_id":15,"link":"photo_9018317.html","width":260,"caption":"","height":173});
															thumbnails[9018382] = clik.newPhoto({"id":9018382,"src":"0009_thumb.jpg","galleries_id":353728,"server_id":15,"link":"photo_9018382.html","width":260,"caption":"","height":391});
															thumbnails[9018799] = clik.newPhoto({"id":9018799,"src":"0058_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018799.html","width":260,"caption":"","height":173});
															thumbnails[9028781] = clik.newPhoto({"id":9028781,"src":"_MG_9429_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9028781.html","width":260,"caption":"","height":173});
															thumbnails[9030861] = clik.newPhoto({"id":9030861,"src":"_MG_0177_thumb.jpg","galleries_id":353729,"server_id":15,"link":"photo_9030861.html","width":260,"caption":"","height":173});
															thumbnails[9033801] = clik.newPhoto({"id":9033801,"src":"rangie_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9033801.html","width":260,"caption":"Range Rover Sport review, Sunshine Coast Daily Newspaper","height":358});
															thumbnails[9018839] = clik.newPhoto({"id":9018839,"src":"0066_thumb.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018839.html","width":260,"caption":"","height":173});
															thumbnails[9030905] = clik.newPhoto({"id":9030905,"src":"IMG_0074copy_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9030905.html","width":260,"caption":"","height":173});
															thumbnails[9030909] = clik.newPhoto({"id":9030909,"src":"IMG_3400___thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9030909.html","width":260,"caption":"","height":173});
															thumbnails[9032164] = clik.newPhoto({"id":9032164,"src":"pelebw_thumb.jpg","galleries_id":353728,"server_id":15,"link":"photo_9032164.html","width":260,"caption":"","height":391});
															thumbnails[9033792] = clik.newPhoto({"id":9033792,"src":"fj_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9033792.html","width":260,"caption":"Toyota FJ Cruiser review, Sunshine Coast Daily Newspaper","height":355});
															thumbnails[9057893] = clik.newPhoto({"id":9057893,"src":"_MG_5526sm_thumb.jpg","galleries_id":475446,"server_id":15,"link":"photo_9057893.html","width":260,"caption":"","height":390});
															thumbnails[9030883] = clik.newPhoto({"id":9030883,"src":"_MG_5159_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9030883.html","width":260,"caption":"","height":173});
															thumbnails[9018584] = clik.newPhoto({"id":9018584,"src":"0029_thumb.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018584.html","width":260,"caption":"","height":173});
															thumbnails[9018696] = clik.newPhoto({"id":9018696,"src":"0041_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9018696.html","width":260,"caption":"","height":173});
															thumbnails[9018793] = clik.newPhoto({"id":9018793,"src":"0057_thumb.jpg","galleries_id":475446,"server_id":15,"link":"photo_9018793.html","width":260,"caption":"","height":390});
															thumbnails[9021906] = clik.newPhoto({"id":9021906,"src":"_MG_4479_thumb.jpg","galleries_id":353728,"server_id":15,"link":"photo_9021906.html","width":260,"caption":"","height":389});
															thumbnails[9028729] = clik.newPhoto({"id":9028729,"src":"_MG_4269_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9028729.html","width":260,"caption":"","height":173});
															thumbnails[9033798] = clik.newPhoto({"id":9033798,"src":"Megane_A0DECEEB-1EC9-DFB6-09698C662DD21370_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9033798.html","width":260,"caption":"Renault Megane RS250 review, Sunshine Coast Daily Newspaper","height":368});
															thumbnails[9018789] = clik.newPhoto({"id":9018789,"src":"0056_thumb.jpg","galleries_id":353728,"server_id":15,"link":"photo_9018789.html","width":260,"caption":"","height":391});
															thumbnails[9018814] = clik.newPhoto({"id":9018814,"src":"0062_thumb.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018814.html","width":260,"caption":"","height":172});
															thumbnails[9030907] = clik.newPhoto({"id":9030907,"src":"IMG_2365_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9030907.html","width":260,"caption":"","height":173});
															thumbnails[9033790] = clik.newPhoto({"id":9033790,"src":"991_911_Auto_Express_PM_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9033790.html","width":260,"caption":"Auto Express Porsche 911 launch online article","height":391});
															thumbnails[9018346] = clik.newPhoto({"id":9018346,"src":"0006_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018346.html","width":260,"caption":"","height":173});
															thumbnails[9018553] = clik.newPhoto({"id":9018553,"src":"0022_thumb.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018553.html","width":260,"caption":"","height":173});
															thumbnails[9028721] = clik.newPhoto({"id":9028721,"src":"_MG_2771_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9028721.html","width":260,"caption":"","height":173});
															thumbnails[9030866] = clik.newPhoto({"id":9030866,"src":"_MG_0187_thumb_7D77FCF0-1EC9-D45B-1C35C0B0483ADA49.jpg","galleries_id":475446,"server_id":15,"link":"photo_9030866.html","width":260,"caption":"","height":389});
															thumbnails[9030871] = clik.newPhoto({"id":9030871,"src":"_MG_0803_thumb.jpg","galleries_id":353728,"server_id":15,"link":"photo_9030871.html","width":260,"caption":"","height":173});
															thumbnails[9018369] = clik.newPhoto({"id":9018369,"src":"0008_thumb.jpg","galleries_id":353728,"server_id":15,"link":"photo_9018369.html","width":260,"caption":"","height":173});
															thumbnails[9018600] = clik.newPhoto({"id":9018600,"src":"0031_thumb.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018600.html","width":260,"caption":"","height":173});
															thumbnails[9034258] = clik.newPhoto({"id":9034258,"src":"_MG_7267_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9034258.html","width":260,"caption":"","height":173});
															thumbnails[9034239] = clik.newPhoto({"id":9034239,"src":"IMG_5763_thumb.jpg","galleries_id":353729,"server_id":15,"link":"photo_9034239.html","width":260,"caption":"","height":173});
															thumbnails[9018328] = clik.newPhoto({"id":9018328,"src":"0002_thumb_7D910ACB-1EC9-D45B-1C83A29A7B422489.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018328.html","width":260,"caption":"","height":390});
															thumbnails[9018779] = clik.newPhoto({"id":9018779,"src":"0052_thumb.jpg","galleries_id":353728,"server_id":15,"link":"photo_9018779.html","width":260,"caption":"","height":173});
															thumbnails[9018787] = clik.newPhoto({"id":9018787,"src":"0055_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9018787.html","width":260,"caption":"","height":173});
															thumbnails[9028716] = clik.newPhoto({"id":9028716,"src":"_MG_0576_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9028716.html","width":260,"caption":"","height":173});
															thumbnails[9018329] = clik.newPhoto({"id":9018329,"src":"0003_thumb_7D973D20-1EC9-D45B-1C8A3CC2234BB292.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018329.html","width":260,"caption":"","height":390});
															thumbnails[9018720] = clik.newPhoto({"id":9018720,"src":"0044_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018720.html","width":260,"caption":"","height":174});
															thumbnails[9028828] = clik.newPhoto({"id":9028828,"src":"tr3a_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9028828.html","width":260,"caption":"","height":173});
															thumbnails[9018759] = clik.newPhoto({"id":9018759,"src":"0048_thumb_7DA1F98C-1EC9-D45B-1C5DFED81CE13C82.jpg","galleries_id":353729,"server_id":15,"link":"photo_9018759.html","width":260,"caption":"","height":390});
															thumbnails[9028711] = clik.newPhoto({"id":9028711,"src":"_MG_0052_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9028711.html","width":260,"caption":"","height":173});
															thumbnails[9030917] = clik.newPhoto({"id":9030917,"src":"IMG_5437_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9030917.html","width":260,"caption":"","height":173});
															thumbnails[9030904] = clik.newPhoto({"id":9030904,"src":"DPP_0001_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9030904.html","width":260,"caption":"","height":173});
															thumbnails[9057860] = clik.newPhoto({"id":9057860,"src":"EDE_16-07-2011_023_thumb.jpg","galleries_id":475489,"server_id":15,"link":"photo_9057860.html","width":260,"caption":"Holden Captiva Road Test, Daily Examiner Newspaper","height":368});
															thumbnails[9018767] = clik.newPhoto({"id":9018767,"src":"0049_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018767.html","width":260,"caption":"","height":173});
															thumbnails[9028806] = clik.newPhoto({"id":9028806,"src":"IMG_7069_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9028806.html","width":260,"caption":"","height":173});
															thumbnails[9018542] = clik.newPhoto({"id":9018542,"src":"0021_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018542.html","width":260,"caption":"","height":173});
															thumbnails[9018712] = clik.newPhoto({"id":9018712,"src":"0043_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9018712.html","width":260,"caption":"","height":173});
															thumbnails[9018579] = clik.newPhoto({"id":9018579,"src":"0027_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018579.html","width":260,"caption":"","height":173});
															thumbnails[9018536] = clik.newPhoto({"id":9018536,"src":"0020_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018536.html","width":260,"caption":"","height":173});
															thumbnails[9030882] = clik.newPhoto({"id":9030882,"src":"_MG_4925_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9030882.html","width":260,"caption":"","height":173});
															thumbnails[9030886] = clik.newPhoto({"id":9030886,"src":"_MG_5177_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9030886.html","width":260,"caption":"","height":173});
															thumbnails[9030902] = clik.newPhoto({"id":9030902,"src":"Alonso1_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9030902.html","width":260,"caption":"","height":173});
															thumbnails[9028713] = clik.newPhoto({"id":9028713,"src":"_MG_0445_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9028713.html","width":260,"caption":"","height":173});
															thumbnails[9028803] = clik.newPhoto({"id":9028803,"src":"corvette_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9028803.html","width":260,"caption":"","height":173});
															thumbnails[9034149] = clik.newPhoto({"id":9034149,"src":"IMG_9297_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9034149.html","width":260,"caption":"","height":173});
															thumbnails[9028772] = clik.newPhoto({"id":9028772,"src":"_MG_8945_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9028772.html","width":260,"caption":"","height":173});
															thumbnails[9028825] = clik.newPhoto({"id":9028825,"src":"megane_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9028825.html","width":260,"caption":"","height":173});
															thumbnails[9018644] = clik.newPhoto({"id":9018644,"src":"0036_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9018644.html","width":260,"caption":"","height":173});
															thumbnails[9018802] = clik.newPhoto({"id":9018802,"src":"0059_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018802.html","width":260,"caption":"","height":173});
															thumbnails[9018736] = clik.newPhoto({"id":9018736,"src":"0046_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018736.html","width":260,"caption":"","height":173});
															thumbnails[9018330] = clik.newPhoto({"id":9018330,"src":"0004_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9018330.html","width":260,"caption":"","height":173});
															thumbnails[9018562] = clik.newPhoto({"id":9018562,"src":"0023_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018562.html","width":260,"caption":"","height":173});
															thumbnails[9033940] = clik.newPhoto({"id":9033940,"src":"q5vibrant_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9033940.html","width":260,"caption":"","height":173});
															thumbnails[9018331] = clik.newPhoto({"id":9018331,"src":"0005_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018331.html","width":260,"caption":"","height":173});
															thumbnails[9030872] = clik.newPhoto({"id":9030872,"src":"_MG_3424_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9030872.html","width":260,"caption":"","height":173});
															thumbnails[9018441] = clik.newPhoto({"id":9018441,"src":"0013_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018441.html","width":260,"caption":"","height":173});
															thumbnails[9018782] = clik.newPhoto({"id":9018782,"src":"0053_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9018782.html","width":260,"caption":"","height":173});
															thumbnails[9034311] = clik.newPhoto({"id":9034311,"src":"IMG_25421_thumb.jpg","galleries_id":353725,"server_id":15,"link":"photo_9034311.html","width":260,"caption":"","height":390});
															thumbnails[9028755] = clik.newPhoto({"id":9028755,"src":"_MG_5070_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9028755.html","width":260,"caption":"","height":173});
															thumbnails[9028787] = clik.newPhoto({"id":9028787,"src":"002_thumb_7D8C18FA-1EC9-D45B-1CDAA8FE84031CDE.jpg","galleries_id":353725,"server_id":15,"link":"photo_9028787.html","width":260,"caption":"","height":391});
															thumbnails[9018771] = clik.newPhoto({"id":9018771,"src":"0050_thumb_7D86B3A2-1EC9-D45B-1CA22466407E5DF0.jpg","galleries_id":353725,"server_id":15,"link":"photo_9018771.html","width":260,"caption":"","height":390});
															thumbnails[9030908] = clik.newPhoto({"id":9030908,"src":"IMG_3066ed2_thumb.jpg","galleries_id":353724,"server_id":15,"link":"photo_9030908.html","width":260,"caption":"","height":173});
															thumbnails[9031232] = clik.newPhoto({"id":9031232,"src":"_MG_9570_thumb_7E103FFA-1EC9-D45B-1C3526C1ABA36D68.jpg","galleries_id":353724,"server_id":15,"link":"photo_9031232.html","width":260,"caption":"","height":390});
															thumbnails[9030899] = clik.newPhoto({"id":9030899,"src":"_MG_9829_thumb_7D728C7B-1EC9-D45B-1C6B63FC24BF28CB.jpg","galleries_id":353724,"server_id":15,"link":"photo_9030899.html","width":260,"caption":"","height":390});
															thumbnails[9030897] = clik.newPhoto({"id":9030897,"src":"_MG_9643_thumb_7D38CE81-1EC9-D45B-1C59DEB9CCC0A719.jpg","galleries_id":353724,"server_id":15,"link":"photo_9030897.html","width":260,"caption":"","height":390});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[353724] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Automotive","link":"gallery_353724.html","maxRecords":0.0,"photoIDs":[9018688.0,9018618.0,9018747.0,9018776.0,9028822.0,9028781.0,9030909.0,9030883.0,9018696.0,9028721.0,9018787.0,9028828.0,9030917.0,9028806.0,9018712.0,9030882.0,9030886.0,9028803.0,9034149.0,9028825.0,9018644.0,9018330.0,9033940.0,9030872.0,9018782.0,9028755.0,9030908.0,9031232.0,9030899.0,9030897.0],"skipIndex":0,"section_code":"gallery","featured_images":9018688.0,"id":353724,"singleSection":false});				  						galleries[353729] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Travel & Landscapes","link":"gallery_353729.html","maxRecords":0.0,"photoIDs":[9018828.0,9018517.0,9018527.0,9018823.0,9018573.0,9030861.0,9018839.0,9018584.0,9018814.0,9018553.0,9018600.0,9034239.0,9018328.0,9018329.0,9018759.0],"skipIndex":0,"section_code":"gallery","featured_images":9018828.0,"id":353729,"singleSection":false});				  						galleries[353725] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Motor Sport","link":"gallery_353725.html","maxRecords":0.0,"photoIDs":[9018833.0,9018660.0,9028705.0,9028848.0,9018572.0,9018799.0,9030905.0,9028729.0,9030907.0,9018346.0,9034258.0,9028716.0,9018720.0,9028711.0,9030904.0,9018767.0,9018542.0,9018579.0,9018536.0,9030902.0,9028713.0,9028772.0,9018802.0,9018736.0,9018562.0,9018331.0,9018441.0,9034311.0,9028787.0,9018771.0],"skipIndex":0,"section_code":"gallery","featured_images":9030907.0,"id":353725,"singleSection":false});				  						galleries[475446] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Sport","link":"gallery_475446.html","maxRecords":0.0,"photoIDs":[9034728.0,9018728.0,9018505.0,9018679.0,9030915.0,9018317.0,9057893.0,9018793.0,9030866.0],"skipIndex":0,"section_code":"gallery","featured_images":9018679.0,"id":475446,"singleSection":false});				  						galleries[353728] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"People","link":"gallery_353728.html","maxRecords":0.0,"photoIDs":[9018606.0,9018409.0,9018596.0,9030887.0,9018705.0,9018382.0,9032164.0,9021906.0,9018789.0,9030871.0,9018369.0,9018779.0],"skipIndex":0,"section_code":"gallery","featured_images":9018369.0,"id":353728,"singleSection":false});				  						galleries[475489] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Published Work","link":"gallery_475489.html","maxRecords":0.0,"photoIDs":[9057592.0,9028798.0,9033830.0,9057631.0,9057636.0,9057641.0,9057609.0,9057625.0,9030926.0,9033619.0,9057806.0,9057645.0,9057654.0,9033615.0,9057657.0,9033794.0,9033801.0,9033792.0,9033798.0,9033790.0,9057860.0],"skipIndex":0,"section_code":"gallery","featured_images":9033619.0,"id":475489,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9028848';
imageSets[2] = '9018828,9018688,9033619,9018679,9030907,9018369';
imageSets[3] = '9057893,9057860,9057806,9057657,9057654,9057645,9057641,9057636,9057631,9057625,9057609,9057592,9034728,9034311,9034258,9034239,9034149,9033940,9033830,9033801,9033798,9033794,9033792,9033790,9033619,9033615,9032164,9031232,9030926,9030917,9030915,9030909,9030908,9030907,9030905,9030904,9030902,9030899,9030897,9030887,9030886,9030883,9030882,9030872,9030871,9030866,9030861,9028848,9028828,9028825';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Avaiain/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Avaiain/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 = 'IAIN CURRY PHOTOGRAPHY & WRITING: ' + 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> &pound;' + (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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="iaincurry@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="iaincurry@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

