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[1259980]=new thumbnail(1259980,"118333","Wedding Gallery 1","_MG_1954-02-VAR_thumb.jpg",130,169,18);thumbnails[1259986]=new thumbnail(1259986,"118333","Wedding Gallery 1","_MG_1971-01_thumb.jpg",130,195,18);thumbnails[1259990]=new thumbnail(1259990,"118333","Wedding Gallery 1","_MG_1972-01_thumb.jpg",130,87,18);thumbnails[1259991]=new thumbnail(1259991,"118333","Wedding Gallery 1","_MG_1972-02-VAR_thumb.jpg",130,87,18);thumbnails[1259994]=new thumbnail(1259994,"118333","Wedding Gallery 1","_MG_1991-01_thumb.jpg",130,87,18);thumbnails[1259996]=new thumbnail(1259996,"118333","Wedding Gallery 1","_MG_2006-01_thumb.jpg",130,86,18);thumbnails[1259997]=new thumbnail(1259997,"118333","Wedding Gallery 1","_MG_2009-01_thumb.jpg",130,195,18);thumbnails[1259999]=new thumbnail(1259999,"118333","Wedding Gallery 1","_MG_2010-01_thumb.jpg",130,195,18);thumbnails[1260002]=new thumbnail(1260002,"118333","Wedding Gallery 1","_MG_2021-01_thumb.jpg",130,87,18);thumbnails[1260003]=new thumbnail(1260003,"118333","Wedding Gallery 1","_MG_2027-01_thumb.jpg",130,195,18);thumbnails[1260006]=new thumbnail(1260006,"118333","Wedding Gallery 1","_MG_2038-01_thumb.jpg",130,195,18);thumbnails[1260008]=new thumbnail(1260008,"118333","Wedding Gallery 1","_MG_2048-01_thumb.jpg",130,195,18);thumbnails[1761074]=new thumbnail(1761074,"118335","Portrait Gallery 1","Portrait-2-Kids-BW_thumb.jpg",130,82,18);thumbnails[1514916]=new thumbnail(1514916,"118335","Portrait Gallery 1 - The Queens Guard - Windsor","_MG_1275-01-The-Queens-Guar_thumb.jpg",130,346,18);thumbnails[1260929]=new thumbnail(1260929,"118335","Portrait Gallery 1","IMG_2085_thumb.jpg",130,160,18);thumbnails[1761073]=new thumbnail(1761073,"118335","Portrait Gallery 1","Portrait-1-kid-BW_thumb.jpg",130,195,18);thumbnails[1260933]=new thumbnail(1260933,"118335","Portrait Gallery 1","IMG_20851_thumb.jpg",130,172,18);thumbnails[1260928]=new thumbnail(1260928,"118335","Portrait Gallery 1","IMG_2063_thumb.jpg",130,138,18);thumbnails[1260943]=new thumbnail(1260943,"118335","Portrait Gallery 1","IMG_20741_thumb.jpg",130,181,18);thumbnails[1247451]=new thumbnail(1247451,"118334","Wedding Gallery 2","Kelly-&-Mark_thumb.jpg",130,195,18);thumbnails[1247476]=new thumbnail(1247476,"118334","Wedding Gallery 2","Kelly-&-Mark---The-Boyz'_thumb.jpg",130,87,18);thumbnails[1247541]=new thumbnail(1247541,"118334","Wedding Gallery 2","Kelly-&-Mark---The-Family_thumb.jpg",130,50,18);thumbnails[1247560]=new thumbnail(1247560,"118334","Wedding Gallery 2","Kelly-&-Mark---The-Parents_thumb.jpg",130,87,18);thumbnails[1247570]=new thumbnail(1247570,"118334","Wedding Gallery 2","Kelly-&-Mark---The-Signing_thumb.jpg",130,195,18);thumbnails[1247577]=new thumbnail(1247577,"118334","Wedding Gallery 2","Kelly-&-Mark---The-Smile_thumb.jpg",130,141,18);thumbnails[1247578]=new thumbnail(1247578,"118334","Wedding Gallery 2","Kelly-&-Mark---The-Wedding-_thumb.jpg",130,87,18);thumbnails[1761061]=new thumbnail(1761061,"118334","Wedding Gallery 2","Kelly-&-Mark---Mr-&-Mrs-Hum_thumb.jpg",130,163,18);thumbnails[2874759]=new thumbnail(2874759,"178620","Portrait Gallery 3 - Little Darlings","Portrit---Fear-03_Final_thumb.jpg",130,163,18);thumbnails[3325433]=new thumbnail(3325433,"178620","Portrait Gallery 3 - Little Darlings","Portrit---Fear-20_thumb.09.01.jpg",130,87,18);thumbnails[1761062]=new thumbnail(1761062,"118334","Wedding Gallery 2","Kelly-&-Mark---The-Boyz'-2_thumb.jpg",130,72,18);thumbnails[2874760]=new thumbnail(2874760,"178620","Portrait Gallery 3 - Little Darlings","Portrit---Fear-04_thumb.jpg",130,163,18);thumbnails[3325434]=new thumbnail(3325434,"178620","Portrait Gallery 3 - Little Darlings","Portrit---Fear-20_thumb.09.jpg",130,87,18);thumbnails[1761063]=new thumbnail(1761063,"118334","Wedding Gallery 2","Kelly-&-Mark---The-Family1_thumb.jpg",130,50,18);thumbnails[1260731]=new thumbnail(1260731,"118336","Portrait Gallery 2","IMG_1930_thumb.jpg",130,172,18);thumbnails[1260734]=new thumbnail(1260734,"118336","Portrait Gallery 2","IMG_1924_thumb.jpg",130,74,18);thumbnails[1260737]=new thumbnail(1260737,"118336","Portrait Gallery 2","IMG_1937_thumb.jpg",130,181,18);thumbnails[2674770]=new thumbnail(2674770,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00002-011_thumb.jpg",130,130,18);thumbnails[2674771]=new thumbnail(2674771,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00018-012_thumb.jpg",130,195,18);thumbnails[2674772]=new thumbnail(2674772,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00044-012_thumb.jpg",130,87,18);thumbnails[2674773]=new thumbnail(2674773,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00050-012_thumb.jpg",130,195,18);thumbnails[2674774]=new thumbnail(2674774,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00071-012_thumb.jpg",130,195,18);thumbnails[2674775]=new thumbnail(2674775,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00090-012_thumb.jpg",130,195,18);thumbnails[2674776]=new thumbnail(2674776,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00105-012_thumb.jpg",130,87,18);thumbnails[2674777]=new thumbnail(2674777,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00125-012_thumb.jpg",130,195,18);thumbnails[2674778]=new thumbnail(2674778,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00153-011_thumb.jpg",130,87,18);thumbnails[2674779]=new thumbnail(2674779,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00175-011_thumb.jpg",130,87,18);thumbnails[2674780]=new thumbnail(2674780,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00184-011_thumb.jpg",130,87,18);thumbnails[2674781]=new thumbnail(2674781,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00332-011_thumb.jpg",130,195,18);thumbnails[2674782]=new thumbnail(2674782,"166973","Wedding Gallery 3","Wed-Ball_00202-011_thumb.jpg",130,87,18);thumbnails[2674783]=new thumbnail(2674783,"166973","Wedding Gallery 3","Wed-Ball_00258-012_thumb.jpg",130,195,18);thumbnails[2674784]=new thumbnail(2674784,"166973","Wedding Gallery 3","Wed-Ball_00271-012_thumb.jpg",130,87,18);thumbnails[2674785]=new thumbnail(2674785,"166973","Wedding Gallery 3","Wed-Ball_00378-012_thumb.jpg",130,195,18);thumbnails[2731937]=new thumbnail(2731937,"166973","Wedding Gallery 3","Web-Image-Wed-Ball_00375-01_thumb.jpg",130,110,18);thumbnails[579061]=new thumbnail(579061,"44444","Caerphilly Castle","Caerphilly_Castle_thumb.jpg",130,91,18);thumbnails[579087]=new thumbnail(579087,"44444","Castellamara Rockpool","Castellamara_Rockpool_thumb.jpg",130,98,18);thumbnails[579091]=new thumbnail(579091,"44444","Sunset Glare","mg_0564_Port_Talbot_Sunset__thumb.jpg",130,54,18);thumbnails[579104]=new thumbnail(579104,"44444","Mumbles Bay - Sunrise","Mumbles_Bay_Sunrise_thumb.jpg",130,71,18);thumbnails[579220]=new thumbnail(579220,"44444","Mumbles Bay, Sunrise v2","Mumbles_Bay_Sunrise_v2_thumb.jpg",130,54,18);thumbnails[585914]=new thumbnail(585914,"44444","Mumbles Bay Lighthouse, Swansea","Mumbles_Lighthouse_thumb.jpg",130,87,18);thumbnails[671880]=new thumbnail(671880,"44444","Three Cliffs Silhouette","Three_Cliffs_Silhouette_thumb.jpg",130,48,18);thumbnails[671888]=new thumbnail(671888,"44444","Worms Head - Rhossili","Darrell Fear_MG_1174-01 Worms Head, Rhossilli_thumb.jpg",130,36,18);thumbnails[671902]=new thumbnail(671902,"44444","Langland Bay - Swansea","Darrell-Fear_MG_0742-01-Lan_thumb.jpg",130,87,18);thumbnails[671909]=new thumbnail(671909,"44444","Swansea Marina","Darrell-Fear_MG_0976-01-Swa_thumb.jpg",130,87,18);thumbnails[671913]=new thumbnail(671913,"44444","Swansea Marina - A Different View","Darrell-Fear_MG_0977-01-Swa_thumb.jpg",130,87,18);thumbnails[671919]=new thumbnail(671919,"44444","Waterfall","Darrell-Fear_MG_1017-01-Mel_thumb.jpg",130,195,18);thumbnails[671921]=new thumbnail(671921,"44444","Country House","Darrell-Fear_MG_1143-01-Mar_thumb.jpg",130,87,18);thumbnails[671924]=new thumbnail(671924,"44444","Margam Country Castle","Darrell-Fear_MG_1160-01-Mar_thumb.jpg",130,87,18);thumbnails[671926]=new thumbnail(671926,"44444","Rhossili Beach","Darrell-Fear_MG_1162-01-Rho_thumb.jpg",130,87,18);thumbnails[675075]=new thumbnail(675075,"44444","Pumphouse","Old_Pumphouse_Sepia_thumb.jpg",130,98,18);thumbnails[675080]=new thumbnail(675080,"44444","A Portrait of Oystermouth Castle","Oystermouth_Castle_thumb.jpg",130,173,18);thumbnails[675089]=new thumbnail(675089,"44444","A Landscape of Oystermouth Castle","Oystermouth_Castle_v2_thumb.jpg",130,98,18);thumbnails[675099]=new thumbnail(675099,"44444","Port Talbot Silhouette","Port_Talbot_Steelworks_Suns_thumb.jpg",130,87,18);thumbnails[1036447]=new thumbnail(1036447,"44444","Caswell Bay - Swansea","Darrell-Fear_MG_0737-01-Cas2_thumb.jpg",130,87,18);thumbnails[1505255]=new thumbnail(1505255,"44444","Monochrome Boat View","_MG_1221-01-Monochrome-Boat_thumb.jpg",130,76,18);thumbnails[1514903]=new thumbnail(1514903,"44444","Windsor Castle Tower","_MG_1255-01-Windsor-Castle-_thumb.jpg",130,71,18);thumbnails[1514904]=new thumbnail(1514904,"44444","Windsor Castle Lanterns","_MG_1260-01-Windsor-Castle-_thumb.jpg",130,204,18);thumbnails[1514905]=new thumbnail(1514905,"44444","Windsor Castle Square","_MG_1261-01-Windsor-Castle-_thumb.jpg",130,67,18);thumbnails[1514906]=new thumbnail(1514906,"44444","Windsor Castle","_MG_1263-01-Windsor-Castle_thumb.jpg",130,184,18);thumbnails[1514907]=new thumbnail(1514907,"44444","St George's Chapel - Windsor","_MG_1273-01-St-George's-Cha_thumb.jpg",130,202,18);thumbnails[1514917]=new thumbnail(1514917,"44444","Market Cross House - Windsor","_MG_1285-01-Market-Cross-Ho_thumb.jpg",130,173,18);thumbnails[1514988]=new thumbnail(1514988,"44444","Windsor Pebble Street","_MG_1283-01-Windsor-Pebble-_thumb.jpg",130,101,18);thumbnails[5276406]=new thumbnail(5276406,"210437","Wedding Gallery 4","Wedding_Brayley_032_B30162CB-2219-B5B5-4C4D2AFEB0CE40DF_thumb.jpg",130,98,18);thumbnails[5276407]=new thumbnail(5276407,"210437","Wedding Gallery 4","Wedding_Brayley_070_thumb.jpg",130,87,18);thumbnails[5276408]=new thumbnail(5276408,"210437","Wedding Gallery 4","Wedding_Brayley_093_thumb.jpg",130,173,18);thumbnails[5276409]=new thumbnail(5276409,"210437","Wedding Gallery 4","Wedding_Brayley_103_B30167DC-2219-B5B5-4C4BFBB6337830BF_thumb.jpg",130,173,18);thumbnails[5276410]=new thumbnail(5276410,"210437","Wedding Gallery 4","Wedding_Brayley_187_B3016953-2219-B5B5-4C0513678F342059_thumb.jpg",130,195,18);thumbnails[5276411]=new thumbnail(5276411,"210437","Wedding Gallery 4","Wedding_Brayley_217-BW_thumb.jpg",130,130,18);thumbnails[579010]=new thumbnail(579010,"44477","The Bluebell","Bluebell_thumb.jpg",130,203,18);thumbnails[579029]=new thumbnail(579029,"44477","A Narccissi Community","Narcissi_Community_thumb.jpg",130,87,18);thumbnails[579033]=new thumbnail(579033,"44477","Roses - A mix of black and white","Roses_Black_White_thumb.jpg",130,98,18);thumbnails[665273]=new thumbnail(665273,"44477","A Beautiful Yellow Centred Flower.","Darrell-Fear_MG_0760-01-A-G_thumb.jpg",130,87,18);thumbnails[665284]=new thumbnail(665284,"44477","The Strike of the Lillie!","Darrell-Fear_MG_0780-01-A-C_thumb.jpg",130,87,18);thumbnails[665303]=new thumbnail(665303,"44477","A Lillie Leaf","Darrell-Fear_MG_0783-01-The_thumb.jpg",130,195,18);thumbnails[671765]=new thumbnail(671765,"44477","The Abstract Lillie","Darrell-Fear_MG_0781-01-A-C_thumb.jpg",130,87,18);thumbnails[671772]=new thumbnail(671772,"44477","The Cheese Grater","Darrell-Fear_MG_0784-01-The_thumb.jpg",130,78,18);thumbnails[1505256]=new thumbnail(1505256,"44477","Rose","_MG_1549-01-Rose_thumb.jpg",130,174,18);thumbnails[1505257]=new thumbnail(1505257,"44477","Drum Toms","_MG_2107-01-The-Drum-Toms_thumb.jpg",130,87,18);thumbnails[1505258]=new thumbnail(1505258,"44477","Rings","_MG_2196-01-Rings_thumb.jpg",130,130,18);thumbnails[1761070]=new thumbnail(1761070,"44477","Guitar Bridge","Guitar-Bridge-Acoustic_thumb.jpg",130,130,18);thumbnails[1761071]=new thumbnail(1761071,"44477","Guitar-Bridge-v2","Guitar-Bridge-v2_thumb.jpg",130,130,18);thumbnails[579039]=new thumbnail(579039,"44479","Brother and Sister","Bonnie_&_Nelson_thumb.jpg",130,79,18);thumbnails[579041]=new thumbnail(579041,"44479","Flight of the Bumble Bee","Flight_Of_The_Bumble_Bee_thumb.jpg",130,100,18);thumbnails[579056]=new thumbnail(579056,"44479","Fly Blackbird","Flying_Blackbird_thumb.jpg",130,112,18);thumbnails[579058]=new thumbnail(579058,"44479","An Inquisitive Sheep","MG_0554-An-Inquisitive_Shee_thumb.jpg",130,204,18);thumbnails[665307]=new thumbnail(665307,"44479","The White Owl","Darrell-Fear_MG_1148-01-The_thumb.jpg",130,195,18);thumbnails[665336]=new thumbnail(665336,"44479","The Mysterious Owl","Darrell-Fear_MG_1150-01-The_thumb.jpg",130,195,18);thumbnails[665353]=new thumbnail(665353,"44479","The Owl","Darrell-Fear_MG_1151-01-The_thumb.jpg",130,195,18);thumbnails[1761083]=new thumbnail(1761083,"44479","Parrot from Bristol Zoo","2007-Bristol-Zoo-04-Parrott_thumb.jpg",130,49,18);thumbnails[1761079]=new thumbnail(1761079,"44479","Gorilla","2007-Bristol-11-Gorilla_thumb.jpg",130,186,18);thumbnails[1761085]=new thumbnail(1761085,"44479","Monkey","2007-Bristol-Zoo-05-Monkey_thumb.jpg",130,88,18);thumbnails[1761091]=new thumbnail(1761091,"44479","Seals","2007-Bristol-Zoo-11-Seals_thumb.jpg",130,86,18);thumbnails[1761080]=new thumbnail(1761080,"44479","Bristol Zoo - Seals","2007-Bristol-Zoo-01-Seals_thumb.jpg",130,195,18);thumbnails[1761086]=new thumbnail(1761086,"44479","Bristol Zoo - Penguin","2007-Bristol-Zoo-06-Penguin_thumb.jpg",130,195,18);thumbnails[1761092]=new thumbnail(1761092,"44479","Bristol Zoo - Penguin","2007-Bristol-Zoo-12-Penguin_thumb.jpg",130,87,18);thumbnails[1761081]=new thumbnail(1761081,"44479","Bristol Zoo - Meerkat","2007-Bristol-Zoo-02-Meerkat_thumb.jpg",130,214,18);thumbnails[1761087]=new thumbnail(1761087,"44479","Bristol Zoo - Lizard","2007-Bristol-Zoo-07-Lizard_thumb.jpg",130,207,18);thumbnails[1761093]=new thumbnail(1761093,"44479","Bristol Zoo - Underwater Penguin","2007-Bristol-Zoo-14-Penguin_thumb.jpg",130,56,18);thumbnails[1761082]=new thumbnail(1761082,"44479","Bristol Zoo - Meerkat","2007-Bristol-Zoo-03-Meerkat_thumb.jpg",130,195,18);thumbnails[1761088]=new thumbnail(1761088,"44479","Bristol Zoo - Monkey","2007-Bristol-Zoo-08-Monkey_thumb.jpg",130,207,18);thumbnails[1761089]=new thumbnail(1761089,"44479","Bristol Zoo - Monkey","2007-Bristol-Zoo-10-Monkey_thumb.jpg",130,167,18);var galleries=new Object();galleries[118335]=new gallery(118335,"1761074,1761073,1514916,1260943,1260933,1260929","Portrait Gallery 1","gallery",[1761074,1514916,1260929,1761073,1260933,1260928,1260943]);galleries[118326]=new gallery(118326,"5276410,2731937,2674785,2674784,2674782,2674780,2674779,2674777,2674774,2674773,2674772,2674771,2674770,1259997,1259991,1247570,1247451","Wedding","gallery",[]);galleries[118333]=new gallery(118333,"1259997,1259991","Wedding Gallery 1","gallery",[1259980,1259986,1259990,1259991,1259994,1259996,1259997,1259999,1260002,1260003,1260006,1260008]);galleries[118327]=new gallery(118327,"3325434,3325433,2874760,2874759,1761074,1761073,1514916,1260943,1260933,1260929","Portrait ","gallery",[]);galleries[178620]=new gallery(178620,"3325434,3325433,2874760,2874759","Portrait Gallery 3 - Little Darlings","gallery",[2874759,3325433,2874760,3325434]);galleries[118334]=new gallery(118334,"1247570,1247451","Wedding Gallery 2","gallery",[1247451,1247476,1247541,1247560,1247570,1247577,1247578,1761061,1761062,1761063]);galleries[118336]=new gallery(118336,"1260737,1260734,1260731","Portrait Gallery 2","gallery",[1260731,1260734,1260737]);galleries[166973]=new gallery(166973,"2731937,2674785,2674784,2674782,2674780,2674779,2674777,2674774,2674773,2674772,2674771,2674770","Wedding Gallery 3","gallery",[2674770,2674771,2674772,2674773,2674774,2674775,2674776,2674777,2674778,2674779,2674780,2674781,2674782,2674783,2674784,2674785,2731937]);galleries[44444]=new gallery(44444,"1514917,1514904,675080,675075,671926,671924,671921,671888,671880,579220,579104,579091","Landscapes","gallery",[579061,579087,579091,579104,579220,585914,671880,671888,671902,671909,671913,671919,671921,671924,671926,675075,675080,675089,675099,1036447,1505255,1514903,1514904,1514905,1514906,1514907,1514917,1514988]);galleries[118328]=new gallery(118328,"1761071,1514917,1514904,1505258,1505256,675080,675075,671926,671924,671921,671888,671880,671772,671765,665307,665303,665284,579220,579104,579091","Other ","gallery",[]);galleries[210437]=new gallery(210437,"5276410","Wedding Gallery 4","gallery",[5276406,5276407,5276408,5276409,5276410,5276411]);galleries[44477]=new gallery(44477,"1761071,1505258,1505256,671772,671765,665303,665284","Close Up","gallery",[579010,579029,579033,665273,665284,665303,671765,671772,1505256,1505257,1505258,1761070,1761071]);galleries[44479]=new gallery(44479,"665307","Wildlife","gallery",[579039,579041,579056,579058,665307,665336,665353,1761083,1761079,1761085,1761091,1761080,1761086,1761092,1761081,1761087,1761093,1761082,1761088,1761089]);var imageSets=new Object();imageSets[1]="5276411,5276410,5276409,3325434,2874759,2731937,2674785,2674784,2674783,2674780,2674779,2674777,2674774,2674773,2674772,2674771,2674770,1761074,1505256,1259991,671924,671921,671888";imageSets[2]="5276410,3325434,3325433,2874760,2874759,2731937,2674785,2674784,2674782,2674780,2674779,2674777,2674774,2674773,2674772,2674771,2674770,1761074,1761073,1761071,1514917,1514916,1514904,1505258,1505256,1260943,1260933,1260929,1259997,1259991,1247570,1247451,675080,675075,671926,671924,671921,671888,671880,671772,671765,665307,665303,665284,579220,579104,579091";imageSets[3]="3325434,3325433,2874760,2874759,2731937,2674785,2674784,2674783,2674782,2674781,2674780,2674779,2674778,2674777,2674776,2674775,2674774,2674773,2674772,2674771,2674770,1761093,1761092,1761091,1761089,1761088,1761087,1761086,1761085,1761083,1761082,1761081,1761080,1761079,1761074,1761073,1761071,1761070,1761063,1761062,1761061,1514988,1514917,1514916,1514907,1514906,1514905,1514904,1514903,1505258";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 34:b="http://www9.clikpic.com/darrellfear/images";break}switch(a){case 1:b="http://www1.clikpic.com/darrellfear/images";break}switch(a){case 2:b="http://admin.clikpic.com/darrellfear/images";break}switch(a){case 4:b="http://www.clikchurch.com/darrellfear/images";break}switch(a){case 5:b="http://www2.clikpic.com/darrellfear/images";break}switch(a){case 15:b="http://www3.clikpic.com/darrellfear/images";break}switch(a){case 21:b="http://www6.clikpic.com/darrellfear/images";break}switch(a){case 18:b="http://www4.clikpic.com/darrellfear/images";break}switch(a){case 19:b="http://www5.clikpic.com/darrellfear/images";break}switch(a){case 22:b="http://tpc5/clikpic/darrellfear/images";break}switch(a){case 23:b="http://tpc10/clikpic/darrellfear/images";break}switch(a){case 24:b="http://tpc15/clikpic/darrellfear/images";break}switch(a){case 25:b="http://tpc16/clikpic/darrellfear/images";break}switch(a){case 31:b="http://www7.clikpic.com/darrellfear/images";break}switch(a){case 32:b="http://admin2.clikpic.com/darrellfear/images";break}switch(a){case 33:b="http://www8.clikpic.com/darrellfear/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("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.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("gallery"!=""){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="Xposure Imaging: "+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> </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>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="DARRELLFEAR">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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+'")'})}}};