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[2536113]=new thumbnail(2536113,"161994","montage-1","montage-11_thumb.jpg",130,130,1);thumbnails[2546200]=new thumbnail(2546200,"161994","montage-4","montage-4_thumb.jpg",130,87,1);thumbnails[2777727]=new thumbnail(2777727,"172339","Adam-montage","Adam-montage_thumb.jpg",130,86,1);thumbnails[2536114]=new thumbnail(2536114,"161994","montage-2","montage-2_thumb.jpg",130,87,1);thumbnails[2304057]=new thumbnail(2304057,"150735","Zoe-P-2b","Zoe-P-2b_thumb.jpg",130,87,1);thumbnails[2304058]=new thumbnail(2304058,"150735","Zoe-P-8b","Zoe-P-8b_thumb.jpg",130,194,1);thumbnails[2536119]=new thumbnail(2536119,"161994"," DSC1791","_DSC1791_thumb.jpg",130,163,1);thumbnails[2536121]=new thumbnail(2536121,"161994"," DSC1802","_DSC1802_thumb.jpg",130,163,1);thumbnails[2345750]=new thumbnail(2345750,"150735","Zoe-P-30","Zoe-P-30_thumb.jpg",130,195,1);thumbnails[2777737]=new thumbnail(2777737,"172339"," JTP3052","_JTP3052_thumb.jpg",130,104,1);thumbnails[2536124]=new thumbnail(2536124,"161994"," DSC1819a","_DSC1819a_thumb.jpg",130,65,1);thumbnails[2345761]=new thumbnail(2345761,"150735","Zoe-P-28b","Zoe-P-28b_thumb.jpg",130,195,1);thumbnails[2536125]=new thumbnail(2536125,"161994"," DSC1861","_DSC1861_thumb.jpg",130,163,1);thumbnails[2345762]=new thumbnail(2345762,"150735","Zoe-P-35a","Zoe-P-35a_thumb.jpg",130,165,1);thumbnails[2536126]=new thumbnail(2536126,"161994"," DSC1918","_DSC1918_thumb.jpg",130,163,1);thumbnails[2777740]=new thumbnail(2777740,"172339"," JTP3055a","_JTP3055a_thumb.jpg",130,194,1);thumbnails[2345763]=new thumbnail(2345763,"150735","Zoe-P-36","Zoe-P-36_thumb.jpg",130,163,1);thumbnails[2542112]=new thumbnail(2542112,"161994","montage-3","montage-3_thumb.jpg",130,87,1);thumbnails[2777742]=new thumbnail(2777742,"172339"," JTP3059a","_JTP3059a_thumb.jpg",130,162,1);thumbnails[2542114]=new thumbnail(2542114,"161994"," DSC1806","_DSC1806_thumb.jpg",130,104,1);thumbnails[2546201]=new thumbnail(2546201,"161994"," DSC1814","_DSC1814_thumb.jpg",130,65,1);thumbnails[2546202]=new thumbnail(2546202,"161994"," DSC1822","_DSC1822_thumb.jpg",130,104,1);thumbnails[3029916]=new thumbnail(3029916,"176855","20x16-R1-background-2","20x16-R1-background-2_thumb.jpg",130,104,1);thumbnails[4013649]=new thumbnail(4013649,"202551","double-mount with name","double-mount_thumb.gif",130,87,1);thumbnails[3029917]=new thumbnail(3029917,"176855","montage-4","montage-42_thumb.jpg",130,58,1);thumbnails[3215009]=new thumbnail(3215009,"196373","Montage-2---12-x-8","Montage-2---12-x-8_thumb.jpg",130,87,1);thumbnails[2839096]=new thumbnail(2839096,"176855","montage-3","montage-31_thumb.jpg",130,87,1);thumbnails[3029918]=new thumbnail(3029918,"176855"," JTP3244","_JTP32441_thumb.jpg",130,104,1);thumbnails[3215012]=new thumbnail(3215012,"196373"," JTP5345b","_JTP5345b_thumb.jpg",130,162,1);thumbnails[1967579]=new thumbnail(1967579,"132232","dsc 0084 copy","DSC_0084-copy_thumb.jpg",130,104,1);thumbnails[1967629]=new thumbnail(1967629,"132232","DSC 0125-copy","DSC_0125-copy_thumb.jpg",130,156,1);thumbnails[1967630]=new thumbnail(1967630,"132232","DSC 0128-copy-2","DSC_0128-copy-2_thumb.jpg",130,102,1);thumbnails[1967642]=new thumbnail(1967642,"132232","DSC 0129-copy","DSC_0129-copy_thumb.jpg",130,102,1);thumbnails[3215023]=new thumbnail(3215023,"196373"," JTP5378","_JTP5378_thumb.jpg",130,162,1);thumbnails[3215024]=new thumbnail(3215024,"196373"," JTP5383","_JTP5383_thumb.jpg",130,162,1);thumbnails[1967645]=new thumbnail(1967645,"132232","DSC 0160-copy","DSC_0160-copy_thumb.jpg",130,165,1);thumbnails[1967652]=new thumbnail(1967652,"132232","DSC 0170-copy","DSC_0170-copy_thumb.jpg",130,102,1);thumbnails[3215029]=new thumbnail(3215029,"196373"," JTP5399","_JTP5399_thumb.jpg",130,162,1);thumbnails[2813925]=new thumbnail(2813925,"175693"," JTP3102a","_JTP3102a_thumb.jpg",130,162,1);thumbnails[2813935]=new thumbnail(2813935,"175693"," JTP3115","_JTP3115_thumb.jpg",130,104,1);thumbnails[2813967]=new thumbnail(2813967,"175693"," JTP3124","_JTP3124_thumb.jpg",130,162,1);thumbnails[2813977]=new thumbnail(2813977,"175693"," JTP3168","_JTP3168_thumb.jpg",130,194,1);thumbnails[2813979]=new thumbnail(2813979,"175693"," JTP3179-montage","_JTP3179-montage_thumb.jpg",130,162,1);thumbnails[2814669]=new thumbnail(2814669,"175693"," JTP3195-montage","_JTP3195-montage_thumb.jpg",130,87,1);thumbnails[2301370]=new thumbnail(2301370,"150582","liam-12","liam-12_thumb.jpg",130,165,1);thumbnails[2301371]=new thumbnail(2301371,"150582","liam-16","liam-16_thumb.jpg",130,102,1);thumbnails[2301373]=new thumbnail(2301373,"150582","liam-25","liam-25_thumb.jpg",130,163,1);thumbnails[1929881]=new thumbnail(1929881,"129435"," DSF3217-copy","_DSF3217-copy_thumb.jpg",130,165,1);thumbnails[2301374]=new thumbnail(2301374,"150582","liam-28","liam-28_thumb.jpg",130,104,1);thumbnails[2301377]=new thumbnail(2301377,"150582","liam-6","liam-6_thumb.jpg",130,98,1);thumbnails[2301378]=new thumbnail(2301378,"150582","liam-7","liam-7_thumb.jpg",130,163,1);thumbnails[1929889]=new thumbnail(1929889,"129435"," DSF3227","_DSF3227_thumb.jpg",130,165,1);thumbnails[1929890]=new thumbnail(1929890,"129435"," DSF3228-copy-2","_DSF3228-copy-2_thumb.jpg",130,166,1);thumbnails[1929891]=new thumbnail(1929891,"129435"," DSF3228-copy","_DSF3228-copy_thumb.jpg",130,165,1);thumbnails[2422487]=new thumbnail(2422487,"154912","Grading-28-06-08","Grading-28-06-08_thumb.jpg",130,65,1);thumbnails[2422488]=new thumbnail(2422488,"154912","Grading-panel-28-06-08","Grading-panel-28-06-08_thumb.jpg",130,104,1);thumbnails[2422489]=new thumbnail(2422489,"154912","montage-1","montage-1_thumb.jpg",130,130,1);thumbnails[2733986]=new thumbnail(2733986,"168778"," DSC2961-copy","_DSC2961-copy_thumb.jpg",130,87,1);thumbnails[2733952]=new thumbnail(2733952,"168778","J-Bird---Montage","J-Bird---Montage_thumb.jpg",130,104,1);thumbnails[2733953]=new thumbnail(2733953,"168778","montage-2","montage-21_thumb.jpg",130,104,1);thumbnails[2753812]=new thumbnail(2753812,"168778"," DSC2673","_DSC2673_thumb.jpg",130,162,1);thumbnails[2753818]=new thumbnail(2753818,"168778"," DSC2691","_DSC2691_thumb.jpg",130,162,1);thumbnails[2753858]=new thumbnail(2753858,"168778","Jan-demo","Jan-demo_thumb.jpg",130,86,1);thumbnails[2753860]=new thumbnail(2753860,"168778","press-ups","press-ups_thumb.jpg",130,162,1);thumbnails[2753866]=new thumbnail(2753866,"168778"," DSC2734","_DSC2734_thumb.jpg",130,162,1);thumbnails[2753868]=new thumbnail(2753868,"168778"," DSC2768","_DSC2768_thumb.jpg",130,86,1);thumbnails[2345784]=new thumbnail(2345784,"152865","Chalklin-012","Chalklin-012_thumb.jpg",130,196,1);thumbnails[2346198]=new thumbnail(2346198,"152865","Chalklin-002","Chalklin-002_thumb.jpg",130,98,1);thumbnails[2469648]=new thumbnail(2469648,"158785","K-&-D-Hackman-002a","K-&-D-Hackman-002a_thumb.jpg",130,194,1);thumbnails[3228002]=new thumbnail(3228002,"196966","Montage-of-group-and-individual","Montage-of-group-and-individual_thumb.jpg",130,130,1);thumbnails[2345780]=new thumbnail(2345780,"152865","Chalklin-003","Chalklin-003_thumb.jpg",130,87,1);thumbnails[2346199]=new thumbnail(2346199,"152865","Chalklin-020","Chalklin-020_thumb.jpg",130,196,1);thumbnails[2469649]=new thumbnail(2469649,"158785","K-&-D-Hackman-003","K-&-D-Hackman-003_thumb.jpg",130,163,1);thumbnails[2345781]=new thumbnail(2345781,"152865","Chalklin-004","Chalklin-004_thumb.jpg",130,104,1);thumbnails[2345782]=new thumbnail(2345782,"152865","Chalklin-008","Chalklin-008_thumb.jpg",130,104,1);thumbnails[2469651]=new thumbnail(2469651,"158785","K-&-D-Hackman-009","K-&-D-Hackman-009_thumb.jpg",130,104,1);thumbnails[2469652]=new thumbnail(2469652,"158785","K-&-D-Hackman-010","K-&-D-Hackman-010_thumb.jpg",130,130,1);thumbnails[2345786]=new thumbnail(2345786,"152865","Chalklin-017","Chalklin-017_thumb.jpg",130,165,1);thumbnails[2469656]=new thumbnail(2469656,"158785","K-&-D-Hackman-011","K-&-D-Hackman-011_thumb.jpg",130,104,1);thumbnails[2469657]=new thumbnail(2469657,"158785","K-&-D-Hackman-016a","K-&-D-Hackman-016a_thumb.jpg",130,163,1);thumbnails[2469658]=new thumbnail(2469658,"158785","K-&-D-Hackman-022","K-&-D-Hackman-022_thumb.jpg",130,130,1);thumbnails[2469659]=new thumbnail(2469659,"158785","K-&-D-Hackman-023","K-&-D-Hackman-023_thumb.jpg",130,163,1);thumbnails[2469660]=new thumbnail(2469660,"158785","K-&-D-Hackman-025","K-&-D-Hackman-025_thumb.jpg",130,104,1);thumbnails[3226524]=new thumbnail(3226524,"196966"," JTP5560","_JTP5560_thumb.jpg",130,104,1);thumbnails[3226525]=new thumbnail(3226525,"196966"," JTP5561","_JTP5561_thumb.jpg",130,104,1);thumbnails[3226526]=new thumbnail(3226526,"196966"," JTP5562","_JTP5562_thumb.jpg",130,162,1);thumbnails[3226527]=new thumbnail(3226527,"196966"," JTP5563","_JTP5563_thumb.jpg",130,162,1);thumbnails[3226528]=new thumbnail(3226528,"196966"," JTP5564","_JTP5564_thumb.jpg",130,162,1);thumbnails[3226529]=new thumbnail(3226529,"196966"," JTP5565","_JTP5565_thumb.jpg",130,104,1);thumbnails[3226530]=new thumbnail(3226530,"196966"," JTP5783","_JTP5783_thumb.jpg",130,65,1);thumbnails[1489554]=new thumbnail(1489554,"100629","He's got it by a nose!","allnose3.jpg",130,182,1);thumbnails[1489875]=new thumbnail(1489875,"100629","Fire staffs","firestaffs1.jpg",130,130,1);thumbnails[1497374]=new thumbnail(1497374,"100629","Madness","madness11.jpg",130,194,1);thumbnails[1497375]=new thumbnail(1497375,"100629","Madness 2","madness21.jpg",130,194,1);thumbnails[1497376]=new thumbnail(1497376,"100629","Madness 3","madness31.jpg",130,182,1);thumbnails[1497385]=new thumbnail(1497385,"100629","Suggs","madness41.jpg",130,194,1);thumbnails[3096041]=new thumbnail(3096041,"178556","montage-1a","montage-1a_thumb.jpg",130,86,1);thumbnails[3096042]=new thumbnail(3096042,"178556","montage-2a","montage-2a_thumb.jpg",130,86,1);thumbnails[3096043]=new thumbnail(3096043,"178556"," JTP3856---10x10","_JTP3856---10x10_thumb.jpg",130,130,1);thumbnails[3096044]=new thumbnail(3096044,"178556"," JTP3924---10x10","_JTP3924---10x10_thumb.jpg",130,130,1);thumbnails[3096045]=new thumbnail(3096045,"178556"," JTP3926---10x10","_JTP3926---10x10_thumb.jpg",130,130,1);thumbnails[3434262]=new thumbnail(3434262,"209903"," JTP5843web","_JTP5843web_thumb.jpg",130,65,1);thumbnails[2899012]=new thumbnail(2899012,"178556"," JTP3854","_JTP3854_thumb.jpg",130,162,1);thumbnails[2899014]=new thumbnail(2899014,"178556"," JTP3859","_JTP3859_thumb.jpg",130,104,1);thumbnails[2899015]=new thumbnail(2899015,"178556"," JTP3862","_JTP3862_thumb.jpg",130,104,1);thumbnails[2899016]=new thumbnail(2899016,"178556"," JTP3863","_JTP3863_thumb.jpg",130,162,1);thumbnails[2899018]=new thumbnail(2899018,"178556"," JTP3865","_JTP3865_thumb.jpg",130,162,1);thumbnails[2899019]=new thumbnail(2899019,"178556"," JTP3866","_JTP3866_thumb.jpg",130,162,1);thumbnails[2899021]=new thumbnail(2899021,"178556"," JTP3877","_JTP3877_thumb.jpg",130,162,1);thumbnails[2899023]=new thumbnail(2899023,"178556"," JTP3879a","_JTP3879a_thumb.jpg",130,162,1);thumbnails[2899024]=new thumbnail(2899024,"178556"," JTP3883","_JTP3883_thumb.jpg",130,162,1);thumbnails[2899026]=new thumbnail(2899026,"178556"," JTP3891","_JTP3891_thumb.jpg",130,104,1);thumbnails[2899032]=new thumbnail(2899032,"178556"," JTP3936","_JTP3936_thumb.jpg",130,162,1);thumbnails[2899034]=new thumbnail(2899034,"178556"," JTP3952","_JTP3952_thumb.jpg",130,65,1);thumbnails[2899008]=new thumbnail(2899008,"178556","montage-1","montage-13_thumb.jpg",130,86,1);thumbnails[2899009]=new thumbnail(2899009,"178556","montage-2","montage-23_thumb.jpg",130,86,1);thumbnails[2899010]=new thumbnail(2899010,"178556","montage-3","montage-32_thumb.jpg",130,86,1);thumbnails[2899011]=new thumbnail(2899011,"178556","montage-4","montage-41_thumb.jpg",130,174,1);thumbnails[3454905]=new thumbnail(3454905,"211236"," JTP6381-copy-web","_JTP6381-copy-web_thumb.jpg",130,65,1);thumbnails[3527613]=new thumbnail(3527613,"205160"," JTP6179web","_JTP6179web_thumb.jpg",130,162,1);thumbnails[3865305]=new thumbnail(3865305,"235113","DSC 0037-web-image","DSC_0037-web-image_thumb.gif",130,163,1);thumbnails[3950452]=new thumbnail(3950452,"238929"," JTP9308","_JTP9308_thumb.gif",130,162,1);thumbnails[1513498]=new thumbnail(1513498,"103861","","SWPPmember_logo1.gif",130,54,1);thumbnails[3275682]=new thumbnail(3275682,"199731","gift voucher","gift voucher_thumb.jpg",130,111,1);thumbnails[3412837]=new thumbnail(3412837,"208550"," JTP5860web","_JTP5860web_thumb.jpg",130,104,1);thumbnails[3420542]=new thumbnail(3420542,"209018"," JTP5974web","_JTP5974web_thumb.jpg",130,104,1);thumbnails[3666411]=new thumbnail(3666411,"223935","montage-1-web","montage-1-web_thumb.gif",130,104,1);thumbnails[3721291]=new thumbnail(3721291,"216744"," JTP6833-web-image","_JTP6833-web-image_thumb.gif",130,163,1);thumbnails[3748387]=new thumbnail(3748387,"228800","montage-1-web-image","montage-1-web-image_thumb.gif",130,130,1);thumbnails[3836307]=new thumbnail(3836307,"227893"," JTP7485","_JTP7485_thumb.gif",130,162,1);thumbnails[3976008]=new thumbnail(3976008,"235115"," JTP8792","_JTP8792_thumb.gif",130,104,1);thumbnails[4181341]=new thumbnail(4181341,"247823"," JTP2584-web","_JTP2584-web_thumb.jpg",130,196,1);thumbnails[4419194]=new thumbnail(4419194,"253276"," JTP2983-web-image","_JTP2983-web-image_thumb.jpg",130,162,1);thumbnails[4060268]=new thumbnail(4060268,"235117"," JTP9772","_JTP9772_thumb.gif",130,162,1);thumbnails[5029721]=new thumbnail(5029721,"284810"," JTP9518-web-image","_JTP9518-web-image_thumb.jpg",130,104,1);thumbnails[5179972]=new thumbnail(5179972,"292541"," JTP0733-web-image","_JTP0733-web-image_thumb.jpg",130,87,1);thumbnails[4145805]=new thumbnail(4145805,"235118"," JTP0914-web","_JTP0914-web_thumb.jpg",130,162,1);thumbnails[4463828]=new thumbnail(4463828,"260747"," JTP1122a-web-image","_JTP1122a-web-image_thumb.jpg",130,195,1);thumbnails[5182883]=new thumbnail(5182883,"292542"," JTP1139-web-image","_JTP1139-web-image_thumb.jpg",130,195,1);thumbnails[5596628]=new thumbnail(5596628,"317402"," JTP0985-web-image","_JTP0985-web-image_thumb.jpg",130,166,1);thumbnails[4219228]=new thumbnail(4219228,"235120"," JTP1545a-web-image","_JTP1545a-web-image_thumb.jpg",130,104,1);thumbnails[5626181]=new thumbnail(5626181,"318958"," JTP1017-web-image","_JTP1017-web-image_thumb.jpg",130,162,1);thumbnails[4252106]=new thumbnail(4252106,"235119"," JTP2301-web-image","_JTP2301-web-image_thumb.jpg",130,162,1);thumbnails[5804185]=new thumbnail(5804185,"328675"," JTP1782b-web-image","_JTP1782b-web-image_thumb.jpg",130,104,1);thumbnails[4290792]=new thumbnail(4290792,"253271","DSC 0071-web-image","DSC_0071-web-image_thumb.jpg",130,162,1);thumbnails[5820437]=new thumbnail(5820437,"329456"," JTP1822web-image","_JTP1822web-image_thumb.jpg",130,104,1);thumbnails[4419195]=new thumbnail(4419195,"253274"," JTP3585a-web-image","_JTP3585a-web-image_thumb.jpg",130,195,1);thumbnails[5873970]=new thumbnail(5873970,"331910","JTP 1860web-image","JTP_1860web-image_thumb.jpg",130,104,1);thumbnails[4522066]=new thumbnail(4522066,"258821"," JTP4167a-web-image","_JTP4167a-web-image_thumb.jpg",130,162,1);thumbnails[6438990]=new thumbnail(6438990,"355395"," JT16880-web-image","_JT16880-web-image_thumb.jpg",130,87,1);thumbnails[4575557]=new thumbnail(4575557,"258822"," JTP4614a-web-image","_JTP4614a-web-image_thumb.jpg",130,104,1);thumbnails[4665468]=new thumbnail(4665468,"258823"," JTP5584-web-image","_JTP5584-web-image_thumb.jpg",130,196,1);thumbnails[4747797]=new thumbnail(4747797,"258824"," JTP5909-web-image","_JTP5909-web-image_thumb.jpg",130,162,1);thumbnails[4660670]=new thumbnail(4660670,"258825"," JTP6470-web-image","_JTP6470-web-image_thumb.jpg",130,87,1);thumbnails[4750067]=new thumbnail(4750067,"267627"," JTP6901-web-image","_JTP6901-web-image_thumb.jpg",130,162,1);thumbnails[4763506]=new thumbnail(4763506,"267629"," JTP7193-web-image","_JTP7193-web-image_thumb.jpg",130,196,1);thumbnails[4835008]=new thumbnail(4835008,"267631"," JTP7786-web-image","_JTP7786-web-image_thumb.jpg",130,162,1);thumbnails[4916017]=new thumbnail(4916017,"267632"," JTP8229a-web-image","_JTP8229a-web-image_thumb.jpg",130,162,1);thumbnails[5059680]=new thumbnail(5059680,"282488"," JTP8963b-webimage","_JTP8963b-webimage_thumb.jpg",130,162,1);thumbnails[5129063]=new thumbnail(5129063,"282487"," JTP0097-web-image","_JTP0097-web-image_thumb.jpg",130,162,1);thumbnails[5267841]=new thumbnail(5267841,"295721"," JTP1423-web-image","_JTP1423-web-image_thumb.jpg",130,198,1);thumbnails[5340063]=new thumbnail(5340063,"295723"," JTP1973-web-image","_JTP1973-web-image_thumb.jpg",130,114,1);thumbnails[5590316]=new thumbnail(5590316,"311282"," JTP0509-web-image","_JTP0509-web-image_thumb.jpg",130,182,1);thumbnails[5870030]=new thumbnail(5870030,"331673"," JTP1464web-image","_JTP1464web-image_thumb.jpg",130,97,1);thumbnails[6083450]=new thumbnail(6083450,"341518","JTP 2303-web-image","JTP_2303-web-image_thumb.jpg",130,162,1);thumbnails[6151962]=new thumbnail(6151962,"344249","JTP 3017-web-image","JTP_3017-web-image_thumb.jpg",130,162,1);thumbnails[6190147]=new thumbnail(6190147,"345627","JTP 3610-web-image","JTP_3610-web-image_thumb.jpg",130,162,1);thumbnails[6271243]=new thumbnail(6271243,"348523"," JT22821-web-image","_JT22821-web-image_thumb.jpg",130,104,1);thumbnails[6307579]=new thumbnail(6307579,"349851"," JT23483a-web-image","_JT23483a-web-image_thumb.jpg",130,87,1);thumbnails[6360414]=new thumbnail(6360414,"352214"," JT23856-web-image","_JT23856-web-image_thumb.jpg",130,163,1);thumbnails[6396024]=new thumbnail(6396024,"353480"," JT14615-web-image","_JT14615-web-image_thumb.jpg",130,162,1);thumbnails[6544365]=new thumbnail(6544365,"353481"," JT15821a-web-image","_JT15821a-web-image_thumb.jpg",130,105,1);thumbnails[6547348]=new thumbnail(6547348,"353482"," JT16425a-web-image","_JT16425a-web-image_thumb.jpg",130,162,1);thumbnails[6601115]=new thumbnail(6601115,"353483"," JT17157a-web-image","_JT17157a-web-image_thumb.jpg",130,162,1);thumbnails[6637527]=new thumbnail(6637527,"363386"," JT18148-web-image","_JT18148-web-image_thumb.jpg",130,162,1);thumbnails[6677102]=new thumbnail(6677102,"364864"," JT18792-web-image","_JT18792-web-image_thumb.jpg",130,162,1);var galleries=new Object();galleries[161994]=new gallery(161994,"2546200,2542112,2536114","Lesley & Andy","gallery",[2536113,2546200,2536114,2536119,2536121,2536124,2536125,2536126,2542112,2542114,2546201,2546202]);galleries[172339]=new gallery(172339,"2777727","Sean & Adam","gallery",[2777727,2777737,2777740,2777742]);galleries[150735]=new gallery(150735,"2304057","Zoe & Family","gallery",[2304057,2304058,2345750,2345761,2345762,2345763]);galleries[196373]=new gallery(196373,"3215029,3215024,3215023,3215012,3215009","Chris & Dom","gallery",[3215009,3215012,3215023,3215024,3215029]);galleries[132232]=new gallery(132232,"1967652","Faye","gallery",[1967579,1967629,1967630,1967642,1967645,1967652]);galleries[176855]=new gallery(176855,"3029918","Lee's R1","gallery",[3029916,3029917,2839096,3029918]);galleries[298873]=new gallery(298873,"","Sample Wedding Images","gallery",[]);galleries[202551]=new gallery(202551,"4013649","Wedding & Portrait albums","section249376",[4013649]);galleries[130883]=new gallery(130883,"6677102,6637527,6601115,6547348,6544365,6396024,6360414,6307579,6271243,6190147,6151962,6083450,5870030,5590316,5340063,5267841,5129063,5059680,4916017,4835008,4763506,4750067,4747797,4665468,4660670,4575557,4522066,4419195,4290792,4252106,4219228,4145805,4060268,3976008,3836307,3721291,3527613","Weddings","gallery",[]);galleries[175693]=new gallery(175693,"2813979,2813935,2813925","Margaret & Derek's 55th Wedding Anniversary","gallery",[2813925,2813935,2813967,2813977,2813979,2814669]);galleries[129435]=new gallery(129435,"1929890","Clare","gallery",[1929881,1929889,1929890,1929891]);galleries[154912]=new gallery(154912,"2422489,2422488","EKKA Northgate grading 28th June 2008","gallery",[2422487,2422488,2422489]);galleries[150582]=new gallery(150582,"2301370","Liam","gallery",[2301370,2301371,2301373,2301374,2301377,2301378]);galleries[129437]=new gallery(129437,"6438990,5873970,5820437,5804185,5626181,5596628,5029721,4419194,3748387,3666411,3420542,3412837,3096041,2899011,2899010,2777727,2546200,2542112,2536114,2469660,2346198,2304057,2301370,1967652,1929890","Portraits","gallery",[]);galleries[168778]=new gallery(168778,"2753868,2733986,2733953","EKKA Summer Camp 2008","gallery",[2733986,2733952,2733953,2753812,2753818,2753858,2753860,2753866,2753868]);galleries[173909]=new gallery(173909,"5182883,5179972,4181341,3950452,3865305,3454905,3434262,3228002,3226530,3029918,2813979,2813935,2813925,2753868,2733986,2733953,2422489,2422488","Events","gallery",[]);galleries[196966]=new gallery(196966,"3228002,3226530","EKKA Northgate grading 20th December 2008","gallery",[3228002,3226524,3226525,3226526,3226527,3226528,3226529,3226530]);galleries[158785]=new gallery(158785,"2469660","Kerry & Danielle Hackman","gallery",[2469648,2469649,2469651,2469652,2469656,2469657,2469658,2469659,2469660]);galleries[152865]=new gallery(152865,"2346198","The Chalklins","gallery",[2345784,2346198,2345780,2346199,2345781,2345782,2345786]);galleries[209903]=new gallery(209903,"3434262","EKKA Bury & Soham 2008 Medals","gallery",[3434262]);galleries[178556]=new gallery(178556,"3096041,2899011,2899010","Jenny Davy","gallery",[3096041,3096042,3096043,3096044,3096045,2899012,2899014,2899015,2899016,2899018,2899019,2899021,2899023,2899024,2899026,2899032,2899034,2899008,2899009,2899010,2899011]);galleries[100629]=new gallery(100629,"1489554","Just for fun","gallery",[1489554,1489875,1497374,1497375,1497376,1497385]);galleries[211236]=new gallery(211236,"3454905","EKKA Northgate & Red Dragons","gallery",[3454905]);galleries[205160]=new gallery(205160,"3527613","Hayley & Dan 14th February 2009","gallery",[3527613]);galleries[235113]=new gallery(235113,"3865305","EKKA Competition 03-05-09","gallery",[3865305]);galleries[238929]=new gallery(238929,"3950452","County Upper School Year 11 Prom - 20th May 2009","gallery",[3950452]);galleries[103861]=new gallery(103861,"1513498","Affilliations","gallery",[1513498]);galleries[199731]=new gallery(199731,"3275682","Gift Voucher","section237484",[3275682]);galleries[208550]=new gallery(208550,"3412837","The Hackmans","gallery",[3412837]);galleries[209018]=new gallery(209018,"3420542","Sheena, Billy & dogs","gallery",[3420542]);galleries[216744]=new gallery(216744,"3721291","Carly & Edward 28th March 2009","gallery",[3721291]);galleries[223935]=new gallery(223935,"3666411","The Hickmotts","gallery",[3666411]);galleries[228800]=new gallery(228800,"3748387","Grace & family","gallery",[3748387]);galleries[227893]=new gallery(227893,"3836307","Liz & James - 17th April 2009","gallery",[3836307]);galleries[253276]=new gallery(253276,"4419194","Carol Brannan","gallery",[4419194]);galleries[247823]=new gallery(247823,"4181341","County Upper School Year13 Prom - 23rd June 2009","gallery",[4181341]);galleries[235115]=new gallery(235115,"3976008","Julie & John - Donna & Lee - 15th May 2009","gallery",[3976008]);galleries[292541]=new gallery(292541,"5179972","1st RTR - Sergeants Mess Cambrai Ball 27-11-09","gallery",[5179972]);galleries[284810]=new gallery(284810,"5029721","Ben & Louise","gallery",[5029721]);galleries[235117]=new gallery(235117,"4060268","Sarah & Dan - 23rd May 2009","gallery",[4060268]);galleries[292542]=new gallery(292542,"5182883","1st RTR - Corporals Mess Cambrai Ball 28-11-09","gallery",[5182883]);galleries[235118]=new gallery(235118,"4145805","Lisa & Hardeep - 6th June 2009 ","gallery",[4145805]);galleries[317402]=new gallery(317402,"5596628","Oscar & Liz","gallery",[5596628]);galleries[260747]=new gallery(260747,"4463828","Sheila & Les - 6th June 2009","gallery",[4463828]);galleries[318958]=new gallery(318958,"5626181","Ben & Zoe","gallery",[5626181]);galleries[235120]=new gallery(235120,"4219228","Maki & Edward - 11th June 2009","gallery",[4219228]);galleries[328675]=new gallery(328675,"5804185","Janine Cater","gallery",[5804185]);galleries[235119]=new gallery(235119,"4252106","Mary Jane & Zak - 13th June 2009","gallery",[4252106]);galleries[253271]=new gallery(253271,"4290792","Philippa & Charles - 4th July 2009","gallery",[4290792]);galleries[329456]=new gallery(329456,"5820437","Sandra Turner","gallery",[5820437]);galleries[253274]=new gallery(253274,"4419195","Hollie & Gavin - 11th July 2009","gallery",[4419195]);galleries[331910]=new gallery(331910,"5873970","Timmins Family","gallery",[5873970]);galleries[355395]=new gallery(355395,"6438990","Jolene & Chaz's babies - Dogs","gallery",[6438990]);galleries[258821]=new gallery(258821,"4522066","Vicky & Danny - 26th July 2009","gallery",[4522066]);galleries[258822]=new gallery(258822,"4575557","Zoe & Dale - 1st August 2009","gallery",[4575557]);galleries[258823]=new gallery(258823,"4665468","Lindsey & Tony - 14th August 2009","gallery",[4665468]);galleries[258824]=new gallery(258824,"4747797","Lauren & Pierre - 28th August 2009","gallery",[4747797]);galleries[258825]=new gallery(258825,"4660670","Steve & Grace - 29th August 2009","gallery",[4660670]);galleries[267627]=new gallery(267627,"4750067","Mandy & Mike - 2nd September 2009","gallery",[4750067]);galleries[267629]=new gallery(267629,"4763506","Kevin & Gemma - 5th September 2009","gallery",[4763506]);galleries[267631]=new gallery(267631,"4835008","Trevor & Kay -19th September 2009","gallery",[4835008]);galleries[267632]=new gallery(267632,"4916017","Ellie & John - 25th September 2009","gallery",[4916017]);galleries[282488]=new gallery(282488,"5059680","Maz & Mark - 17th October 2009","gallery",[5059680]);galleries[282487]=new gallery(282487,"5129063","Kim & David - 31st October 2009","gallery",[5129063]);galleries[295721]=new gallery(295721,"5267841","Nicola & Chris - 16th December 2009","gallery",[5267841]);galleries[295723]=new gallery(295723,"5340063","Charmaine & Jamie - 19th December 2009","gallery",[5340063]);galleries[311282]=new gallery(311282,"5590316","Kay & Chris - 14th February 2010","gallery",[5590316]);galleries[331673]=new gallery(331673,"5870030","Clare & Theo - 9th April 2010","gallery",[5870030]);galleries[341518]=new gallery(341518,"6083450","Kelly & Adam - 15th May 2010","gallery",[6083450]);galleries[344249]=new gallery(344249,"6151962","Margaret & Ken - 22nd May 2010","gallery",[6151962]);galleries[345627]=new gallery(345627,"6190147","Rian & Will - 30th May 2010","gallery",[6190147]);galleries[348523]=new gallery(348523,"6271243","Maz & Jim - 12th June 2010","gallery",[6271243]);galleries[349851]=new gallery(349851,"6307579","Liz & Fish - 19th June 2010","gallery",[6307579]);galleries[352214]=new gallery(352214,"6360414","Claire & Robert - 26th June 2010","gallery",[6360414]);galleries[353480]=new gallery(353480,"6396024","Abby & Justin -3rd July 2010","gallery",[6396024]);galleries[353481]=new gallery(353481,"6544365","Alicia & Peter - 23rd July 2010","gallery",[6544365]);galleries[353482]=new gallery(353482,"6547348","Claire & James - 24th July 2010","gallery",[6547348]);galleries[353483]=new gallery(353483,"6601115","Frances & Mark - 31st July 2010","gallery",[6601115]);galleries[363386]=new gallery(363386,"6637527","Amy & Lee - 7th August 2010","gallery",[6637527]);galleries[364864]=new gallery(364864,"6677102","Jolene & Chaz - 14th August 2010","gallery",[6677102]);var imageSets=new Object();imageSets[1]="6677102,6396024,6083450,5804185,3215029,3096041,2899018,2899010,2813979,2546202,2546200,1967652";imageSets[2]="6677102,6637527,6601115,6547348,6544365,6438990,6396024,6360414,6307579,6271243,6190147,6151962,6083450,5873970,5870030,5820437,5804185,5626181,5596628,5590316,5340063,5267841,5182883,5179972,5129063,5059680,5029721,4916017,4835008,4763506,4750067,4747797,4665468,4660670,4575557,4522066,4419195,4419194,4290792,4252106,4219228,4181341,4145805,4060268,3976008,3950452,3865305,3836307,3748387,3721291,3666411,3527613,3454905,3434262,3420542,3412837,3275682,3228002,3226530,3096041,3029918,2899011,2899010,2813979,2813935,2813925,2777727,2753868,2733986,2733953,2546200,2542112,2536114,2469660,2422489,2422488,2346198,2304057,2301370,1967652,1929890,1513498,1489554";imageSets[3]="6677102,6637527,6601115,6547348,6544365,6438990,6396024,6360414,6307579,6271243,6190147,6151962,6083450,5873970,5870030,5820437,5804185,5626181,5596628,5590316,5340063,5267841,5182883,5179972,5129063,5059680,5029721,4916017,4835008,4763506,4750067,4747797,4665468,4660670,4575557,4522066,4463828,4419195,4419194,4290792,4252106,4219228,4181341,4145805,4060268,4013649,3976008,3950452,3865305,3836307";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/JasonTate/images";break}switch(a){case 1:b="http://www1.clikpic.com/JasonTate/images";break}switch(a){case 2:b="http://admin.clikpic.com/JasonTate/images";break}switch(a){case 24:b="http://tpc15/clikpic/JasonTate/images";break}switch(a){case 4:b="http://www.clikchurch.com/JasonTate/images";break}switch(a){case 5:b="http://www2.clikpic.com/JasonTate/images";break}switch(a){case 22:b="http://tpc5/clikpic/JasonTate/images";break}switch(a){case 23:b="http://tpc10/clikpic/JasonTate/images";break}switch(a){case 25:b="http://tpc16/clikpic/JasonTate/images";break}switch(a){case 15:b="http://www3.clikpic.com/JasonTate/images";break}switch(a){case 18:b="http://www4.clikpic.com/JasonTate/images";break}switch(a){case 19:b="http://www5.clikpic.com/JasonTate/images";break}switch(a){case 31:b="http://www7.clikpic.com/JasonTate/images";break}switch(a){case 32:b="http://admin2.clikpic.com/JasonTate/images";break}switch(a){case 33:b="http://www8.clikpic.com/JasonTate/images";break}switch(a){case 34:b="http://www9.clikpic.com/JasonTate/images";break}switch(a){case 35:b="http://admin3.clikpic.com/JasonTate/images";break}switch(a){case 37:b="http://admin4.clikpic.com/JasonTate/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="'+escape(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="Jason Tate 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>"}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="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="jason386@btinternet.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="jason386@btinternet.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+'")'})}}};