window.thumbnails = {};
															thumbnails[1634292] = clik.newPhoto({"id":1634292,"src":"CIS_SCHOOLS_CUP_17_thumb.jpg","galleries_id":48932,"server_id":1,"link":"photo_1634292.html","width":130,"caption":"CIS Insurance","height":195});
															thumbnails[1639822] = clik.newPhoto({"id":1639822,"src":"8K1U5400_thumb.jpg","galleries_id":48932,"server_id":1,"link":"photo_1639822.html","width":130,"caption":"Brechin Tindal Oatts","height":76});
															thumbnails[1702287] = clik.newPhoto({"id":1702287,"src":"RS_RANGERS_FEATURE_9_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_1702287.html","width":130,"caption":"Stevie Naismith - Rangers Fc","height":179});
															thumbnails[2351775] = clik.newPhoto({"id":2351775,"src":"RS_SWAMP_SOCCER_2008_26_thumb.jpg","galleries_id":375430,"server_id":1,"link":"photo_2351775.html","width":130,"caption":"Swamp Soccer","height":106});
															thumbnails[2452740] = clik.newPhoto({"id":2452740,"src":"THE_VERVE_12_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_2452740.html","width":130,"caption":"The Verve at T In The Park 2008","height":181});
															thumbnails[2468844] = clik.newPhoto({"id":2468844,"src":"IAN_BROWN_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_2468844.html","width":130,"caption":"Ian Brown","height":93});
															thumbnails[3951418] = clik.newPhoto({"id":3951418,"src":"SCT_RS_DUNDEE_UTD_RANGERS_3_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_3951418.html","width":130,"caption":"David Weir and Barry Ferguson lift the 2008\/09 SPL Trophy.","height":193});
															thumbnails[4299683] = clik.newPhoto({"id":4299683,"src":"RS_SAT_TITP_39_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_4299683.html","width":130,"caption":"Katy Perry ","height":91});
															thumbnails[4568772] = clik.newPhoto({"id":4568772,"src":"RS_EDINBURGH_FASHION_4_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_4568772.html","width":130,"caption":"Edinburgh Festival Fashion Show ","height":86});
															thumbnails[4568852] = clik.newPhoto({"id":4568852,"src":"8K1U7657_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_4568852.html","width":130,"caption":"Audi TT RS","height":87});
															thumbnails[6071093] = clik.newPhoto({"id":6071093,"src":"AX5C5979a_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6071093.html","width":130,"caption":"Actor Todd Carty","height":87});
															thumbnails[6071117] = clik.newPhoto({"id":6071117,"src":"AX5C6157_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6071117.html","width":130,"caption":"Fashion Stylist Gok Wan","height":202});
															thumbnails[6908826] = clik.newPhoto({"id":6908826,"src":"AX5C1173a_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_6908826.html","width":130,"caption":"Range Rover Autobiography","height":90});
															thumbnails[6908842] = clik.newPhoto({"id":6908842,"src":"SCT_RS_HEARTS_RANGERS_5a_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6908842.html","width":130,"caption":"Rangers Stevie Naismith celebrates his winning goal against Hearts at Tynecastle","height":91});
															thumbnails[6908948] = clik.newPhoto({"id":6908948,"src":"RS_PEDAL_FOR_SCOTLAND_11_thumb.jpg","galleries_id":375430,"server_id":1,"link":"photo_6908948.html","width":130,"caption":"2010 Pedal For Scotland Cycling Event","height":86});
															thumbnails[6908985] = clik.newPhoto({"id":6908985,"src":"COCA_COLA_SPL_8a_thumb.jpg","galleries_id":48932,"server_id":1,"link":"photo_6908985.html","width":130,"caption":"Coca-Cola Sponsorship Deal With The SPL","height":101});
															thumbnails[6909022] = clik.newPhoto({"id":6909022,"src":"CABOT_CIRCUS_256a_thumb.jpg","galleries_id":375429,"server_id":1,"link":"photo_6909022.html","width":130,"caption":"Hammerson Plc - Cabbot Circus","height":85});
															thumbnails[6909047] = clik.newPhoto({"id":6909047,"src":"125_OLD_BROAD_STREET_014_thumb.jpg","galleries_id":375429,"server_id":1,"link":"photo_6909047.html","width":130,"caption":"Hammerson Plc - 125 Old Broad Street","height":87});
															thumbnails[6909067] = clik.newPhoto({"id":6909067,"src":"10_GRESHAM_STREET_135a_thumb.jpg","galleries_id":375429,"server_id":1,"link":"photo_6909067.html","width":130,"caption":"Hammerson Plc - 10 Gresham Street","height":87});
															thumbnails[6909078] = clik.newPhoto({"id":6909078,"src":"THE_ORACLE_201a_thumb.jpg","galleries_id":375429,"server_id":1,"link":"photo_6909078.html","width":130,"caption":"Hammerson Plc - The Oracle","height":87});
															thumbnails[6909088] = clik.newPhoto({"id":6909088,"src":"THE_BULLRING_214_thumb.jpg","galleries_id":48932,"server_id":1,"link":"photo_6909088.html","width":130,"caption":"Hammerson Plc - The Bullring","height":93});
															thumbnails[6909106] = clik.newPhoto({"id":6909106,"src":"UNION_SQUARE_075_thumb.jpg","galleries_id":48932,"server_id":1,"link":"photo_6909106.html","width":130,"caption":"Cineworld","height":182});
															thumbnails[6909120] = clik.newPhoto({"id":6909120,"src":"RS_AUDI_R8_SPYDER_8a_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_6909120.html","width":130,"caption":"Audi R8 Spyder","height":87});
															thumbnails[6909130] = clik.newPhoto({"id":6909130,"src":"RS_SATURDAY_TITP_60a_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6909130.html","width":130,"caption":"T in the Park 2010","height":60});
															thumbnails[6909133] = clik.newPhoto({"id":6909133,"src":"RS_SUNDAY_TITP_92_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6909133.html","width":130,"caption":"Jay Z","height":140});
															thumbnails[6909142] = clik.newPhoto({"id":6909142,"src":"RS_ROYAL_ROTA_2_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6909142.html","width":130,"caption":"HRH The Duke of Rothsay Visits Luss","height":105});
															thumbnails[6909233] = clik.newPhoto({"id":6909233,"src":"MARS_SCOTTISH_FA_8_thumb.jpg","galleries_id":48932,"server_id":1,"link":"photo_6909233.html","width":130,"caption":"Mars","height":107});
															thumbnails[6909249] = clik.newPhoto({"id":6909249,"src":"SCT_RS_LAKE_OF_MENTEITH_19_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6909249.html","width":130,"caption":"Curlers on The Lake of Menteith","height":71});
															thumbnails[6915842] = clik.newPhoto({"id":6915842,"src":"RS_MOTORING_LANNO_009_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_6915842.html","width":130,"caption":"Ford Ranger","height":89});
															thumbnails[6915863] = clik.newPhoto({"id":6915863,"src":"RS_MOTORING_LANNO_089_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_6915863.html","width":130,"caption":"Land Rover Discovery ","height":92});
															thumbnails[6915942] = clik.newPhoto({"id":6915942,"src":"RS_KNOCKHILL_39_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6915942.html","width":130,"caption":"Mini Racing at Knockhill","height":70});
															thumbnails[6916113] = clik.newPhoto({"id":6916113,"src":"RS_THE_BLACK_WATCH_35_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6916113.html","width":130,"caption":"Soldiers From The Black Watch","height":92});
															thumbnails[6916163] = clik.newPhoto({"id":6916163,"src":"SALMOND_COKE_thumb.jpg","galleries_id":48932,"server_id":1,"link":"photo_6916163.html","width":130,"caption":"Coca-Cola Limited Edition Robert Burns Bottle","height":91});
															thumbnails[6916191] = clik.newPhoto({"id":6916191,"src":"SCT_RS_SIR_JACKIE_STEWART_15_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6916191.html","width":130,"caption":"Racing Legend Sir Jackie Stewart","height":88});
															thumbnails[6916361] = clik.newPhoto({"id":6916361,"src":"SCT_RS_COUNTY_UTD_20_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6916361.html","width":130,"caption":"Andy Webster Lifts The Scottish Cup For Dundee Utd","height":96});
															thumbnails[6916424] = clik.newPhoto({"id":6916424,"src":"60_THREADNEEDLE_STREET_020_thumb.jpg","galleries_id":375429,"server_id":1,"link":"photo_6916424.html","width":130,"caption":"Hammerson Plc - 60 Threadneedle Street","height":188});
															thumbnails[6924840] = clik.newPhoto({"id":6924840,"src":"8K1U9964_thumb.jpg","galleries_id":375430,"server_id":1,"link":"photo_6924840.html","width":130,"caption":"","height":76});
															thumbnails[6924841] = clik.newPhoto({"id":6924841,"src":"PERE_O9_9_thumb.jpg","galleries_id":375430,"server_id":1,"link":"photo_6924841.html","width":130,"caption":"","height":90});
															thumbnails[6924843] = clik.newPhoto({"id":6924843,"src":"RS_MOVEMBER_BALL_21_thumb.jpg","galleries_id":375430,"server_id":1,"link":"photo_6924843.html","width":130,"caption":"","height":184});
															thumbnails[6924873] = clik.newPhoto({"id":6924873,"src":"IMG_9705_thumb.jpg","galleries_id":375430,"server_id":1,"link":"photo_6924873.html","width":130,"caption":"","height":147});
															thumbnails[6924878] = clik.newPhoto({"id":6924878,"src":"IMG_6769_thumb.jpg","galleries_id":375430,"server_id":1,"link":"photo_6924878.html","width":130,"caption":"","height":100});
															thumbnails[6925239] = clik.newPhoto({"id":6925239,"src":"RS_T_IN_THE_PARK_SUN_18_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6925239.html","width":130,"caption":"","height":153});
															thumbnails[6925252] = clik.newPhoto({"id":6925252,"src":"RS_T_IN_THE_PARK_SUN_6_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6925252.html","width":130,"caption":"Amy Winehouse","height":75});
															thumbnails[6925257] = clik.newPhoto({"id":6925257,"src":"RS_T_IN_THE_PARK_SUN_27_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6925257.html","width":130,"caption":"","height":114});
															thumbnails[6925259] = clik.newPhoto({"id":6925259,"src":"WALKING_WITH_DINOSAURS_7_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6925259.html","width":130,"caption":"","height":74});
															thumbnails[6925271] = clik.newPhoto({"id":6925271,"src":"60_THREADNEEDLE_STREET_013_thumb.jpg","galleries_id":375429,"server_id":1,"link":"photo_6925271.html","width":130,"caption":"","height":75});
															thumbnails[6925273] = clik.newPhoto({"id":6925273,"src":"60_THREADNEEDLE_STREET_063_thumb.jpg","galleries_id":375429,"server_id":1,"link":"photo_6925273.html","width":130,"caption":"","height":91});
															thumbnails[6925275] = clik.newPhoto({"id":6925275,"src":"10_GRESHAM_STREET_091_thumb.jpg","galleries_id":375429,"server_id":1,"link":"photo_6925275.html","width":130,"caption":"Hammerson Plc ","height":116});
															thumbnails[6925290] = clik.newPhoto({"id":6925290,"src":"RS_MOTORING_LANNO_016_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_6925290.html","width":130,"caption":"Range Rover Sport","height":83});
															thumbnails[6925305] = clik.newPhoto({"id":6925305,"src":"8K1U5722_thumb.jpg","galleries_id":375510,"server_id":1,"link":"photo_6925305.html","width":130,"caption":"","height":86});
															thumbnails[6926788] = clik.newPhoto({"id":6926788,"src":"RS_POPE_GLASGOW_14_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_6926788.html","width":130,"caption":"Pope visits Bellahouston Park in Glasgow.","height":75});
															thumbnails[7097746] = clik.newPhoto({"id":7097746,"src":"JP_ROONEY_V_STEWART_GRAHAM099_thumb.jpg","galleries_id":375430,"server_id":1,"link":"photo_7097746.html","width":130,"caption":"","height":109});
															thumbnails[7265517] = clik.newPhoto({"id":7265517,"src":"SCT_RS_LIAM_GALLAGHER_6_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7265517.html","width":130,"caption":"Liam Gallagher in Glasgow.","height":130});
															thumbnails[7287261] = clik.newPhoto({"id":7287261,"src":"RS_LANDROVER_FREELANDER_034_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7287261.html","width":130,"caption":" 2011 Landrover Freelander","height":87});
															thumbnails[7289936] = clik.newPhoto({"id":7289936,"src":"RS_JON_FRATELLI_048_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7289936.html","width":130,"caption":"Jon Fratelli","height":73});
															thumbnails[7381438] = clik.newPhoto({"id":7381438,"src":"RS_VAUXHALL_ANTARA_055_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7381438.html","width":130,"caption":"2011 Vauxhall Antara","height":90});
															thumbnails[7383082] = clik.newPhoto({"id":7383082,"src":"RS_HONDA_CIVIC_015_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7383082.html","width":130,"caption":"2011 Honda Civic","height":89});
															thumbnails[7383107] = clik.newPhoto({"id":7383107,"src":"RS_DAVID_COULTHARD_025_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7383107.html","width":130,"caption":"David Coulthard","height":117});
															thumbnails[7383234] = clik.newPhoto({"id":7383234,"src":"SCT_RS_MONTE_CARLO_RALLY_7_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7383234.html","width":130,"caption":"The Monte-Carlo Rally","height":90});
															thumbnails[7383235] = clik.newPhoto({"id":7383235,"src":"RS_BEZ_AT_CAPITOL_025_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7383235.html","width":130,"caption":"Bez","height":88});
															thumbnails[7383374] = clik.newPhoto({"id":7383374,"src":"RS_KIA_SPORTAGE_2a2_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7383374.html","width":130,"caption":"Kia Sportage","height":87});
															thumbnails[7383414] = clik.newPhoto({"id":7383414,"src":"COKE_ASDA_LIVINGSTON_047_thumb.jpg","galleries_id":48932,"server_id":1,"link":"photo_7383414.html","width":130,"caption":"Coca-Cola","height":85});
															thumbnails[7383427] = clik.newPhoto({"id":7383427,"src":"RS_AUDI_A1_2_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7383427.html","width":130,"caption":"Audi A1","height":98});
															thumbnails[7383470] = clik.newPhoto({"id":7383470,"src":"RS_AUDI_S5_10_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7383470.html","width":130,"caption":"Audi S5","height":89});
															thumbnails[7383577] = clik.newPhoto({"id":7383577,"src":"RS_MARAGONI_ALFA_014_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7383577.html","width":130,"caption":"Alfa Romeo Giulietta","height":83});
															thumbnails[7457120] = clik.newPhoto({"id":7457120,"src":"DK4K0863a_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7457120.html","width":130,"caption":"King George VI's Daimler BD 18","height":80});
															thumbnails[7458741] = clik.newPhoto({"id":7458741,"src":"RS_SAT_NIGHT_COPS_2_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7458741.html","width":130,"caption":"Alcohol Related Violence in Glasgow","height":87});
															thumbnails[7458788] = clik.newPhoto({"id":7458788,"src":"SCT_RS_TOMMY_SHERIDAN_28_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7458788.html","width":130,"caption":"Former MSP Tommy Sheridan on his way to jail","height":167});
															thumbnails[7458800] = clik.newPhoto({"id":7458800,"src":"SCT_RS_AYR_HIBS_15_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7458800.html","width":130,"caption":"Ayr Utd celebrate knocking Hibs out the Scottish Cup","height":81});
															thumbnails[7484401] = clik.newPhoto({"id":7484401,"src":"AX5C0938_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7484401.html","width":130,"caption":"Mark Wilson celebrates his goal against Rangers","height":95});
															thumbnails[7496814] = clik.newPhoto({"id":7496814,"src":"COCA_COLA_SECC_012_thumb.jpg","galleries_id":48932,"server_id":1,"link":"photo_7496814.html","width":130,"caption":"Coca-Cola & SECC Partnership","height":189});
															thumbnails[7552818] = clik.newPhoto({"id":7552818,"src":"SCT_RS_CELTIC_RANGERS_ROTA_9_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7552818.html","width":130,"caption":"Nikica Jelavic and Walter Smith Celebrate the cup win","height":110});
															thumbnails[7604928] = clik.newPhoto({"id":7604928,"src":"8K1U1008_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7604928.html","width":130,"caption":"Michael Higdon scores for St Mirren","height":87});
															thumbnails[7608296] = clik.newPhoto({"id":7608296,"src":"DK4K5650_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7608296.html","width":130,"caption":"Stephen Elliott celebrates his goal against Hibs","height":95});
															thumbnails[7610757] = clik.newPhoto({"id":7610757,"src":"robbie_savage_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7610757.html","width":130,"caption":"Robbie Savage - Footballer ","height":103});
															thumbnails[7686261] = clik.newPhoto({"id":7686261,"src":"RS_CHEVROLET_ORLANDO_015_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7686261.html","width":130,"caption":"Chevrolet Orlando","height":90});
															thumbnails[7760525] = clik.newPhoto({"id":7760525,"src":"RS_ALEX_SALMOND_1_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7760525.html","width":130,"caption":"Alex Salmond and Nicola Sturgeon ","height":86});
															thumbnails[7760747] = clik.newPhoto({"id":7760747,"src":"AX5C2241a_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7760747.html","width":130,"caption":"Scotland's First Minister Alex Salmond","height":78});
															thumbnails[7761121] = clik.newPhoto({"id":7761121,"src":"AX5C1824_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7761121.html","width":130,"caption":"SNP's Nicola Sturgeon wins her seat in Glasgow","height":103});
															thumbnails[7761171] = clik.newPhoto({"id":7761171,"src":"RS_DAVIE_WEIR_AUDI_045_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7761171.html","width":130,"caption":"David Weir - Rangers Fc","height":88});
															thumbnails[7791959] = clik.newPhoto({"id":7791959,"src":"BAG_1_thumb.jpg","galleries_id":375510,"server_id":1,"link":"photo_7791959.html","width":130,"caption":"","height":89});
															thumbnails[7791961] = clik.newPhoto({"id":7791961,"src":"BAG_3_thumb.jpg","galleries_id":375510,"server_id":1,"link":"photo_7791961.html","width":130,"caption":"","height":99});
															thumbnails[7791962] = clik.newPhoto({"id":7791962,"src":"NECKLACE_1_thumb.jpg","galleries_id":375510,"server_id":1,"link":"photo_7791962.html","width":130,"caption":"","height":87});
															thumbnails[7791970] = clik.newPhoto({"id":7791970,"src":"NECKLACE_2_thumb.jpg","galleries_id":375510,"server_id":1,"link":"photo_7791970.html","width":130,"caption":"","height":86});
															thumbnails[7792304] = clik.newPhoto({"id":7792304,"src":"ARNOLD_CLARK_MOTABILITY_008_thumb.jpg","galleries_id":375430,"server_id":1,"link":"photo_7792304.html","width":130,"caption":"Motability Roadshow","height":78});
															thumbnails[7792666] = clik.newPhoto({"id":7792666,"src":"SCT_RS_HEARTS_CELTIC_6_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7792666.html","width":130,"caption":"Celtic manager Neil Lennon is attacked by a fan","height":91});
															thumbnails[7838912] = clik.newPhoto({"id":7838912,"src":"SCT_RS_WELL_CELTIC_19_thumb.jpg","galleries_id":48930,"server_id":1,"link":"photo_7838912.html","width":130,"caption":"Neil Lennon with the Scottish Cup.","height":184});
															thumbnails[7841665] = clik.newPhoto({"id":7841665,"src":"RS_BMW_M1_30_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7841665.html","width":130,"caption":"BMW M1","height":78});
															thumbnails[7911237] = clik.newPhoto({"id":7911237,"src":"DK4K0546a_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7911237.html","width":130,"caption":"Aston Martin Cygnet","height":83});
															thumbnails[7939882] = clik.newPhoto({"id":7939882,"src":"RS_VW_TIGUAN_13_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7939882.html","width":130,"caption":"VW Tiguan","height":89});
															thumbnails[7979640] = clik.newPhoto({"id":7979640,"src":"RS_RANGE_ROVER_E_35_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7979640.html","width":130,"caption":"Range Rover Electric","height":91});
															thumbnails[7979789] = clik.newPhoto({"id":7979789,"src":"RS_TRABANT_GERMANY_10_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7979789.html","width":130,"caption":"Trabant NT","height":87});
															thumbnails[7979829] = clik.newPhoto({"id":7979829,"src":"DK4K0480a_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7979829.html","width":130,"caption":"Range Rover Evoque","height":90});
															thumbnails[7993743] = clik.newPhoto({"id":7993743,"src":"AX5C3182a_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7993743.html","width":130,"caption":"Porsche Cayman R","height":84});
															thumbnails[7999130] = clik.newPhoto({"id":7999130,"src":"AX5C3852a_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_7999130.html","width":130,"caption":"Rolls Royce Phantom (Electric)","height":89});
															thumbnails[8143258] = clik.newPhoto({"id":8143258,"src":"AX5C7128a_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_8143258.html","width":130,"caption":"Bugatti Veyron","height":90});
															thumbnails[8143349] = clik.newPhoto({"id":8143349,"src":"RS_ASTON_MARTIN_VIRAGE_28a_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_8143349.html","width":130,"caption":"Aston Martin Virage ","height":83});
															thumbnails[8143368] = clik.newPhoto({"id":8143368,"src":"RS_JAGUAR_XKRS_01a_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_8143368.html","width":130,"caption":"Jaguar XKR-S","height":64});
															thumbnails[8143370] = clik.newPhoto({"id":8143370,"src":"RS_JAGUAR_XJL_10_thumb.jpg","galleries_id":399749,"server_id":1,"link":"photo_8143370.html","width":130,"caption":"Jaguar XJL","height":77});
															thumbnails[8287476] = clik.newPhoto({"id":8287476,"src":"DK4K7349a_thumb.jpg","galleries_id":399749,"server_id":35,"link":"photo_8287476.html","width":130,"caption":"Jaguar XFR","height":181});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[375430] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"section73043_375430.html","maxRecords":0.0,"photoIDs":[2351775.0,6908948.0,6924840.0,6924841.0,6924843.0,6924873.0,6924878.0,7097746.0,7792304.0],"skipIndex":0,"section_code":"section73043","featured_images":"7792304,7097746,6924878,6924873,6924843,6924841,6924840,6908948,2351775","id":375430,"singleSection":false});				  						galleries[48932] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Corporate","link":"section73043_48932.html","maxRecords":0.0,"photoIDs":[1634292.0,1639822.0,6908985.0,6909088.0,6909106.0,6909233.0,6916163.0,7383414.0,7496814.0],"skipIndex":0,"section_code":"section73043","featured_images":"7496814,7383414,6916163,6909233,6909106,6909088,6908985,1639822,1634292","id":48932,"singleSection":false});				  						galleries[375429] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Architecture ","link":"section73043_375429.html","maxRecords":0.0,"photoIDs":[6909022.0,6909047.0,6909067.0,6909078.0,6916424.0,6925271.0,6925273.0,6925275.0],"skipIndex":0,"section_code":"section73043","featured_images":"6925275,6925273,6925271,6916424,6909078,6909067,6909047,6909022","id":375429,"singleSection":false});				  						galleries[375510] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Products","link":"section73043_375510.html","maxRecords":0.0,"photoIDs":[6925305.0,7791959.0,7791961.0,7791962.0,7791970.0],"skipIndex":0,"section_code":"section73043","featured_images":"7791970,7791962,7791961,7791959,6925305","id":375510,"singleSection":false});				  						galleries[48930] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Editorial","link":"section73043_48930.html","maxRecords":0.0,"photoIDs":[1702287.0,2452740.0,2468844.0,3951418.0,4299683.0,4568772.0,6071093.0,6071117.0,6908842.0,6909130.0,6909133.0,6909142.0,6909249.0,6915942.0,6916113.0,6916191.0,6916361.0,6925239.0,6925252.0,6925257.0,6925259.0,6926788.0,7265517.0,7289936.0,7383107.0,7383234.0,7383235.0,7458741.0,7458788.0,7458800.0,7484401.0,7552818.0,7604928.0,7608296.0,7610757.0,7760525.0,7760747.0,7761121.0,7761171.0,7792666.0,7838912.0],"skipIndex":0,"section_code":"section73043","featured_images":"7838912,7792666,7761171,7761121,7760747,7760525,7610757,7608296,7604928,7552818,7484401,7458800,7458788,7383235,7383234,7383107,7289936,7265517,6926788,6925259,6925257,6925252,6925239,6916361,6916191,6916113,6915942,6909249,6909142,6909133,6909130,6908842,4568772,4299683,3951418,2468844,2452740,1702287","id":48930,"singleSection":false});				  						galleries[399749] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cars","link":"section73043_399749.html","maxRecords":0.0,"photoIDs":[4568852.0,6908826.0,6909120.0,6915842.0,6915863.0,6925290.0,7287261.0,7381438.0,7383082.0,7383374.0,7383427.0,7383470.0,7383577.0,7457120.0,7686261.0,7841665.0,7911237.0,7939882.0,7979640.0,7979789.0,7979829.0,7993743.0,7999130.0,8143258.0,8143349.0,8143368.0,8143370.0,8287476.0],"skipIndex":0,"section_code":"section73043","featured_images":"8287476,8143370,8143368,8143349,8143258,7999130,7993743,7979829,7979789,7979640,7939882,7911237,7841665,7686261,7457120,7383577,7383470,7383427,7383374,7383082,7381438,7287261,6925290,6915863,6915842,6909120,6908826,4568852","id":399749,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8287476,8143370,8143368,8143349,8143258,7999130,7993743,7979829,7979789,7979640,7939882,7911237,7841665,7838912,7792666,7791970,7791962,7791961,7791959,7761171,7761121,7760747,7760525,7686261,7610757,7608296,7604928,7552818,7496814,7484401,7458800,7457120,7383577,7383470,7383427,7383414,7383374,7383235,7383234,7383107,7383082,7381438,7289936,7287261,7265517,7097746,6926788,6925305,6925290,6925275,6925273,6925271,6925257,6925252,6925239,6924873,6916424,6916361,6916191,6916113,6915942,6915863,6915842,6909249,6909142,6909133,6909130,6909120,6909106,6909088,6909078,6909067,6909047,6909022,6908985,6908948,6908842,6908826,4568852,4568772,4299683,3951418,2468844,2452740,2351775,1702287,1639822,1634292';
