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[1333708]=new thumbnail(1333708,"","","tmpphpwTj4PZ1_thumb.jpg",130,87,1);thumbnails[5612164]=new thumbnail(5612164,"76428","Tinto Brown Trout","tmpphplhnZdr_thumb.jpg",130,87,1);thumbnails[5538666]=new thumbnail(5538666,"76428","Dog With Trout","tmpphpfu7DqG_thumb.jpg",130,185,1);thumbnails[3725549]=new thumbnail(3725549,"76428","TS1","tmpphpz7l1ml_thumb.jpg",130,196,1);thumbnails[1912154]=new thumbnail(1912154,"76428","Wol2","tmpphpwzUZiE_thumb.jpg",130,92,1);thumbnails[3612507]=new thumbnail(3612507,"76428","wol1","tmpphpkNv804_thumb.jpg",130,70,1);thumbnails[3607131]=new thumbnail(3607131,"76428","FT1","tmpphpv54ykb_thumb.jpg",130,196,1);thumbnails[3515262]=new thumbnail(3515262,"76428","Mar1","tmpphpUBkCEe_thumb.jpg",130,61,1);thumbnails[3515309]=new thumbnail(3515309,"76428","Mar2","tmpphpONhQCp_thumb.jpg",130,87,1);thumbnails[2992091]=new thumbnail(2992091,"76428","Ros1","tmpphpKzAr9G_thumb.jpg",130,87,1);thumbnails[2992092]=new thumbnail(2992092,"76428","Ven1","tmpphpdMKBgm_thumb.jpg",130,55,1);thumbnails[1018046]=new thumbnail(1018046,"76428","Goc1","sunsetsharp_thumb.jpg",130,87,1);thumbnails[1023201]=new thumbnail(1023201,"76428","SvS","tmpphpinxvw4_thumb.jpg",130,131,1);thumbnails[1025404]=new thumbnail(1025404,"76428","Rostrt","tmpphpXiqFfe_thumb.jpg",130,87,1);thumbnails[1025487]=new thumbnail(1025487,"76428","Rus2","rusky 085_thumb.jpg",130,86,1);thumbnails[1025503]=new thumbnail(1025503,"76428","Nt2","phpVsMNADPM_thumb.jpg",130,86,1);thumbnails[1028902]=new thumbnail(1028902,"76428","Pp1","tmpphprmCVsv_thumb.jpg",130,87,1);thumbnails[1090572]=new thumbnail(1090572,"76428","Lr2","resizedboats_thumb.jpg",130,86,1);thumbnails[1090573]=new thumbnail(1090573,"76428","Mf1","resizedmayfly_thumb.jpg",130,86,1);thumbnails[1166958]=new thumbnail(1166958,"76428","Hw1","phpY8Ht9mAM_thumb.jpg",130,86,1);thumbnails[1167843]=new thumbnail(1167843,"76428","Fo1","tmpphpR94yq7_thumb.jpg",130,90,1);thumbnails[1819716]=new thumbnail(1819716,"76428","Dt1","php0gNubxPM_thumb.jpg",130,86,1);thumbnails[1912146]=new thumbnail(1912146,"76428","Rnbwt","php8Gmc0yPM_thumb.jpg",130,86,1);thumbnails[1912161]=new thumbnail(1912161,"76428","Bly1","phpFyVNNFPM_thumb.jpg",130,86,1);thumbnails[1925671]=new thumbnail(1925671,"76428","Asf1","tmpphpWwRNCa_thumb.jpg",130,87,1);thumbnails[1939891]=new thumbnail(1939891,"76428","Tf1","tealandblue_thumb.jpg",130,141,1);thumbnails[1939893]=new thumbnail(1939893,"76428","Scls1","tmpphpT1bDx7_thumb.jpg",130,104,1);thumbnails[1945919]=new thumbnail(1945919,"76428","Bwt1","tmpphpDDGpoR_thumb.jpg",130,47,1);thumbnails[1950857]=new thumbnail(1950857,"76428","Hat16","tmpphpLTt7Qx_thumb.jpg",130,196,1);thumbnails[1967524]=new thumbnail(1967524,"76428","Smb1","tmpphpeqMQJl_thumb.jpg",130,196,1);thumbnails[2148866]=new thumbnail(2148866,"76428","Tt1","tmpphpIG8H2o_thumb.jpg",130,221,1);thumbnails[2148922]=new thumbnail(2148922,"76428","Twd1","tmpphpjB9v6J_thumb.jpg",130,87,1);thumbnails[2280904]=new thumbnail(2280904,"76428","Rus1","tmpphpgCgWCv_thumb.jpg",130,87,1);thumbnails[2280960]=new thumbnail(2280960,"76428","B1","tmpphpxTiwkb_thumb.jpg",130,87,1);thumbnails[2281114]=new thumbnail(2281114,"76428","Bt1","tmpphpNLE14c_thumb.jpg",130,196,1);thumbnails[2699543]=new thumbnail(2699543,"76428","wolrf1","tmpphpModr5E_thumb.jpg",130,87,1);thumbnails[1912182]=new thumbnail(1912182,"76428","Cont2","tmpphpYbpEkP_thumb.jpg",130,87,1);thumbnails[5892785]=new thumbnail(5892785,"231361","T2","tmpphphIIWHw_thumb.jpg",130,87,1);thumbnails[5892792]=new thumbnail(5892792,"231361","T3","tmpphpzzw68c_thumb.jpg",130,195,1);thumbnails[5699938]=new thumbnail(5699938,"231361","Rainbow Trout and buzzer fly","tmpphpMwjUf6_thumb.jpg",130,87,1);thumbnails[5650119]=new thumbnail(5650119,"231361","lb1","tmpphpr1Dmdt_thumb.jpg",130,195,1);thumbnails[5538575]=new thumbnail(5538575,"231361","Reels","tmpphp33O5eW_thumb.jpg",130,195,1);thumbnails[5538603]=new thumbnail(5538603,"231361","Rainbow Trout ","tmpphpfr3SLB1_thumb.jpg",130,87,1);thumbnails[5538620]=new thumbnail(5538620,"231361","Btm1","tmpphpxeAa0g_thumb.jpg",130,195,1);thumbnails[4348576]=new thumbnail(4348576,"231361","Dogf2","tmpphpnv5b3g_thumb.jpg",130,173,1);thumbnails[4348700]=new thumbnail(4348700,"231361","dgf3","tmpphpcqf4TN_thumb.jpg",130,98,1);thumbnails[4348714]=new thumbnail(4348714,"231361","ldf1","tmpphpG5KNjR_thumb.jpg",130,98,1);thumbnails[4348732]=new thumbnail(4348732,"231361","CV1","tmpphpxlM9CE_thumb.jpg",130,86,1);thumbnails[4348762]=new thumbnail(4348762,"231361","CV2","tmpphpZPqFhf_thumb.jpg",130,86,1);thumbnails[4131474]=new thumbnail(4131474,"231361","","tmpphpiAi1bv_thumb.jpg",130,184,1);thumbnails[4131503]=new thumbnail(4131503,"231361","Bw3","tmpphpUyf481_thumb.jpg",130,86,1);thumbnails[4131510]=new thumbnail(4131510,"231361","","tmpphpt1aP9G_thumb.jpg",130,86,1);thumbnails[4073879]=new thumbnail(4073879,"231361","Fg1","tmpphpeqSk1n_thumb.jpg",130,87,1);thumbnails[4073890]=new thumbnail(4073890,"231361","Bz1","tmpphpKcG8q41_thumb.jpg",130,86,1);thumbnails[4073891]=new thumbnail(4073891,"231361","Bzt1","tmpphp0Tp6Mc_thumb.jpg",130,86,1);thumbnails[4073895]=new thumbnail(4073895,"231361","Lf1","tmpphpzeqQ5f_thumb.jpg",130,86,1);thumbnails[4073899]=new thumbnail(4073899,"231361","Mf1","tmpphpPDfd5y_thumb.jpg",130,86,1);thumbnails[4073909]=new thumbnail(4073909,"231361","Lnd1","tmpphpY8vk7j_thumb.jpg",130,85,1);thumbnails[4073919]=new thumbnail(4073919,"231361","Nt1","tmpphpxm2NMm_thumb.jpg",130,196,1);thumbnails[4073966]=new thumbnail(4073966,"231361","Cb1","tmpphpmWjBjv_thumb.jpg",130,64,1);thumbnails[3795891]=new thumbnail(3795891,"231361","","tmpphpJcyGPP_thumb.jpg",130,146,1);thumbnails[3795904]=new thumbnail(3795904,"231361","","tmpphp6VhgM6_thumb.jpg",130,86,1);thumbnails[3795911]=new thumbnail(3795911,"231361","","tmpphp8UC4wv_thumb.jpg",130,98,1);thumbnails[3795926]=new thumbnail(3795926,"231361","","tmpphpNNRyjg_thumb.jpg",130,86,1);thumbnails[3795932]=new thumbnail(3795932,"231361","","tmpphpiX3YTe_thumb.jpg",130,86,1);thumbnails[3795934]=new thumbnail(3795934,"231361","","tmpphpQ57Nj0_thumb.jpg",130,86,1);thumbnails[3795936]=new thumbnail(3795936,"231361","","tmpphpnQ6ZIy_thumb.jpg",130,98,1);thumbnails[3795940]=new thumbnail(3795940,"231361","","tmpphpJEU1p0_thumb.jpg",130,86,1);thumbnails[3807769]=new thumbnail(3807769,"231361","","tmpphpEBgGs5_thumb.jpg",130,98,1);thumbnails[3826966]=new thumbnail(3826966,"231361","","tmpphpWuDyni_thumb.jpg",130,98,1);thumbnails[3826970]=new thumbnail(3826970,"231361","","tmpphpRKFY2j_thumb.jpg",130,98,1);thumbnails[3830393]=new thumbnail(3830393,"231361","","tmpphpqj4fxe_thumb.jpg",130,173,1);thumbnails[3833921]=new thumbnail(3833921,"231361","","tmpphpiVjE1x_thumb.jpg",130,101,1);thumbnails[3859617]=new thumbnail(3859617,"231361","","tmpphpSbEdQ9_thumb.jpg",130,98,1);thumbnails[3931061]=new thumbnail(3931061,"231361","","tmpphpnZI7hh_thumb.jpg",130,92,1);thumbnails[3931098]=new thumbnail(3931098,"231361","","tmpphpyJO3Ez_thumb.jpg",130,86,1);thumbnails[5061186]=new thumbnail(5061186,"231361","Recent Published Work","tmpphpAXzQ8r_thumb.jpg",130,101,1);thumbnails[6162489]=new thumbnail(6162489,"76110","Greyfriars Bobby Edinburgh","tmpphpq7AvNg_thumb.jpg",130,87,1);thumbnails[6162490]=new thumbnail(6162490,"76110","Old Edinburgh1","tmpphpDj5uyd_thumb.jpg",130,87,1);thumbnails[6162491]=new thumbnail(6162491,"76110","Old Edinburgh2","tmpphphYjPcR_thumb.jpg",130,195,1);thumbnails[6162492]=new thumbnail(6162492,"76110","Old Edinburgh 3","tmpphpq0q4so_thumb.jpg",130,195,1);thumbnails[6162498]=new thumbnail(6162498,"76110","Edinburgh Castle in Blue","tmpphpwJoREa_thumb.jpg",130,87,1);thumbnails[6162503]=new thumbnail(6162503,"76110","St Giles","tmpphp29xeRo_thumb.jpg",130,195,1);thumbnails[4131468]=new thumbnail(4131468,"76110","ct1","tmpphpoz26UW_thumb.jpg",130,86,1);thumbnails[4131483]=new thumbnail(4131483,"76110","Uist Boat","tmpphpedZ8NU_thumb.jpg",130,196,1);thumbnails[4131499]=new thumbnail(4131499,"76110","Rg1","tmpphpq7LhGJ_thumb.jpg",130,196,1);thumbnails[4131580]=new thumbnail(4131580,"76110","","tmpphpiMmGYm_thumb.jpg",130,86,1);thumbnails[3385612]=new thumbnail(3385612,"76110","Glen Etive Scotland","tmpphpt7vMGn_thumb.jpg",130,87,1);thumbnails[3385630]=new thumbnail(3385630,"76110","Snow Covered Trees Rannoch Moor","tmpphphLra3J_thumb.jpg",130,86,1);thumbnails[3173326]=new thumbnail(3173326,"76110","Black Rock Cottage and Buachaille Etive Mor.","tmpphps1usCT_thumb.jpg",130,87,1);thumbnails[3173334]=new thumbnail(3173334,"76110","Edinburgh Castle from Princes St Gardens","tmpphpwTj4PZ_thumb.jpg",130,87,1);thumbnails[3146339]=new thumbnail(3146339,"76110","Monarch of The Glen","tmpphpZdJ1yJ_thumb.jpg",130,87,1);thumbnails[1018096]=new thumbnail(1018096,"76110","Old Edinburgh bus in duo tone","tmpphpCO7pDP_thumb.jpg",130,72,1);thumbnails[3119846]=new thumbnail(3119846,"76110","Edinburgh Castle 1","tmpphpYgQtFN_thumb.jpg",130,87,1);thumbnails[3035587]=new thumbnail(3035587,"76110","Thriepmoor,Pentland Hills","tmpphpViQr6l_thumb.jpg",130,87,1);thumbnails[1001390]=new thumbnail(1001390,"76110","Blue Rannoch","bluerannock_thumb.jpg",130,98,1);thumbnails[1001448]=new thumbnail(1001448,"76110","Sunset Bridge","tmpphpWp5kRD_thumb.jpg",130,104,1);thumbnails[1018025]=new thumbnail(1018025,"76110","Calton Hill","tmpphpZOUHPU_thumb.jpg",130,98,1);thumbnails[1018028]=new thumbnail(1018028,"76110","Edinburgh","312178-medium_thumb.jpg",130,86,1);thumbnails[1018032]=new thumbnail(1018032,"76110","Go Forth Young Man","507457-Large_thumb.jpg",130,96,1);thumbnails[1018041]=new thumbnail(1018041,"76110","Traffic Trails","310786-Large_thumb.jpg",130,89,1);thumbnails[1018091]=new thumbnail(1018091,"76110","Rannoch Moor","599562-Large_thumb.jpg",130,99,1);thumbnails[1018093]=new thumbnail(1018093,"76110","Edinburgh Castle","282923-Large_thumb.jpg",130,87,1);thumbnails[1018099]=new thumbnail(1018099,"76110","Fishing","313586-Large_thumb.jpg",130,99,1);thumbnails[1018102]=new thumbnail(1018102,"76110","East Lothian","861727-Large_thumb.jpg",130,98,1);thumbnails[1018131]=new thumbnail(1018131,"76110","Craigmillar Castle Blue","271782-Large_thumb.jpg",130,92,1);thumbnails[1018140]=new thumbnail(1018140,"76110","Craigmillar Castle","craigmillar cas 013_thumb.jpg",130,98,1);thumbnails[1018143]=new thumbnail(1018143,"76110","Blue Waters","506617-Large_thumb.jpg",130,87,1);thumbnails[1021854]=new thumbnail(1021854,"76110","Calton Hill Bridge","973656-medium_thumb.jpg",130,98,1);thumbnails[1029573]=new thumbnail(1029573,"76110","St Giles Edinburgh","phpuVdE9cAM_thumb.jpg",130,174,1);thumbnails[1029596]=new thumbnail(1029596,"76110","Forth Rail Bridge BW","Copy of sunset bridge_thumb.jpg",130,102,1);thumbnails[1046783]=new thumbnail(1046783,"76110","East Lothain Sunset","Copy of rednet 099_thumb.jpg",130,70,1);thumbnails[1049156]=new thumbnail(1049156,"76110","Caltonhill Canon","php3tPAbTAM3_thumb.jpg",130,86,1);thumbnails[1544798]=new thumbnail(1544798,"76110","Edinburgh Castle BW","phpKf0QWvPM_thumb.jpg",130,64,1);thumbnails[1708909]=new thumbnail(1708909,"76110","Arthus Seat Lane","980072-Large_thumb.jpg",130,130,1);thumbnails[2148874]=new thumbnail(2148874,"76110","Union Canal Edinburgh","tmpphpplhVRf_thumb.jpg",130,87,1);thumbnails[3859585]=new thumbnail(3859585,"233744","Strawberry Fish Brazil","tmpphpEqaG4a_thumb.jpg",130,98,1);thumbnails[5036216]=new thumbnail(5036216,"233744","","tmpphpDddUfu_thumb.jpg",130,86,1);thumbnails[5036288]=new thumbnail(5036288,"233744","Pollock on the Fly","tmpphp7bGe39_thumb.jpg",130,86,1);thumbnails[5036295]=new thumbnail(5036295,"233744","Bull Huss ","tmpphpF5XTsd_thumb.jpg",130,100,1);thumbnails[5036300]=new thumbnail(5036300,"233744","Leaky Wellies","tmpphpjs8wWK_thumb.jpg",130,115,1);thumbnails[5036310]=new thumbnail(5036310,"233744","Pollock","tmpphpHVqsuT_thumb.jpg",130,86,1);thumbnails[5036313]=new thumbnail(5036313,"233744","On Yir Marks 2","tmpphpzXyTpj_thumb.jpg",130,196,1);thumbnails[3841453]=new thumbnail(3841453,"233744","","tmpphpm3n44w_thumb.jpg",130,86,1);thumbnails[3841470]=new thumbnail(3841470,"233744","","thorntonloch050_thumb.jpg",130,87,1);thumbnails[3841471]=new thumbnail(3841471,"233744","","tmpphpOnPZcB_thumb.jpg",130,100,1);thumbnails[3841473]=new thumbnail(3841473,"233744","","thorntonloch025_thumb.jpg",130,87,1);thumbnails[3841476]=new thumbnail(3841476,"233744","Salt Water Fly Fishing","thorntonloch055_thumb.jpg",130,87,1);thumbnails[3841477]=new thumbnail(3841477,"233744","","thorntonloch075_thumb.jpg",130,87,1);thumbnails[3841478]=new thumbnail(3841478,"233744","","tmpphpIvjiso_thumb.jpg",130,87,1);thumbnails[3841479]=new thumbnail(3841479,"233744","","tmpphpQYTDha_thumb.jpg",130,86,1);thumbnails[3841480]=new thumbnail(3841480,"233744","","tmpphpQzwexk_thumb.jpg",130,196,1);thumbnails[3841483]=new thumbnail(3841483,"233744","Lure Selection","tmpphpyfuBJq_thumb.jpg",130,69,1);thumbnails[3841487]=new thumbnail(3841487,"233744","East Lothian Scotland","tmpphpYo8vmb_thumb.jpg",130,86,1);thumbnails[3841528]=new thumbnail(3841528,"233744","","tmpphptnG6px_thumb.jpg",130,196,1);thumbnails[3859594]=new thumbnail(3859594,"233744","Brama Brama Portobello","tmpphpwYDrRe_thumb.jpg",130,87,1);thumbnails[5955312]=new thumbnail(5955312,"233744","Oban Skate","tmpphp9759Mq_thumb.jpg",130,86,1);thumbnails[5955314]=new thumbnail(5955314,"233744","","tmpphpqnGu6j_thumb.jpg",130,86,1);thumbnails[6326241]=new thumbnail(6326241,"76429","Fruit","tmpphpnwKgoj_thumb.jpg",130,87,1);thumbnails[6186778]=new thumbnail(6186778,"76429","Blue Garlic 1","tmpphpRkmrvk_thumb.jpg",130,98,1);thumbnails[6186780]=new thumbnail(6186780,"76429","Blue Garlic 2","tmpphpaj2Yai_thumb.jpg",130,98,1);thumbnails[5624410]=new thumbnail(5624410,"76429","","tmpphpudJ4l5_thumb.jpg",130,81,1);thumbnails[4131584]=new thumbnail(4131584,"76429","","tmpphpuuToFH_thumb.jpg",130,86,1);thumbnails[1023202]=new thumbnail(1023202,"76429","Beni Otaki","usefilmsize_thumb.jpg",130,93,1);thumbnails[1025303]=new thumbnail(1025303,"76429","NBurn","278361-medium_thumb.jpg",130,90,1);thumbnails[1025306]=new thumbnail(1025306,"76429","Water O Leith","470926-medium_thumb.jpg",130,98,1);thumbnails[1028886]=new thumbnail(1028886,"76429","Dragonfly","phpu8AAIEPM_thumb.jpg",130,86,1);thumbnails[1029564]=new thumbnail(1029564,"76429","Glen Coe Stag","phpj04IQAAM_thumb.jpg",130,86,1);thumbnails[1029610]=new thumbnail(1029610,"76429","Water of Leith","phpYP6LCzAM_thumb.jpg",130,86,1);thumbnails[1030812]=new thumbnail(1030812,"76429","Perthshire Osprey","phpn22qjYPM_thumb.jpg",130,71,1);thumbnails[1032390]=new thumbnail(1032390,"76429","Heron Water of Leith","phpRTDAUWAM_thumb.jpg",130,86,1);thumbnails[1049182]=new thumbnail(1049182,"76429","Silver Thistle","phpcOxlaOAM_thumb.jpg",130,174,1);thumbnails[1333701]=new thumbnail(1333701,"76429","Anome","anome_thumb.jpg",130,86,1);thumbnails[1538440]=new thumbnail(1538440,"76429","Red Hot Chillies","red chillies2 001_thumb.jpg",130,179,1);thumbnails[1538441]=new thumbnail(1538441,"76429","Red Chillies","red chillies 007_thumb.jpg",130,86,1);thumbnails[1708925]=new thumbnail(1708925,"76429","Heart of Midlothian","883527-Large_thumb.jpg",130,98,1);thumbnails[1708929]=new thumbnail(1708929,"76429","GM Food","1018479-Large_thumb.jpg",130,173,1);thumbnails[1819741]=new thumbnail(1819741,"76429","Mushrooms","phpfYGzInPM_thumb.jpg",130,86,1);var galleries=new Object();galleries[76428]=new gallery(76428,"3725549,3612507,3607131,3515262,2992092,2992091,2699543,2280904,2148866,1967524,1950857,1939891,1925671,1912182,1912154,1819716,1025503,1025404,1023201,1018046","Fly Fishing 1","gallery",[5612164,5538666,3725549,1912154,3612507,3607131,3515262,3515309,2992091,2992092,1018046,1023201,1025404,1025487,1025503,1028902,1090572,1090573,1166958,1167843,1819716,1912146,1912161,1925671,1939891,1939893,1945919,1950857,1967524,2148866,2148922,2280904,2280960,2281114,2699543,1912182]);galleries[231361]=new gallery(231361,"5699938,4131510,4131503,4131474,4073966,4073919,4073909,4073899,4073895,4073891,4073890,4073879,3931098,3931061,3807769,3795936,3795911","Fly Fishing 2","gallery",[5892785,5892792,5699938,5650119,5538575,5538603,5538620,4348576,4348700,4348714,4348732,4348762,4131474,4131503,4131510,4073879,4073890,4073891,4073895,4073899,4073909,4073919,4073966,3795891,3795904,3795911,3795926,3795932,3795934,3795936,3795940,3807769,3826966,3826970,3830393,3833921,3859617,3931061,3931098,5061186]);galleries[76110]=new gallery(76110,"4131580,4131499,4131483,3385630,3385612,3173334,3173326,3146339,3119846,3035587,2148874,1544798,1046783,1018143,1018140,1018131,1018102,1018099,1018096,1018041,1018032","Scottish Scenics","gallery",[6162489,6162490,6162491,6162492,6162498,6162503,4131468,4131483,4131499,4131580,3385612,3385630,3173326,3173334,3146339,1018096,3119846,3035587,1001390,1001448,1018025,1018028,1018032,1018041,1018091,1018093,1018099,1018102,1018131,1018140,1018143,1021854,1029573,1029596,1046783,1049156,1544798,1708909,2148874]);galleries[233744]=new gallery(233744,"3859585","Sea Angling","gallery",[3859585,5036216,5036288,5036295,5036300,5036310,5036313,3841453,3841470,3841471,3841473,3841476,3841477,3841478,3841479,3841480,3841483,3841487,3841528,3859594,5955312,5955314]);galleries[76429]=new gallery(76429,"1819741","Miscellaneous ","gallery",[6326241,6186778,6186780,5624410,4131584,1023202,1025303,1025306,1028886,1029564,1029610,1030812,1032390,1049182,1333701,1538440,1538441,1708925,1708929,1819741]);var imageSets=new Object();imageSets[1]="4131580,4131510,4131503,4131499,4131483,4131474,4073966,4073919,4073909,4073899,4073895,4073890,4073879,3931098,3931061,3859585,3807769,3795936,3795911,3725549,3612507,3607131,3515309,3515262,3385630,3385612,3173334,3173326,3146339,3119846,3035587,2992092,2992091,2699543,2281114,2280960,2280904,2148874,1967524,1950857,1945919,1939891,1925671,1912182,1912154,1819741,1819716,1544798,1167843,1046783,1025503,1025487,1025404,1023202,1023201,1018096,1018046,1001390";imageSets[2]="5699938,4131580,4131510,4131503,4131499,4131483,4131474,4073966,4073919,4073909,4073899,4073895,4073891,4073890,4073879,3931098,3931061,3859585,3807769,3795936,3795911,3725549,3612507,3607131,3515262,3385630,3385612,3173334,3173326,3146339,3119846,3035587,2992092,2992091,2699543,2280904,2148874,2148866,1967524,1950857,1939891,1925671,1912182,1912154,1819741,1819716,1544798,1046783,1025503,1025404,1023201,1018143,1018140,1018131,1018102,1018099,1018096,1018046,1018041,1018032";imageSets[3]="6326241,6186780,6186778,6162503,6162498,6162492,6162491,6162490,6162489,5955314,5955312,5892792,5892785,5699938,5650119,5624410,5612164,5538666,5538620,5538603,5538575,5061186,5036313,5036310,5036300,5036295,5036288,5036216,4348762,4348732,4348714,4348700,4348576,4131584,4131580,4131510,4131503,4131499,4131483,4131474,4131468,4073966,4073919,4073909,4073899,4073895,4073891,4073890,4073879,3931098";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/scottpix/images";break}switch(a){case 1:b="http://www1.clikpic.com/scottpix/images";break}switch(a){case 2:b="http://admin.clikpic.com/scottpix/images";break}switch(a){case 24:b="http://tpc15/clikpic/scottpix/images";break}switch(a){case 4:b="http://www.clikchurch.com/scottpix/images";break}switch(a){case 5:b="http://www2.clikpic.com/scottpix/images";break}switch(a){case 22:b="http://tpc5/clikpic/scottpix/images";break}switch(a){case 23:b="http://tpc10/clikpic/scottpix/images";break}switch(a){case 25:b="http://tpc16/clikpic/scottpix/images";break}switch(a){case 15:b="http://www3.clikpic.com/scottpix/images";break}switch(a){case 18:b="http://www4.clikpic.com/scottpix/images";break}switch(a){case 19:b="http://www5.clikpic.com/scottpix/images";break}switch(a){case 31:b="http://www7.clikpic.com/scottpix/images";break}switch(a){case 32:b="http://admin2.clikpic.com/scottpix/images";break}switch(a){case 33:b="http://www8.clikpic.com/scottpix/images";break}switch(a){case 34:b="http://www9.clikpic.com/scottpix/images";break}switch(a){case 35:b="http://admin3.clikpic.com/scottpix/images";break}switch(a){case 37:b="http://admin4.clikpic.com/scottpix/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="scottpix: "+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+'")'})}}};