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[5008157]=new thumbnail(5008157,"185981","TIM WILLCOX, BBC NEWS PRESENTER","IMG_56151_thumb.JPG",130,87,32);thumbnails[5008167]=new thumbnail(5008167,"185981","ALEX SALMOND, SCOTTISH FIRST MINISTER","_MG_1777_thumb.JPG",130,87,32);thumbnails[5008179]=new thumbnail(5008179,"185981","NICK CLEGG, LIBERAL DEMOCRATS PARTY LEADER","IMG_9048_thumb.JPG",130,87,32);thumbnails[5008188]=new thumbnail(5008188,"185981",'JOHN MICKLETHWAIT, EDITOR OF "THE ECONOMIST"',"_MG_0015_thumb.JPG",130,87,32);thumbnails[5008192]=new thumbnail(5008192,"185981","NICHOLAS PENNY, NATIONAL GALLERY DIRECTOR","IMG_06801_thumb.JPG",130,89,32);thumbnails[5008197]=new thumbnail(5008197,"185981",'DAVID LEVY, AUTHOR OF "LOVE & SEX WITH ROBOTS"',"_MG_0759_thumb.JPG",130,90,32);thumbnails[5008206]=new thumbnail(5008206,"185981","TRISTAN GAREL JONES, FORMER TORY MP","IMG_8378_thumb.JPG",130,88,32);thumbnails[5008254]=new thumbnail(5008254,"185981",'TAHMIMA ANAM, AUTHOR OF "A GOLDEN AGE"',"IMG_91861_thumb.JPG",130,94,32);thumbnails[5008289]=new thumbnail(5008289,"185981","JOSE MONTILLA, PRESIDENT OF THE GENERALITAT OF CATALUNYA","IMG_0039_thumb.JPG",130,87,32);thumbnails[5008311]=new thumbnail(5008311,"185981","SPANISH CITY WORKERS REFLECT ON THE CREDIT CRUNCH","_MG_0153_thumb.JPG",130,95,32);thumbnails[5008360]=new thumbnail(5008360,"185981","BBC PROTEST","IMG_0327_thumb.JPG",130,87,32);thumbnails[5008381]=new thumbnail(5008381,"185981","TAMIL PROTEST","IMG_8243_thumb.JPG",130,87,32);thumbnails[5120248]=new thumbnail(5120248,"185981","JOSE MARIA AZNAR, FORMER SPANISH PRIME MINISTER","IMG_0044_thumb.JPG",130,87,32);thumbnails[5185764]=new thumbnail(5185764,"185981","VINCENT NICHOLS, ARCHBISHOP OF WESTMINSTER ","vincentnichols11_thumb.jpg",130,91,32);thumbnails[5704180]=new thumbnail(5704180,"185981","DOMINIC CARMAN, LIBERAL DEMOCRATS CANDIDATE FOR BARKING","IMG_0110_9C66B920-1EC9-D45B-1CA9D4F6AA5843DA_thumb.jpg",130,88,32);thumbnails[5789091]=new thumbnail(5789091,"185981","XAVI","IMG_0215_thumb.JPG",130,87,32);thumbnails[5862036]=new thumbnail(5862036,"185981","LONDON 2010 MARATHON","IMG_0067_thumb.JPG",130,87,32);thumbnails[5862066]=new thumbnail(5862066,"185981","CAROLINE CASEY, FOUNDING CEO OF THE 02/TELEFONICA ABILITY AWARDS ","IMG_0326_thumb.JPG",130,87,32);thumbnails[5018959]=new thumbnail(5018959,"186049","CHEW THE FAT","_MG_3175_thumb.JPG",130,87,32);thumbnails[5018960]=new thumbnail(5018960,"186049","TREVOR LOVEYS","_MG_3226_thumb.JPG",130,85,32);thumbnails[5018967]=new thumbnail(5018967,"186049","CHEW THE FAT","IMG_0055-2_thumb.jpg",130,87,32);thumbnails[5018975]=new thumbnail(5018975,"186049","MARINA, OJOS DE BRUJO","IMG_0614_thumb.JPG",130,87,32);thumbnails[5018977]=new thumbnail(5018977,"186049","M2MN","_MG_2565_thumb.JPG",130,97,32);thumbnails[5018990]=new thumbnail(5018990,"186049","LEGOPOPS","_MG_3371_thumb.JPG",130,89,32);thumbnails[5018994]=new thumbnail(5018994,"186049","MYKONOS CLOSING","IMG_0048_thumb.JPG",130,91,32);thumbnails[5019090]=new thumbnail(5019090,"186049","LEGOPOPS","IMG_0188_thumb.JPG",130,87,32);thumbnails[5019101]=new thumbnail(5019101,"186049","CHEW THE FAT","IMG_0058-2_thumb.jpg",130,87,32);thumbnails[5019106]=new thumbnail(5019106,"186049","CRAZY P","_MG_0736_thumb.JPG",130,88,32);thumbnails[5019115]=new thumbnail(5019115,"186049","CHEW THE FAT","IMG_0271_thumb.JPG",130,95,32);thumbnails[5019116]=new thumbnail(5019116,"186049","CHEW THE FAT","IMG_0297_thumb.JPG",130,93,32);thumbnails[5120228]=new thumbnail(5120228,"186049","RABID FESTIVAL","IMG_0028_thumb.JPG",130,87,32);thumbnails[5120231]=new thumbnail(5120231,"186049","RABID FESTIVAL","IMG_0109_thumb.JPG",130,87,32);thumbnails[5704186]=new thumbnail(5704186,"186049","FOAMO","IMG_0032_thumb.JPG",130,87,32);thumbnails[5704188]=new thumbnail(5704188,"186049","SCALLY DANDAN","IMG_0017_thumb.JPG",130,84,32);thumbnails[5704196]=new thumbnail(5704196,"186049","FAXE","IMG_0520_thumb.JPG",130,85,32);thumbnails[5704200]=new thumbnail(5704200,"186049","LEE MORTIMER","IMG_0168_thumb.JPG",130,87,32);thumbnails[5015299]=new thumbnail(5015299,"185665","JODY & MARCUS","IMG_0075_thumb.JPG",130,89,32);thumbnails[5015310]=new thumbnail(5015310,"185665","MOMS & KIDS","IMG_9249_thumb.JPG",130,87,32);thumbnails[5015316]=new thumbnail(5015316,"185665","BALANCE","IMG_5422_thumb.JPG",130,87,32);thumbnails[5015321]=new thumbnail(5015321,"185665","SMUG","IMG_0349_thumb.JPG",130,87,32);thumbnails[5015337]=new thumbnail(5015337,"185665","HOOD","IMG_9232_2_thumb.jpg",130,87,32);thumbnails[5015343]=new thumbnail(5015343,"185665","ABSENT","_MG_1075_thumb.JPG",130,87,32);thumbnails[5015344]=new thumbnail(5015344,"185665","YELLOW","_MG_1184_thumb.JPG",130,87,32);thumbnails[5015345]=new thumbnail(5015345,"185665","CHELSEA PENSIONER","IMG_9125_thumb.JPG",130,88,32);thumbnails[5015364]=new thumbnail(5015364,"185665","PRIEST","_MG_3859_thumb.JPG",130,88,32);thumbnails[5015369]=new thumbnail(5015369,"185665","RETHINK","rethink10_2_thumb.jpg",130,87,32);thumbnails[5015375]=new thumbnail(5015375,"185665","CARNIVAL","IMG_0063_thumb.JPG",130,83,32);thumbnails[5015383]=new thumbnail(5015383,"185665","EFE & RASCHELL","_MG_3970_thumb.JPG",130,85,32);thumbnails[5015402]=new thumbnail(5015402,"185665","GYPSY GIRL","IMG_49401_thumb.JPG",130,89,32);thumbnails[5015435]=new thumbnail(5015435,"185665","MYSTIC MAN & ESHAMANJARO","_MG_3804_thumb.JPG",130,86,32);thumbnails[5015442]=new thumbnail(5015442,"185665","STENCIL MAN","IMG_0489_thumb.JPG",130,90,32);thumbnails[5015447]=new thumbnail(5015447,"185665","PREACHER","IMG_5429_thumb.JPG",130,87,32);thumbnails[5052679]=new thumbnail(5052679,"185665","(UNTITLED) MAN IN A DINER","_MG_2518_thumb.JPG",130,87,32);thumbnails[5789131]=new thumbnail(5789131,"185665","BLINDED","IMG_0511_thumb.JPG",130,87,32);thumbnails[5015306]=new thumbnail(5015306,"185664","THE BUCKET","_MG_13031_thumb.JPG",130,89,32);thumbnails[5031144]=new thumbnail(5031144,"185664","KIYOMIZU-DERA SHRINE","kyozumidera11_thumb.jpg",130,87,32);thumbnails[5031160]=new thumbnail(5031160,"185664","PALAU DE LES ARTS","_MG_9560_thumb.JPG",130,87,32);thumbnails[5031225]=new thumbnail(5031225,"185664","VEHICLES","IMG_7164_thumb.JPG",130,87,32);thumbnails[5031360]=new thumbnail(5031360,"185664","AVENUES","IMG_8015_thumb.JPG",130,87,32);thumbnails[5031383]=new thumbnail(5031383,"185664","REFLECT ","IMG_7508_thumb.JPG",130,87,32);thumbnails[5031411]=new thumbnail(5031411,"185664","LIGHTS","IMG_5992_thumb.JPG",130,87,32);thumbnails[5031457]=new thumbnail(5031457,"185664","THAMES BARRIER","IMG_5724_thumb.JPG",130,87,32);thumbnails[5031463]=new thumbnail(5031463,"185664","CANARY WHARF","IMG_57461_thumb.JPG",130,87,32);thumbnails[5031470]=new thumbnail(5031470,"185664","TRAM","IMG_5504_thumb.JPG",130,87,32);thumbnails[5031479]=new thumbnail(5031479,"185664","NIGHT SCENE","IMG_5508_thumb.JPG",130,87,32);thumbnails[5031489]=new thumbnail(5031489,"185664","BUILDING","IMG_6884_thumb.JPG",130,87,32);thumbnails[5451928]=new thumbnail(5451928,"185664","AT YOUR FEET","IMG_7150_thumb.JPG",130,88,32);thumbnails[5451945]=new thumbnail(5451945,"185664","HEART & MIND","IMG_0197_thumb.JPG",130,87,32);thumbnails[5451962]=new thumbnail(5451962,"185664","THE VIEW FROM GALATA","IMG_0163-2_thumb.jpg",130,88,32);thumbnails[5451972]=new thumbnail(5451972,"185664","ESCAPE","IMG_0013_thumb.JPG",130,85,32);thumbnails[5451978]=new thumbnail(5451978,"185664","RETURN","IMG_0024_thumb.JPG",130,87,32);thumbnails[5451981]=new thumbnail(5451981,"185664","EASILY","IMG_0328_thumb.JPG",130,87,32);thumbnails[5031827]=new thumbnail(5031827,"217308","CONFESS","IMG_0252_thumb.JPG",130,87,32);thumbnails[5031830]=new thumbnail(5031830,"217308","STAZIONE CENTRALE","_MG_5262_thumb.JPG",130,87,32);thumbnails[5031871]=new thumbnail(5031871,"217308","TABLE","IMG_7401_thumb.JPG",130,87,32);thumbnails[5031876]=new thumbnail(5031876,"217308","GOODS AREA","_MG_1141_thumb.JPG",130,87,32);thumbnails[5031880]=new thumbnail(5031880,"217308","LA PLAZA REDONDA","_MG_9303_thumb.JPG",130,89,32);thumbnails[5031899]=new thumbnail(5031899,"217308","DRUGS FOR SALE","IMG_0277_thumb.JPG",130,87,32);thumbnails[5031912]=new thumbnail(5031912,"217308","CAFE","IMG_0264_thumb.JPG",130,87,32);thumbnails[5031914]=new thumbnail(5031914,"217308","INAMO ","IMG_6307_thumb.JPG",130,87,32);thumbnails[5031919]=new thumbnail(5031919,"217308","CABIN","IMG_7269_thumb.JPG",130,87,32);thumbnails[5031925]=new thumbnail(5031925,"217308","THE 8,9,0","IMG_55991_thumb.JPG",130,87,32);thumbnails[5031928]=new thumbnail(5031928,"217308","SIGNS & VENTILATOR","IMG_7385_thumb.JPG",130,87,32);thumbnails[5031934]=new thumbnail(5031934,"217308","JAZZ BAR","_MG_9569_thumb.JPG",130,90,32);thumbnails[5031939]=new thumbnail(5031939,"217308","CANDLES","IMG_76511_thumb.JPG",130,87,32);thumbnails[5031942]=new thumbnail(5031942,"217308","EL BAHIA","IMG_8802_thumb.JPG",130,85,32);thumbnails[5031945]=new thumbnail(5031945,"217308","CAR PARK","IMG_9243_thumb.JPG",130,87,32);thumbnails[5452579]=new thumbnail(5452579,"217308","NO.6","IMG_0002_thumb.JPG",130,87,32);thumbnails[5452587]=new thumbnail(5452587,"217308","REST HOTEL MENU","IMG_6697_thumb.JPG",130,87,32);thumbnails[5452626]=new thumbnail(5452626,"217308","(UNTITLED)","IMG_0217_thumb.JPG",130,87,32);thumbnails[5448471]=new thumbnail(5448471,"292806","SHOE SHINE","IMG_0037-31_thumb.jpg",130,89,32);thumbnails[5448492]=new thumbnail(5448492,"292806","STREET VENDOR","IMG_0086-2_thumb.JPG",130,87,32);thumbnails[5448494]=new thumbnail(5448494,"292806","JEANS","IMG_00392_thumb.JPG",130,90,32);thumbnails[5448514]=new thumbnail(5448514,"292806","SUBWAY STALL","IMG_0047_thumb.JPG",130,87,32);thumbnails[5448521]=new thumbnail(5448521,"292806","STOCK EXCHANGE","IMG_0065-31_thumb.jpg",130,87,32);thumbnails[5448530]=new thumbnail(5448530,"292806","CIGARETTE & NEWSPAPER","IMG_0031-2_thumb.JPG",130,87,32);thumbnails[5448537]=new thumbnail(5448537,"292806","BETWEEN LANDS","IMG_00691_thumb.JPG",130,87,32);thumbnails[5448544]=new thumbnail(5448544,"292806","USKUDAR BOUND","IMG_00571_thumb.JPG",130,87,32);thumbnails[5448548]=new thumbnail(5448548,"292806","FAITH IN TRANSIT","IMG_00721_thumb.JPG",130,87,32);thumbnails[5448554]=new thumbnail(5448554,"292806","WANDERING EYES","IMG_00191_thumb.JPG",130,87,32);thumbnails[5448556]=new thumbnail(5448556,"292806","MOTHER & SON","IMG_00311_thumb.JPG",130,87,32);thumbnails[5448563]=new thumbnail(5448563,"292806","NO.97G","IMG_00341_thumb.JPG",130,87,32);thumbnails[5448573]=new thumbnail(5448573,"292806","NO.97","IMG_00331_thumb.JPG",130,87,32);thumbnails[5448576]=new thumbnail(5448576,"292806","PRAY","IMG_0091-31_thumb.jpg",130,87,32);thumbnails[5448578]=new thumbnail(5448578,"292806","(UNTITLED)","IMG_0110_thumb.JPG",130,87,32);thumbnails[5448580]=new thumbnail(5448580,"292806","AFTERNOON LIGHT","IMG_0105-3_thumb.JPG",130,87,32);thumbnails[5448584]=new thumbnail(5448584,"292806","SOLEMNLY","IMG_0103-2_thumb.JPG",130,87,32);thumbnails[5448590]=new thumbnail(5448590,"292806","TO SUBMIT","IMG_0126-21_thumb.jpg",130,87,32);thumbnails[4945225]=new thumbnail(4945225,"232146","POLICE MAN","IMG_7106_thumb.JPG",130,87,32);thumbnails[4945230]=new thumbnail(4945230,"232146","TAXI DRIVER","IMG_7103_thumb.JPG",130,87,32);thumbnails[4945238]=new thumbnail(4945238,"232146","PLATFORM QUEUE","IMG_7129_thumb.JPG",130,87,32);thumbnails[4945242]=new thumbnail(4945242,"232146","TRAFFIC WARDEN","IMG_7991_thumb.JPG",130,87,32);thumbnails[4945248]=new thumbnail(4945248,"232146","FISHMARKET SELLER","IMG_7907_thumb.JPG",130,87,32);thumbnails[4945256]=new thumbnail(4945256,"232146","FISHMARKET LADY","IMG_7857_thumb.JPG",130,87,32);thumbnails[4945262]=new thumbnail(4945262,"232146","BREAKFAST TEMPURA","IMG_8011_thumb.JPG",130,87,32);thumbnails[4945263]=new thumbnail(4945263,"232146","VAGRANT WOMAN","IMG_7086_thumb.JPG",130,87,32);thumbnails[4945522]=new thumbnail(4945522,"232146","RETRO","IMG_7601_thumb.JPG",130,87,32);thumbnails[4945527]=new thumbnail(4945527,"232146","PACHINKO WOMAN","IMG_66912_thumb.JPG",130,87,32);thumbnails[4945536]=new thumbnail(4945536,"232146","GOTHIC LOLITA","IMG_7094_thumb.JPG",130,87,32);thumbnails[4945543]=new thumbnail(4945543,"232146","CARTOON DISGUISES","IMG_7755_thumb.JPG",130,87,32);thumbnails[4945551]=new thumbnail(4945551,"232146","MAZINGER-Z","IMG_6754_thumb.JPG",130,87,32);thumbnails[4945558]=new thumbnail(4945558,"232146","JAPANESE WEDDING","IMG_70011_thumb.JPG",130,87,32);thumbnails[4945582]=new thumbnail(4945582,"232146","JAPANESE BRIDE","IMG_7025_thumb.JPG",130,87,32);thumbnails[4945587]=new thumbnail(4945587,"232146","SHINTO SHRINE","IMG_8148_thumb.JPG",130,87,32);thumbnails[4945590]=new thumbnail(4945590,"232146","THE STRANGERS","IMG_7745_thumb.JPG",130,87,32);thumbnails[4945594]=new thumbnail(4945594,"232146","SHRINE GARDENER","IMG_7639_thumb.JPG",130,87,32);var galleries=new Object();galleries[185981]=new gallery(185981,"5862066,5862036,5789091,5704180,5185764,5120248,5008381,5008360,5008311,5008289,5008254,5008206,5008197,5008192,5008188,5008179,5008167,5008157","PRESS","gallery",[5008157,5008167,5008179,5008188,5008192,5008197,5008206,5008254,5008289,5008311,5008360,5008381,5120248,5185764,5704180,5789091,5862036,5862066]);galleries[186049]=new gallery(186049,"5704200,5704196,5704188,5704186,5120231,5120228,5019116,5019115,5019106,5019101,5019090,5018994,5018990,5018977,5018975,5018967,5018960,5018959","EVENT","gallery",[5018959,5018960,5018967,5018975,5018977,5018990,5018994,5019090,5019101,5019106,5019115,5019116,5120228,5120231,5704186,5704188,5704196,5704200]);galleries[291804]=new gallery(291804,"5448590,5448584,5448580,5448578,5448576,5448573,5448563,5448556,5448554,5448548,5448544,5448537,5448530,5448521,5448514,5448494,5448492,5448471,4945594,4945590,4945587,4945582,4945558,4945551,4945543,4945536,4945527,4945522,4945263,4945262,4945256,4945248,4945242,4945238,4945230,4945225","TRAVEL","gallery",[]);galleries[292645]=new gallery(292645,"5789131,5452626,5452587,5452579,5451981,5451978,5451972,5451962,5451945,5451928,5052679,5031945,5031942,5031939,5031934,5031928,5031925,5031919,5031914,5031912,5031899,5031880,5031876,5031871,5031830,5031827,5031489,5031479,5031470,5031463,5031457,5031411,5031383,5031360,5031225,5031160,5031144,5015447,5015442,5015435,5015402,5015383,5015375,5015369,5015364,5015345,5015344,5015343,5015337,5015321,5015316,5015310,5015306,5015299","PERSONAL","gallery",[]);galleries[185665]=new gallery(185665,"5789131,5052679,5015447,5015442,5015435,5015402,5015383,5015375,5015369,5015364,5015345,5015344,5015343,5015337,5015321,5015316,5015310,5015299","PORTRAIT","gallery",[5015299,5015310,5015316,5015321,5015337,5015343,5015344,5015345,5015364,5015369,5015375,5015383,5015402,5015435,5015442,5015447,5052679,5789131]);galleries[185664]=new gallery(185664,"5451981,5451978,5451972,5451962,5451945,5451928,5031489,5031479,5031470,5031463,5031457,5031411,5031383,5031360,5031225,5031160,5031144,5015306","EXTERIOR","gallery",[5015306,5031144,5031160,5031225,5031360,5031383,5031411,5031457,5031463,5031470,5031479,5031489,5451928,5451945,5451962,5451972,5451978,5451981]);galleries[217308]=new gallery(217308,"5452626,5452587,5452579,5031945,5031942,5031939,5031934,5031928,5031925,5031919,5031914,5031912,5031899,5031880,5031876,5031871,5031830,5031827","INTERIOR","gallery",[5031827,5031830,5031871,5031876,5031880,5031899,5031912,5031914,5031919,5031925,5031928,5031934,5031939,5031942,5031945,5452579,5452587,5452626]);galleries[292806]=new gallery(292806,"5448590,5448584,5448580,5448578,5448576,5448573,5448563,5448556,5448554,5448548,5448544,5448537,5448530,5448521,5448514,5448494,5448492,5448471","TURKEY","gallery",[5448471,5448492,5448494,5448514,5448521,5448530,5448537,5448544,5448548,5448554,5448556,5448563,5448573,5448576,5448578,5448580,5448584,5448590]);galleries[232146]=new gallery(232146,"4945594,4945590,4945587,4945582,4945558,4945551,4945543,4945536,4945527,4945522,4945263,4945262,4945256,4945248,4945242,4945238,4945230,4945225","JAPAN","gallery",[4945225,4945230,4945238,4945242,4945248,4945256,4945262,4945263,4945522,4945527,4945536,4945543,4945551,4945558,4945582,4945587,4945590,4945594]);var imageSets=new Object();imageSets[1]="5862066,5862036,5789131,5789091,5704200,5704196,5704188,5704186,5704180,5452626,5452587,5452579,5451981,5451978,5451972,5451962,5451945,5451928,5448590,5448584,5448580,5448578,5448576,5448573,5448563,5448556,5448554,5448548,5448544,5448537,5448530,5448521,5448514,5448494,5448492,5448471,5185764,5120248,5120231,5120228,5052679,5031945,5031942,5031939,5031934,5031928,5031925,5031919,5031914,5031912,5031899,5031880,5031876,5031871,5031830,5031827,5031489,5031479,5031470,5031463,5031457,5031411,5031383,5031360,5031225,5031160,5031144,5019116,5019115,5019106,5019101,5019090,5018994,5018990,5018977,5018975,5018967,5018960,5018959,5015447,5015442,5015435,5015402,5015383,5015375,5015369,5015364,5015345,5015344,5015343,5015337,5015321,5015316,5015310,5015306,5015299,5008381,5008360,5008311,5008289,5008254,5008206,5008197,5008192,5008188,5008179,5008167,5008157,4945594,4945590,4945587,4945582,4945558,4945551,4945543,4945536,4945527,4945522,4945263,4945262,4945256,4945248,4945242,4945238,4945230,4945225";imageSets[2]="5862066,5862036,5789131,5789091,5704200,5704196,5704188,5704186,5704180,5452626,5452587,5452579,5451981,5451978,5451972,5451962,5451945,5451928,5448590,5448584,5448580,5448578,5448576,5448573,5448563,5448556,5448554,5448548,5448544,5448537,5448530,5448521,5448514,5448494,5448492,5448471,5185764,5120248,5120231,5120228,5052679,5031945,5031942,5031939,5031934,5031928,5031925,5031919,5031914,5031912,5031899,5031880,5031876,5031871,5031830,5031827,5031489,5031479,5031470,5031463,5031457,5031411,5031383,5031360,5031225,5031160,5031144,5019116,5019115,5019106,5019101,5019090,5018994,5018990,5018977,5018975,5018967,5018960,5018959,5015447,5015442,5015435,5015402,5015383,5015375,5015369,5015364,5015345,5015344,5015343,5015337,5015321,5015316,5015310,5015306,5015299,5008381,5008360,5008311,5008289,5008254,5008206,5008197,5008192,5008188,5008179,5008167,5008157,4945594,4945590,4945587,4945582,4945558,4945551,4945543,4945536,4945527,4945522,4945263,4945262,4945256,4945248,4945242,4945238,4945230,4945225";imageSets[3]="5862066,5862036,5789131,5789091,5704200,5704196,5704188,5704186,5704180,5452626,5452587,5452579,5451981,5451978,5451972,5451962,5451945,5451928,5448590,5448584,5448580,5448578,5448576,5448573,5448563,5448556,5448554,5448548,5448544,5448537,5448530,5448521,5448514,5448494,5448492,5448471,5185764,5120248,5120231,5120228,5052679,5031945,5031942,5031939,5031934,5031928,5031925,5031919,5031914,5031912";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/dajasahi/images";break}switch(a){case 1:b="http://www1.clikpic.com/dajasahi/images";break}switch(a){case 2:b="http://admin.clikpic.com/dajasahi/images";break}switch(a){case 24:b="http://tpc15/clikpic/dajasahi/images";break}switch(a){case 4:b="http://www.clikchurch.com/dajasahi/images";break}switch(a){case 5:b="http://www2.clikpic.com/dajasahi/images";break}switch(a){case 22:b="http://tpc5/clikpic/dajasahi/images";break}switch(a){case 23:b="http://tpc10/clikpic/dajasahi/images";break}switch(a){case 25:b="http://tpc16/clikpic/dajasahi/images";break}switch(a){case 15:b="http://www3.clikpic.com/dajasahi/images";break}switch(a){case 18:b="http://www4.clikpic.com/dajasahi/images";break}switch(a){case 19:b="http://www5.clikpic.com/dajasahi/images";break}switch(a){case 31:b="http://www7.clikpic.com/dajasahi/images";break}switch(a){case 32:b="http://admin2.clikpic.com/dajasahi/images";break}switch(a){case 33:b="http://www8.clikpic.com/dajasahi/images";break}switch(a){case 34:b="http://www9.clikpic.com/dajasahi/images";break}switch(a){case 35:b="http://admin3.clikpic.com/dajasahi/images";break}switch(a){case 37:b="http://admin4.clikpic.com/dajasahi/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=photos[f].caption+": DAVIDSALASphotography";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].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://www.paypal.com/cgi-bin/webscr" 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="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="DAJASAHI@YAHOO.COM">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="DAJASAHI@YAHOO.COM">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';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+'")'})}}};