function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[710081]=new thumbnail(710081,"","","RS_SUN_COKE_GIVEAWAY_2_thumb.jpg",130,90,1);thumbnails[738562]=new thumbnail(738562,"","2008 Finals at Tynecastle Park - Edinbugh","RS_COKE_7'S_FINALS_18_thumb.jpg",130,87,1);thumbnails[1055352]=new thumbnail(1055352,"","2008 Champions St Joseph's and Stewart's Melville","RS_COKE_7'S_FINALS_3_thumb.jpg",130,86,1);thumbnails[3369041]=new thumbnail(3369041,"","1st Round 2009 action from Stirling","STIRLING_ACTION_9_thumb.jpg",130,117,1);thumbnails[3369056]=new thumbnail(3369056,"","2009 action from Ferguslie Park","FERGUSLIE_ACTION_7_thumb.jpg",130,136,1);thumbnails[3369071]=new thumbnail(3369071,"","Girls in action at Tweedbank","TWEEDBANK_ACTION_6_thumb.jpg",130,103,1);thumbnails[3470375]=new thumbnail(3470375,"","Celtic Captain Stephen McManus with coaches Gary Mackay and Chick Charnley","RS_STEPHEN_MCMANUS_COKE_11_thumb.jpg",130,102,1);thumbnails[3470379]=new thumbnail(3470379,"","Holy Cross players meet former pupil Stephen McManus","RS_STEPHEN_MCMANUS_COKE_6_thumb.jpg",130,79,1);thumbnails[641931]=new thumbnail(641931,"48933","","QL2B0386_thumb.jpg",130,95,1);thumbnails[644236]=new thumbnail(644236,"48933","","QL2B0200_thumb.jpg",130,87,1);thumbnails[644254]=new thumbnail(644254,"48933","","_A0X00741_thumb.jpg",130,92,1);thumbnails[655949]=new thumbnail(655949,"48933","","_A0X0009_thumb.jpg",130,93,1);thumbnails[683864]=new thumbnail(683864,"48933","","QL2B0391_thumb.jpg",130,195,1);thumbnails[3091387]=new thumbnail(3091387,"48933","","8K1U0655a_thumb.jpg",130,95,1);thumbnails[3091711]=new thumbnail(3091711,"48933","","8K1U0885_thumb.jpg",130,99,1);thumbnails[3091715]=new thumbnail(3091715,"48933","","8K1U0667_thumb.jpg",130,97,1);thumbnails[3093771]=new thumbnail(3093771,"48933","","8K1U0187_thumb.jpg",130,87,1);thumbnails[3722647]=new thumbnail(3722647,"48933","","8K1U9436_thumb.jpg",130,195,1);thumbnails[3722648]=new thumbnail(3722648,"48933","","8K1U9547_thumb.jpg",130,185,1);thumbnails[3722649]=new thumbnail(3722649,"48933","","8K1U9786_thumb.jpg",130,88,1);thumbnails[3722650]=new thumbnail(3722650,"48933","","8K1U9517_thumb.jpg",130,93,1);thumbnails[641844]=new thumbnail(641844,"48932","Sainsbury's","SN86024@24_06_04---9375---S_thumb.jpg",130,86,1);thumbnails[642992]=new thumbnail(642992,"48932","Nicator","CENTURA_COURT_3_thumb.jpg",130,195,1);thumbnails[646100]=new thumbnail(646100,"48932","Bank of Scotland","SN82461@25_05_04---9286---C_thumb.jpg",130,92,1);thumbnails[999480]=new thumbnail(999480,"48932","Grupo Santander ","SANTANDER_11_thumb.jpg",130,100,1);thumbnails[1070056]=new thumbnail(1070056,"48932","Glasgow Caledonian University","RS_FORENSIC_CENTRE_3a_thumb.jpg",130,100,1);thumbnails[1074882]=new thumbnail(1074882,"48932","Allied Vehicles","RS_ALLIED_12_thumb.jpg",130,95,1);thumbnails[1278781]=new thumbnail(1278781,"48932","Land Rover ","SNOW_SPORT_TEAM_PIC_thumb.jpg",130,94,1);thumbnails[1328179]=new thumbnail(1328179,"48932","Food Standards Agency ","SN76272@26_03_04---9104---G1_thumb.jpg",130,92,1);thumbnails[1513331]=new thumbnail(1513331,"48932","Rangers Fc","RS_IBROX_4a_thumb.jpg",130,65,1);thumbnails[1634292]=new thumbnail(1634292,"48932","CIS Insurance","CIS_SCHOOLS_CUP_17_thumb.jpg",130,195,1);thumbnails[1639822]=new thumbnail(1639822,"48932","Brechin Tindal Oatts","IMG_2142_thumb.jpg",130,87,1);thumbnails[1648957]=new thumbnail(1648957,"48932","Glasgow Caledonian University","RS_ALEX_SALMOND_VISIT_5_thumb.jpg",130,90,1);thumbnails[1890173]=new thumbnail(1890173,"48932","Rangers Fc","HALL_OF_FAME_DINNER_41_thumb.jpg",130,190,1);thumbnails[1890461]=new thumbnail(1890461,"48932","MacKenzie Hall Ltd","IMG_6896_thumb.jpg",130,98,1);thumbnails[2027103]=new thumbnail(2027103,"48932","Rettie & Co","RETTIE_GLASGOW_15a_thumb.jpg",130,165,1);thumbnails[2027112]=new thumbnail(2027112,"48932","Brechin Tindal Oatts","ABOUT_US_thumb.jpg",130,41,1);thumbnails[2158147]=new thumbnail(2158147,"48932","Tennent's ","RS_JAMES_MCFADDEN_AWARD_3_thumb.jpg",130,105,1);thumbnails[2184381]=new thumbnail(2184381,"48932","Saab ","SAAB_MORRISONS_2_thumb.jpg",130,68,1);thumbnails[2358845]=new thumbnail(2358845,"48932","Vision Call Uk Ltd","8K1U7502a_thumb.jpg",130,84,1);thumbnails[2909196]=new thumbnail(2909196,"48932","Proven Energy","RS_PROVEN_ENERGY_4_thumb.jpg",130,193,1);thumbnails[5473390]=new thumbnail(5473390,"48932","Frame Tailor","RS_FRAME_TAILOR_5_thumb.jpg",130,96,1);thumbnails[648105]=new thumbnail(648105,"48931","Hearts owner Vladamir Romanov","RS_HEARTS_ROMANOV_7_thumb.jpg",130,97,1);thumbnails[660417]=new thumbnail(660417,"48931","Brazil v Japan - Ronaldo","QL2B1375_thumb.jpg",130,98,1);thumbnails[990098]=new thumbnail(990098,"48931","Sevilla captain Javi Navarro lifts the Uefa Cup at Hampden.","SCT_RS_ESPANYOL_SEVILLA_11_thumb.jpg",130,195,1);thumbnails[999485]=new thumbnail(999485,"48931","Espanyol v Sevilla - Sevilla players rush to celebrate the moment they won the UEFA cup.","SCT_RS_ESPANYOL_SEVILLA_9_thumb.jpg",130,82,1);thumbnails[1225781]=new thumbnail(1225781,"48931","Barcelona's Thierry Henry","henry_1a_thumb.jpg",130,169,1);thumbnails[1451991]=new thumbnail(1451991,"48931","AC Milan keeper Dida","SCT_RS_CELTIC_MILAN_13_thumb.jpg",130,95,1);thumbnails[1478152]=new thumbnail(1478152,"48931","Kenny Miller celebrates his opening goal for Scotland against the Ukraine.","SCT_RS_SCOT_UKRAINE_14_thumb.jpg",130,95,1);thumbnails[1573533]=new thumbnail(1573533,"48931","Jockeys battle it out on the last day of the 2007 flat race season at Mussellburgh.","IMG_7402_thumb.jpg",130,88,1);thumbnails[1606719]=new thumbnail(1606719,"48931","Christian Panucci celebrates his last-minute, winning goal for Italy against Scotland at Hampden","SCT_RS_SCOT_ITALY_8_thumb.jpg",130,120,1);thumbnails[1793830]=new thumbnail(1793830,"48931","George Burley is unveiled as the new Scotland manager at Hampden","79157424RS001_ScotlandFA_thumb.jpg",130,88,1);thumbnails[1871947]=new thumbnail(1871947,"48931","Barcelona's Thierry Henry makes it 2-2 against Celtic in the last 16 of the Champions League.","SCT_RS_CELTIC_BARCA_26_thumb.jpg",130,155,1);thumbnails[2218295]=new thumbnail(2218295,"48931","Winners of the 2008 Scottish Cup - Rangers Fc","SCT_RS_QOS_RANGERS_32_thumb.jpg",130,84,1);thumbnails[2622812]=new thumbnail(2622812,"48931","Sean O'Connor scores Queen of The South's First Ever Goal in Europe","OA0X3649_thumb.jpg",130,92,1);thumbnails[2853578]=new thumbnail(2853578,"48931","Kenny Miller scores against Hibs in a 3-0 win","SCT_RS_HIBS_RANGERS_4_thumb.jpg",130,68,1);thumbnails[2907718]=new thumbnail(2907718,"48931","Lewis Stevenson tackles Pedro mendez","SCT_RS_HIBS_RANGERS_14_thumb.jpg",130,107,1);thumbnails[2907725]=new thumbnail(2907725,"48931","Kilmarnock's Mehdi Taouil celebrates his goal against Hearts.","SCT_RS_HEARTS_KILLIE_2_thumb.jpg",130,177,1);thumbnails[2920798]=new thumbnail(2920798,"48931","Chris Iwelumo beats Norway's Fredrik Waehler in the air","SCT_RS_SCOT_NORWAY_18_thumb.jpg",130,154,1);thumbnails[2955582]=new thumbnail(2955582,"48931","Franco Miranda celebrates his goal against Hamilton","SCT_RS_HAMILTON_ST_MIRREN_1_thumb.jpg",130,94,1);thumbnails[2960732]=new thumbnail(2960732,"48931","Gary Glen celebrates his goal in the Edinburgh derby.","SCT_RS_HIBS_HEARTS_2_thumb.jpg",130,106,1);thumbnails[3026251]=new thumbnail(3026251,"48931","Shaun Maloney celebrates his goal in the 2-0 win at Hearts","SCT_RS_HEARTS_CELTIC_2_thumb.jpg",130,144,1);thumbnails[3040884]=new thumbnail(3040884,"48931","Barry Robson and Paul Hartley close in on Manchester Utd's Michael Carrick.","_MG_8578_thumb.jpg",130,95,1);thumbnails[3151656]=new thumbnail(3151656,"48931","Larry Kingston puts Hearts 2-0 up against Rangers.","SCT_RS_HEARTS_RANGERS_51_thumb.jpg",130,96,1);thumbnails[3151659]=new thumbnail(3151659,"48931","Hearts Larry Kingston celebrates his goal against Rangers","SCT_RS_HEARTS_RANGERS_14_thumb.jpg",130,112,1);thumbnails[3368998]=new thumbnail(3368998,"48931","Mehdi Taouil celebrates his goal for Kilmarnock against Ayr Utd","SCT_RS_KILLIE_AYR_4_thumb.jpg",130,98,1);thumbnails[3369014]=new thumbnail(3369014,"48931","Rangers Nacho Novo scores against Falkirk in the Scottish Cup","SCT_RS_RANGERS_FALKIRK_2_thumb.jpg",130,101,1);thumbnails[3449634]=new thumbnail(3449634,"48931","Andrew Driver celebrates his winning goal for Hearts against Aberdeen","SCT_RS_HEARTS_DONS_4_thumb.jpg",130,186,1);thumbnails[3589626]=new thumbnail(3589626,"48931","Steven Fletcher's effort loops over Hearts keeper Janos Balogh to win the Edinburgh Derby","SCT_RS_HIBS_HEARTS_3_thumb.jpg",130,86,1);thumbnails[3674164]=new thumbnail(3674164,"48931","Scotland and Rangers captain gives the V sign to photographers","SCT_RS_SCOT_ICELAND_11_thumb.jpg",130,168,1);thumbnails[3788764]=new thumbnail(3788764,"48931","Andrius Velicka celebrates his goal in Rangers 3-0 win over St Mirren","SCT_RS_RANGERS_ST_MIRREN_33_thumb.jpg",130,102,1);thumbnails[3865096]=new thumbnail(3865096,"48931","Raith Rovers keeper David McGurn celebrates winning the 2008/09 2nd Division Title","SCT_RS_RAITH_ARBROATH_12_thumb.jpg",130,99,1);thumbnails[3951418]=new thumbnail(3951418,"48931","David Weir and Barry Ferguson lift the 2008/09 SPL Trophy.","SCT_RS_DUNDEE_UTD_RANGERS_3_thumb.jpg",130,193,1);thumbnails[4548408]=new thumbnail(4548408,"48931","Gary Caldwell gets to grips with Arsenal's Alex Song","SCT_RS_CELTIC_ARSENAL_1_thumb.jpg",130,94,1);thumbnails[4568811]=new thumbnail(4568811,"48931","Lee McCulloch gets stuck between SuSo and Eggert Jonsson","RS_HEARTS_RANGERS_23_thumb.jpg",130,159,1);thumbnails[4659873]=new thumbnail(4659873,"48931","Scott Brown celebrates his goal for Scotland against Macedonia","_MG_0150a_thumb.jpg",130,87,1);thumbnails[4695013]=new thumbnail(4695013,"48931","Scott Brown misses a chance to score against Holland","OA0X0035_thumb.jpg",130,88,1);thumbnails[642953]=new thumbnail(642953,"48930","Paul Gascoigne at his book lauch in Glasgow","RS_GAZA_BOOK_LAUNCH_6_thumb.jpg",130,92,1);thumbnails[642954]=new thumbnail(642954,"48930","The Royal Scots Leave for Iraq","RS_ROYAL_SCOTS_LEAVE_2_thumb.jpg",130,95,1);thumbnails[642959]=new thumbnail(642959,"48930","Kelly Brook in Glasgow","SCT_RS_KELLY_BROOK_6_thumb.jpg",130,88,1);thumbnails[645748]=new thumbnail(645748,"48930","Scotland's Knife Culture","RS_DAVID_GRAHAM_STABBING_3_thumb.jpg",130,194,1);thumbnails[645753]=new thumbnail(645753,"48930","The Homeless Worldcup in Edinburgh","RS_HOMELESS_WORLD_CUP_10_thumb.jpg",130,98,1);thumbnails[655993]=new thumbnail(655993,"48930","The Enchanted Forest light show at Faskally Wood, near Pitlochry","FORREST_1_thumb.jpg",130,86,1);thumbnails[1187656]=new thumbnail(1187656,"48930","Miss Scotland 2007 Nieve Jennings.","RS_NIEVE_JENNINGS_SPAIN_5_thumb.jpg",130,172,1);thumbnails[1520311]=new thumbnail(1520311,"48930","Scottish Style Awards 2007","_A0X8804_thumb.jpg",130,195,1);thumbnails[1704700]=new thumbnail(1704700,"48930","Police divers search The Flying Phantom which capsized on the River Clyde.","RS_TUG_SEARCH_10_thumb.jpg",130,82,1);thumbnails[1721299]=new thumbnail(1721299,"48930","Motherwell players gather to look at the tributes left outside Fir Park for their captain Phil O'Donnell who died during the match with Dundee Utd","SCT_RS_MOTHERWELL_1_thumb.jpg",130,88,1);thumbnails[1923491]=new thumbnail(1923491,"48930","Boxing legend Evander Holyfield in Glasgow","SCT_RS_EVANDER_HOLYFIELD_6_thumb.jpg",130,99,1);thumbnails[2197968]=new thumbnail(2197968,"48930","The Women's 10k run in Glasgow","RS_WOMENS_10K_12_thumb.jpg",130,172,1);thumbnails[2351770]=new thumbnail(2351770,"48930","Swamp Soccer 2008","RS_SWAMP_SOCCER_2008_10_thumb.jpg",130,87,1);thumbnails[2351775]=new thumbnail(2351775,"48930","Swamp Soccer 2008","RS_SWAMP_SOCCER_2008_26_thumb.jpg",130,106,1);thumbnails[2452740]=new thumbnail(2452740,"48930","The Verve at T In The Park 2008","THE_VERVE_12_thumb.jpg",130,181,1);thumbnails[2468844]=new thumbnail(2468844,"48930","Ian Brown at T In The Park 2008","IAN_BROWN_thumb.jpg",130,93,1);thumbnails[2585032]=new thumbnail(2585032,"48930","Touring Cars in Glasgow City Centre","RS_GLASGOW_SUPERBIKES_111_thumb.jpg",130,91,1);thumbnails[3091429]=new thumbnail(3091429,"48930","Fireworks light up George Square in Glasgow.","RS_CHRISTMAS_LIGHTS_6_thumb.jpg",130,178,1);thumbnails[3226408]=new thumbnail(3226408,"48930","20th Anniversary of the Lockerbie Bombing","RS_LOCKERBIE_SERVICE_11_thumb.jpg",130,87,1);thumbnails[3226446]=new thumbnail(3226446,"48930","20th Anniversary of the Lockerbie Bombing","RS_LOCKERBIE_SERVICE_7_thumb.jpg",130,186,1);thumbnails[4299683]=new thumbnail(4299683,"48930","Katy Perry at T in the Park 2009","RS_SAT_TITP_39_thumb.jpg",130,91,1);thumbnails[4548412]=new thumbnail(4548412,"48930","The New 2010 Range Rover Sport Launch at Floors Castle","RS_MOTORING_LANNO_014a_thumb.jpg",130,88,1);thumbnails[4568772]=new thumbnail(4568772,"48930","2009 Edinburgh Festival Fashion Show ","RS_EDINBURGH_FASHION_1_thumb.jpg",130,89,1);thumbnails[4568852]=new thumbnail(4568852,"48930","The 2010 Audi TT RS","RS_AUDI_TT_RS_18_thumb.jpg",130,94,1);thumbnails[6071093]=new thumbnail(6071093,"48930","Actor Todd Carty","AX5C5979a_thumb.jpg",130,87,1);thumbnails[6071117]=new thumbnail(6071117,"48930","Fashion Stylist Gok Wan","AX5C6157_thumb.jpg",130,202,1);thumbnails[641805]=new thumbnail(641805,"48934","","RS_GLASGOW_RUG_LOGAN_6_thumb.jpg",130,176,1);thumbnails[646058]=new thumbnail(646058,"48934","","CULLEN_9_thumb.jpg",130,90,1);thumbnails[1702287]=new thumbnail(1702287,"48934","","RS_RANGERS_FEATURE_9_thumb.jpg",130,179,1);thumbnails[2527366]=new thumbnail(2527366,"48934","","SCT_RS_LARRY_LINGSTON_4_thumb.jpg",130,93,1);thumbnails[2769350]=new thumbnail(2769350,"48934","","8K1U0261a_thumb.jpg",130,178,1);thumbnails[3228077]=new thumbnail(3228077,"48934","","8K1U4400_thumb.jpg",130,111,1);thumbnails[5002921]=new thumbnail(5002921,"48934","","OLI_KERR_1_2_thumb.jpg",130,96,1);thumbnails[5002922]=new thumbnail(5002922,"48934","","OLI2_thumb.jpg",130,165,1);thumbnails[5007880]=new thumbnail(5007880,"48934","","aaa_thumb.jpg",130,85,1);thumbnails[5018166]=new thumbnail(5018166,"48934","","fin_brodie_thumb.jpg",130,168,1);thumbnails[5018212]=new thumbnail(5018212,"48934","","lucy_thumb.jpg",130,186,1);thumbnails[5018215]=new thumbnail(5018215,"48934","","MARC_thumb.jpg",130,185,1);var galleries=new Object();galleries[48933]=new gallery(48933,"3722650,3722649,3722648,3722647,3093771,3091715,3091711,3091387","Weddings","section73043",[641931,644236,644254,655949,683864,3091387,3091711,3091715,3093771,3722647,3722648,3722649,3722650]);galleries[48932]=new gallery(48932,"5473390,2909196,2358845,2184381,2158147,2027112,2027103,1890461,1890173,1648957,1639822,1634292,1513331,1328179,1278781,1074882,1070056,999480,646100,642992,641844","Pr and Corporate","section73043",[641844,642992,646100,999480,1070056,1074882,1278781,1328179,1513331,1634292,1639822,1648957,1890173,1890461,2027103,2027112,2158147,2184381,2358845,2909196,5473390]);galleries[48931]=new gallery(48931,"4695013,4659873,3951418,3865096,3788764,3674164,3589626,3449634,3369014,3368998,3151659,3151656,3040884,3026251,2960732,2955582,2920798,2907725,2907718,2853578,2622812,2218295,1871947,1793830,1606719,1573533,1478152,1451991,1225781,999485,990098,660417","Sport","section73043",[648105,660417,990098,999485,1225781,1451991,1478152,1573533,1606719,1793830,1871947,2218295,2622812,2853578,2907718,2907725,2920798,2955582,2960732,3026251,3040884,3151656,3151659,3368998,3369014,3449634,3589626,3674164,3788764,3865096,3951418,4548408,4568811,4659873,4695013]);galleries[48930]=new gallery(48930,"3226446,3226408,3091429,2585032,2468844,2452740,2351775,2351770,2197968,1923491,1721299,1704700,1520311,1187656","News","section73043",[642953,642954,642959,645748,645753,655993,1187656,1520311,1704700,1721299,1923491,2197968,2351770,2351775,2452740,2468844,2585032,3091429,3226408,3226446,4299683,4548412,4568772,4568852,6071093,6071117]);galleries[48934]=new gallery(48934,"5018215,5018212,5018166,5007880,5002922,5002921,3228077,2769350,2527366,1702287","Portraits","section73043",[641805,646058,1702287,2527366,2769350,3228077,5002921,5002922,5007880,5018166,5018212,5018215]);var imageSets=new Object();imageSets[1]="5473390,5018215,5018212,5018166,5007880,5002922,5002921,4695013,4659873,3951418,3865096,3788764,3722650,3722649,3722648,3722647,3674164,3589626,3470379,3449634,3369014,3368998,3228077,3226446,3226408,3151659,3151656,3091715,3091711,3091429,3091387,3040884,3026251,2960732,2955582,2920798,2909196,2907725,2907718,2853578,2769350,2622812,2585032,2527366,2468844,2452740,2358845,2351775,2351770,2218295,2197968,2184381,2158147,2027112,2027103,1923491,1890461,1890173,1871947,1793830,1721299,1704700,1702287,1648957,1639822,1634292,1606719,1573533,1520311,1513331,1478152,1451991,1328179,1278781,1225781,1187656,1074882,1070056,1055352,999485,999480,990098,738562,710081,660417,646100,646058,644254,642992,642959,641844";imageSets[2]="5473390,5018215,5018212,5018166,5007880,5002922,5002921,4695013,4659873,3951418,3865096,3788764,3722650,3722649,3722648,3722647,3674164,3589626,3470379,3470375,3449634,3369071,3369056,3369041,3369014,3368998,3228077,3226446,3226408,3151659,3151656,3093771,3091715,3091711,3091429,3091387,3040884,3026251,2960732,2955582,2920798,2909196,2907725,2907718,2853578,2769350,2622812,2585032,2527366,2468844,2452740,2358845,2351775,2351770,2218295,2197968,2184381,2158147,2027112,2027103,1923491,1890461,1890173,1871947,1793830,1721299,1704700,1702287,1648957,1639822,1634292,1606719,1573533,1520311,1513331,1478152,1451991,1328179,1278781,1225781,1187656,1074882,1070056,1055352,999485,999480,990098,738562,660417,646100,642992,641844";imageSets[3]="6071117,6071093,5473390,5018215,5018212,5018166,5007880,5002922,5002921,4695013,4659873,4568852,4568811,4568772,4548412,4548408,4299683,3951418,3865096,3788764,3722650,3722649,3722648,3722647,3674164,3589626,3470379,3470375,3449634,3369071,3369056,3369041,3369014,3368998,3228077,3226446,3226408,3151659,3151656,3093771,3091715,3091711,3091429,3091387,3040884,3026251,2960732,2955582,2920798,2909196";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/scottroddy/images";break}switch(a){case 1:b="http://www1.clikpic.com/scottroddy/images";break}switch(a){case 2:b="http://admin.clikpic.com/scottroddy/images";break}switch(a){case 24:b="http://tpc15/clikpic/scottroddy/images";break}switch(a){case 4:b="http://www.clikchurch.com/scottroddy/images";break}switch(a){case 5:b="http://www2.clikpic.com/scottroddy/images";break}switch(a){case 22:b="http://tpc5/clikpic/scottroddy/images";break}switch(a){case 23:b="http://tpc10/clikpic/scottroddy/images";break}switch(a){case 25:b="http://tpc16/clikpic/scottroddy/images";break}switch(a){case 15:b="http://www3.clikpic.com/scottroddy/images";break}switch(a){case 18:b="http://www4.clikpic.com/scottroddy/images";break}switch(a){case 19:b="http://www5.clikpic.com/scottroddy/images";break}switch(a){case 31:b="http://www7.clikpic.com/scottroddy/images";break}switch(a){case 32:b="http://admin2.clikpic.com/scottroddy/images";break}switch(a){case 33:b="http://www8.clikpic.com/scottroddy/images";break}switch(a){case 34:b="http://www9.clikpic.com/scottroddy/images";break}switch(a){case 35:b="http://admin3.clikpic.com/scottroddy/images";break}switch(a){case 37:b="http://admin4.clikpic.com/scottroddy/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("section73043"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section73043.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+backgrounds[imageID].caption+'" border="0">';if("section73043"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="roddy scott photography: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<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">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="item_name_1" value="'+e+'">';b=b+'<input type="hidden" name="item_description_1" value="'+ref+'">';b=b+'<input type="hidden" name="item_quantity_1" value="1">';b=b+'<input type="hidden" name="item_price_1" value="'+d+'">';b=b+'<input type="hidden" name="item_currency_1" value="GBP">';b=b+'<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;">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};