imageSets[2] = '8287476,8143370,8143368,8143349,8143258,7999130,7993743,7979829,7979789,7979640,7939882,7911237,7841665,7838912,7792666,7792304,7791970,7791962,7791961,7791959,7761171,7761121,7760747,7760525,7686261,7610757,7608296,7604928,7552818,7496814,7484401,7458800,7458788,7457120,7383577,7383470,7383427,7383414,7383374,7383235,7383234,7383107,7383082,7381438,7289936,7287261,7265517,7097746,6926788,6925305,6925290,6925275,6925273,6925271,6925259,6925257,6925252,6925239,6924878,6924873,6924843,6924841,6924840,6916424,6916361,6916191,6916163,6916113,6915942,6915863,6915842,6909249,6909233,6909142,6909133,6909130,6909120,6909106,6909088,6909078,6909067,6909047,6909022,6908985,6908948,6908842,6908826,4568852,4568772,4299683,3951418,2468844,2452740,2351775,1702287,1639822,1634292';
imageSets[3] = '8287476,8143370,8143368,8143349,8143258,7999130,7993743,7979829,7979789,7979640,7939882,7911237,7841665,7838912,7792666,7792304,7791970,7791962,7791961,7791959,7761171,7761121,7760747,7760525,7686261,7610757,7608296,7604928,7552818,7496814,7484401,7458800,7458788,7458741,7457120,7383577,7383470,7383427,7383414,7383374,7383235,7383234,7383107,7383082,7381438,7289936,7287261,7265517,7097746,6926788';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/scottroddy/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/scottroddy/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section73043.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 && 'section73043' != '') {
					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 = 'Roddy Scott Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																									temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/I3zhG4NOCKiXOXeJvGx26g" 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="item_name_1" value="'+item_name+'">';
					 temp += '<input type="hidden" name="item_description_1" value="'+ref+'">';
					 temp += '<input type="hidden" name="item_quantity_1" value="1">';
					 temp += '<input type="hidden" name="item_price_1" value="'+amount+'">';
					 temp += '<input type="hidden" name="item_currency_1" value="GBP">';
								 					 temp += '<input type="Image" src="https://checkout.google.com/buttons/checkout.gif?merchant_id=I3zhG4NOCKiXOXeJvGx26g&w=160&h=43&style=trans&variant=text&loc=en_GB" onclick="this.submit" style="margin-left:-6px;">';
										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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

