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[4479346]=new thumbnail(4479346,"261209",'cute cocker card 6 x 4"',"cute_cocker_thumb.jpg",130,182,5);thumbnails[4479679]=new thumbnail(4479679,"261209",'doodle card 6 x 4"',"doodle_thumb.jpg",130,93,5);thumbnails[4479816]=new thumbnail(4479816,"261209",'happy dog card 6 x 4"',"happy_dog_thumb.jpg",130,93,5);thumbnails[4479822]=new thumbnail(4479822,"261209",'lanky legs card 8 x 4"',"lanky_legs_thumb.jpg",130,65,5);thumbnails[4479834]=new thumbnail(4479834,"261209",'laughing dog card 8 x 4"',"laughing_dog_thumb.jpg",130,65,5);thumbnails[4479843]=new thumbnail(4479843,"261209",'mr allsorts card 8 x 4"',"mr_allsorts_thumb.jpg",130,65,5);thumbnails[4479851]=new thumbnail(4479851,"261209",'romper card 8 x4"',"romper_thumb.jpg",130,65,5);thumbnails[4479870]=new thumbnail(4479870,"261209",'scribble card 6 x 4"',"scribble_thumb.jpg",130,93,5);thumbnails[4479890]=new thumbnail(4479890,"261209",'short and hairy card 6 x 4"',"short_and_hairy_thumb.jpg",130,93,5);thumbnails[4479915]=new thumbnail(4479915,"261209",'scruffy card 6 x 4"',"scruffy_thumb.jpg",130,93,5);thumbnails[4719120]=new thumbnail(4719120,"271137","Fun and frolics in the fields","fun_and_frolics_in_the_fields_36x121_thumb.JPG",130,98,5);thumbnails[4719135]=new thumbnail(4719135,"271137","Fun and frolics in the fields(detail 1)","fun_and_frolics_in_the_fieldsdetail1_thumb.JPG",130,98,5);thumbnails[4719137]=new thumbnail(4719137,"271137","fun and frolics in the fields(detail 2)","fun_and_frolics_in_the_fieldsdetail_21_thumb.JPG",130,98,5);thumbnails[4719142]=new thumbnail(4719142,"271137","Fun and frolics in the fields(detail 3)","fun_and_frolics_in_the_fieldsdetail_31_thumb.JPG",130,98,5);thumbnails[4719144]=new thumbnail(4719144,"271137","Wet dogs and sandy paws","wet_dogs_and_sandy_paws36x12_thumb.JPG",130,98,5);thumbnails[4719247]=new thumbnail(4719247,"271137","Wet dogs and sandy paws(detail 1)","wet_dogs_and_sandy_pawsdetail_thumb.JPG",130,98,5);thumbnails[4719387]=new thumbnail(4719387,"271137","Wet dogs and sandy paws(detail 2)","wet_dogs_and_sandy_pawsdetail_2_thumb.JPG",130,98,5);thumbnails[4719391]=new thumbnail(4719391,"271137","Wet dogs and sandy paws (detail 3 )","wet_dogs_and_sandy_pawsdetail_3_thumb.JPG",130,98,5);thumbnails[4775817]=new thumbnail(4775817,"273429","Cornfield chase","Cornfield_Chase_art2card_jpeg_thumb.jpg",130,54,5);thumbnails[4775822]=new thumbnail(4775822,"273429","dogs day out!","Dogs_Day_Out_art2card_jpeg_thumb.jpg",130,54,5);thumbnails[4775823]=new thumbnail(4775823,"273429","happy hounds hanging around","Happy_Hounds_art2card_jpeg_thumb.jpg",130,54,5);thumbnails[4775825]=new thumbnail(4775825,"273429","our house in the country","Our_house_in_the_country_art2card_jpeg_thumb.jpg",130,315,5);thumbnails[4775828]=new thumbnail(4775828,"273429","cute cockers","Cute_Cockers_art2card_jpeg_thumb.jpg",130,130,5);thumbnails[4775831]=new thumbnail(4775831,"273429","happy dog","Happy_Dog_art2card_jpeg_thumb.jpg",130,130,5);thumbnails[4775833]=new thumbnail(4775833,"273429","scruffy chases a butterfly","Scruffy_chases_a_butterfly_art2card_jpeg_thumb.jpg",130,130,5);thumbnails[4775835]=new thumbnail(4775835,"273429","Laughing dog","Laughing_dog_art2card_jpeg_thumb.jpg",130,130,5);thumbnails[5303681]=new thumbnail(5303681,"155686","Romper","romper_106x4_thumb.JPG",130,98,5);thumbnails[5398092]=new thumbnail(5398092,"155686","curly","curly16x4_thumb.JPG",130,98,5);thumbnails[5398096]=new thumbnail(5398096,"155686","scamper","scamper16x4_thumb.JPG",130,98,5);thumbnails[5398104]=new thumbnail(5398104,"155686","springy","springy16x4_thumb.JPG",130,98,5);thumbnails[5398107]=new thumbnail(5398107,"155686","waggy","waggy16x4_thumb.JPG",130,98,5);thumbnails[5748302]=new thumbnail(5748302,"155686","sun,sea,sand and sniffs","sunseasand_and_sniffs120x8_thumb.JPG",130,98,5);thumbnails[5748306]=new thumbnail(5748306,"155686","sun,sea,sand and sniffs (detail)","sunseasand_and_sniffs1detail_thumb.JPG",130,98,5);thumbnails[5748309]=new thumbnail(5748309,"155686","allsorts of fun at the beach","allsorts_of_fun_at_the_beach18x8_thumb.JPG",130,98,5);thumbnails[5748313]=new thumbnail(5748313,"155686","springing in the sea","springing_in_the_sea18x8_thumb.JPG",130,98,5);thumbnails[3708596]=new thumbnail(3708596,"249060","cute cockers paddling","cute_cockers_paddling28x8_thumb.JPG",130,98,5);thumbnails[3708603]=new thumbnail(3708603,"249060","happy dog taking a dip","happy_dog_taking_a_dip1_thumb.JPG",130,98,5);thumbnails[3708609]=new thumbnail(3708609,"249060","romping in the sea","romping_in_the_sea18x8_thumb.JPG",130,98,5);thumbnails[3708615]=new thumbnail(3708615,"249060","surf's up!","surfs_up120x8_thumb.JPG",130,98,5);thumbnails[3708622]=new thumbnail(3708622,"249060","surf's up!(detail)","surfs_up1detail_thumb.JPG",130,98,5);thumbnails[4181934]=new thumbnail(4181934,"249060","frolicing in the sea","frolicing_in_the_sea18x8_thumb.JPG",130,98,5);thumbnails[4181936]=new thumbnail(4181936,"249060","laughing dog leaping","laughing_dog_leaping78x8_thumb.JPG",130,98,5);thumbnails[4181939]=new thumbnail(4181939,"249060","lanky legs leaping","lanky_legs_leaping28x8_thumb.JPG",130,98,5);thumbnails[4181940]=new thumbnail(4181940,"249060","mr allsorts","mr_allsorts76x41_thumb.JPG",130,98,5);thumbnails[4181941]=new thumbnail(4181941,"249060","cute cocker paddling","cute_cocker_paddling16x4_thumb.JPG",130,173,5);thumbnails[4181942]=new thumbnail(4181942,"249060","doodle","doodle116x4_thumb.JPG",130,98,5);thumbnails[4181944]=new thumbnail(4181944,"249060","happy dog","happy_dog106x4_thumb.JPG",130,98,5);thumbnails[4181945]=new thumbnail(4181945,"249060","lanky legs","lanky_legs106x4_thumb.JPG",130,98,5);thumbnails[4181946]=new thumbnail(4181946,"249060","laughing dog","laughing_dog86x4_thumb.JPG",130,98,5);thumbnails[3415949]=new thumbnail(3415949,"249060","mr scruffy hits the beach","mr scruffy hits the beach(1)8x8_thumb.JPG",130,98,5);thumbnails[3781080]=new thumbnail(3781080,"143365","river tails (detail)","river_tails1detail_thumb.JPG",130,98,5);thumbnails[3781077]=new thumbnail(3781077,"143365","river tails","river_tails120x8_thumb.JPG",130,98,5);thumbnails[3469177]=new thumbnail(3469177,"143365","highland fling","highland fling(1)20x8_thumb.JPG",130,98,5);thumbnails[3469695]=new thumbnail(3469695,"143365","highland fling (detail)","highland fling(1)detail_thumb.JPG",130,98,5);thumbnails[3469180]=new thumbnail(3469180,"143365","muddy paws","muddy paws(1)20x8_thumb.JPG",130,98,5);thumbnails[3469697]=new thumbnail(3469697,"143365","muddy paws (detail)","muddy paws(1)detail_thumb.JPG",130,98,5);thumbnails[3469188]=new thumbnail(3469188,"143365","there's a bone at the end of the rainbow","there's a bone at the end of the rainbow(1)20x8_thumb.JPG",130,98,5);thumbnails[3469699]=new thumbnail(3469699,"143365","there's a bone at the end of the rainbow(detail)","there's a bone at the end of the rainbow(1)detail_thumb.JPG",130,98,5);thumbnails[3469195]=new thumbnail(3469195,"143365","waggy tails and tartan trails","waggy tails and tartan trails(1)20x8_thumb.JPG",130,98,5);thumbnails[3469703]=new thumbnail(3469703,"143365","waggy tails and tartan trails(detail)","waggy tails and tartan tails(1) detail_thumb.JPG",130,98,5);thumbnails[3017321]=new thumbnail(3017321,"143365","happy hounds hanging around","happy hounds hanging around(1)20x8_thumb.JPG",130,98,5);thumbnails[3469705]=new thumbnail(3469705,"143365","happy hounds hanging around(detail)","happy hounds hanging around(1)detail_thumb.JPG",130,98,5);thumbnails[3404359]=new thumbnail(3404359,"143365","happy dancing dogs","happy dancing dogs(2)20x8_thumb.JPG",130,98,5);thumbnails[3469714]=new thumbnail(3469714,"143365","happy dancing dogs(detail)","happy dancing dogs(2)detail_thumb.JPG",130,98,5);thumbnails[3017318]=new thumbnail(3017318,"143365","having a swirl of a time","having a swirl of a time(4)3D20x8_thumb.JPG",130,98,5);thumbnails[3469717]=new thumbnail(3469717,"143365","having a swirl of a tme(detail)","having a swirl of a time(4)3D detail_thumb.JPG",130,98,5);thumbnails[3079970]=new thumbnail(3079970,"143365","dogs day out!","dogs day out!(1)20x8_thumb.JPG",130,98,5);thumbnails[3469544]=new thumbnail(3469544,"143365","dogs day out detail","dogs day out!(2)detail_thumb.JPG",130,98,5);thumbnails[3079983]=new thumbnail(3079983,"143365","cornfield chase","cornfield chase(1)20x8_thumb.JPG",130,98,5);thumbnails[3469548]=new thumbnail(3469548,"143365","cornfield chase detail","cornfield chase(3)detail_thumb.JPG",130,98,5);thumbnails[3017331]=new thumbnail(3017331,"143365","chasing tails","chasing_tails4_thumb.JPG",130,98,5);thumbnails[3017327]=new thumbnail(3017327,"143365","chasing tails (detail)","chasing_tails4detail_thumb.JPG",130,98,5);thumbnails[3017338]=new thumbnail(3017338,"143365","woof,wag and roll","woof,wag and roll (1) 20x81_thumb.JPG",130,98,5);thumbnails[3017328]=new thumbnail(3017328,"143365","woof,wag and roll(detail)","woof,wag and roll (1)(detail)_thumb.JPG",130,98,5);thumbnails[2402858]=new thumbnail(2402858,"143365","sniffing scents","sniffing scents1_thumb.JPG",130,98,5);thumbnails[2402871]=new thumbnail(2402871,"143365","sniffing scents(detail)","sniffing scents(detail)1_thumb.JPG",130,98,5);thumbnails[2163314]=new thumbnail(2163314,"143365","Our house in the country","our_house_in_the_country720x8_thumb.JPG",130,173,5);thumbnails[2163317]=new thumbnail(2163317,"143365","Our house in the country(detail)","0ur_house_in_the_country7detail_thumb.JPG",130,173,5);thumbnails[2163265]=new thumbnail(2163265,"143365","only mad dogs and happy dogs go out in the midday sun","midday sun(1)_thumb.JPG",130,98,5);thumbnails[2163279]=new thumbnail(2163279,"143365","only mad dogs and happy dogs go out in the midday sun (detail)","midday sun(detail 1)_thumb.JPG",130,98,5);thumbnails[2163285]=new thumbnail(2163285,"143365","a walk in the park","a_walk_in_the_park320x8_thumb.JPG",130,98,5);thumbnails[2163294]=new thumbnail(2163294,"143365","A walk in the park (detail)","a_walk_in_the_park3detail_thumb.JPG",130,98,5);thumbnails[2163108]=new thumbnail(2163108,"143365","fun run","fun run(5)20x8_thumb.JPG",130,98,5);thumbnails[2163111]=new thumbnail(2163111,"143365","fun run (detail)","fun run(5)detail_thumb.JPG",130,98,5);thumbnails[2163113]=new thumbnail(2163113,"143365","Dogs just wanna have fun","dogs just wanna have fun(2)_thumb.JPG",130,98,5);thumbnails[2163257]=new thumbnail(2163257,"143365","dogs just wanna have fun(detail)","dogs just wanna have fun(detail3)_thumb.JPG",130,98,5);thumbnails[2163301]=new thumbnail(2163301,"143365","swirls of of fun and laughter","wild thing_thumb.JPG",130,98,5);thumbnails[2163304]=new thumbnail(2163304,"143365","swirls of fun and laughter (detail)","wild thing (detail2)_thumb.JPG",130,98,5);thumbnails[3415939]=new thumbnail(3415939,"145025","laughing dog leaping","laughing_dog_leaping98x8_thumb.JPG",130,98,5);thumbnails[3415962]=new thumbnail(3415962,"145025","big friendly dog","big_friendly_dog10_thumb.JPG",130,98,5);thumbnails[3415974]=new thumbnail(3415974,"145025","big paws","big paws(1)8x8_thumb.JPG",130,98,5);thumbnails[3415977]=new thumbnail(3415977,"145025","bundle of fun","bundle of fun(1)8x8_thumb.JPG",130,98,5);thumbnails[3415981]=new thumbnail(3415981,"145025"," frolic","mrs frolic(1)8x8_thumb.JPG",130,98,5);thumbnails[3415983]=new thumbnail(3415983,"145025","mrs graceful","mrs graceful(1)8x8_thumb.JPG",130,98,5);thumbnails[3415987]=new thumbnail(3415987,"145025","woolly","mrs woolly(1)8x8_thumb.JPG",130,98,5);thumbnails[3416040]=new thumbnail(3416040,"145025","sniffer","sniffer(1)8x8_thumb.JPG",130,98,5);thumbnails[3416042]=new thumbnail(3416042,"145025","snuffle","snuffle(2)8x8_thumb.JPG",130,98,5);thumbnails[3416043]=new thumbnail(3416043,"145025","stately hound","stately hound(1)8x8_thumb.JPG",130,98,5);thumbnails[3708606]=new thumbnail(3708606,"145025","mr hurdle","mr_hurdle18x8_thumb.JPG",130,98,5);thumbnails[2190723]=new thumbnail(2190723,"145025","happy dog","happy dog(4)8x8_thumb.JPG",130,98,5);thumbnails[3415958]=new thumbnail(3415958,"145025","lanky legs leaping","lanky legs leaping(1)8x8_thumb.JPG",130,98,5);thumbnails[3415951]=new thumbnail(3415951,"145025","snooty sniffing flowers","mrs snooty sniffing flowers(1)8x8_thumb.JPG",130,98,5);thumbnails[2190718]=new thumbnail(2190718,"145025","snooty looking pretty","setter looking pretty(2)8x8_thumb.JPG",130,98,5);thumbnails[3017316]=new thumbnail(3017316,"145025","an air of elegance","an air of elegance(2)_thumb.JPG",130,98,5);thumbnails[2190706]=new thumbnail(2190706,"145025","mr scruffy chases a butterfly","scruffy_chases_a_butterfly128x8_thumb.JPG",130,98,5);thumbnails[2958193]=new thumbnail(2958193,"145025","taking a stroll","taking_a_stroll10_thumb.JPG",130,98,5);thumbnails[2190698]=new thumbnail(2190698,"145025","cute cocker","cute cocker(5)8x8_thumb.JPG",130,98,5);thumbnails[2958195]=new thumbnail(2958195,"145025","pointy noses having fun","pointy noses having fun(1)_thumb.JPG",130,98,5);thumbnails[2190715]=new thumbnail(2190715,"145025","doodling along","doodling_along8_thumb.JPG",130,98,5);thumbnails[3781093]=new thumbnail(3781093,"230531","countryside capers","countryside_capers160x161_thumb.JPG",130,98,5);thumbnails[3781095]=new thumbnail(3781095,"230531","countryside capers(detail)","countryside_capersdetail1_thumb.JPG",130,98,5);thumbnails[3637545]=new thumbnail(3637545,"155703","bundle","bundle26x4_thumb.JPG",130,98,5);thumbnails[3637547]=new thumbnail(3637547,"155703","doodle","doodle56x4_thumb.JPG",130,98,5);thumbnails[3637550]=new thumbnail(3637550,"155703","happy dog","happy_dog166x4_thumb.JPG",130,98,5);thumbnails[3637551]=new thumbnail(3637551,"155703","lanky legs","lanky_legs76x4_thumb.JPG",130,98,5);thumbnails[3637553]=new thumbnail(3637553,"155703","laughing dog","laughing_dog66x4_thumb.JPG",130,98,5);thumbnails[3637555]=new thumbnail(3637555,"155703","leg it","leg_it16x4_thumb.JPG",130,98,5);thumbnails[3637567]=new thumbnail(3637567,"155703","pointy nose","pointy_nose46x4_thumb.JPG",130,98,5);thumbnails[3637572]=new thumbnail(3637572,"155703","romper","romper26x4_thumb.JPG",130,98,5);thumbnails[3637602]=new thumbnail(3637602,"155703","short and hairy","short_and_hairy36x4_thumb.JPG",130,98,5);thumbnails[3637604]=new thumbnail(3637604,"155703","sniffer","sniffer16x4_thumb.JPG",130,98,5);thumbnails[3637606]=new thumbnail(3637606,"155703","snooty","snooty46x4_thumb.JPG",130,173,5);thumbnails[3637609]=new thumbnail(3637609,"155703","stocky","stocky56x4_thumb.JPG",130,98,5);thumbnails[4181947]=new thumbnail(4181947,"155703","hound dog","hound_dog26x4_thumb.JPG",130,98,5);thumbnails[2402902]=new thumbnail(2402902,"155703","cute cocker","cute_cocker30_thumb.JPG",130,173,5);thumbnails[2958248]=new thumbnail(2958248,"155703"," scribble","mr scribble(3)6x4_thumb.JPG",130,98,5);thumbnails[2402895]=new thumbnail(2402895,"155703"," scruffy","scruffy166x4_thumb.JPG",130,98,5);thumbnails[2958221]=new thumbnail(2958221,"155703","poodle doodle","poodle doodle(1)_thumb.JPG",130,98,5);thumbnails[2958239]=new thumbnail(2958239,"155703","scramble","mr scramble(1)6x4_thumb.JPG",130,98,5);thumbnails[2402910]=new thumbnail(2402910,"155703","mr allsorts","mr_allsorts146x4_thumb.JPG",130,98,5);thumbnails[2163388]=new thumbnail(2163388,"143401","Bone sack","Bone sac (4)_thumb.JPG",130,173,5);thumbnails[2163433]=new thumbnail(2163433,"143401","Bone sack (detail)","Bone sac(detail 2)_thumb.JPG",130,173,5);thumbnails[2163444]=new thumbnail(2163444,"143401","Bone sack (detail)","Bone sac (detail 4)_thumb.JPG",130,173,5);var galleries=new Object();galleries[271137]=new gallery(271137,"4719391,4719387,4719247,4719144,4719142,4719137,4719135,4719120",'Canvases 32x12"',"section325923",[4719120,4719135,4719137,4719142,4719144,4719247,4719387,4719391]);galleries[261209]=new gallery(261209,"4479915,4479890,4479870,4479851,4479843,4479834,4479822,4479816,4479679,4479346","NEW! dogsinstitches card designs","section315118",[4479346,4479679,4479816,4479822,4479834,4479843,4479851,4479870,4479890,4479915]);galleries[273429]=new gallery(273429,"4775835,4775833,4775831,4775828,4775825,4775823,4775822,4775817","NEW! dogsinstitches limited edition giclee prints","section324933",[4775817,4775822,4775823,4775825,4775828,4775831,4775833,4775835]);galleries[155686]=new gallery(155686,"5748313,5748309,5748306,5748302,5398107,5398104,5398096,5398092,5303681","New designs & dog characters","section197957",[5303681,5398092,5398096,5398104,5398107,5748302,5748306,5748309,5748313]);galleries[249060]=new gallery(249060,"4181944,4181942,4181940,4181939,4181936,4181934,3708622,3708615,3708609,3708603,3708596,3415949","Beach frolics collection","section301578",[3708596,3708603,3708609,3708615,3708622,4181934,4181936,4181939,4181940,4181941,4181942,4181944,4181945,4181946,3415949]);galleries[143365]=new gallery(143365,"3781080,3781077,3469714,3469705,3469703,3469699,3469697,3469695,3469548,3469544,3469195,3469188,3469180,3469177,3404359,3079983,3079970,3017338,3017331,3017328,3017327,3017321,3017318,2402858,2163279,2163265,2163113",'canvases 20x8"',"gallery",[3781080,3781077,3469177,3469695,3469180,3469697,3469188,3469699,3469195,3469703,3017321,3469705,3404359,3469714,3017318,3469717,3079970,3469544,3079983,3469548,3017331,3017327,3017338,3017328,2402858,2402871,2163314,2163317,2163265,2163279,2163285,2163294,2163108,2163111,2163113,2163257,2163301,2163304]);galleries[145025]=new gallery(145025,"3708606,3416043,3416042,3416040,3415987,3415983,3415981,3415977,3415962,3415958,3415951,3415939,2958195,2958193,2190723,2190718,2190706,2190698",'canvases 8x8"',"section184684",[3415939,3415962,3415974,3415977,3415981,3415983,3415987,3416040,3416042,3416043,3708606,2190723,3415958,3415951,2190718,3017316,2190706,2958193,2190698,2958195,2190715]);galleries[230531]=new gallery(230531,"3781095,3781093",'canvases 60x16"',"section281779",[3781093,3781095]);galleries[155703]=new gallery(155703,"4181947",'canvases 6x4"',"section197958",[3637545,3637547,3637550,3637551,3637553,3637555,3637567,3637572,3637602,3637604,3637606,3637609,4181947,2402902,2958248,2402895,2958221,2958239,2402910]);galleries[143401]=new gallery(143401,"2163444,2163433,2163388","dogsinstitches accessories","section184713",[2163388,2163433,2163444]);var imageSets=new Object();imageSets[1]="4181947,4181944,4181942,4181940,4181939,4181936,4181934,3781095,3781093,3781080,3781077,3708622,3708615,3708609,3708606,3708603,3708596,3469714,3469705,3469703,3469699,3469697,3469695,3469548,3469544,3469195,3469188,3469180,3469177,3416043,3416042,3416040,3415987,3415983,3415981,3415977,3415962,3415958,3415951,3415949,3415939,3404359,3079983,3079970,3017338,3017331,3017328,3017327,3017321,3017318,2958195,2958193,2402858,2190723,2163279,2163265,2163257,2163113";imageSets[2]="4181947,4181944,4181942,4181940,4181939,4181936,4181934,3781095,3781093,3781080,3781077,3708622,3708615,3708609,3708606,3708603,3708596,3469714,3469705,3469703,3469699,3469697,3469695,3469548,3469544,3469195,3469188,3469180,3469177,3416043,3416042,3416040,3415987,3415983,3415981,3415977,3415962,3415958,3415951,3415949,3415939,3404359,3079983,3079970,3017338,3017331,3017328,3017327,3017321,3017318,2958195,2958193,2402858,2190723,2190718,2190706,2190698,2163279,2163265,2163113";imageSets[3]="5748313,5748309,5748306,5748302,5398107,5398104,5398096,5398092,5303681,4775835,4775833,4775831,4775828,4775825,4775823,4775822,4775817,4719391,4719387,4719247,4719144,4719142,4719137,4719135,4719120,4479915,4479890,4479870,4479851,4479843,4479834,4479822,4479816,4479679,4479346,4181947,4181946,4181945,4181944,4181942,4181941,4181940,4181939,4181936,4181934,3781095,3781093,3781080,3781077,3708622";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/suebritton/images";break}switch(a){case 1:b="http://www1.clikpic.com/suebritton/images";break}switch(a){case 2:b="http://admin.clikpic.com/suebritton/images";break}switch(a){case 24:b="http://tpc15/clikpic/suebritton/images";break}switch(a){case 4:b="http://www.clikchurch.com/suebritton/images";break}switch(a){case 5:b="http://www2.clikpic.com/suebritton/images";break}switch(a){case 22:b="http://tpc5/clikpic/suebritton/images";break}switch(a){case 23:b="http://tpc10/clikpic/suebritton/images";break}switch(a){case 25:b="http://tpc16/clikpic/suebritton/images";break}switch(a){case 15:b="http://www3.clikpic.com/suebritton/images";break}switch(a){case 18:b="http://www4.clikpic.com/suebritton/images";break}switch(a){case 19:b="http://www5.clikpic.com/suebritton/images";break}switch(a){case 31:b="http://www7.clikpic.com/suebritton/images";break}switch(a){case 32:b="http://admin2.clikpic.com/suebritton/images";break}switch(a){case 33:b="http://www8.clikpic.com/suebritton/images";break}switch(a){case 34:b="http://www9.clikpic.com/suebritton/images";break}switch(a){case 35:b="http://admin3.clikpic.com/suebritton/images";break}switch(a){case 37:b="http://admin4.clikpic.com/suebritton/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("section315118"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section315118.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("section315118"!=""){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="dogsinstitches: "+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;resizePhotoInfo();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(b,a){imageID=randomListVal(galleries[b].featured_images);if(imageID!=0){a.src=thumbnails[imageID].src;a.width=thumbnails[imageID].width;a.height=thumbnails[imageID].height}}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+'")'})}}};