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[2631470]=new thumbnail(2631470,"166761","Original building - December 2005","IMG_1009_thumb.jpg",130,96,1);thumbnails[2631514]=new thumbnail(2631514,"166761","End View - December 2005","IMG_1029_thumb.jpg",130,121,1);thumbnails[2631528]=new thumbnail(2631528,"166761","Finally out of the ground","Picture 009a_thumb.jpg",130,98,1);thumbnails[2631579]=new thumbnail(2631579,"166761","The walls go up","Picture 023_thumb.jpg",130,98,1);thumbnails[2631582]=new thumbnail(2631582,"166761","","Picture 015_thumb.jpg",130,98,1);thumbnails[2631587]=new thumbnail(2631587,"166761","Rear View","Picture 016_thumb.jpg",130,98,1);thumbnails[2631589]=new thumbnail(2631589,"166761","Slating and flashing","Picture 017_thumb.jpg",130,98,1);thumbnails[2631609]=new thumbnail(2631609,"166761","Slating and flashing","Picture 025_thumb.jpg",130,98,1);thumbnails[2631648]=new thumbnail(2631648,"166761","August 2008","DSCF0977_thumb.jpg",130,96,1);thumbnails[2631662]=new thumbnail(2631662,"166761","Arial View","New Image_thumb.jpg",130,92,1);thumbnails[2631664]=new thumbnail(2631664,"166761","Rear View","DSCF0961_thumb.jpg",130,96,1);thumbnails[2631668]=new thumbnail(2631668,"166761","End View","DSCF0963_thumb.jpg",130,138,1);thumbnails[3943583]=new thumbnail(3943583,"239136","Drawing Room","01_thumb.jpg",130,87,1);thumbnails[3943590]=new thumbnail(3943590,"239136","DINING ROOM","02_thumb.jpg",130,87,1);thumbnails[3943591]=new thumbnail(3943591,"239136","MASTER BEDROOM","04_thumb.jpg",130,96,1);thumbnails[5214402]=new thumbnail(5214402,"294284","Cantilevered staircase","IMG_3444_thumb.jpg",130,87,1);thumbnails[5214436]=new thumbnail(5214436,"294284","Drawing Room","Drawing_Room_1_thumb.jpg",130,87,1);thumbnails[5334988]=new thumbnail(5334988,"294284","Drawing Room","Drawing_Room_3_thumb.jpg",130,87,1);thumbnails[5335008]=new thumbnail(5335008,"294284","Kitchen","Kitchen_1_thumb.jpg",130,87,1);thumbnails[5335011]=new thumbnail(5335011,"294284","Kitchen","Kitchen_2_thumb.jpg",130,87,1);thumbnails[5335739]=new thumbnail(5335739,"294284","Dining Room","Dining_Room_2_thumb.jpg",130,87,1);thumbnails[5393276]=new thumbnail(5393276,"304388","Reception Room","Reception_Room_thumb.jpg",130,75,1);thumbnails[5567150]=new thumbnail(5567150,"315841","Drawing Room","Drawing_Room_thumb.jpg",130,89,1);thumbnails[5699905]=new thumbnail(5699905,"322827","Drawing Room","CGP38001-aw-001_thumb.jpg",130,87,1);thumbnails[5214458]=new thumbnail(5214458,"294284","Bedroom 1 Detail","IMG_3335_thumb.jpg",130,195,1);thumbnails[5214460]=new thumbnail(5214460,"294284","Staircase","IMG_3439_thumb.jpg",130,195,1);thumbnails[5214461]=new thumbnail(5214461,"294284","Entrance Hall","IMG_3371_thumb.jpg",130,195,1);thumbnails[5336224]=new thumbnail(5336224,"294284","Master Bedroom","Bed_1_1_thumb.jpg",130,87,1);thumbnails[5393280]=new thumbnail(5393280,"304388","Reception Room","Reception_Room_2_thumb.jpg",130,87,1);thumbnails[5567164]=new thumbnail(5567164,"315841","Dining Room","dining__018_thumb.jpg",130,87,1);thumbnails[5699908]=new thumbnail(5699908,"322827","Entrance Hall","CGP38001-aw-005_thumb.jpg",130,87,1);thumbnails[5336226]=new thumbnail(5336226,"294284","Master Bedroom","Bed_1_2_thumb.jpg",130,87,1);thumbnails[5214455]=new thumbnail(5214455,"294284","Bedroom 2","IMG_3359_thumb.jpg",130,87,1);thumbnails[5336242]=new thumbnail(5336242,"294284","Bedroom 3","Bed_3_1_thumb.jpg",130,87,1);thumbnails[5214462]=new thumbnail(5214462,"294284","Master Bathroom","IMG_3326_thumb.jpg",130,90,1);thumbnails[5214464]=new thumbnail(5214464,"294284","Master Bathroom","IMG_3329_thumb.jpg",130,87,1);thumbnails[5214465]=new thumbnail(5214465,"294284","Bathroom 2","IMG_3364_thumb.jpg",130,87,1);thumbnails[5393282]=new thumbnail(5393282,"304388","Roof Terrace","Roof_Terrace_thumb.jpg",130,94,1);thumbnails[5567175]=new thumbnail(5567175,"315841","Kitchen","Kitchen_15021873-1D09-001F-993E854F362DCB1E_thumb.jpg",130,87,1);thumbnails[5699911]=new thumbnail(5699911,"322827","Dining Room","CGP38001-aw-003_thumb.jpg",130,87,1);thumbnails[5336465]=new thumbnail(5336465,"294284","Bathroom 2","Bath_2_1_thumb.jpg",130,87,1);thumbnails[5336478]=new thumbnail(5336478,"294284","Dressing Room","Dressing_Room_2_thumb.jpg",130,87,1);thumbnails[5336484]=new thumbnail(5336484,"294284","Drawing Room","Drawing_Room_4_thumb.jpg",130,182,1);thumbnails[5336473]=new thumbnail(5336473,"294284","Guest WC","Guest_WC_1_thumb.jpg",130,126,1);thumbnails[5567210]=new thumbnail(5567210,"315841","Dining Room","Dining_Room1_thumb.jpg",130,195,1);thumbnails[5699912]=new thumbnail(5699912,"322827","Kitchen","CGP38001-aw-007_thumb.jpg",130,87,1);thumbnails[5337002]=new thumbnail(5337002,"294284","Dining Room","Dining_Room_1_thumb.jpg",130,179,1);thumbnails[5567218]=new thumbnail(5567218,"315841","Main Staircase","Main_Stair_thumb.jpg",130,195,1);thumbnails[5699915]=new thumbnail(5699915,"322827","Media Room","CGP38001-aw-006_thumb.jpg",130,87,1);thumbnails[5567228]=new thumbnail(5567228,"315841","Staircase to Roof Terrace","Roof_Stair_thumb.jpg",130,195,1);thumbnails[5699917]=new thumbnail(5699917,"322827","Master Bedroom","CGP38001-aw-004_thumb.jpg",130,87,1);thumbnails[5567344]=new thumbnail(5567344,"315841","Master Bedroom","m_bed_075_thumb.jpg",130,87,1);thumbnails[5567346]=new thumbnail(5567346,"315841","Bedroom 2","Bedroom_2_thumb.jpg",130,87,1);thumbnails[5567419]=new thumbnail(5567419,"315841","Master Bathroom","Master_Bathroom_2_thumb.jpg",130,87,1);thumbnails[5567353]=new thumbnail(5567353,"315841","Master Bedroom","m_bed_074_thumb.jpg",130,195,1);thumbnails[5567357]=new thumbnail(5567357,"315841","Master Bathroom","Master_Bathroom_1_thumb.jpg",130,195,1);thumbnails[5567361]=new thumbnail(5567361,"315841","Shower Room","shower_092_thumb.jpg",130,195,1);thumbnails[5567423]=new thumbnail(5567423,"315841","Bathroom 2","Bathroom_2_thumb.jpg",130,87,1);thumbnails[5567432]=new thumbnail(5567432,"315841","Roof Terrace","roof_078_thumb.jpg",130,87,1);thumbnails[5567433]=new thumbnail(5567433,"315841","Roof Terrace","roof_091_thumb.jpg",130,87,1);thumbnails[6044690]=new thumbnail(6044690,"315841","Steel Frame","100_0052_thumb.jpg",130,98,1);thumbnails[6044691]=new thumbnail(6044691,"315841","Steel Frame","100_0053_thumb.jpg",130,98,1);thumbnails[6044692]=new thumbnail(6044692,"315841","Steel Frame","100_0045_thumb.jpg",130,98,1);thumbnails[1637223]=new thumbnail(1637223,"110861","Drawing Room","71 EATON SQ edited_thumb.jpg",130,88,1);thumbnails[1642811]=new thumbnail(1642811,"111091","Gary Randall","DSCF0009_thumb.jpg",130,106,1);thumbnails[1643649]=new thumbnail(1643649,"110861","Lower Ground Floor","71 ES 01_thumb.jpg",130,86,1);thumbnails[1644116]=new thumbnail(1644116,"111091","Morwell Street","M ST FRONT FACADE WITH SKY_thumb.jpg",130,98,1);thumbnails[1643656]=new thumbnail(1643656,"110861","Rear Garden","71 ES 02_thumb.jpg",130,87,1);thumbnails[1644123]=new thumbnail(1644123,"111091","Morwell Street","M ST front elevation_thumb.jpg",130,82,1);thumbnails[1643659]=new thumbnail(1643659,"110861","Ground Floor Bedroom","71 ES 03_thumb.jpg",130,109,1);thumbnails[1644126]=new thumbnail(1644126,"111091","Morwell Street","M ST INTERNAL 01_thumb.jpg",130,102,1);thumbnails[1644128]=new thumbnail(1644128,"111091","Morwell Street","M ST INTERNAL 02_thumb.jpg",130,95,1);thumbnails[1644129]=new thumbnail(1644129,"111091","Morwell Street","M ST RECEPTION_thumb.jpg",130,98,1);thumbnails[1644149]=new thumbnail(1644149,"111091","Study","sk book 03_thumb.jpg",130,70,1);thumbnails[1644182]=new thumbnail(1644182,"111091","Study","sk book 011_thumb.jpg",130,122,1);thumbnails[1680501]=new thumbnail(1680501,"111091","Sandals, Jamaica","BTSNDLSVLL_243934_thumb.jpg",130,87,1);thumbnails[1680502]=new thumbnail(1680502,"111091","Sandals, Jamaica","dynamicimagea_thumb.jpg",130,87,1);thumbnails[1680503]=new thumbnail(1680503,"111091","Sandals, Jamaica","dynamicimage_thumb.jpg",130,87,1);thumbnails[1680504]=new thumbnail(1680504,"111091","Sandals, Jamica","SandalsDunnsRiver-39_thumb.jpg",130,128,1);thumbnails[1637219]=new thumbnail(1637219,"110862","Interior View","25A ASTWOOD MEWS edited_thumb.jpg",130,106,1);thumbnails[1643664]=new thumbnail(1643664,"110862","Original Layout","25 AM EX PLAN_thumb.jpg",130,94,1);thumbnails[1643667]=new thumbnail(1643667,"110862","As-Built Layout","25 AM AS PLAN_thumb.jpg",130,90,1);thumbnails[1643671]=new thumbnail(1643671,"110862","Kitchen","25 AM KITCHEN_thumb.jpg",130,86,1);thumbnails[1643678]=new thumbnail(1643678,"110862","Bathroom","25 AM BATHROOM_thumb.jpg",130,173,1);thumbnails[1643677]=new thumbnail(1643677,"110862","Structural glazing from above","25 AM GLAZING B_thumb.jpg",130,173,1);thumbnails[1643728]=new thumbnail(1643728,"110862","Shower Room","25 AM SHOWER_thumb.jpg",130,86,1);thumbnails[1811098]=new thumbnail(1811098,"110862","Living Space Before Refurb","IMG_0399_thumb.jpg",130,98,1);thumbnails[1811102]=new thumbnail(1811102,"110862","Living Space Before Refurb","IMG_0401_thumb.jpg",130,98,1);thumbnails[1810102]=new thumbnail(1810102,"121654","","P8090105_1_1_thumb.jpg",130,106,1);thumbnails[3011847]=new thumbnail(3011847,"121654","SHOWER - HALSWELL","IMG_0903_thumb.jpg",130,98,1);thumbnails[3033957]=new thumbnail(3033957,"121654","SHOWER - HALSWELL","IMG_0892_thumb.jpg",130,98,1);thumbnails[3011840]=new thumbnail(3011840,"121654","SHOWER - HALSWELL","IMG_0907_thumb.jpg",130,174,1);thumbnails[3011848]=new thumbnail(3011848,"121654","SHOWER - HALSWELL","P8010003_thumb.jpg",130,173,1);thumbnails[3033961]=new thumbnail(3033961,"121654","Bedroom dressing area","New_Image_thumb.JPG",130,173,1);thumbnails[5122566]=new thumbnail(5122566,"121654","Apartment in Spain","P5230017a_thumb.jpg",130,99,1);thumbnails[5122573]=new thumbnail(5122573,"121654","Apartment in Spain","P7070002_1a_thumb.jpg",130,98,1);thumbnails[5122574]=new thumbnail(5122574,"121654","Apartment in Spain","P5230025_1a_thumb.jpg",130,98,1);thumbnails[1637226]=new thumbnail(1637226,"110864","External View","155 HUDDLESTON RD edited_thumb.jpg",130,98,1);thumbnails[1642821]=new thumbnail(1642821,"111092","Matthew Dyer","MD Portrait3_thumb.JPG",130,127,1);thumbnails[1643760]=new thumbnail(1643760,"110864","Internal View","155 HUDDLESTON RD 01_thumb.jpg",130,98,1);thumbnails[1643762]=new thumbnail(1643762,"110864","Internal View","155 HUDDLESTON RD 02_thumb.jpg",130,98,1);thumbnails[1643786]=new thumbnail(1643786,"110864","External View","155 HUDDLESTON RD 03_thumb.jpg",130,173,1);thumbnails[1643790]=new thumbnail(1643790,"110864","Rooflight from above","155 HUDDLESTON RD 04_thumb.jpg",130,173,1);thumbnails[1643791]=new thumbnail(1643791,"110864","Internal View","155 HUDDLESTON RD 05_thumb.jpg",130,173,1);thumbnails[1643926]=new thumbnail(1643926,"110864","Rooflight from below","155 HUDDLESTON RD 06_thumb.jpg",130,98,1);thumbnails[1643927]=new thumbnail(1643927,"110864","Kitchen Warming Party","155 HUDDLESTON RD 07_thumb.jpg",130,98,1);thumbnails[1811069]=new thumbnail(1811069,"110864","Temporary Propping","IMG_1157_thumb.jpg",130,98,1);thumbnails[1637201]=new thumbnail(1637201,"110778","Unit 2 - After","UNIT 2, ANGEL YARD edited_thumb.jpg",130,87,1);thumbnails[1643993]=new thumbnail(1643993,"110778","Unit 2 - Before","UNIT 2, ANGEL YARD BEFORE_thumb.jpg",130,61,1);thumbnails[1644020]=new thumbnail(1644020,"110778","Reception Area","UNIT 2 LIVING ROOM 01_thumb.jpg",130,87,1);thumbnails[1644022]=new thumbnail(1644022,"110778","Reception Area","UNIT 2 LIVING ROOM 02_thumb.jpg",130,87,1);thumbnails[1644023]=new thumbnail(1644023,"110778","Kitchen","UNIT 2 KITCHEN 01_thumb.jpg",130,87,1);thumbnails[1644026]=new thumbnail(1644026,"110778","Master Bedroom","UNIT 2 BEDROOM 01_thumb.jpg",130,87,1);thumbnails[1644029]=new thumbnail(1644029,"110778","Bathroom","UNIT 2 BATHROOM 01_thumb.jpg",130,87,1);thumbnails[1644031]=new thumbnail(1644031,"110778","Shower Room","UNIT 2 SHOWER ROOM 01_thumb.jpg",130,87,1);thumbnails[1811083]=new thumbnail(1811083,"110778","Dining Area and Staircase","IMG_0973_thumb.jpg",130,98,1);thumbnails[1644037]=new thumbnail(1644037,"110778","Unit 3 - After","UNIT 3 POST RE-FURB_thumb.jpg",130,98,1);thumbnails[1644039]=new thumbnail(1644039,"110778","Unit 3 - Before","UNIT 3 PRE RE-FURB_thumb.jpg",130,98,1);thumbnails[1644024]=new thumbnail(1644024,"110778","Skylight over Stair","UNIT 2 SKYLIGHT OVER STAIR 01_thumb.jpg",130,173,1);thumbnails[1997513]=new thumbnail(1997513,"134011","","SASS197889_thumb.jpg",130,93,1);thumbnails[1997516]=new thumbnail(1997516,"134011","Kitchen","SASS197889A_thumb.jpg",130,93,1);thumbnails[1997520]=new thumbnail(1997520,"134011","Dining Room","SASS197889D_thumb.jpg",130,93,1);thumbnails[1997525]=new thumbnail(1997525,"134011","First Floor Sitting Room","SASS197889B_thumb.jpg",130,93,1);thumbnails[1637236]=new thumbnail(1637236,"110865","Internal View","1 ROBERTS MEWS edited_thumb.jpg",130,84,1);thumbnails[1643733]=new thumbnail(1643733,"110865","Reception Area","1 ROBERTS MEWS 02_thumb.jpg",130,75,1);thumbnails[1643734]=new thumbnail(1643734,"110865","Work Station","1 ROBERTS MEWS 01_thumb.jpg",130,75,1);thumbnails[1643742]=new thumbnail(1643742,"110865","Original Layout","1 ROBERTS MEWS EX PLAN_thumb.jpg",130,175,1);thumbnails[1643737]=new thumbnail(1643737,"110865","As-Built Layout","1 ROBERTS MEWS AB PLAN_thumb.jpg",130,178,1);thumbnails[4764826]=new thumbnail(4764826,"134024","Reception Room","49_HS_Recep_1_thumb.JPG",130,87,1);thumbnails[4764827]=new thumbnail(4764827,"134024","Rear Reception","49_HS_Recep_2_thumb.JPG",130,87,1);thumbnails[4764829]=new thumbnail(4764829,"134024","Kitchen","49_HS_Kitch_thumb.JPG",130,87,1);thumbnails[4764832]=new thumbnail(4764832,"134024","Dining Room","49_HS_Dining_thumb.JPG",130,87,1);thumbnails[4764834]=new thumbnail(4764834,"134024","Bedroom","49_HS_Bed_3_thumb.JPG",130,87,1);thumbnails[4764835]=new thumbnail(4764835,"134024","Bedroom","49_HS_Bed_2_thumb.JPG",130,87,1);thumbnails[1997596]=new thumbnail(1997596,"134024","Master Bathroom","222897_bath_RGBa_thumb.jpg",130,87,1);thumbnails[4764837]=new thumbnail(4764837,"134024","Bathroom 2","49_HS_Bath_2_thumb.JPG",130,87,1);thumbnails[5478704]=new thumbnail(5478704,"310042","Front Reception Room","Reception_1-2_thumb.jpg",130,87,1);thumbnails[5478758]=new thumbnail(5478758,"310042","Front Reception Room","Reception_1-1_thumb.jpg",130,87,1);thumbnails[5478759]=new thumbnail(5478759,"310042","Rear Reception Room","Reception_2-1_thumb.jpg",130,87,1);thumbnails[5478762]=new thumbnail(5478762,"310042","Kitchen","Kitchen_thumb.jpg",130,87,1);thumbnails[5478764]=new thumbnail(5478764,"310042","Dining Room","Dining_2_thumb.jpg",130,87,1);thumbnails[5478766]=new thumbnail(5478766,"310042","Dining Room","Dining_3_thumb.jpg",130,87,1);thumbnails[5478772]=new thumbnail(5478772,"310042","Bedroom 1","Bed_1-1_thumb.jpg",130,87,1);thumbnails[5478775]=new thumbnail(5478775,"310042","Bedroom 1","Bed_1-2_thumb.jpg",130,86,1);thumbnails[5478778]=new thumbnail(5478778,"310042","Bedroom 2","Bed_2-1_thumb.jpg",130,87,1);thumbnails[5478781]=new thumbnail(5478781,"310042","Dining Room","Dining_4_thumb.jpg",130,195,1);thumbnails[5478784]=new thumbnail(5478784,"310042","Stair Landing","Half_Landing_1_thumb.jpg",130,195,1);thumbnails[5478786]=new thumbnail(5478786,"310042","Master Bathroom","Bath_1_thumb.jpg",130,195,1);var galleries=new Object();galleries[315841]=new gallery(315841,"5567150","Belgravia Apartment","gallery",[5567150,5567164,5567175,5567210,5567218,5567228,5567344,5567346,5567419,5567353,5567357,5567361,5567423,5567432,5567433,6044690,6044691,6044692]);galleries[166761]=new gallery(166761,"2631470","Bourricourt","gallery",[2631470,2631514,2631528,2631579,2631582,2631587,2631589,2631609,2631648,2631662,2631664,2631668]);galleries[322827]=new gallery(322827,"5699905","Colherne Court","gallery",[5699905,5699908,5699911,5699912,5699915,5699917]);galleries[239136]=new gallery(239136,"3943583","Finchatton 1","gallery",[3943583,3943590,3943591]);galleries[304388]=new gallery(304388,"5393282,5393280,5393276","Finchatton 2","gallery",[5393276,5393280,5393282]);galleries[294284]=new gallery(294284,"5214402","Mayfair Apartment","gallery",[5214402,5214436,5334988,5335008,5335011,5335739,5214458,5214460,5214461,5336224,5336226,5214455,5336242,5214462,5214464,5214465,5336465,5336478,5336484,5336473,5337002]);galleries[110861]=new gallery(110861,"1637223","Eaton Square","gallery",[1637223,1643649,1643656,1643659]);galleries[111091]=new gallery(111091,"1642811","Gary Randall","section145967",[1642811,1644116,1644123,1644126,1644128,1644129,1644149,1644182,1680501,1680502,1680503,1680504]);galleries[110862]=new gallery(110862,"1637219","Astwood Mews","gallery",[1637219,1643664,1643667,1643671,1643678,1643677,1643728,1811098,1811102]);galleries[121654]=new gallery(121654,"1810102","Lisette de Roche","section145967",[1810102,3011847,3033957,3011840,3011848,3033961,5122566,5122573,5122574]);galleries[110864]=new gallery(110864,"1637226","Huddleston Road","gallery",[1637226,1643760,1643762,1643786,1643790,1643791,1643926,1643927,1811069]);galleries[111092]=new gallery(111092,"1642821","Matthew Dyer","section145967",[1642821]);galleries[110778]=new gallery(110778,"1637201","Angel Yard","gallery",[1637201,1643993,1644020,1644022,1644023,1644026,1644029,1644031,1811083,1644037,1644039,1644024]);galleries[134011]=new gallery(134011,"1997513","Victoria Square","gallery",[1997513,1997516,1997520,1997525]);galleries[110865]=new gallery(110865,"1637236","Roberts Mews","gallery",[1637236,1643733,1643734,1643742,1643737]);galleries[134024]=new gallery(134024,"4764837,4764835,4764834,4764832,4764829,4764827,4764826,1997596","Chelsea Houses 1","gallery",[4764826,4764827,4764829,4764832,4764834,4764835,1997596,4764837]);galleries[310042]=new gallery(310042,"5478758","Chelsea Houses 2","gallery",[5478704,5478758,5478759,5478762,5478764,5478766,5478772,5478775,5478778,5478781,5478784,5478786]);var imageSets=new Object();imageSets[1]="5567344,5393282,5393276,5336226,5214462,5214402,2631664,2631648,1680504,1644149,1644123,1637226,1637201";imageSets[2]="5699905,5567150,5478758,5214402,3943583,2631470,1997513,1810102,1642821,1642811,1637236,1637226,1637223,1637219,1637201";imageSets[3]="6044692,6044691,6044690,5699917,5699915,5699912,5699911,5699908,5699905,5567433,5567432,5567423,5567419,5567361,5567357,5567353,5567346,5567344,5567228,5567218,5567210,5567175,5567164,5567150,5478786,5478784,5478781,5478778,5478775,5478772,5478766,5478764,5478762,5478759,5478758,5478704,5393282,5393280,5393276,5337002,5336484,5336478,5336473,5336465,5336242,5336226,5336224,5335739,5335011,5335008";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/victor/images";break}switch(a){case 1:b="http://www1.clikpic.com/victor/images";break}switch(a){case 2:b="http://admin.clikpic.com/victor/images";break}switch(a){case 24:b="http://tpc15/clikpic/victor/images";break}switch(a){case 4:b="http://www.clikchurch.com/victor/images";break}switch(a){case 5:b="http://www2.clikpic.com/victor/images";break}switch(a){case 22:b="http://tpc5/clikpic/victor/images";break}switch(a){case 23:b="http://tpc10/clikpic/victor/images";break}switch(a){case 25:b="http://tpc16/clikpic/victor/images";break}switch(a){case 15:b="http://www3.clikpic.com/victor/images";break}switch(a){case 18:b="http://www4.clikpic.com/victor/images";break}switch(a){case 19:b="http://www5.clikpic.com/victor/images";break}switch(a){case 31:b="http://www7.clikpic.com/victor/images";break}switch(a){case 32:b="http://admin2.clikpic.com/victor/images";break}switch(a){case 33:b="http://www8.clikpic.com/victor/images";break}switch(a){case 34:b="http://www9.clikpic.com/victor/images";break}switch(a){case 35:b="http://admin3.clikpic.com/victor/images";break}switch(a){case 37:b="http://admin4.clikpic.com/victor/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("section145967"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section145967.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+escape(backgrounds[imageID].caption)+'" border="0">';if("section145967"!=""){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="GRA ARCHITECTURE & INTERIORS: "+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> 							"+(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+'<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+'")'})}}};