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[3992432]=new thumbnail(3992432,"206165","Hebden Bridge 2010 a4 calendar front.<br>\r\nImages can be viewed in the Hebden Bridge and Heptonstall galleries","hb_a4_front2010_thumb.jpg",130,182,15);thumbnails[4732225]=new thumbnail(4732225,"206165","Hebden Bridge 2010 SLIM calendar front.<br>\r\nImages can be viewed in the Hebden Bridge and Heptonstall galleries","hb_slim_thumb.jpg",130,353,15);thumbnails[3997273]=new thumbnail(3997273,"206165","Hebden Bridge 2010 A5 calendar front.<br>\r\nImages can be viewed in the Hebden Bridge and Heptonstall galleries<br>\r\n","hba5front2010_thumb.jpg",130,173,15);thumbnails[3997368]=new thumbnail(3997368,"206165","Hebden Bridge 2010 desktop calendar front.<br>\r\nImages can be viewed in the Hebden Bridge and Heptonstall galleries","hbdesktopfront2010_thumb.jpg",130,123,15);thumbnails[4001737]=new thumbnail(4001737,"206165","Halifax 2010 a4 calendar front - Images can be viewed in the Halifax gallery","halifax_2010_a4_front_thumb.jpg",130,181,15);thumbnails[4732252]=new thumbnail(4732252,"206165","Halifax 2010 SLIM calendar front - Images can be viewed in the Halifax gallery","halifax_slim_thumb.jpg",130,349,15);thumbnails[4897967]=new thumbnail(4897967,"206165","Halifax a5 calendar 2010 - images can be viewed in the Halifax gallery","a52010fronthx_thumb.jpg",130,173,15);thumbnails[4732259]=new thumbnail(4732259,"206165","Halifax 2010 DESKTOP calendar front - Images can be viewed in the Halifax gallery","halifax_desktop_thumb.jpg",130,125,15);thumbnails[4732317]=new thumbnail(4732317,"206165","Sowerby Bridge 2010 a4 calendar front - Images can be viewed in the Sowerby Bridge gallery","sba4_thumb.jpg",130,181,15);thumbnails[4732320]=new thumbnail(4732320,"206165","Sowerby Bridge 2010 SLIM calendar front - Images can be viewed in the Sowerby Bridge gallery","sbslim_thumb.jpg",130,349,15);thumbnails[4898035]=new thumbnail(4898035,"206165","Sowerby Bridge A5 calendar 2010 - images can be viewed in the Sowerby Bridge gallery","sba51_thumb.jpg",130,173,15);thumbnails[4732323]=new thumbnail(4732323,"206165","Sowerby Bridge 2010 DESKTOP calendar front - Images can be viewed in the Sowerby Bridge gallery","sbdesk_thumb.jpg",130,124,15);thumbnails[4732438]=new thumbnail(4732438,"206165","Brighouse 2010 A4 calendar front - Images can be viewed in the Brighouse and Hipperholme gallerys","briga4_thumb.jpg",130,180,15);thumbnails[4732470]=new thumbnail(4732470,"206165","Brighouse 2010 SLIM calendar front - Images can be viewed in the Brighouse and Hipperholme gallerys","brig_slim_thumb.jpg",130,346,15);thumbnails[4732473]=new thumbnail(4732473,"206165","Brighouse 2010 A5 calendar front - Images can be viewed in the Brighouse and Hipperholme gallerys","briga5_thumb.jpg",130,171,15);thumbnails[4732475]=new thumbnail(4732475,"206165","Brighouse 2010 DESKTOP calendar front - Images can be viewed in the Brighouse and Hipperholme gallerys","brigdesk_thumb.jpg",130,137,15);thumbnails[4732480]=new thumbnail(4732480,"206165","Calderdale 2010 A4 calendar front - Images used are marked in the image galleries","calda4_thumb.jpg",130,180,15);thumbnails[3363550]=new thumbnail(3363550,"205316","canal basin","a188_canal basin brig_thumb.jpg",130,98,15);thumbnails[3369729]=new thumbnail(3369729,"205316","Canal Basin at Brighouse","A85_CANAL BASIN BRIG_thumb.jpg",130,97,15);thumbnails[3369852]=new thumbnail(3369852,"205316","Spring on the canal at Brighouse","a125_spring brighouse_thumb.jpg",130,87,15);thumbnails[3369854]=new thumbnail(3369854,"205316","Smith Art Gallery, Brighouse","art gallery_thumb.jpg",130,73,15);thumbnails[3418178]=new thumbnail(3418178,"205316","Millroyd Island, Brighouse","mill royd island_thumb.jpg",130,173,15);thumbnails[3495669]=new thumbnail(3495669,"205316","Ritz Ballroom, Brighouse","Clone of 20080830_20_thumb.JPG",130,91,15);thumbnails[4838930]=new thumbnail(4838930,"205316","Smith Art Gallery, Brighouse - 2010 calendar - Brighouse and Calderdale","brigfeb2010_thumb.jpg",130,98,15);thumbnails[4838942]=new thumbnail(4838942,"205316","Lake at Sunny Vale - 2010 calendar","brigmar2010_thumb.jpg",130,98,15);thumbnails[4838967]=new thumbnail(4838967,"205316","Canal Basin, Brighouse - 2010 calendar","brigmay2010_thumb.jpg",130,97,15);thumbnails[4838982]=new thumbnail(4838982,"205316","Bradford Road, Brighouse - 2010 calendar","brigjune2010_thumb.jpg",130,80,15);thumbnails[4838994]=new thumbnail(4838994,"205316","Brighouse Sports Ground - 2010 calendar","brigjuly2010_thumb.jpg",130,97,15);thumbnails[4839048]=new thumbnail(4839048,"205316","Flower beds outside the Council Offices, Brighouse - 2010 calendar","brigaug2010_thumb.jpg",130,173,15);thumbnails[4839110]=new thumbnail(4839110,"205316","Sugdens Flour Mill, Brighouse - 2010 calendar","brigoct2010_thumb.jpg",130,97,15);thumbnails[4839127]=new thumbnail(4839127,"205316","New Bus Station at Brighouse - 2010 calendar","brignov2010_thumb.jpg",130,102,15);thumbnails[4839141]=new thumbnail(4839141,"205316","Hove Edge","brigdec2010_thumb.jpg",130,82,15);thumbnails[3362717]=new thumbnail(3362717,"205365","Halifax from Godley","A30M_HX FROM GODLEY_thumb.jpg",130,98,15);thumbnails[3362720]=new thumbnail(3362720,"205365","Victoria Theatre","A13_victoria_thumb.jpg",130,95,15);thumbnails[3367841]=new thumbnail(3367841,"205365","Halifax from Southowram Bank 2009 calendar","halifax from southowram bank1_thumb.JPG",130,60,15);thumbnails[3369857]=new thumbnail(3369857,"205365","Halifax from Southowram","A40M_HX FROM SOUTHOWRAM3_thumb.jpg",130,150,15);thumbnails[3370129]=new thumbnail(3370129,"205365","Daffodils at Crossley Heath, Halifax","A46M_DAFFS AT C H SCHOOL_thumb.jpg",130,81,15);thumbnails[3370358]=new thumbnail(3370358,"205365","The Piece Hall, Halifax","A48_PIECE HALL1_thumb.jpg",130,94,15);thumbnails[3370383]=new thumbnail(3370383,"205365","The Parish Church, Halifax","a68_parish_thumb.jpg",130,152,15);thumbnails[3370406]=new thumbnail(3370406,"205365","Shibden Mill Inn, Halifax","A76_shibden mill inn2_thumb.jpg",130,76,15);thumbnails[3370424]=new thumbnail(3370424,"205365","Winter's Day at Ogden Reservoir, Halifax","a78_ogden_thumb.jpg",130,98,15);thumbnails[3370932]=new thumbnail(3370932,"205365","Dean Clough and All Souls, Halifax","a107_dean clough_thumb.jpg",130,92,15);thumbnails[3370944]=new thumbnail(3370944,"205365","Crocuses on the moor, Halifax","a177_crocus on moor_thumb.jpg",130,125,15);thumbnails[3370953]=new thumbnail(3370953,"205365","The Piece Hall, Halifax","a200_piece hall_thumb.jpg",130,125,15);thumbnails[3370961]=new thumbnail(3370961,"205365","Winter at Shibden Hall, Halifax","a211_winter shibden_thumb.jpg",130,98,15);thumbnails[3370968]=new thumbnail(3370968,"205365","Heath School","Bitmap in a1_heath_thumb.jpg",130,80,15);thumbnails[3370983]=new thumbnail(3370983,"205365","The Parish Church, Halifax 2009 calendar","Clone of 20080305_2_thumb.jpg",130,97,15);thumbnails[3370994]=new thumbnail(3370994,"205365","Promenade at Ogden Reservoir -- 2010 Calderdale calendar","ogden_thumb.jpg",130,74,15);thumbnails[3379374]=new thumbnail(3379374,"205365","Top of Woolshops. Halifax 2009 calendar","top of woolshops_thumb.jpg",130,97,15);thumbnails[3379416]=new thumbnail(3379416,"205365","Making snowmen on the moor, Halifax 2009 calendar","making snowmen_thumb.jpg",130,101,15);thumbnails[3379514]=new thumbnail(3379514,"205365","Towards the Town Hall, Halifax 2009 calendar","towards town hall2_thumb.jpg",130,173,15);thumbnails[3379529]=new thumbnail(3379529,"205365","daffodils at Shibden Hall, Halifax 2009 calendar","daffodils at shibden_thumb.jpg",130,100,15);thumbnails[3379539]=new thumbnail(3379539,"205365","Westgate, Halifax 2009 calendar","westgate_thumb.jpg",130,88,15);thumbnails[3379545]=new thumbnail(3379545,"205365","Calderdale Royal Hospital, Halifax 2009 calendar","hospital_thumb.jpg",130,94,15);thumbnails[3379564]=new thumbnail(3379564,"205365","EURAKA! Halifax 2009 calendar","euraka_thumb.jpg",130,105,15);thumbnails[3379585]=new thumbnail(3379585,"205365","The Shears Inn, Halifax 2009 calendar","shears_thumb.jpg",130,88,15);thumbnails[3379611]=new thumbnail(3379611,"205365","Ice sculpture outside the north gate of the Piece Hall, Halifax  2009 calendar","ice sculpture_thumb.jpg",130,169,15);thumbnails[3997544]=new thumbnail(3997544,"205365","from Beacon Hill - a misty day over Halifax.<br>\r\n2010 calendar - January","halifax2010jan_thumb.jpg",130,76,15);thumbnails[3997549]=new thumbnail(3997549,"205365","The Piece Hall, Halifax  -  2010 calendar - February","halifax_2010_feb_thumb.jpg",130,97,15);thumbnails[3997566]=new thumbnail(3997566,"205365","Somerset House, Halifax - 2010 calendar - Halifax and Calderdale ","halifax_2010_march_thumb.jpg",130,88,15);thumbnails[3997573]=new thumbnail(3997573,"205365","Sunken Garden, Manor Heath, Halifax - 2010 calendar - April","halifax_2010_april_thumb.jpg",130,71,15);thumbnails[4000238]=new thumbnail(4000238,"205365","Square Chapel - Centre for the Arts, Halifax  - 2010 calendar  - May","halifax_2010_may_thumb.jpg",130,203,15);thumbnails[4000388]=new thumbnail(4000388,"205365","Lower Woolshops, Halifax   -  2010 calendar  -  June","halifax_2010_june_thumb.jpg",130,90,15);thumbnails[4000425]=new thumbnail(4000425,"205365","Shibden Hall, Halifax  -  2010 calendar- Halifax and Calderdale","halifax_2010_july_thumb.jpg",130,100,15);thumbnails[4001621]=new thumbnail(4001621,"205365","Bull Green, Halifax  -  2010 calendar - August","halifax_2010_august_thumb.jpg",130,75,15);thumbnails[4001661]=new thumbnail(4001661,"205365","Skircoat Green, Halifax  -  2010 calendar  - September ","halifax_2010_sept_thumb.jpg",130,88,15);thumbnails[4001703]=new thumbnail(4001703,"205365","Union Cross Hotel, Halifax - 2010 calendar  - October","halifax_2010_oct_thumb.jpg",130,191,15);thumbnails[4001712]=new thumbnail(4001712,"205365","Clay House, West Vale   -  2010 Halifax and Calderdale calendar","halifax_2010_novl_thumb.jpg",130,100,15);thumbnails[4001721]=new thumbnail(4001721,"205365","Warley Village  -  2010 calendar - December","halifax_2010_dec_thumb.jpg",130,82,15);thumbnails[5367243]=new thumbnail(5367243,"205365","The Old Infirmary, Halifax","infirmary_thumb.jpg",130,94,15);thumbnails[5367251]=new thumbnail(5367251,"205365","Winter on the moor, Halifax","winter_on_the_moor_thumb.jpg",130,72,15);thumbnails[3371043]=new thumbnail(3371043,"205307","On the canal, Hebden Bridge","A21_CANAL HEBDEN BRIDGE_thumb.jpg",130,102,15);thumbnails[3371054]=new thumbnail(3371054,"205307","Summers day at Hebden Bridge","a181_summers day HB_thumb.jpg",130,97,15);thumbnails[3371110]=new thumbnail(3371110,"205307","Winter - Hebden Bridge","a198 _winter hb_thumb.jpg",130,90,15);thumbnails[3371118]=new thumbnail(3371118,"205307","Bluebells at Hardcastle Crags","bluebells_thumb.jpg",130,80,15);thumbnails[3371170]=new thumbnail(3371170,"205307","Blossom at Hebden Bridge","blossom at hb_thumb.jpg",130,100,15);thumbnails[3374737]=new thumbnail(3374737,"205307","St George's Square, Hebden Bridge","hebden bridge020_thumb.jpg",130,98,15);thumbnails[3374750]=new thumbnail(3374750,"205307","Gibson Mill, Hardcastle Crags","gibson mill2_thumb.jpg",130,98,15);thumbnails[3374783]=new thumbnail(3374783,"205307","Narrow boats at Hebden Bridge","narrow boats at hb_thumb.jpg",130,104,15);thumbnails[3375310]=new thumbnail(3375310,"205307","Pack Horse Bridge over Hebden Water","Clone of HEBDEN BRIDGE015_thumb.JPG",130,99,15);thumbnails[3375343]=new thumbnail(3375343,"205307","Stepping stones at Hardcastle Crags","Clone of hebden bridge047_thumb.jpg",130,93,15);thumbnails[3375443]=new thumbnail(3375443,"205307","Towards Bridge Gate, Hebden Bridge","Clone of 20080506_52_thumb.jpg",130,91,15);thumbnails[3375464]=new thumbnail(3375464,"205307","Overlooking Hebden Bridge","Clone of overlooking hb_thumb.jpg",130,100,15);thumbnails[3404966]=new thumbnail(3404966,"205307","Woods at Hardcastle Crags","woods at hc_thumb.jpg",130,168,15);thumbnails[3404973]=new thumbnail(3404973,"205307","Market, Hebden Bridge","market hb_thumb.JPG",130,100,15);thumbnails[3404984]=new thumbnail(3404984,"205307","Stubbing Wharf, Hebden Bridge","stubbing wharf, hb_thumb.jpg",130,84,15);thumbnails[3426401]=new thumbnail(3426401,"205307","On the canal at Hebden Bridge","hb canal_thumb.jpg",130,199,15);thumbnails[3428012]=new thumbnail(3428012,"205307","Ducks on Hebden Water","ducks_thumb.jpg",130,191,15);thumbnails[3436062]=new thumbnail(3436062,"205307","White Lion Hotel, Hebden Bridge<br>\r\n2010 calendar","white lion hotel hb_thumb.jpg",130,100,15);thumbnails[3588030]=new thumbnail(3588030,"205307","On the canal at Hebden Bridge<br>\r\n2010 calendar","on_the_canal_thumb.jpg",130,178,15);thumbnails[3970470]=new thumbnail(3970470,"205307","New Road, Hebden Bridge<br>\r\n2010 calendar","new_rd_hb_thumb.jpg",130,80,15);thumbnails[3970633]=new thumbnail(3970633,"205307","Market Street, Hebden Bridge<br>\r\n2010 calendar","market_st_hb_thumb.jpg",130,87,15);thumbnails[3992272]=new thumbnail(3992272,"205307","Calder Holme Park, Hebden Bridge<br>\r\n2010 calendar","hb_park_thumb.jpg",130,94,15);thumbnails[3992277]=new thumbnail(3992277,"205307","On the canal, Hebden Bridge<br>\r\n2010 calendar","hb_canal2_thumb.jpg",130,98,15);thumbnails[3992279]=new thumbnail(3992279,"205307","Bridge Gate, Hebden Bridge<br>\r\n2010 calendar","hb_view_2_thumb.jpg",130,98,15);thumbnails[3992284]=new thumbnail(3992284,"205307","St Georges Bridge, Hebden Bridge<br>\r\n2010 calendar","hb_bridge_thumb.jpg",130,100,15);thumbnails[3992296]=new thumbnail(3992296,"205307","Hebden Bridge from Horsehold<br>\r\n2010 calendar","hb_view_thumb.jpg",130,84,15);thumbnails[3992307]=new thumbnail(3992307,"205307","St Georges Square, Hebden Bridge<br>\r\n2010 Hebden Bridge and Calderdale calendar","hb2_thumb.jpg",130,75,15);thumbnails[3371083]=new thumbnail(3371083,"208851","Weavers Square, Heptonstall -- 2010 Calderdale calendar","a183_weavers sq_thumb.jpg",130,97,15);thumbnails[3371088]=new thumbnail(3371088,"208851","Summer's day at Heptonstall","a184_summer heptonstall_thumb.jpg",130,117,15);thumbnails[3374763]=new thumbnail(3374763,"208851","Heptonstall from Horsehold","heptonstall from horsehold_thumb.jpg",130,100,15);thumbnails[3375460]=new thumbnail(3375460,"208851","Weaver's Square in the snow, Heptonstall","hept in the snow_thumb.jpg",130,100,15);thumbnails[3992268]=new thumbnail(3992268,"208851","Heptonstall<br>\r\n2010 calendar","heptonstall_3_thumb.jpg",130,138,15);thumbnails[3992317]=new thumbnail(3992317,"208851","St Thomas a Becket ruin, Heptonstall<br>\r\n2010 calendar","hept_1_thumb.jpg",130,99,15);thumbnails[3375489]=new thumbnail(3375489,"208849","The Stray, Lightcliffe","a170_stray_thumb.jpg",130,80,15);thumbnails[3375509]=new thumbnail(3375509,"208849","Hipperholme Grammar School","Clone of hipp_grammar_thumb.jpg",130,81,15);thumbnails[3375517]=new thumbnail(3375517,"208849","Hipperholme","Clone of hipperholme_thumb.jpg",130,77,15);thumbnails[3375526]=new thumbnail(3375526,"208849","The Stray, Lightcliffe","stray_thumb.jpg",130,87,15);thumbnails[4838915]=new thumbnail(4838915,"208849","Hipperholme Cross Roads - 2010 calendar - Brighouse and Calderdale","brigjan2010_thumb.jpg",130,99,15);thumbnails[4838952]=new thumbnail(4838952,"208849","The Stray at Lightcliffe - 2010 calendar","brigapr2010_thumb.jpg",130,97,15);thumbnails[4839072]=new thumbnail(4839072,"208849","Old White Beare, Norwood Green - 2010 calendar","brigsept2010_thumb.jpg",130,89,15);thumbnails[3363123]=new thumbnail(3363123,"205308","Fishing on the canal at Sowerby Bridge","Clone of fishing_thumb.jpg",130,179,15);thumbnails[3377674]=new thumbnail(3377674,"205308","Locks, Sowerby Bridge","locks sb_thumb.jpg",130,100,15);thumbnails[3377686]=new thumbnail(3377686,"205308","Jack o'the locks by Roger Burnett","A119_JACK O'THE LOCKS_thumb.jpg",130,173,15);thumbnails[3377699]=new thumbnail(3377699,"205308","The Moorings, Sowerby Bridge","moorings sb_thumb.jpg",130,93,15);thumbnails[3377726]=new thumbnail(3377726,"205308","River Calder at Sowerby Bridge","calder sb_thumb.jpg",130,100,15);thumbnails[3377733]=new thumbnail(3377733,"205308","Jack o'the locks by Roger Burnett","jack_thumb.jpg",130,169,15);thumbnails[3377740]=new thumbnail(3377740,"205308","Sowerby Bridge Market","sb market_thumb.jpg",130,97,15);thumbnails[3377754]=new thumbnail(3377754,"205308","Walk at Triangle","triangle paint_thumb.jpg",130,100,15);thumbnails[3379150]=new thumbnail(3379150,"205308","Salt Warehouse, Sowerby Bridge","salt warehouse_thumb.jpg",130,100,15);thumbnails[3379182]=new thumbnail(3379182,"205308","Rushcart Inn, Sowerby","Clone of RUSHCART_thumb.jpg",130,83,15);thumbnails[4780517]=new thumbnail(4780517,"205308","Wharf Street, Sowerby Bridge<br>\r\n---2010 calendar - Sowerby Bridge and Calderdale","sbjan2010_thumb.jpg",130,185,15);thumbnails[4833823]=new thumbnail(4833823,"205308","Norland  --  2010 calendar","sbfeb2010_thumb.jpg",130,83,15);thumbnails[4833907]=new thumbnail(4833907,"205308","Down the canal towards Sowerby Bridge  --  2010 calendar","sbmarch2110_thumb.jpg",130,98,15);thumbnails[4833908]=new thumbnail(4833908,"205308","Triangle  -- 2010 calendar","sbapr2010_thumb.jpg",130,100,15);thumbnails[4833921]=new thumbnail(4833921,"205308","Christ Church, Sowerby Bridge  --  2010 calendar","sbmay2010_thumb.jpg",130,103,15);thumbnails[4833926]=new thumbnail(4833926,"205308","Mill Bank  --  2010 calendar","sbjune2010_thumb.jpg",130,98,15);thumbnails[4833929]=new thumbnail(4833929,"205308","Canal Basin, Sowerby Bridge  --  2010 calendar","sbjuly2010_thumb.jpg",130,98,15);thumbnails[4833953]=new thumbnail(4833953,"205308","Looking towards Sowerby  --  2010 calendar","sbaugust2010_thumb.jpg",130,90,15);thumbnails[4834001]=new thumbnail(4834001,"205308","Navigation Inn, Sowerby Bridge  --  2010 calendar","sbsept2010_thumb.jpg",130,98,15);thumbnails[4834007]=new thumbnail(4834007,"205308","River Calder at Sowerby Bridge  --  2010 calendar","sboct2010_thumb.jpg",130,94,15);thumbnails[4834010]=new thumbnail(4834010,"205308","Winter - Ryburn Dam, Ripponden -  2010 calendar","sbnov2010_thumb.jpg",130,173,15);thumbnails[4834019]=new thumbnail(4834019,"205308","Sowerby Bridge from Albert Promenade  -- 2010 calendar","sbdec2010_thumb.jpg",130,66,15);thumbnails[4897386]=new thumbnail(4897386,"205308","The Bridge Inn, Ripponden  -- 2010 Calderdale calendar","bridge_inn_thumb.jpg",130,98,15);thumbnails[3375698]=new thumbnail(3375698,"205912","Old Hall Restaurant, Todmorden","hall_thumb.jpg",130,80,15);thumbnails[3375722]=new thumbnail(3375722,"205912","Overlooking Cornholme","cornholme_thumb.jpg",130,76,15);thumbnails[3375738]=new thumbnail(3375738,"205912","Stoodley Pike","stoodley2_thumb.jpg",130,98,15);thumbnails[3375754]=new thumbnail(3375754,"205912","Todmorden Town Hall from Water Street","todmorden town hall2009_thumb.jpg",130,100,15);thumbnails[3377625]=new thumbnail(3377625,"205912","Todmorden Railway Station","station_thumb.jpg",130,111,15);thumbnails[3377634]=new thumbnail(3377634,"205912","Todmorden Tourist Information","tourist_thumb.jpg",130,98,15);thumbnails[3407235]=new thumbnail(3407235,"205912","Outdoor market, Todmorden","a166_todmorden market_thumb.jpg",130,109,15);thumbnails[3407298]=new thumbnail(3407298,"205912","Stoodley Pike from the Todmorden Road","a163_stoodley pike_thumb.jpg",130,87,15);thumbnails[4897435]=new thumbnail(4897435,"205912","Town Hall, Todmorden  --  2010 Calderdale calendar","halifax_rd_thumb.jpg",130,98,15);thumbnails[4897452]=new thumbnail(4897452,"205912","Stoodley Pike in the snow -- 2010 Calderdale Calendar","stoodley_in_snow_thumb.jpg",130,81,15);thumbnails[5198799]=new thumbnail(5198799,"205912","Todmorden Town Hall","a165_todmorden_thumb.jpg",130,79,15);thumbnails[5198801]=new thumbnail(5198801,"205912","Gauxholme Bridge, Todmorden","a194_gauxholme_bridge_thumb.jpg",130,98,15);thumbnails[5198803]=new thumbnail(5198803,"205912","St Mary's Church, Todmorden","church_thumb.jpg",130,173,15);thumbnails[5198806]=new thumbnail(5198806,"205912","Memorial Garden, Todmorden","memorial_thumb.jpg",130,98,15);var galleries=new Object();galleries[206165]=new gallery(206165,"4898035,4897967,4732480,4732475,4732473,4732470,4732438,4732323,4732320,4732317,4732259,4732252,4732225,3992432","CALENDARS","gallery",[3992432,4732225,3997273,3997368,4001737,4732252,4897967,4732259,4732317,4732320,4898035,4732323,4732438,4732470,4732473,4732475,4732480]);galleries[205316]=new gallery(205316,"4839141,4839110,4839048,4838994,4838982,4838967,4838942,4838930,3363550","Brighouse","gallery",[3363550,3369729,3369852,3369854,3418178,3495669,4838930,4838942,4838967,4838982,4838994,4839048,4839110,4839127,4839141]);galleries[205365]=new gallery(205365,"4001712,3370358","Halifax","gallery",[3362717,3362720,3367841,3369857,3370129,3370358,3370383,3370406,3370424,3370932,3370944,3370953,3370961,3370968,3370983,3370994,3379374,3379416,3379514,3379529,3379539,3379545,3379564,3379585,3379611,3997544,3997549,3997566,3997573,4000238,4000388,4000425,4001621,4001661,4001703,4001712,4001721,5367243,5367251]);galleries[205307]=new gallery(205307,"3374737,3371043","Hebden Bridge","gallery",[3371043,3371054,3371110,3371118,3371170,3374737,3374750,3374783,3375310,3375343,3375443,3375464,3404966,3404973,3404984,3426401,3428012,3436062,3588030,3970470,3970633,3992272,3992277,3992279,3992284,3992296,3992307]);galleries[208851]=new gallery(208851,"3371083","Heptonstall","gallery",[3371083,3371088,3374763,3375460,3992268,3992317]);galleries[208849]=new gallery(208849,"4839072,4838952,4838915,3375517","Hipperholme & Lightcliffe","gallery",[3375489,3375509,3375517,3375526,4838915,4838952,4839072]);galleries[205308]=new gallery(205308,"4897386,4834019,4834010,4834007,4834001,4833929,4833926,4833921,4833908,4833907,4833823,4780517,3379150","Sowerby Bridge","gallery",[3363123,3377674,3377686,3377699,3377726,3377733,3377740,3377754,3379150,3379182,4780517,4833823,4833907,4833908,4833921,4833926,4833929,4833953,4834001,4834007,4834010,4834019,4897386]);galleries[205912]=new gallery(205912,"4897452,4897435","Todmorden","gallery",[3375698,3375722,3375738,3375754,3377625,3377634,3407235,3407298,4897435,4897452,5198799,5198801,5198803,5198806]);var imageSets=new Object();imageSets[1]="3407298,3404966,3379514,3379374,3379150,3377740,3377726,3377699,3377686,3377674,3375722,3375698,3375526,3375509,3375489,3375310,3371118,3371088,3371083,3371043,3370994,3370983,3370961,3370406,3370383,3370358,3370129,3363123,3362720,3362717";imageSets[2]="4898035,4897967,4897452,4897435,4897386,4839141,4839110,4839072,4839048,4838994,4838982,4838967,4838952,4838942,4838930,4838915,4834019,4834010,4834007,4834001,4833929,4833926,4833921,4833908,4833907,4833823,4780517,4732480,4732475,4732473,4732470,4732438,4732323,4732320,4732317,4732259,4732252,4732225,4001712,3992432,3379150,3375517,3374737,3371083,3371043,3370358,3363550";imageSets[3]="5367251,5367243,5198806,5198803,5198801,5198799,4898035,4897967,4897452,4897435,4897386,4839141,4839127,4839110,4839072,4839048,4838994,4838982,4838967,4838952,4838942,4838930,4838915,4834019,4834010,4834007,4834001,4833953,4833929,4833926,4833921,4833908,4833907,4833823,4780517,4732480,4732475,4732473,4732470,4732438,4732323,4732320,4732317,4732259,4732252,4732225,4001737,4001721,4001712,4001703";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 34:b="http://www9.clikpic.com/jeffnich/images";break}switch(a){case 1:b="http://www1.clikpic.com/jeffnich/images";break}switch(a){case 2:b="http://admin.clikpic.com/jeffnich/images";break}switch(a){case 4:b="http://www.clikchurch.com/jeffnich/images";break}switch(a){case 5:b="http://www2.clikpic.com/jeffnich/images";break}switch(a){case 15:b="http://www3.clikpic.com/jeffnich/images";break}switch(a){case 21:b="http://www6.clikpic.com/jeffnich/images";break}switch(a){case 18:b="http://www4.clikpic.com/jeffnich/images";break}switch(a){case 19:b="http://www5.clikpic.com/jeffnich/images";break}switch(a){case 22:b="http://tpc5/clikpic/jeffnich/images";break}switch(a){case 23:b="http://tpc10/clikpic/jeffnich/images";break}switch(a){case 24:b="http://tpc15/clikpic/jeffnich/images";break}switch(a){case 25:b="http://tpc16/clikpic/jeffnich/images";break}switch(a){case 31:b="http://www7.clikpic.com/jeffnich/images";break}switch(a){case 32:b="http://admin2.clikpic.com/jeffnich/images";break}switch(a){case 33:b="http://www8.clikpic.com/jeffnich/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+backgrounds[imageID].caption+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="smallcalendar.co.uk: "+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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="JEFFNICH">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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+'")'})}}};