window.thumbnails = {};
															thumbnails[7673115] = clik.newPhoto({"id":7673115,"src":"SDP_new_title_vn3_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":9});
															thumbnails[7675785] = clik.newPhoto({"id":7675785,"src":"SPD_new_sidebar_2011_qual_sharp_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":743});
															thumbnails[5139376] = clik.newPhoto({"id":5139376,"src":"SD_unleash_g_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":96});
															thumbnails[8587575] = clik.newPhoto({"id":8587575,"src":"100911BBB_001_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587575.html","width":130,"caption":"","height":87});
															thumbnails[8587711] = clik.newPhoto({"id":8587711,"src":"100911AAE_0031_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587711.html","width":130,"caption":"","height":87});
															thumbnails[8587656] = clik.newPhoto({"id":8587656,"src":"100911BBB_003.tiff_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587656.html","width":130,"caption":"","height":87});
															thumbnails[8587639] = clik.newPhoto({"id":8587639,"src":"100911AAD_021_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587639.html","width":130,"caption":"","height":87});
															thumbnails[8587554] = clik.newPhoto({"id":8587554,"src":"100911AAD_011_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587554.html","width":130,"caption":"","height":87});
															thumbnails[8587650] = clik.newPhoto({"id":8587650,"src":"100911AAD_014_panaroma_bw_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587650.html","width":130,"caption":"","height":67});
															thumbnails[8587551] = clik.newPhoto({"id":8587551,"src":"100911AADD_012_bw_sq_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587551.html","width":130,"caption":"","height":130});
															thumbnails[8587652] = clik.newPhoto({"id":8587652,"src":"100911AADD_003_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587652.html","width":130,"caption":"","height":195});
															thumbnails[8587662] = clik.newPhoto({"id":8587662,"src":"100911BBB_009_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587662.html","width":130,"caption":"","height":195});
															thumbnails[8587661] = clik.newPhoto({"id":8587661,"src":"100911BBB_004_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587661.html","width":130,"caption":"","height":195});
															thumbnails[8587672] = clik.newPhoto({"id":8587672,"src":"100911CCC_008_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587672.html","width":130,"caption":"","height":195});
															thumbnails[8587671] = clik.newPhoto({"id":8587671,"src":"100911CCC_004_bw_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587671.html","width":130,"caption":"","height":195});
															thumbnails[8587689] = clik.newPhoto({"id":8587689,"src":"100911XXX_003_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587689.html","width":130,"caption":"","height":194});
															thumbnails[8587666] = clik.newPhoto({"id":8587666,"src":"100911BBB_018_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587666.html","width":130,"caption":"","height":195});
															thumbnails[8587669] = clik.newPhoto({"id":8587669,"src":"100911BBB_020_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587669.html","width":130,"caption":"","height":87});
															thumbnails[8587678] = clik.newPhoto({"id":8587678,"src":"100911DDD_009_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587678.html","width":130,"caption":"","height":87});
															thumbnails[8587695] = clik.newPhoto({"id":8587695,"src":"100911YYY_003b_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587695.html","width":130,"caption":"","height":87});
															thumbnails[8587696] = clik.newPhoto({"id":8587696,"src":"100911XXX_006_bw_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_8587696.html","width":130,"caption":"","height":130});
															thumbnails[7666717] = clik.newPhoto({"id":7666717,"src":"20110418DSC_3302_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_7666717.html","width":130,"caption":"","height":195});
															thumbnails[7663663] = clik.newPhoto({"id":7663663,"src":"20110417dnni_bw_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_7663663.html","width":130,"caption":"","height":179});
															thumbnails[7663700] = clik.newPhoto({"id":7663700,"src":"20110417006_Boys_walking_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_7663700.html","width":130,"caption":"","height":87});
															thumbnails[7666725] = clik.newPhoto({"id":7666725,"src":"20110417shoes_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_7666725.html","width":130,"caption":"","height":87});
															thumbnails[5479411] = clik.newPhoto({"id":5479411,"src":"wed1_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_5479411.html","width":130,"caption":"","height":87});
															thumbnails[7663670] = clik.newPhoto({"id":7663670,"src":"20110417benchfront_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_7663670.html","width":130,"caption":"","height":87});
															thumbnails[7666945] = clik.newPhoto({"id":7666945,"src":"kissslantdreamy_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_7666945.html","width":130,"caption":"","height":87});
															thumbnails[7666715] = clik.newPhoto({"id":7666715,"src":"20110418D_and_D_bridge_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_7666715.html","width":130,"caption":"","height":195});
															thumbnails[7666712] = clik.newPhoto({"id":7666712,"src":"20110418D_and_D1_arch_edited-112_thumb.jpg","galleries_id":471156,"server_id":5,"link":"photo_7666712.html","width":130,"caption":"","height":195});
															thumbnails[8953042] = clik.newPhoto({"id":8953042,"src":"10PPP_011_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_8953042.html","width":130,"caption":"","height":87});
															thumbnails[8953057] = clik.newPhoto({"id":8953057,"src":"123011PPP_002_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_8953057.html","width":130,"caption":"","height":195});
															thumbnails[8953066] = clik.newPhoto({"id":8953066,"src":"123011PPP_003b_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_8953066.html","width":130,"caption":"","height":195});
															thumbnails[8953081] = clik.newPhoto({"id":8953081,"src":"123011PPP_006_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_8953081.html","width":130,"caption":"","height":195});
															thumbnails[8953091] = clik.newPhoto({"id":8953091,"src":"123011PPP_013_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_8953091.html","width":130,"caption":"","height":195});
															thumbnails[8953103] = clik.newPhoto({"id":8953103,"src":"12PPP_015_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_8953103.html","width":130,"caption":"","height":195});
															thumbnails[8953106] = clik.newPhoto({"id":8953106,"src":"13PPP_016_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_8953106.html","width":130,"caption":"","height":195});
															thumbnails[8953108] = clik.newPhoto({"id":8953108,"src":"123011PPP_017_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_8953108.html","width":130,"caption":"","height":195});
															thumbnails[8953154] = clik.newPhoto({"id":8953154,"src":"123011phoebe_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_8953154.html","width":130,"caption":"","height":87});
															thumbnails[8953157] = clik.newPhoto({"id":8953157,"src":"123011PPP_001_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_8953157.html","width":130,"caption":"","height":87});
															thumbnails[5137456] = clik.newPhoto({"id":5137456,"src":"howhigh_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_5137456.html","width":130,"caption":"","height":87});
															thumbnails[5137757] = clik.newPhoto({"id":5137757,"src":"boysscrum_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_5137757.html","width":130,"caption":"","height":87});
															thumbnails[7668159] = clik.newPhoto({"id":7668159,"src":"zzjuliabw_thumb.jpg","galleries_id":471161,"server_id":5,"link":"photo_7668159.html","width":130,"caption":"","height":88});
															thumbnails[8953109] = clik.newPhoto({"id":8953109,"src":"123011QQQ_003_thumb.jpg","galleries_id":471196,"server_id":5,"link":"photo_8953109.html","width":130,"caption":"","height":195});
															thumbnails[7668161] = clik.newPhoto({"id":7668161,"src":"yyyymmdd_datezzJo_004_thumb.jpg","galleries_id":471196,"server_id":5,"link":"photo_7668161.html","width":130,"caption":"","height":195});
															thumbnails[6614809] = clik.newPhoto({"id":6614809,"src":"Wayne_CR_001_high_thumb.jpg","galleries_id":471196,"server_id":5,"link":"photo_6614809.html","width":130,"caption":"","height":195});
															thumbnails[6614831] = clik.newPhoto({"id":6614831,"src":"Ruth_0011_thumb.jpg","galleries_id":471196,"server_id":5,"link":"photo_6614831.html","width":130,"caption":"","height":87});
															thumbnails[7668160] = clik.newPhoto({"id":7668160,"src":"yyyymmdd_datezzRuth_Chloe_screen_thumb.jpg","galleries_id":471196,"server_id":5,"link":"photo_7668160.html","width":130,"caption":"","height":87});
															thumbnails[6614841] = clik.newPhoto({"id":6614841,"src":"Wayne_005_thumb.jpg","galleries_id":471196,"server_id":5,"link":"photo_6614841.html","width":130,"caption":"","height":88});
															thumbnails[7668163] = clik.newPhoto({"id":7668163,"src":"yyyymmdd_datezzChloe_008_thumb.jpg","galleries_id":471196,"server_id":5,"link":"photo_7668163.html","width":130,"caption":"","height":100});
															thumbnails[6614816] = clik.newPhoto({"id":6614816,"src":"Alan_0011_thumb.jpg","galleries_id":471196,"server_id":5,"link":"photo_6614816.html","width":130,"caption":"","height":194});
															thumbnails[7668165] = clik.newPhoto({"id":7668165,"src":"Chloe_01_thumb.jpg","galleries_id":471196,"server_id":5,"link":"photo_7668165.html","width":130,"caption":"","height":191});
															thumbnails[7663671] = clik.newPhoto({"id":7663671,"src":"20110417digger_bw_thumb.jpg","galleries_id":415428,"server_id":5,"link":"photo_7663671.html","width":130,"caption":"","height":195});
															thumbnails[7663672] = clik.newPhoto({"id":7663672,"src":"20110417ICE_LEAVES_PRINT_A4_thumb.jpg","galleries_id":415428,"server_id":5,"link":"photo_7663672.html","width":130,"caption":"","height":87});
															thumbnails[7663677] = clik.newPhoto({"id":7663677,"src":"20110417brighton_print_lghtr_thumb.jpg","galleries_id":415428,"server_id":5,"link":"photo_7663677.html","width":130,"caption":"","height":87});
															thumbnails[8587703] = clik.newPhoto({"id":8587703,"src":"100911Oct_01_2011__003_sol_thumb.jpg","galleries_id":415428,"server_id":5,"link":"photo_8587703.html","width":130,"caption":"","height":194});
															thumbnails[7663682] = clik.newPhoto({"id":7663682,"src":"20110417petra_treas_women_comp_jan10_b_thumb.jpg","galleries_id":415428,"server_id":5,"link":"photo_7663682.html","width":130,"caption":"","height":178});
															thumbnails[7663680] = clik.newPhoto({"id":7663680,"src":"20110417leaves_stone_water_thumb.jpg","galleries_id":415428,"server_id":5,"link":"photo_7663680.html","width":130,"caption":"","height":195});
															thumbnails[7663643] = clik.newPhoto({"id":7663643,"src":"20110417Etive_cycle_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663643.html","width":130,"caption":"","height":195});
															thumbnails[8587705] = clik.newPhoto({"id":8587705,"src":"100911Oct_01_2011__004_thumb.jpg","galleries_id":415428,"server_id":5,"link":"photo_8587705.html","width":130,"caption":"","height":195});
															thumbnails[7663697] = clik.newPhoto({"id":7663697,"src":"20110417twig_blur1_thumb.jpg","galleries_id":415428,"server_id":5,"link":"photo_7663697.html","width":130,"caption":"","height":87});
															thumbnails[5139397] = clik.newPhoto({"id":5139397,"src":"concordefountaincu1_thumb.jpg","galleries_id":289651,"server_id":5,"link":"photo_5139397.html","width":130,"caption":"","height":194});
															thumbnails[7663644] = clik.newPhoto({"id":7663644,"src":"20110417l_blackrock_cottage_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663644.html","width":130,"caption":"","height":195});
															thumbnails[5137392] = clik.newPhoto({"id":5137392,"src":"xeiffeldusk1_thumb.jpg","galleries_id":289651,"server_id":5,"link":"photo_5137392.html","width":130,"caption":"","height":195});
															thumbnails[7663646] = clik.newPhoto({"id":7663646,"src":"20110417loch_lomond_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663646.html","width":130,"caption":"","height":188});
															thumbnails[7663647] = clik.newPhoto({"id":7663647,"src":"20110417lone_tree_bw_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663647.html","width":130,"caption":"","height":195});
															thumbnails[7667571] = clik.newPhoto({"id":7667571,"src":"notreintarch_68A7F4B7-24E8-5EC4-4FC2B82ECBF3943D_thumb.jpg","galleries_id":289651,"server_id":5,"link":"photo_7667571.html","width":130,"caption":"","height":88});
															thumbnails[5148341] = clik.newPhoto({"id":5148341,"src":"stchapnolight_thumb.jpg","galleries_id":289651,"server_id":5,"link":"photo_5148341.html","width":130,"caption":"","height":86});
															thumbnails[5642360] = clik.newPhoto({"id":5642360,"src":"zmarch2010d_thumb.jpg","galleries_id":289345,"server_id":5,"link":"photo_5642360.html","width":130,"caption":"","height":191});
															thumbnails[7663650] = clik.newPhoto({"id":7663650,"src":"20110417waterfall_col_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663650.html","width":130,"caption":"","height":87});
															thumbnails[7667579] = clik.newPhoto({"id":7667579,"src":"eiffelcarouel_68ADC0A0-24E8-5EC4-4FEFDD334B1C0706_thumb.jpg","galleries_id":289651,"server_id":5,"link":"photo_7667579.html","width":130,"caption":"","height":88});
															thumbnails[5137395] = clik.newPhoto({"id":5137395,"src":"eglise1_thumb.jpg","galleries_id":289651,"server_id":5,"link":"photo_5137395.html","width":130,"caption":"","height":195});
															thumbnails[7663779] = clik.newPhoto({"id":7663779,"src":"20110417buchaille_reflection_bw12_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663779.html","width":130,"caption":"","height":87});
															thumbnails[7663657] = clik.newPhoto({"id":7663657,"src":"20110417zz_glen_etive_ls_fb_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663657.html","width":130,"caption":"","height":87});
															thumbnails[7663645] = clik.newPhoto({"id":7663645,"src":"20110417lake_tulla_col_pan_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663645.html","width":130,"caption":"","height":65});
															thumbnails[5137770] = clik.newPhoto({"id":5137770,"src":"mistytree_thumb.jpg","galleries_id":289345,"server_id":5,"link":"photo_5137770.html","width":130,"caption":"","height":185});
															thumbnails[7663778] = clik.newPhoto({"id":7663778,"src":"20110417below_3_sisters12_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663778.html","width":130,"caption":"","height":87});
															thumbnails[7663656] = clik.newPhoto({"id":7663656,"src":"20110417zz_buaichalle_etive_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663656.html","width":130,"caption":"","height":92});
															thumbnails[5137579] = clik.newPhoto({"id":5137579,"src":"autumnpools1_thumb.jpg","galleries_id":289345,"server_id":5,"link":"photo_5137579.html","width":130,"caption":"","height":194});
															thumbnails[7663684] = clik.newPhoto({"id":7663684,"src":"20110417lone_tree_stream_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663684.html","width":130,"caption":"","height":195});
															thumbnails[7663653] = clik.newPhoto({"id":7663653,"src":"20110417xxx_glecoe_burial_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663653.html","width":130,"caption":"","height":195});
															thumbnails[7663661] = clik.newPhoto({"id":7663661,"src":"amber_field_thumb.jpg","galleries_id":289345,"server_id":5,"link":"photo_7663661.html","width":130,"caption":"","height":61});
															thumbnails[7663654] = clik.newPhoto({"id":7663654,"src":"20110417zz_buaichalle_etive_hdr_portrait_thumb.jpg","galleries_id":306977,"server_id":5,"link":"photo_7663654.html","width":130,"caption":"","height":195});
															thumbnails[7663678] = clik.newPhoto({"id":7663678,"src":"20110417lighthouse_MPC_open_36x24cm_300dpi_up5_thumb.jpg","galleries_id":289345,"server_id":5,"link":"photo_7663678.html","width":130,"caption":"","height":87});
															thumbnails[7806608] = clik.newPhoto({"id":7806608,"src":"yyyymmdd_datezzPink_sit_balls_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7806608.html","width":130,"caption":"Trapped in Fantasy (manipulation)","height":87});
															thumbnails[7663624] = clik.newPhoto({"id":7663624,"src":"20110417black_white_palace_xx1_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7663624.html","width":130,"caption":"","height":195});
															thumbnails[7663639] = clik.newPhoto({"id":7663639,"src":"201104172_faces_close_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7663639.html","width":130,"caption":"","height":195});
															thumbnails[7663626] = clik.newPhoto({"id":7663626,"src":"20110417orange_cu_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7663626.html","width":130,"caption":"","height":195});
															thumbnails[7663629] = clik.newPhoto({"id":7663629,"src":"20110417orange_gondola_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7663629.html","width":130,"caption":"","height":195});
															thumbnails[7806605] = clik.newPhoto({"id":7806605,"src":"yyyymmdd_datezzorange_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7806605.html","width":130,"caption":"","height":87});
															thumbnails[7806595] = clik.newPhoto({"id":7806595,"src":"yyyymmdd_datezzcolourful_pontoon_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7806595.html","width":130,"caption":"","height":87});
															thumbnails[7663635] = clik.newPhoto({"id":7663635,"src":"20110417venice_gondola_eve_blu_b_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7663635.html","width":130,"caption":"","height":87});
															thumbnails[7663637] = clik.newPhoto({"id":7663637,"src":"20110417venice_museum_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7663637.html","width":130,"caption":"","height":73});
															thumbnails[7663618] = clik.newPhoto({"id":7663618,"src":"20110417blue_princes_bridge_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7663618.html","width":130,"caption":"","height":88});
															thumbnails[7663630] = clik.newPhoto({"id":7663630,"src":"20110417pier_2nd_pair_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7663630.html","width":130,"caption":"","height":87});
															thumbnails[7806598] = clik.newPhoto({"id":7806598,"src":"yyyymmdd_datezzface_painting_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7806598.html","width":130,"caption":"","height":87});
															thumbnails[7663632] = clik.newPhoto({"id":7663632,"src":"20110417Pink_sit_palace_ghosted_edited-1_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7663632.html","width":130,"caption":"","height":87});
															thumbnails[7806600] = clik.newPhoto({"id":7806600,"src":"yyyymmdd_datezzFlower_Maid_sqaure_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7806600.html","width":130,"caption":"","height":195});
															thumbnails[7806601] = clik.newPhoto({"id":7806601,"src":"yyyymmdd_datezzharlequin_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7806601.html","width":130,"caption":"","height":195});
															thumbnails[7663634] = clik.newPhoto({"id":7663634,"src":"20110417pointed_heart_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7663634.html","width":130,"caption":"","height":195});
															thumbnails[7806594] = clik.newPhoto({"id":7806594,"src":"yyyymmdd_datezzautumnal_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7806594.html","width":130,"caption":"","height":195});
															thumbnails[7663625] = clik.newPhoto({"id":7663625,"src":"20110417metallic_camponile_thumb.jpg","galleries_id":471162,"server_id":5,"link":"photo_7663625.html","width":130,"caption":"","height":195});
															thumbnails[7806588] = clik.newPhoto({"id":7806588,"src":"yyyymmdd_datezzlewis_pit_tr_col-bw_thumb.jpg","galleries_id":471159,"server_id":5,"link":"photo_7806588.html","width":130,"caption":"","height":87});
															thumbnails[7806591] = clik.newPhoto({"id":7806591,"src":"yyyymmdd_datezzzzz1_thumb.jpg","galleries_id":471159,"server_id":5,"link":"photo_7806591.html","width":130,"caption":"","height":87});
															thumbnails[7663707] = clik.newPhoto({"id":7663707,"src":"20110417veyron_thumb.jpg","galleries_id":471159,"server_id":5,"link":"photo_7663707.html","width":130,"caption":"","height":87});
															thumbnails[7806585] = clik.newPhoto({"id":7806585,"src":"yyyymmdd_datezzbluebells_print_light_17_edited-2_thumb.jpg","galleries_id":471193,"server_id":5,"link":"photo_7806585.html","width":130,"caption":"","height":89});
															thumbnails[8587706] = clik.newPhoto({"id":8587706,"src":"100911Untitled-1_sml_frame_lighter_print_no_spots_thumb.jpg","galleries_id":471193,"server_id":5,"link":"photo_8587706.html","width":130,"caption":"","height":55});
															thumbnails[7806586] = clik.newPhoto({"id":7806586,"src":"yyyymmdd_datezzmagnolia_print_thumb.jpg","galleries_id":471193,"server_id":5,"link":"photo_7806586.html","width":130,"caption":"","height":89});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[471157] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Family Portraits","link":"section572297.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section572297","featured_images":"","id":471157,"singleSection":true});				  						galleries[471193] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Marketing Images","link":"section572336.html","maxRecords":0.0,"photoIDs":[7806585.0,8587706.0,7806586.0],"skipIndex":0,"section_code":"section572336","featured_images":"8587706,7806586,7806585","id":471193,"singleSection":true});				  						galleries[471159] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Motorsports","link":"section572302.html","maxRecords":0.0,"photoIDs":[7806588.0,7806591.0,7663707.0],"skipIndex":0,"section_code":"section572302","featured_images":"7806591,7806588,7663707","id":471159,"singleSection":true});				  						galleries[471161] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Natural Child Portraits","link":"section572296.html","maxRecords":0.0,"photoIDs":[8953042.0,8953057.0,8953066.0,8953081.0,8953091.0,8953103.0,8953106.0,8953108.0,8953154.0,8953157.0,5137456.0,5137757.0,7668159.0],"skipIndex":0,"section_code":"section572296","featured_images":"8953157,8953154,8953108,8953106,8953103,8953091,8953081,8953066,8953057,8953042","id":471161,"singleSection":true});				  						galleries[471196] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Studio Portraits","link":"section572309.html","maxRecords":0.0,"photoIDs":[8953109.0,7668161.0,6614809.0,6614831.0,7668160.0,6614841.0,7668163.0,6614816.0,7668165.0],"skipIndex":0,"section_code":"section572309","featured_images":"8953109,7668165,7668163,7668161,7668160,6614841,6614831,6614816,6614809","id":471196,"singleSection":true});				  						galleries[471162] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Venice Carnival","link":"section572300.html","maxRecords":0.0,"photoIDs":[7806608.0,7663624.0,7663639.0,7663626.0,7663629.0,7806605.0,7806595.0,7663635.0,7663637.0,7663618.0,7663630.0,7806598.0,7663632.0,7806600.0,7806601.0,7663634.0,7806594.0,7663625.0],"skipIndex":0,"section_code":"section572300","featured_images":"7806608,7806605,7806601,7806600,7806598,7806595,7806594,7663639,7663637,7663635","id":471162,"singleSection":true});				  						galleries[471156] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"section572295.html","maxRecords":0.0,"photoIDs":[8587575.0,8587711.0,8587656.0,8587639.0,8587554.0,8587650.0,8587551.0,8587652.0,8587662.0,8587661.0,8587672.0,8587671.0,8587689.0,8587666.0,8587669.0,8587678.0,8587695.0,8587696.0,7666717.0,7663663.0,7663700.0,7666725.0,5479411.0,7663670.0,7666945.0,7666715.0,7666712.0],"skipIndex":0,"section_code":"section572295","featured_images":"8587711,8587696,8587695,8587689,8587678,8587672,8587671,8587669,8587666,8587662","id":471156,"singleSection":true});				  						galleries[289651] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paris ","link":"section572298_289651.html","maxRecords":0.0,"photoIDs":[5139397.0,5137392.0,7667571.0,5148341.0,7667579.0,5137395.0],"skipIndex":0,"section_code":"section572298","featured_images":"7667579,7667571,5148341,5139397,5137395,5137392","id":289651,"singleSection":false});				  						galleries[306977] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scotland","link":"section572298_306977.html","maxRecords":0.0,"photoIDs":[7663643.0,7663644.0,7663646.0,7663647.0,7663650.0,7663779.0,7663657.0,7663645.0,7663778.0,7663656.0,7663684.0,7663653.0,7663654.0],"skipIndex":0,"section_code":"section572298","featured_images":7663643.0,"id":306977,"singleSection":false});				  						galleries[289345] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wales","link":"section572298_289345.html","maxRecords":0.0,"photoIDs":[5642360.0,5137770.0,5137579.0,7663661.0,7663678.0],"skipIndex":0,"section_code":"section572298","featured_images":"7663678,7663661,5642360,5137770,5137579","id":289345,"singleSection":false});				  						galleries[415428] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other Landscape","link":"section572298_415428.html","maxRecords":0.0,"photoIDs":[7663671.0,7663672.0,7663677.0,8587703.0,7663682.0,7663680.0,8587705.0,7663697.0],"skipIndex":0,"section_code":"section572298","featured_images":"8587705,8587703,7663697,7663682,7663680,7663677,7663672,7663671","id":415428,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[234015] = '5479411';
imageSets[1] = '7806608,8587575,8587711,8953154,6614831,8953157,5137456,7806605,7663707,7663678';
imageSets[2] = '7663643';
imageSets[241438] = '7675785';
imageSets[3] = '8953157,8953154,8953109,8953108,8953106,8953103,8953091,8953081,8953066,8953057,8953042,8587711,8587706,8587705,8587703,8587696,8587695,8587689,8587678,8587672,8587671,8587669,8587666,8587662,8587661,8587656,8587652,8587650,8587639,8587575,8587554,8587551,7806608,7806605,7806601,7806600,7806598,7806595,7806594,7806591,7806588,7806586,7806585,7675785,7673115,7668165,7668163,7668161,7668160,7668159';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/glenmeek/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/glenmeek/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section572295.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'section572295' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Spotty Dog Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

