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[1533738]=new thumbnail(1533738,"138707","'Classical Pose' ~ A/N/0148","AN01485152_Triple_Double_Amaryllis_in_Sepia_thumb.jpg",130,92,1);thumbnails[1533747]=new thumbnail(1533747,"138706","'Mirrored Image'","A_thumb.N.00150.jpg",130,94,1);thumbnails[1533752]=new thumbnail(1533752,"138707","'Heart & Soul of a Lily' ~ A/N/0164","AN0164_165_166_BW_Triple_aperture_of_lily_thumb.jpg",130,92,1);thumbnails[1533760]=new thumbnail(1533760,"104931","'Sea of Bluebells' ~ N/0043","N0043_Bluebells_thumb.jpg",130,103,1);thumbnails[1533761]=new thumbnail(1533761,"104959","'Sensuous'","N0128_Close_up_of_centre_of_red_rose_hazed_-_Sweatheart_thumb.jpg",130,87,1);thumbnails[1533763]=new thumbnail(1533763,"138709","'Iris Petals'.","N0131_Close_up_of_Iris_Petal__Pure_Innocence_thumb.jpg",130,87,1);thumbnails[1533764]=new thumbnail(1533764,"294698","'Coffee Beans' ~ N/0133","N0133_Close_up_of_Peony_Centre_Coffee_Beans_thumb.jpg",130,87,1);thumbnails[1533926]=new thumbnail(1533926,"105128","'Everlasting Impressions'.","Pack A_thumb.3.97.jpg",130,130,1);thumbnails[1533930]=new thumbnail(1533930,"105128","'The Vibrant Flower Collection'.","Pack B_thumb.4.97.jpg",130,130,1);thumbnails[1533990]=new thumbnail(1533990,"105128","'A Taste of Heaven'.","Pack C_thumb.3.47.jpg",130,130,1);thumbnails[1534080]=new thumbnail(1534080,"105128","'The Entire Inspirational Collection'.","Pack D_thumb.5.97.jpg",130,130,1);thumbnails[1638708]=new thumbnail(1638708,"104931","Field of Poppies ~ LS/0065","LS0065_Poppy_Field_thumb.jpg",130,87,1);thumbnails[1638722]=new thumbnail(1638722,"104931","Dramatic Sky at Dusk ~ LS/0055","LS0055_Landscape_of_Dramatic_sky_at_dusk_with_clouds_thumb.jpg",130,87,1);thumbnails[1638738]=new thumbnail(1638738,"104931","Dramatic Sky at Dusk ~ LS/0064","LS0064_Sky_at_dusk_with_dramtic_clouds_thumb.jpg",130,87,1);thumbnails[1639156]=new thumbnail(1639156,"104931","Path through Bluebell Woods ~ N/0167","N0167_Bluebell_woods_with_path_throught_the_middle_thumb.jpg",130,87,1);thumbnails[1639324]=new thumbnail(1639324,"138706","'Centripetal'.","N0111_Centre_of_Yellow_Gerbra_Centripetal1_thumb.jpg",130,87,1);thumbnails[1639333]=new thumbnail(1639333,"104959","'Scarletina'<br>\r\n","N_thumb.0129 Red rose on high key white background.jpg",130,94,1);thumbnails[1697478]=new thumbnail(1697478,"114187","Silhouette of a child praying.","SIT_thumb.0788 Silhouette of a child praying with scripture.jpg",130,181,1);thumbnails[1697517]=new thumbnail(1697517,"114187","Red Rose.","N_thumb.0061 Close up of red rose with scripture.jpg",130,181,1);thumbnails[1804377]=new thumbnail(1804377,"104931","Sunset over Hills ~ LS/066","LS0066_Landscape_of_sunset_with_difference_of_colour_of_clouds_thumb.jpg",130,83,1);thumbnails[1807038]=new thumbnail(1807038,"104961","'Raindrops' ~ S/L/0109","SL0109_Raindrops_on_a_window_with_a_blue_and_white_background_thumb.jpg",130,91,1);thumbnails[1831278]=new thumbnail(1831278,"138721","'Strings and All' ~ SL/0120","SL0120_Close_up_of_guitar_-_hole_and_strings_thumb.jpg",130,82,1);thumbnails[1869344]=new thumbnail(1869344,"138721","Guitar Neck ~ SL/0122","SL0122_Close_up_of_guitar_neck_thumb.jpg",130,76,1);thumbnails[1869346]=new thumbnail(1869346,"138721","Classical Guitar Neck ~ SL/0123","SL0123_Close_up_of_neck_of_guitar_thumb.jpg",130,74,1);thumbnails[1869349]=new thumbnail(1869349,"138721","Classical Guitar ~ SL/0124","SL0124_Close_up_of_guitar_-_looking_down_neck_thumb.jpg",130,86,1);thumbnails[1869350]=new thumbnail(1869350,"138720","'Shades of Chocolate' ~ S/L/0125","SL0125_Abstract_of_a_classical_guitar_thumb.jpg",130,87,1);thumbnails[1963166]=new thumbnail(1963166,"138720","'Pastel Bubbles' ~ S/L/0134","SL0134_Abstract_of_a_lava_lamp_-_reds_and_pinks_thumb.jpg",130,106,1);thumbnails[1963204]=new thumbnail(1963204,"131870","The wording on the card reads:<br>\r\n\"I've finally discovered my place in life... I think it's next to ewe!\"","KCANI_thumb.0015 Sheep looking straight into camera.jpg",130,87,1);thumbnails[1963210]=new thumbnail(1963210,"131870",'The wording on the card reads:<br>\r\n"Some people make the world more special just by being in it"',"KCN_thumb.0129 Red rose on high key white background.jpg",130,86,1);thumbnails[1963231]=new thumbnail(1963231,"131870",'The wording on the card reads:<br>\r\n"Best friends are hard to find, harder to leave & impossible to forget"',"KCN_thumb.0154 Double Amaryllis on black backkground full view.jpg",130,87,1);thumbnails[2077263]=new thumbnail(2077263,"104931","English Bluebells ~ N/0190","N0190_Mythical_bluebells_with_log_in_foreground_thumb.jpg",130,87,1);thumbnails[2103681]=new thumbnail(2103681,"104931","Mythical view of a lake ~ LS/0085 ","LS0085_Mythical_view_of_a_lake_with_the_reflection_of_overhanging_trees_with_ducks_thumb.jpg",130,98,1);thumbnails[2103700]=new thumbnail(2103700,"138706","'Simply Summer'","N_thumb.0201 Yellow Gerbra.jpg",130,94,1);thumbnails[2487741]=new thumbnail(2487741,"104931","'The good old days' ~ SIT/0856","SIT0856_Sepia_shot_of_a_narrowboat_and_a_shovel_leaning_against_a_push_bike_thumb.jpg",130,90,1);thumbnails[2487759]=new thumbnail(2487759,"138709","'Lilliput'","N0157_Close_up_of_pollen_pod_on_white_Lily_thumb.jpg",130,87,1);thumbnails[4765196]=new thumbnail(4765196,"294746","'Trunks & Trunks' ~ N/0234","N0234_BW_shot_trees_against_light_in_woods_thumb.jpg",130,87,1);thumbnails[5225001]=new thumbnail(5225001,"294746","Evening Sky ~<br>\r\nLS/0114","LS0114_Sky_with_cloud_formation_thumb.jpg",130,87,1);thumbnails[5225469]=new thumbnail(5225469,"138709","'Safe Keeping' ~ N/0132","N0132_Close_up_of_inside_of_an_Iris_Safe_Keepingtif_thumb.jpg",130,195,1);thumbnails[1531451]=new thumbnail(1531451,"138707","'Pretty in Pastel' ~A/N/0160","AN0160_Back_view_of_a_lily__triple_view_colour__BW__sepia1_thumb.jpg",130,92,1);thumbnails[2487698]=new thumbnail(2487698,"159649","Sunlight Canopy ~ N/0081","N0081_Trees__leaves_with_sunlight_shinning_through_canopy_thumb.jpg",130,98,1);thumbnails[2487747]=new thumbnail(2487747,"104959","Rose Truffle.","N_thumb.0138 Frame fill of red rose centre.jpg",130,181,1);thumbnails[2487749]=new thumbnail(2487749,"104931","Velvet Poppies ~ N/0191","N0191_Velvia_tone_on_field_of_poppies_thumb.jpg",130,87,1);thumbnails[2937365]=new thumbnail(2937365,"138707","'A perfect picture' ~<br>\r\nN/0226","N0226_Close_up_of_Gerbera_to_left_of_frame_in_BW_with_sepia_filter_thumb.jpg",130,87,1);thumbnails[2938556]=new thumbnail(2938556,"138709","Water Lily ~ N/0228","N0228_White_lily_in_water_ripple_thumb.jpg",130,87,1);thumbnails[2964342]=new thumbnail(2964342,"294698","'Rosaceous' ~ N/0145","N0145_Close_up_view_of_a_rose_thumb.jpg",130,87,1);thumbnails[2964346]=new thumbnail(2964346,"138709","'Rhapsody'","N_thumb.0147 Close up of flower stamen of a double amaryllis.jpg",130,94,1);thumbnails[2964958]=new thumbnail(2964958,"182823","'Pretty Poppies'","Post_thumb.LS.0065 Pretty Poppies.jpg",130,92,1);thumbnails[2965105]=new thumbnail(2965105,"182823","'Vanilla Fingers'","Post_thumb.N.0227 Vanilla Fingers.jpg",130,92,1);thumbnails[2487699]=new thumbnail(2487699,"159649","Sunlight Canopy ~ N/0082","N0082_Trees__leaves_with_sunlight_shinning_through_canopy_thumb.jpg",130,98,1);thumbnails[2487748]=new thumbnail(2487748,"104959","'Lady in Red'","N_thumb.0141 Red rose to right of frame.jpg",130,181,1);thumbnails[2937366]=new thumbnail(2937366,"104931","'Traffic Jam' ~ SIT/0854","SIT0854_Sepia_tone_of_3_narrowboats_moored_together_thumb.jpg",130,83,1);thumbnails[2937833]=new thumbnail(2937833,"138709","Vanilla Fingers ~ N/0227","N0227_White_Dahlia_with_central_motion_blur_thumb.jpg",130,96,1);thumbnails[2964334]=new thumbnail(2964334,"138706","'Sunbeam'","N_thumb.0110 Sunbeam.jpg",130,94,1);thumbnails[2964339]=new thumbnail(2964339,"138709","'Pretty Pollen'","N0135_Close_up_of_Iris_frons_Pretty_Pollen_thumb.jpg",130,87,1);thumbnails[2964959]=new thumbnail(2964959,"182823","'Carpet of Blue'","Post_thumb.N.0170 Carpet of Blue.jpg",130,92,1);thumbnails[2965104]=new thumbnail(2965104,"182823","'Omnipotent'","Post_thumb.N.0204 Omnipotent.jpg",130,184,1);thumbnails[3341737]=new thumbnail(3341737,"294698","'Purple Haze' ~ A/N/0227","AN0227_6_aperture_of_Dhalia_in_3_tone_purple_thumb.jpg",130,92,1);thumbnails[1639021]=new thumbnail(1639021,"138709","Diaphanous Lily","N_thumb.0160 Back view of a white Lily.jpg",130,181,1);thumbnails[1639327]=new thumbnail(1639327,"104959","'Labella'","N_thumb.0113 Red Gerbra 'Blushing'.jpg",130,181,1);thumbnails[2487700]=new thumbnail(2487700,"159649","Sunlight canopy ~ N/0083","N0083_Trees__leaves_with_sunlight_shinning_through_canopy__thumb.jpg",130,98,1);thumbnails[2964340]=new thumbnail(2964340,"138709","'Pollen Heads'","N0140_Close_up_of_inside_of_an_Iris_showing_pollen_heads12_thumb.jpg",130,195,1);thumbnails[2964348]=new thumbnail(2964348,"138706","'Ray of Sunshine'","N_thumb.0216 Yellow Gerbera with water droplets .jpg",130,181,1);thumbnails[2964960]=new thumbnail(2964960,"182823","'Piano Keys'","Post_thumb.S.L.0008 Piano Keys.jpg",130,184,1);thumbnails[3341736]=new thumbnail(3341736,"182823","Complimenting Roses","Post_thumb.A.N.0231 9 aperture of 3 different colour roses.jpg",130,184,1);thumbnails[1533735]=new thumbnail(1533735,"104959","'Sheer Luxury'","A_thumb.N.0138.jpg",130,181,1);thumbnails[1533749]=new thumbnail(1533749,"138709","Inner sanctum of a Lily","A_thumb.N.00155.156.157.jpg",130,181,1);thumbnails[2964336]=new thumbnail(2964336,"138706","'Simplicity'","N_thumb.0117 Simplicity.jpg",130,181,1);thumbnails[2965103]=new thumbnail(2965103,"182823","'Rhapsody'","Post_thumb.N.0196 Rhapsody.jpg",130,184,1);thumbnails[2964778]=new thumbnail(2964778,"182823","'Catnap'","Post_thumb.ANI.0010 Catnap - Close up of cat features.jpg",130,184,1);thumbnails[2964779]=new thumbnail(2964779,"182823","'Honey'","Post_thumb.ANI.0018 -Honey- Close up of guinea pig.jpg",130,184,1);thumbnails[1963224]=new thumbnail(1963224,"131870",'The wording on the card reads:<br>\r\n"I will guide you alonge the best pathway for your life. I will advise you and watch over you." Psalm 32 v 8',"KCN_thumb.0132 Close up of inside of an Iris 'Safe Keeping' - psalm 32 v8.jpg",130,194,1);thumbnails[1533770]=new thumbnail(1533770,"138721","'Piano Keys' ~ SL/0008","SL0008_Close_up_of_piano_keys_thumb.jpg",130,195,1);thumbnails[1963226]=new thumbnail(1963226,"131870",'The wording on the card reads:<br>\r\n"When they asked me what I love most about my life, I smiled and said you"',"KCN_thumb.0141 Red rose to rt of frame on high key background.jpg",130,195,1);thumbnails[5225463]=new thumbnail(5225463,"294746","Sepia Amaryllis ~ N/0152","N0152_Dbl_Amaryllis_side_view_facing_left_thumb.jpg",130,195,1);thumbnails[1807040]=new thumbnail(1807040,"104961","'Raindrops' ~ S/L/0112","SL0112_Raindrops_on_a_window_with_blue_and_white_background-portrait_thumb.jpg",130,195,1);thumbnails[1963228]=new thumbnail(1963228,"131870",'The wording on the cards reads:<br>\r\n"To the world you may be just one person, but to me you\'re my world."',"KCN_thumb.0153 Full view of peach-pink Anthirium.jpg",130,195,1);thumbnails[2103679]=new thumbnail(2103679,"104931","Mythical view of a lake ~ LS/0084","LS0084_Mythical_view_of_a_lake_with_the_reflection_of_overhanging_trees_thumb.jpg",130,173,1);thumbnails[2103689]=new thumbnail(2103689,"138706","'Summer Morning'.","N_thumb.0194 Yellow Gerbra on white background.jpg",130,181,1);thumbnails[5225397]=new thumbnail(5225397,"294746","'Side Profile' ~ N/0148","N0148_Double_Amaryllis_Sepia_Tone_thumb.jpg",130,194,1);thumbnails[1963232]=new thumbnail(1963232,"131870",'The wording on the cards reads:<br>\r\n"Love is like playing the piano. First you must learn to play by the rules, then you must forget the rules and play from your heart."',"KCSL_thumb.0008 Close up of Piano Keys.jpg",130,195,1);thumbnails[2077185]=new thumbnail(2077185,"104931","Bluebell Forest ~ N/0189","N0189_Mythical_Bluebells_with_fairy_popping_up_through_bluebells_thumb.jpg",130,195,1);thumbnails[5225392]=new thumbnail(5225392,"294746","'Belle' ~ N/0120","N0120_Blue_alpine_Flowers_Belle_thumb.jpg",130,195,1);thumbnails[5225394]=new thumbnail(5225394,"294746","'Bluebell Blur' ~ N/0235","N0235_Vertical_shot_of_bluebells_with_blur_effect_thumb.jpg",130,199,1);thumbnails[5225400]=new thumbnail(5225400,"294746","'Full-On' ~ N/0151","N0151_Full_frame_frontal_of_Dbl_Amaryllistiftif_thumb.jpg",130,195,1);thumbnails[2077192]=new thumbnail(2077192,"138722","Overflowing ~ A/0037","A0037_Duotone_of_a_fountain_with_water_spilling_over_the_sides_thumb.jpg",130,87,1);thumbnails[4765094]=new thumbnail(4765094,"138722","'Spikey' ~ A/0039","A0039_Architectural_Steel_Spiked_Structure_thumb.jpg",130,195,1);thumbnails[2076920]=new thumbnail(2076920,"138722","'ClockWatch' ~ A/0036","A0036_Duotone_of_a_clock_thumb.jpg",130,195,1);thumbnails[2103692]=new thumbnail(2103692,"140176","'Posing'","N_thumb.0197 Pink Anthirium.jpg",130,181,1);thumbnails[2103695]=new thumbnail(2103695,"140176","'Statuesque'","N_thumb.0199 Pink Anthrium.jpg",130,181,1);thumbnails[2487734]=new thumbnail(2487734,"140176","'Pink Fizz'","N_thumb.0159 Peach Gerbra with water droplets.jpg",130,181,1);thumbnails[2964333]=new thumbnail(2964333,"140176","'Sugared Almonds'","N0109_Pink_Gerbra_petals_layered_Sugared_Almonds_thumb.jpg",130,195,1);thumbnails[2964338]=new thumbnail(2964338,"140176","'Perfect Pinks'","N0130_Side_view_of_Peony_Perfect_Pinks_thumb.jpg",130,87,1);thumbnails[2964347]=new thumbnail(2964347,"140176","'Pinkness'","N_thumb.0149 Top of pink peony.jpg",130,94,1);thumbnails[2964341]=new thumbnail(2964341,"140176","'Roundel'","N_thumb.0143 Side view of a pink peony.jpg",130,94,1);thumbnails[2964337]=new thumbnail(2964337,"140176","'Heartening'","N_thumb.0121 Heartening.jpg",130,181,1);thumbnails[1639316]=new thumbnail(1639316,"140176","'Just Showered'.","N0106_Pink_Gerbra_Petals_Just_Showered1234_thumb.jpg",130,195,1);thumbnails[1533751]=new thumbnail(1533751,"138710","'Sensational'","A_thumb.N.00162.161.153.jpg",130,94,1);thumbnails[2103698]=new thumbnail(2103698,"138710","'Sculptural'","N_thumb.0200 Section of Heliconia on white background.jpg",130,181,1);thumbnails[2103705]=new thumbnail(2103705,"138710","'Elegance'","N_thumb.0202 Section of Heliconia on white background.jpg",130,181,1);thumbnails[2103713]=new thumbnail(2103713,"138710","'Glowing'","N_thumb.0203 Section of orange Gerbra on white background.jpg",130,181,1);thumbnails[2103715]=new thumbnail(2103715,"138710","'Omnipotent'","N_thumb.0204 Section of orange Gerbra.jpg",130,181,1);thumbnails[2103718]=new thumbnail(2103718,"138710","'Glorious in Orange'","N_thumb.0206 Orange Gerbra on white background.jpg",130,181,1);var galleries=new Object();galleries[138720]=new gallery(138720,"1963166,1869350","Abstracts","gallery",[1869350,1963166]);galleries[138707]=new gallery(138707,"2937365,1533752,1533738,1531451","B&W & Sepia Tone Flowers","gallery",[1533738,1533752,1531451,2937365]);galleries[294698]=new gallery(294698,"3341737,2964342,1533764","Blue & Purple Flowers","gallery",[1533764,2964342,3341737]);galleries[114187]=new gallery(114187,"1697517,1697478","Christian","section149594",[1697478,1697517]);galleries[104961]=new gallery(104961,"1807040,1807038","Close-Ups","gallery",[1807038,1807040]);galleries[138705]=new gallery(138705,"5225469,3341737,2964348,2964347,2964346,2964342,2964341,2964340,2964339,2964338","Flowers","gallery",[]);galleries[105128]=new gallery(105128,"1534080,1533990,1533930,1533926","Greetings Cards","section139587",[1533926,1533930,1533990,1534080]);galleries[131870]=new gallery(131870,"1963232,1963231,1963228,1963226,1963224,1963210,1963204","Keepsake Cards","section139587",[1963204,1963210,1963231,1963224,1963226,1963228,1963232]);galleries[104931]=new gallery(104931,"2937366,2487749,2487741,2103681,2103679,2077263,2077185,1804377,1639156,1638738","Landscapes","gallery",[1533760,1638708,1638722,1638738,1639156,1804377,2077263,2103681,2487741,2487749,2937366,2103679,2077185]);galleries[138721]=new gallery(138721,"1869349,1869346,1869344,1831278,1533770","Music","gallery",[1831278,1869344,1869346,1869349,1533770]);galleries[159649]=new gallery(159649,"2487700,2487699,2487698","Nature","gallery",[2487698,2487699,2487700]);galleries[294746]=new gallery(294746,"5225463,5225400,5225397,5225394,5225392,5225001,4765196","Newly Added","section352539",[4765196,5225001,5225463,5225397,5225392,5225394,5225400]);galleries[182823]=new gallery(182823,"3341736,2965105,2965104,2965103,2964960,2964959,2964958,2964779,2964778","Poster","section226771",[2964958,2965105,2964959,2965104,2964960,3341736,2965103,2964778,2964779]);galleries[104959]=new gallery(104959,"2487748,2487747,1639333,1639327,1533761,1533735","Red Flowers","gallery",[1533761,1639333,2487747,2487748,1639327,1533735]);galleries[138709]=new gallery(138709,"5225469,2964346,2964340,2964339,2938556,2937833,2487759,1639021,1533763,1533749","White & Cream Flowers","gallery",[1533763,2487759,5225469,2938556,2964346,2937833,2964339,1639021,2964340,1533749]);galleries[138706]=new gallery(138706,"2964348,2964336,2964334,2103700,2103689,1639324,1533747","Yellow Flowers","gallery",[1533747,1639324,2103700,2964334,2964348,2964336,2103689]);galleries[138722]=new gallery(138722,"4765094,2077192,2076920","Architecture","gallery",[2077192,4765094,2076920]);galleries[140176]=new gallery(140176,"2964347,2964341,2964338,2964337,2964333,2487734,2103695,2103692,1639316","Pink Flowers","gallery",[2103692,2103695,2487734,2964333,2964338,2964347,2964341,2964337,1639316]);galleries[138710]=new gallery(138710,"2103718,2103715,2103713,2103705,2103698,1533751","Orange Flowers","gallery",[1533751,2103698,2103705,2103713,2103715,2103718]);var imageSets=new Object();imageSets[1]="2937365";imageSets[3]="5225469,5225463,5225400,5225397,5225394,5225392,5225001,4765196,4765094,3341737,3341736,2965105,2965104,2965103,2964960,2964959,2964958,2964779,2964778,2964348,2964347,2964346,2964342,2964341,2964340,2964339,2964338,2964337,2964336,2964334,2964333,2938556,2937833,2937366,2937365,2487759,2487749,2487748,2487747,2487741,2487734,2487700,2487699,2487698,2103718,2103715,2103713,2103705,2103700,2103698";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/nickysharp/images";break}switch(a){case 1:b="http://www1.clikpic.com/nickysharp/images";break}switch(a){case 2:b="http://admin.clikpic.com/nickysharp/images";break}switch(a){case 24:b="http://tpc15/clikpic/nickysharp/images";break}switch(a){case 4:b="http://www.clikchurch.com/nickysharp/images";break}switch(a){case 5:b="http://www2.clikpic.com/nickysharp/images";break}switch(a){case 22:b="http://tpc5/clikpic/nickysharp/images";break}switch(a){case 23:b="http://tpc10/clikpic/nickysharp/images";break}switch(a){case 25:b="http://tpc16/clikpic/nickysharp/images";break}switch(a){case 15:b="http://www3.clikpic.com/nickysharp/images";break}switch(a){case 18:b="http://www4.clikpic.com/nickysharp/images";break}switch(a){case 19:b="http://www5.clikpic.com/nickysharp/images";break}switch(a){case 31:b="http://www7.clikpic.com/nickysharp/images";break}switch(a){case 32:b="http://admin2.clikpic.com/nickysharp/images";break}switch(a){case 33:b="http://www8.clikpic.com/nickysharp/images";break}switch(a){case 34:b="http://www9.clikpic.com/nickysharp/images";break}switch(a){case 35:b="http://admin3.clikpic.com/nickysharp/images";break}switch(a){case 37:b="http://admin4.clikpic.com/nickysharp/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("section352539"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section352539.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("section352539"!=""){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="Inspirational 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="mail@inspirationalphotography.co.uk">';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="mail@inspirationalphotography.co.uk">';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+'")'})}}};