window.thumbnails = new Object();
												thumbnails[5440076] = new thumbnail(5440076,'','','IMG_5996_thumb.jpg',130, 58,15,'#');
												thumbnails[5440089] = new thumbnail(5440089,'','Swanage Pier','IMG_60021_thumb.JPG',130, 74,15,'#');
												thumbnails[5442571] = new thumbnail(5442571,'','Waiting for his owner','_MG_00501_thumb.JPG',130, 123,15,'#');
												thumbnails[5443833] = new thumbnail(5443833,'','A quiet colouful mudeford','IMG_61191_thumb.jpg',130, 85,15,'#');
												thumbnails[7599690] = new thumbnail(7599690,'','','DPP_0001for_clicpic_thumb.jpg',130, 87,15,'#');
												thumbnails[7609639] = new thumbnail(7609639,'','','_D0U2361clic2_thumb.jpg',130, 87,15,'#');
												thumbnails[3329040] = new thumbnail(3329040,'201902','','_MG_00031_thumb.JPG',130, 87,15,'photo_3329040.html');
												thumbnails[3329537] = new thumbnail(3329537,'201922','','_MG_0010-019_thumb.jpg',130, 140,15,'photo_3329537.html');
												thumbnails[3329553] = new thumbnail(3329553,'201922','Dancing Bird, beautiful.','dancing-bird_thumb.jpg',130, 131,15,'photo_3329553.html');
												thumbnails[3329636] = new thumbnail(3329636,'201922','','_MG_0015-013_thumb.jpg',130, 123,15,'photo_3329636.html');
												thumbnails[3329673] = new thumbnail(3329673,'201922','','_MG_0020-0111_thumb.jpg',130, 107,15,'photo_3329673.html');
												thumbnails[3329925] = new thumbnail(3329925,'201922','','_MG_0014-021_thumb.jpg',130, 95,15,'photo_3329925.html');
												thumbnails[3329965] = new thumbnail(3329965,'201922','','_MG_0027-011_thumb.jpg',130, 127,15,'photo_3329965.html');
												thumbnails[3329998] = new thumbnail(3329998,'202357','','_MG_0093-011_thumb.jpg',130, 89,15,'photo_3329998.html');
												thumbnails[3330010] = new thumbnail(3330010,'202357','','_MG_0080-011_thumb.jpg',130, 91,15,'photo_3330010.html');
												thumbnails[3330033] = new thumbnail(3330033,'202356','','_MG_0036-012_thumb.jpg',130, 133,15,'photo_3330033.html');
												thumbnails[3330073] = new thumbnail(3330073,'202356','','_MG_0043-011_thumb.jpg',130, 98,15,'photo_3330073.html');
												thumbnails[3330201] = new thumbnail(3330201,'201922','','_MG_0102-012_thumb.jpg',130, 150,15,'photo_3330201.html');
												thumbnails[3330209] = new thumbnail(3330209,'201922','','_MG_0011-011_thumb.jpg',130, 60,15,'photo_3330209.html');
												thumbnails[3330309] = new thumbnail(3330309,'202356','','_MG_0057-011_thumb.jpg',130, 104,15,'photo_3330309.html');
												thumbnails[3330315] = new thumbnail(3330315,'202356','','_MG_0059-011_thumb.jpg',130, 104,15,'photo_3330315.html');
												thumbnails[3330494] = new thumbnail(3330494,'202358','Gulls do lunch','_MG_0020-012_thumb.jpg',130, 101,15,'photo_3330494.html');
												thumbnails[3330498] = new thumbnail(3330498,'202358','Gulls do lunch','_MG_0025-013_thumb.jpg',130, 115,15,'photo_3330498.html');
												thumbnails[3330501] = new thumbnail(3330501,'202360','','_MG_0001-011_thumb.jpg',130, 73,15,'photo_3330501.html');
												thumbnails[3330505] = new thumbnail(3330505,'202360','','_MG_0017-012_thumb.jpg',130, 117,15,'photo_3330505.html');
												thumbnails[3330508] = new thumbnail(3330508,'202360','','modified21_thumb.jpg',130, 104,15,'photo_3330508.html');
												thumbnails[3330653] = new thumbnail(3330653,'201922','','_MG_0025-0111_thumb.jpg',130, 84,15,'photo_3330653.html');
												thumbnails[3330699] = new thumbnail(3330699,'202822','','_MG_0009-014_thumb.jpg',130, 107,15,'photo_3330699.html');
												thumbnails[3330701] = new thumbnail(3330701,'202822','','IMG_03011_thumb.jpg',130, 134,15,'photo_3330701.html');
												thumbnails[3330704] = new thumbnail(3330704,'201902','','_MG_0009-(1)-012_thumb.jpg',130, 91,15,'photo_3330704.html');
												thumbnails[3330706] = new thumbnail(3330706,'206600','','_MG_0009-(1)-0111_thumb.jpg',130, 91,15,'photo_3330706.html');
												thumbnails[3330866] = new thumbnail(3330866,'202212','','_MG_0014-011_thumb.jpg',130, 79,15,'photo_3330866.html');
												thumbnails[3330867] = new thumbnail(3330867,'202212','','_MG_0032-011_thumb.jpg',130, 87,15,'photo_3330867.html');
												thumbnails[3330874] = new thumbnail(3330874,'202212','','_MG_0034-012_thumb.jpg',130, 87,15,'photo_3330874.html');
												thumbnails[3330878] = new thumbnail(3330878,'202212','','_MG_0036-013_thumb.jpg',130, 78,15,'photo_3330878.html');
												thumbnails[3330885] = new thumbnail(3330885,'202212','','_MG_0071-011_thumb.jpg',130, 177,15,'photo_3330885.html');
												thumbnails[3330887] = new thumbnail(3330887,'202212','','_MG_0072-011_thumb.jpg',130, 127,15,'photo_3330887.html');
												thumbnails[3330889] = new thumbnail(3330889,'202212','','feet up_thumb.jpg',130, 74,15,'photo_3330889.html');
												thumbnails[3332935] = new thumbnail(3332935,'201926','','_MG_00072_thumb.jpg',130, 87,15,'photo_3332935.html');
												thumbnails[3332936] = new thumbnail(3332936,'201926','','_MG_0035-011_thumb.jpg',130, 90,15,'photo_3332936.html');
												thumbnails[3332937] = new thumbnail(3332937,'201926','','IMG_0001-011_thumb.JPG',130, 76,15,'photo_3332937.html');
												thumbnails[3332938] = new thumbnail(3332938,'201926','','IMG_0094sepia11_thumb.jpg',130, 102,15,'photo_3332938.html');
												thumbnails[3332940] = new thumbnail(3332940,'201926','','IMG_05911_thumb.jpg',130, 84,15,'photo_3332940.html');
												thumbnails[3332941] = new thumbnail(3332941,'201926','','Picture-072baw1_thumb.jpg',130, 77,15,'photo_3332941.html');
												thumbnails[3332942] = new thumbnail(3332942,'201926','','Picture 141 croppedbaw_thumb.jpg',130, 73,15,'photo_3332942.html');
												thumbnails[3334775] = new thumbnail(3334775,'201922','','IMG_1557_thumb.jpg',130, 87,15,'photo_3334775.html');
												thumbnails[3334818] = new thumbnail(3334818,'201922','','IMG_1441_thumb.jpg',130, 71,15,'photo_3334818.html');
												thumbnails[3334819] = new thumbnail(3334819,'201922','','IMG_1565_thumb.jpg',130, 94,15,'photo_3334819.html');
												thumbnails[3334828] = new thumbnail(3334828,'201922','','IMG_1609_thumb.jpg',130, 102,15,'photo_3334828.html');
												thumbnails[3334829] = new thumbnail(3334829,'201922','','IMG_1616_thumb.jpg',130, 78,15,'photo_3334829.html');
												thumbnails[3334833] = new thumbnail(3334833,'201922','','IMG_1527_thumb.jpg',130, 75,15,'photo_3334833.html');
												thumbnails[3334834] = new thumbnail(3334834,'201922','Formation flying','IMG_1581_thumb.jpg',130, 62,15,'photo_3334834.html');
												thumbnails[3334845] = new thumbnail(3334845,'201903','','_MG_0005-011_thumb.JPG',130, 123,15,'photo_3334845.html');
												thumbnails[3334846] = new thumbnail(3334846,'201903','','_MG_0043-021_thumb.jpg',130, 82,15,'photo_3334846.html');
												thumbnails[3334847] = new thumbnail(3334847,'201903','','_MG_0065-011_thumb.jpg',130, 94,15,'photo_3334847.html');
												thumbnails[3334848] = new thumbnail(3334848,'201903','','_MG_0075-011_thumb.jpg',130, 87,15,'photo_3334848.html');
												thumbnails[3334849] = new thumbnail(3334849,'201903','','_MG_0085-011_thumb.jpg',130, 109,15,'photo_3334849.html');
												thumbnails[3334850] = new thumbnail(3334850,'201903','','Picture-317-cropped1_thumb.jpg',130, 101,15,'photo_3334850.html');
												thumbnails[3335417] = new thumbnail(3335417,'202878','','_MG_0003 (1)_thumb.jpg',130, 87,15,'photo_3335417.html');
												thumbnails[3335420] = new thumbnail(3335420,'202878','','_MG_0008 (1)_thumb.jpg',130, 141,15,'photo_3335420.html');
												thumbnails[3335472] = new thumbnail(3335472,'201902','','_MG_00032_thumb.jpg',130, 109,15,'photo_3335472.html');
												thumbnails[3335476] = new thumbnail(3335476,'201902','','_MG_00111_thumb.JPG',130, 98,15,'photo_3335476.html');
												thumbnails[3335480] = new thumbnail(3335480,'201902','','_MG_00052_thumb.JPG',130, 87,15,'photo_3335480.html');
												thumbnails[3335484] = new thumbnail(3335484,'201902','','_MG_0007 (1)1_thumb.JPG',130, 85,15,'photo_3335484.html');
												thumbnails[3335588] = new thumbnail(3335588,'201921','Clouds','IMG_00501_thumb.jpg',130, 98,15,'photo_3335588.html');
												thumbnails[3335594] = new thumbnail(3335594,'201921','','Picture-0572_thumb.jpg',130, 87,15,'photo_3335594.html');
												thumbnails[3335606] = new thumbnail(3335606,'202879','','Picture-070mod11_thumb.jpg',130, 81,15,'photo_3335606.html');
												thumbnails[3335625] = new thumbnail(3335625,'202879','','Picture-05711_thumb.jpg',130, 87,15,'photo_3335625.html');
												thumbnails[3335632] = new thumbnail(3335632,'202879','','Picture-0562_thumb.jpg',130, 87,15,'photo_3335632.html');
												thumbnails[3335636] = new thumbnail(3335636,'202879','','_MG_0002-(3)1_thumb.jpg',130, 87,15,'photo_3335636.html');
												thumbnails[3335680] = new thumbnail(3335680,'202877','','IMG_09491_thumb.jpg',130, 90,15,'photo_3335680.html');
												thumbnails[3335683] = new thumbnail(3335683,'202877','','IMG_09761_thumb.jpg',130, 70,15,'photo_3335683.html');
												thumbnails[3335686] = new thumbnail(3335686,'202877','','IMG_09791_thumb.jpg',130, 87,15,'photo_3335686.html');
												thumbnails[3335689] = new thumbnail(3335689,'202877','','IMG_12211_thumb.jpg',130, 75,15,'photo_3335689.html');
												thumbnails[3335695] = new thumbnail(3335695,'202877','','IMG_13761_thumb.jpg',130, 87,15,'photo_3335695.html');
												thumbnails[3335698] = new thumbnail(3335698,'202877','','Picture 1191_thumb.jpg',130, 87,15,'photo_3335698.html');
												thumbnails[3335751] = new thumbnail(3335751,'202877','','IMG_0966_thumb.jpg',130, 87,15,'photo_3335751.html');
												thumbnails[3338976] = new thumbnail(3338976,'202424','','_MG_00832_thumb.JPG',130, 87,15,'photo_3338976.html');
												thumbnails[3338980] = new thumbnail(3338980,'202424','','IMG_09931_thumb.JPG',130, 95,15,'photo_3338980.html');
												thumbnails[3338982] = new thumbnail(3338982,'202424','','IMG_09972_thumb.jpg',130, 76,15,'photo_3338982.html');
												thumbnails[3338984] = new thumbnail(3338984,'202424','','IMG_10261_thumb.jpg',130, 87,15,'photo_3338984.html');
												thumbnails[3338992] = new thumbnail(3338992,'202424','','IMG_11151_thumb.jpg',130, 73,15,'photo_3338992.html');
												thumbnails[3338993] = new thumbnail(3338993,'202424','','IMG_11211_thumb.jpg',130, 99,15,'photo_3338993.html');
												thumbnails[3338995] = new thumbnail(3338995,'202424','','IMG_11232_thumb.jpg',130, 90,15,'photo_3338995.html');
												thumbnails[3338996] = new thumbnail(3338996,'202424','','IMG_11291_thumb.jpg',130, 84,15,'photo_3338996.html');
												thumbnails[3338999] = new thumbnail(3338999,'202424','','IMG_11721_thumb.jpg',130, 59,15,'photo_3338999.html');
												thumbnails[3339000] = new thumbnail(3339000,'202424','','IMG_11921_thumb.jpg',130, 87,15,'photo_3339000.html');
												thumbnails[3339001] = new thumbnail(3339001,'202424','','IMG_12071_thumb.jpg',130, 87,15,'photo_3339001.html');
												thumbnails[3339004] = new thumbnail(3339004,'202424','','IMG_12091_thumb.jpg',130, 48,15,'photo_3339004.html');
												thumbnails[3339006] = new thumbnail(3339006,'202424','','IMG_12411_thumb.jpg',130, 87,15,'photo_3339006.html');
												thumbnails[3339007] = new thumbnail(3339007,'202424','','IMG_12431_thumb.jpg',130, 87,15,'photo_3339007.html');
												thumbnails[3339009] = new thumbnail(3339009,'202424','','IMG_12841_thumb.jpg',130, 82,15,'photo_3339009.html');
												thumbnails[3339014] = new thumbnail(3339014,'202424','','IMG_13041_thumb.jpg',130, 77,15,'photo_3339014.html');
												thumbnails[3339018] = new thumbnail(3339018,'202424','','IMG_13112_thumb.jpg',130, 79,15,'photo_3339018.html');
												thumbnails[3339019] = new thumbnail(3339019,'202424','','IMG_1340_thumb.jpg',130, 87,15,'photo_3339019.html');
												thumbnails[3339021] = new thumbnail(3339021,'202424','','IMG_13451_thumb.jpg',130, 71,15,'photo_3339021.html');
												thumbnails[3339024] = new thumbnail(3339024,'202424','','IMG_13492_thumb.jpg',130, 72,15,'photo_3339024.html');
												thumbnails[3339030] = new thumbnail(3339030,'202424','Solitude','IMG_107212_thumb.jpg',130, 112,15,'photo_3339030.html');
												thumbnails[3339032] = new thumbnail(3339032,'202424','','IMG_117011_thumb.jpg',130, 84,15,'photo_3339032.html');
												thumbnails[3339091] = new thumbnail(3339091,'201902','','_MG_0002-013_thumb.jpg',130, 122,15,'photo_3339091.html');
												thumbnails[3339094] = new thumbnail(3339094,'201902','','_MG_0022-012_thumb.jpg',130, 112,15,'photo_3339094.html');
												thumbnails[3339107] = new thumbnail(3339107,'201902','','_MG_00033_thumb.jpg',130, 87,15,'photo_3339107.html');
												thumbnails[3339119] = new thumbnail(3339119,'201902','','_MG_0007-031_thumb.jpg',130, 114,15,'photo_3339119.html');
												thumbnails[3351213] = new thumbnail(3351213,'201922','','IMG_1640_thumb.jpg',130, 87,15,'photo_3351213.html');
												thumbnails[3351215] = new thumbnail(3351215,'201922','','IMG_1674_thumb.jpg',130, 87,15,'photo_3351215.html');
												thumbnails[3351216] = new thumbnail(3351216,'201922','Looking for a bite to eat.','IMG_1717_thumb.jpg',130, 90,15,'photo_3351216.html');
												thumbnails[3351235] = new thumbnail(3351235,'204198','','_MG_00911_thumb.jpg',130, 68,15,'photo_3351235.html');
												thumbnails[3365616] = new thumbnail(3365616,'201926','','Picture 05611_thumb.jpg',130, 94,15,'photo_3365616.html');
												thumbnails[3384394] = new thumbnail(3384394,'206600','','Birds Inverted_thumb.jpg',130, 143,15,'photo_3384394.html');
												thumbnails[3384400] = new thumbnail(3384400,'206600','','Church inverted_thumb.jpg',130, 81,15,'photo_3384400.html');
												thumbnails[3384401] = new thumbnail(3384401,'206600','','Lillies inverted and colour balance_thumb.jpg',130, 87,15,'photo_3384401.html');
												thumbnails[3384403] = new thumbnail(3384403,'206600','','Lilly desaturated then inverted_thumb.jpg',130, 87,15,'photo_3384403.html');
												thumbnails[3384410] = new thumbnail(3384410,'206600','','Lilly inverted_thumb.jpg',130, 87,15,'photo_3384410.html');
												thumbnails[3384440] = new thumbnail(3384440,'206600','','Moth1 inverted_thumb.jpg',130, 89,15,'photo_3384440.html');
												thumbnails[3384449] = new thumbnail(3384449,'206600','','Spider_thumb.jpg',130, 87,15,'photo_3384449.html');
												thumbnails[3384453] = new thumbnail(3384453,'206600','','Wells Inverted_thumb.jpg',130, 87,15,'photo_3384453.html');
												thumbnails[3397146] = new thumbnail(3397146,'202886','','_MG_0006cropfor website1_thumb.jpg',130, 129,15,'photo_3397146.html');
												thumbnails[3397154] = new thumbnail(3397154,'202886','','_MG_0004-012_thumb.jpg',130, 106,15,'photo_3397154.html');
												thumbnails[3398912] = new thumbnail(3398912,'202890','','00027_RJ_thumb.jpg',130, 66,15,'photo_3398912.html');
												thumbnails[3535015] = new thumbnail(3535015,'201922','','IMG_2367_thumb.jpg',130, 78,15,'photo_3535015.html');
												thumbnails[3535017] = new thumbnail(3535017,'201922','','IMG_2374_thumb.jpg',130, 93,15,'photo_3535017.html');
												thumbnails[3535036] = new thumbnail(3535036,'202877','','IMG_28141_thumb.jpg',130, 101,15,'photo_3535036.html');
												thumbnails[3535084] = new thumbnail(3535084,'202879','','Picture_045black_and_white12_thumb.jpg',130, 114,15,'photo_3535084.html');
												thumbnails[3538196] = new thumbnail(3538196,'201922','','IMG_22601_thumb.jpg',130, 121,15,'photo_3538196.html');
												thumbnails[3538197] = new thumbnail(3538197,'201922','almost spiritual','IMG_22641_thumb.jpg',130, 95,15,'photo_3538197.html');
												thumbnails[3538198] = new thumbnail(3538198,'201922','','IMG_23221_thumb.jpg',130, 89,15,'photo_3538198.html');
												thumbnails[3538199] = new thumbnail(3538199,'201922','','IMG_23441_thumb.jpg',130, 80,15,'photo_3538199.html');
												thumbnails[3598618] = new thumbnail(3598618,'201922','','IMG_3163_thumb.jpg',130, 104,15,'photo_3598618.html');
												thumbnails[3883562] = new thumbnail(3883562,'204198','','_MG_0023_thumb.JPG',130, 87,15,'photo_3883562.html');
												thumbnails[4266168] = new thumbnail(4266168,'252264','','IMG_55901_thumb.JPG',130, 98,15,'photo_4266168.html');
												thumbnails[4858638] = new thumbnail(4858638,'303338','','_MG_7761_copy_thumb.jpg',130, 84,15,'photo_4858638.html');
												thumbnails[4858660] = new thumbnail(4858660,'303338','','_MG_7788_thumb.JPG',130, 195,15,'photo_4858660.html');
												thumbnails[4858667] = new thumbnail(4858667,'307639','','_MG_7816_thumb.JPG',130, 87,15,'photo_4858667.html');
												thumbnails[4858671] = new thumbnail(4858671,'303338','','_MG_7856_copy_thumb.jpg',130, 144,15,'photo_4858671.html');
												thumbnails[4858675] = new thumbnail(4858675,'303338','','_MG_7881_copy_thumb.jpg',130, 134,15,'photo_4858675.html');
												thumbnails[4858687] = new thumbnail(4858687,'303338','','_MG_7688_copy1_thumb.jpg',130, 148,15,'photo_4858687.html');
												thumbnails[5440094] = new thumbnail(5440094,'201921','The fantastic Vulcan a quick snap','IMG_7353_thumb.JPG',130, 77,15,'photo_5440094.html');
												thumbnails[5440099] = new thumbnail(5440099,'411834','Another quick shot of the Vulcan','IMG_7330_thumb.JPG',130, 87,15,'photo_5440099.html');
												thumbnails[5443850] = new thumbnail(5443850,'204198','Peace and quiet','_MG_0100_thumb.jpg',130, 85,15,'photo_5443850.html');
												thumbnails[5443854] = new thumbnail(5443854,'204198','The lonely road','_MG_0090_thumb.jpg',130, 90,15,'photo_5443854.html');
												thumbnails[7593872] = new thumbnail(7593872,'411841','','_D0U4181clicpic_thumb.jpg',130, 128,15,'photo_7593872.html');
												thumbnails[7593897] = new thumbnail(7593897,'411841','','_D0U4185clickpic_thumb.jpg',130, 112,15,'photo_7593897.html');
												thumbnails[7594356] = new thumbnail(7594356,'411841','','DPP_0010clickpic_thumb.jpg',130, 138,15,'photo_7594356.html');
												thumbnails[7594357] = new thumbnail(7594357,'411841','','DPP_0049clickpic_thumb.jpg',130, 189,15,'photo_7594357.html');
												thumbnails[7594358] = new thumbnail(7594358,'411841','','DPP_0053clicpic_thumb.jpg',130, 184,15,'photo_7594358.html');
												thumbnails[7594362] = new thumbnail(7594362,'411841','','DPP_0065clickpic_thumb.jpg',130, 150,15,'photo_7594362.html');
												thumbnails[7594366] = new thumbnail(7594366,'411841','','_MG_8719clickpic_thumb.jpg',130, 102,15,'photo_7594366.html');
												thumbnails[7594374] = new thumbnail(7594374,'411841','','_D0U9647_ppclickpic_thumb.jpg',130, 96,15,'photo_7594374.html');
												thumbnails[7599639] = new thumbnail(7599639,'412178','','honey_bee_1for_clicpic_thumb.jpg',130, 87,15,'photo_7599639.html');
												thumbnails[7599640] = new thumbnail(7599640,'412178','','Honey_bee_3for_clickpic_thumb.jpg',130, 105,15,'photo_7599640.html');
												thumbnails[7599641] = new thumbnail(7599641,'412178','','Wasp_1for_clicpic_thumb.jpg',130, 87,15,'photo_7599641.html');
												thumbnails[7599643] = new thumbnail(7599643,'412178','','Wasp_2for_clicpic_thumb.jpg',130, 85,15,'photo_7599643.html');
												thumbnails[7599694] = new thumbnail(7599694,'411829','','DPP_0005for_clicpic_thumb.jpg',130, 126,15,'photo_7599694.html');
												thumbnails[7599695] = new thumbnail(7599695,'411829','','DPP_0006for_clicpic_thumb.jpg',130, 105,15,'photo_7599695.html');
												thumbnails[7599696] = new thumbnail(7599696,'411829','','DPP_0007for_clicpic_thumb.jpg',130, 114,15,'photo_7599696.html');
												thumbnails[7599698] = new thumbnail(7599698,'411829','','DPP_0008for_clicpic_thumb.jpg',130, 127,15,'photo_7599698.html');
												thumbnails[7599705] = new thumbnail(7599705,'411829','Another panning shot down to 1/60th.','DPP_0011for_clicpic_thumb.jpg',130, 93,15,'photo_7599705.html');
												thumbnails[7599866] = new thumbnail(7599866,'201921','','IMG_566211_copyfor_clicpic_thumb.jpg',130, 171,15,'photo_7599866.html');
												thumbnails[7599927] = new thumbnail(7599927,'411834','','_D0U3964for_clicpic_thumb.jpg',130, 82,15,'photo_7599927.html');
												thumbnails[7599936] = new thumbnail(7599936,'411834','','_D0U1746for_clicpic_thumb.jpg',130, 87,15,'photo_7599936.html');
												thumbnails[7599937] = new thumbnail(7599937,'411834','','_D0U3951for_clicpic1_thumb.jpg',130, 87,15,'photo_7599937.html');
												thumbnails[7599972] = new thumbnail(7599972,'202886','','_D0U3852_thumb.JPG',130, 77,15,'photo_7599972.html');
												thumbnails[7600961] = new thumbnail(7600961,'411829','','_D0U0528for_clikpic1_thumb.jpg',130, 156,15,'photo_7600961.html');
												thumbnails[7602594] = new thumbnail(7602594,'411829','','try_thumb.gif',130, 145,15,'photo_7602594.html');
												thumbnails[7602822] = new thumbnail(7602822,'411841','','_D0U0350_ppfor_clic_thumb.jpg',130, 97,15,'photo_7602822.html');
												thumbnails[7607407] = new thumbnail(7607407,'411829','Panning at 1/60th to create movement effect, not easy with motoX as bikes travel up and down as well as forward','_D0U5050for_clicpic_thumb.jpg',130, 92,15,'photo_7607407.html');
												thumbnails[7607419] = new thumbnail(7607419,'411829','Another at 1/60th.','_D0U5049_for_clicpic_thumb.jpg',130, 87,15,'photo_7607419.html');
												thumbnails[7607726] = new thumbnail(7607726,'411829','','_D0U4981for_click_pic_thumb.jpg',130, 87,15,'photo_7607726.html');
												thumbnails[7608974] = new thumbnail(7608974,'412648','','_D0U2361clic_thumb.jpg',130, 87,15,'photo_7608974.html');
												thumbnails[7608987] = new thumbnail(7608987,'412648','','_D0U2372clic_thumb.jpg',130, 195,15,'photo_7608987.html');
												thumbnails[7609602] = new thumbnail(7609602,'411841','','DPP_0049clicpic_thumb.jpg',130, 184,15,'photo_7609602.html');
												thumbnails[7609604] = new thumbnail(7609604,'411841','','DPP_00441clicpic_thumb.jpg',130, 155,15,'photo_7609604.html');
												thumbnails[7609631] = new thumbnail(7609631,'412648','The sign says\" there are no margins for mistakes, in a Submarine you are either alive or dead!\"','_D0U2355clicpic_thumb.jpg',130, 192,15,'photo_7609631.html');
												thumbnails[7609633] = new thumbnail(7609633,'412648','Its surprising just how little space there is.','_D0U2358clicpic_thumb.jpg',130, 195,15,'photo_7609633.html');
												thumbnails[7609634] = new thumbnail(7609634,'412648','Washing facilities for 18 senior rates. I guess facilities have changed a bit now.','_D0U2366clicpic_thumb.jpg',130, 87,15,'photo_7609634.html');
												thumbnails[7609636] = new thumbnail(7609636,'412648','','_D0U2369clicpic_thumb.jpg',130, 92,15,'photo_7609636.html');
												thumbnails[7609637] = new thumbnail(7609637,'412648','','_D0U2368clicpic_thumb.jpg',130, 195,15,'photo_7609637.html');
												thumbnails[7609638] = new thumbnail(7609638,'412648','The engine room, its looks quite wide until two people try to pass.','_D0U2371clicpic_thumb.jpg',130, 195,15,'photo_7609638.html');
												thumbnails[7645403] = new thumbnail(7645403,'411829','','DPP_0005clic_thumb.jpg',130, 89,15,'photo_7645403.html');
												thumbnails[7645405] = new thumbnail(7645405,'411829','','DPP_0008clic_thumb.jpg',130, 128,15,'photo_7645405.html');
												thumbnails[7645407] = new thumbnail(7645407,'411829','','DPP_0016clic_thumb.jpg',130, 87,15,'photo_7645407.html');
												thumbnails[7645408] = new thumbnail(7645408,'411829','','DPP_0018clic_thumb.jpg',130, 87,15,'photo_7645408.html');
												thumbnails[7645411] = new thumbnail(7645411,'411829','','DPP_0023clic_thumb.jpg',130, 87,15,'photo_7645411.html');
												thumbnails[7645417] = new thumbnail(7645417,'411829','','DPP_0024clic_thumb.jpg',130, 87,15,'photo_7645417.html');
												thumbnails[7645419] = new thumbnail(7645419,'411829','','DPP_0035clic_thumb.jpg',130, 87,15,'photo_7645419.html');
												thumbnails[7645422] = new thumbnail(7645422,'411829','','DPP_0042clic_thumb.jpg',130, 124,15,'photo_7645422.html');
												thumbnails[7645424] = new thumbnail(7645424,'411829','','DPP_0044clic_thumb.jpg',130, 122,15,'photo_7645424.html');
												thumbnails[4265964] = new thumbnail(4265964,'252264','','IMG_52901_thumb.JPG',130, 87,15,'photo_4265964.html');
												thumbnails[4265966] = new thumbnail(4265966,'252264','','IMG_52991_thumb.JPG',130, 96,15,'photo_4265966.html');
												thumbnails[4265968] = new thumbnail(4265968,'252264','','IMG_5315_thumb.JPG',130, 118,15,'photo_4265968.html');
												thumbnails[4265972] = new thumbnail(4265972,'252264','','IMG_5466sepia1_thumb.JPG',130, 135,15,'photo_4265972.html');
												thumbnails[4265975] = new thumbnail(4265975,'252264','','IMG_55181_thumb.JPG',130, 89,15,'photo_4265975.html');
												thumbnails[4265978] = new thumbnail(4265978,'252264','','IMG_55731_thumb.JPG',130, 104,15,'photo_4265978.html');
												thumbnails[4266153] = new thumbnail(4266153,'252264','','IMG_5319_thumb.JPG',130, 87,15,'photo_4266153.html');
												thumbnails[4266155] = new thumbnail(4266155,'252264','','IMG_54541_thumb.JPG',130, 104,15,'photo_4266155.html');
												thumbnails[4266162] = new thumbnail(4266162,'252264','','IMG_55021_thumb.JPG',130, 71,15,'photo_4266162.html');
												thumbnails[4266165] = new thumbnail(4266165,'252264','','IMG_5585_thumb.JPG',130, 92,15,'photo_4266165.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[412648] = new gallery(412648,'7609638,7609637,7609636,7609634,7609633,7609631,7608987,7608974',' WW2 submarine interior','gallery',[7608974,7608987,7609631,7609633,7609634,7609636,7609637,7609638],0, 0, '', 'gallery_412648.html',0,0);
				  					galleries[411834] = new gallery(411834,'7599937,7599936,7599927,5440099','Aircraft','gallery',[5440099,7599927,7599936,7599937],0, 0, '', 'gallery_411834.html',0,0);
				  					galleries[412178] = new gallery(412178,'7599643,7599641,7599640,7599639','Little critters','gallery',[7599639,7599640,7599641,7599643],0, 0, '', 'gallery_412178.html',0,0);
				  					galleries[411829] = new gallery(411829,'7645424,7645422,7645419,7645417,7645411,7645408,7645407,7645405,7645403,7607726','motorsport','gallery',[7599694,7599695,7599696,7599698,7599705,7600961,7602594,7607407,7607419,7607726,7645403,7645405,7645407,7645408,7645411,7645417,7645419,7645422,7645424],0, 0, '', 'gallery_411829.html',0,0);
				  					galleries[411841] = new gallery(411841,'7609604,7609602,7602822,7594374,7594366,7594362,7594358,7594357,7594356,7593897','Portraits','gallery',[7593872,7593897,7594356,7594357,7594358,7594362,7594366,7594374,7602822,7609602,7609604],0, 0, '', 'gallery_411841.html',0,0);
				  					galleries[307639] = new gallery(307639,'4858667','Hunting Birds','gallery',[4858667],0, 0, '', 'gallery_307639.html',0,0);
				  					galleries[202877] = new gallery(202877,'3335689','After Dark','gallery',[3335680,3335683,3335686,3335689,3335695,3335698,3335751,3535036],0, 0, '', 'gallery_202877.html',0,0);
				  					galleries[201922] = new gallery(201922,'3329673','Birds in Flight','gallery',[3329537,3329553,3329636,3329673,3329925,3329965,3330201,3330209,3330653,3334775,3334818,3334819,3334828,3334829,3334833,3334834,3351213,3351215,3351216,3535015,3535017,3538196,3538197,3538198,3538199,3598618],0, 0, '', 'gallery_201922.html',0,0);
				  					galleries[202879] = new gallery(202879,'3535084,3335636,3335632,3335625,3335606','Black and White','gallery',[3335606,3335625,3335632,3335636,3535084],0, 0, '', 'gallery_202879.html',0,0);
				  					galleries[202357] = new gallery(202357,'3330010,3329998','Curlews','gallery',[3329998,3330010],0, 0, '', 'gallery_202357.html',0,0);
				  					galleries[202886] = new gallery(202886,'7599972,3397154,3397146','dragon flies','gallery',[3397146,3397154,7599972],0, 0, '', 'gallery_202886.html',0,0);
				  					galleries[202356] = new gallery(202356,'3330315,3330309,3330073,3330033','Egrits','gallery',[3330033,3330073,3330309,3330315],0, 0, '', 'gallery_202356.html',0,0);
				  					galleries[252264] = new gallery(252264,'4266168,4266165,4266162,4266155,4266153,4265978,4265975,4265972,4265968,4265966','Equestrian','gallery',[4266168,4265964,4265966,4265968,4265972,4265975,4265978,4266153,4266155,4266162,4266165],0, 0, '', 'gallery_252264.html',0,0);
				  					galleries[202878] = new gallery(202878,'3335420,3335417','Flowers','gallery',[3335417,3335420],0, 0, '', 'gallery_202878.html',0,0);
				  					galleries[201921] = new gallery(201921,'7599866,5440094,3335594,3335588','general','gallery',[3335588,3335594,5440094,7599866],0, 0, '', 'gallery_201921.html',0,0);
				  					galleries[202358] = new gallery(202358,'3330498,3330494','Gulls','gallery',[3330494,3330498],0, 0, '', 'gallery_202358.html',0,0);
				  					galleries[201902] = new gallery(201902,'3339119,3339107,3339094,3339091,3335484,3335480,3335476,3335472,3330704,3329040','Nature in the Garden','gallery',[3329040,3330704,3335472,3335476,3335480,3335484,3339091,3339094,3339107,3339119],0, 0, '', 'gallery_201902.html',0,0);
				  					galleries[303338] = new gallery(303338,'4858687,4858675,4858671,4858660,4858638','Owls','gallery',[4858638,4858660,4858671,4858675,4858687],0, 0, '', 'gallery_303338.html',0,0);
				  					galleries[201926] = new gallery(201926,'3365616,3332942,3332941,3332940,3332938,3332937,3332936,3332935','Sepia','gallery',[3332935,3332936,3332937,3332938,3332940,3332941,3332942,3365616],0, 0, '', 'gallery_201926.html',0,0);
				  					galleries[202890] = new gallery(202890,'3398912','sunsets','gallery',[3398912],0, 0, '', 'gallery_202890.html',0,0);
				  					galleries[202424] = new gallery(202424,'3339032,3339030,3339024,3339021,3339019,3339018,3339014,3339009,3339007,3339006','The tranquility of the mountains','gallery',[3338976,3338980,3338982,3338984,3338992,3338993,3338995,3338996,3338999,3339000,3339001,3339004,3339006,3339007,3339009,3339014,3339018,3339019,3339021,3339024,3339030,3339032],0, 0, '', 'gallery_202424.html',0,0);
				  					galleries[202360] = new gallery(202360,'3330508,3330505,3330501','Woodpecker','gallery',[3330501,3330505,3330508],0, 0, '', 'gallery_202360.html',0,0);
				  					galleries[201903] = new gallery(201903,'3334850,3334849,3334848,3334847,3334846,3334845','Animals','gallery',[3334845,3334846,3334847,3334848,3334849,3334850],0, 0, '', 'gallery_201903.html',0,0);
				  					galleries[202212] = new gallery(202212,'3330889,3330887,3330885,3330878,3330874,3330867,3330866','Windsurfing with a difference','gallery',[3330866,3330867,3330874,3330878,3330885,3330887,3330889],0, 0, '', 'gallery_202212.html',0,0);
				  					galleries[202822] = new gallery(202822,'3330701,3330699','Moon','gallery',[3330699,3330701],0, 0, '', 'gallery_202822.html',0,0);
				  					galleries[204198] = new gallery(204198,'5443854,5443850,3883562,3351235','Landscape','gallery',[3351235,3883562,5443850,5443854],0, 0, '', 'gallery_204198.html',0,0);
				  					galleries[206600] = new gallery(206600,'3384453,3384449,3384440,3384410,3384403,3384401,3384400,3384394,3330706','Abstract','gallery',[3330706,3384394,3384400,3384401,3384403,3384410,3384440,3384449,3384453],0, 0, '', 'gallery_206600.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '3329553';
imageSets[2] = '3335689,3329673';
imageSets[3] = '7645424,7645422,7645419,7645417,7645411,7645408,7645407,7645405,7645403,7609639,7609638,7609637,7609636,7609634,7609633,7609631,7609604,7609602,7608987,7608974,7607726,7607419,7607407,7602822,7602594,7600961,7599972,7599937,7599936,7599927,7599866,7599705,7599698,7599696,7599695,7599694,7599690,7599643,7599641,7599640,7599639,7594374,7594366,7594362,7594358,7594357,7594356,7593897,7593872,5443854';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Marcosracer/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Marcosracer/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 && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.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 && 'gallery' != '') {
					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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Acer Images: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:200};	    		options.photoinfoadjacent = true;			      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#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,array,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();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp = temp + '<p>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp = temp + '<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)};">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
									temp = temp + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
	temp = temp + '	<input type="hidden" name="item_option" value="' + item_option + '">';
	temp = temp + '	<input type="hidden" name="site" value="MARCOSRACER">';
		temp = temp + '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp = temp + '	<input type="hidden" name="quantity" value="1">';
								temp = temp + '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
			temp = temp + '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
	temp = temp + '</form>';
		temp = temp + '<div class="clearing">&nbsp;</div>';
	temp = temp + '<div id="confirmContainer">';
	temp = temp + '<div id="paymentConfirm">Item added to cart</div>';
	temp = temp + '</div>';
			temp = 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({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

