window.thumbnails = {};
															thumbnails[1817804] = clik.newPhoto({"id":1817804,"src":"lonrob_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Go to my LINKS page ","height":142});
															thumbnails[5723585] = clik.newPhoto({"id":5723585,"src":"Mr_Edmonds_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_5723585.html","width":130,"caption":"Mr Edmonds sold","height":128});
															thumbnails[5723586] = clik.newPhoto({"id":5723586,"src":"smasher_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_5723586.html","width":130,"caption":"Firefly SOLD","height":128});
															thumbnails[5723588] = clik.newPhoto({"id":5723588,"src":"Mr_Alpine_thumb.jpg","galleries_id":144051,"server_id":18,"link":"photo_5723588.html","width":130,"caption":"Mr Alpine sold","height":128});
															thumbnails[5817817] = clik.newPhoto({"id":5817817,"src":"book_montage_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_5817817.html","width":130,"caption":"2 Retrobot Books ","height":130});
															thumbnails[6448350] = clik.newPhoto({"id":6448350,"src":"argo_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_6448350.html","width":130,"caption":"Argo sold","height":130});
															thumbnails[6448352] = clik.newPhoto({"id":6448352,"src":"dewi_buzz_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_6448352.html","width":130,"caption":"Dewi Buzz","height":130});
															thumbnails[6463786] = clik.newPhoto({"id":6463786,"src":"Sheridan_thumb.jpg","galleries_id":124379,"server_id":18,"link":"photo_6463786.html","width":130,"caption":"Sheridan SOLD","height":130});
															thumbnails[6463790] = clik.newPhoto({"id":6463790,"src":"Henri_Winterman_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_6463790.html","width":130,"caption":"Henri Winterman sold","height":130});
															thumbnails[6463793] = clik.newPhoto({"id":6463793,"src":"Hemi_265_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_6463793.html","width":130,"caption":"Hemi 265 sold","height":130});
															thumbnails[7177280] = clik.newPhoto({"id":7177280,"src":"piezzo_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_7177280.html","width":130,"caption":"Piezzo sold","height":128});
															thumbnails[7177281] = clik.newPhoto({"id":7177281,"src":"zuki_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7177281.html","width":130,"caption":"Zuki","height":128});
															thumbnails[7177464] = clik.newPhoto({"id":7177464,"src":"3_amp1_thumb.jpg","galleries_id":144049,"server_id":18,"link":"photo_7177464.html","width":130,"caption":"3 amp sold","height":128});
															thumbnails[7182545] = clik.newPhoto({"id":7182545,"src":"villiers_thumb.jpg","galleries_id":125224,"server_id":18,"link":"photo_7182545.html","width":130,"caption":"Villiers sold","height":128});
															thumbnails[7182549] = clik.newPhoto({"id":7182549,"src":"scrabbler_thumb.jpg","galleries_id":125224,"server_id":18,"link":"photo_7182549.html","width":130,"caption":"Scrabbler sold","height":128});
															thumbnails[7182550] = clik.newPhoto({"id":7182550,"src":"romac_thumb.jpg","galleries_id":144051,"server_id":18,"link":"photo_7182550.html","width":130,"caption":"Romac sold","height":128});
															thumbnails[7704320] = clik.newPhoto({"id":7704320,"src":"leone_web_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7704320.html","width":130,"caption":"LEONE","height":130});
															thumbnails[8230910] = clik.newPhoto({"id":8230910,"src":"arvinWeb_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_8230910.html","width":130,"caption":"ARVIN","height":130});
															thumbnails[8230914] = clik.newPhoto({"id":8230914,"src":"GrindermanWeb_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_8230914.html","width":130,"caption":"GRINDERMAN","height":130});
															thumbnails[1860665] = clik.newPhoto({"id":1860665,"src":"1_thumb.jpg","galleries_id":125224,"server_id":18,"link":"photo_1860665.html","width":130,"caption":"light fantastic SOLD","height":127});
															thumbnails[3905375] = clik.newPhoto({"id":3905375,"src":"ultimate_racer_thumb.jpg","galleries_id":125224,"server_id":18,"link":"photo_3905375.html","width":130,"caption":"ultimate racer SOLD","height":128});
															thumbnails[3905465] = clik.newPhoto({"id":3905465,"src":"mod_rocket_thumb.jpg","galleries_id":125224,"server_id":18,"link":"photo_3905465.html","width":130,"caption":"Mod Rocket sold","height":128});
															thumbnails[7704297] = clik.newPhoto({"id":7704297,"src":"vogue_web_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7704297.html","width":130,"caption":"Vogue","height":130});
															thumbnails[7704313] = clik.newPhoto({"id":7704313,"src":"morris_web_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7704313.html","width":130,"caption":"Morris","height":130});
															thumbnails[7704309] = clik.newPhoto({"id":7704309,"src":"mox_web_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7704309.html","width":130,"caption":"MOX","height":130});
															thumbnails[7704305] = clik.newPhoto({"id":7704305,"src":"pye_web_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7704305.html","width":130,"caption":"PYE","height":130});
															thumbnails[7704303] = clik.newPhoto({"id":7704303,"src":"royale_web_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7704303.html","width":130,"caption":"ROYALE","height":130});
															thumbnails[7704300] = clik.newPhoto({"id":7704300,"src":"sabre_web_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_7704300.html","width":130,"caption":"Sabre SOLD","height":130});
															thumbnails[7704328] = clik.newPhoto({"id":7704328,"src":"elmo_web_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_7704328.html","width":130,"caption":"","height":130});
															thumbnails[7704352] = clik.newPhoto({"id":7704352,"src":"clipper_web_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7704352.html","width":130,"caption":"Clipper","height":130});
															thumbnails[7704357] = clik.newPhoto({"id":7704357,"src":"electrolux_web_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7704357.html","width":130,"caption":"Electrolux","height":130});
															thumbnails[3435919] = clik.newPhoto({"id":3435919,"src":"ray gun_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_3435919.html","width":130,"caption":"ray gun","height":132});
															thumbnails[4804854] = clik.newPhoto({"id":4804854,"src":"bling1_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_4804854.html","width":130,"caption":"various necklaces","height":128});
															thumbnails[5821736] = clik.newPhoto({"id":5821736,"src":"600x600montage_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_5821736.html","width":130,"caption":"Posters and Greetings Cards","height":130});
															thumbnails[7182542] = clik.newPhoto({"id":7182542,"src":"firefly_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7182542.html","width":130,"caption":"Firefly","height":128});
															thumbnails[7182544] = clik.newPhoto({"id":7182544,"src":"jitterbug_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7182544.html","width":130,"caption":"Jitterbug","height":128});
															thumbnails[7182547] = clik.newPhoto({"id":7182547,"src":"nobby_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7182547.html","width":130,"caption":"Mc Fly","height":128});
															thumbnails[3917653] = clik.newPhoto({"id":3917653,"src":"mutley_thumb.jpg","galleries_id":438690,"server_id":18,"link":"photo_3917653.html","width":130,"caption":"Mutley sold","height":128});
															thumbnails[7182551] = clik.newPhoto({"id":7182551,"src":"tea_towel_thumb.jpg","galleries_id":299231,"server_id":18,"link":"photo_7182551.html","width":130,"caption":"Tea Towel","height":128});
															thumbnails[3435926] = clik.newPhoto({"id":3435926,"src":"woof_thumb.jpg","galleries_id":438690,"server_id":18,"link":"photo_3435926.html","width":130,"caption":"woof sold","height":132});
															thumbnails[1860718] = clik.newPhoto({"id":1860718,"src":"6_thumb.jpg","galleries_id":125224,"server_id":18,"link":"photo_1860718.html","width":130,"caption":"canned heat SOLD","height":128});
															thumbnails[1848049] = clik.newPhoto({"id":1848049,"src":"r1borg-det-new_thumb.jpg","galleries_id":124379,"server_id":18,"link":"photo_1848049.html","width":130,"caption":"borg SOLD","height":132});
															thumbnails[1848050] = clik.newPhoto({"id":1848050,"src":"r2spike-new_thumb.jpg","galleries_id":124379,"server_id":18,"link":"photo_1848050.html","width":130,"caption":"spike harper SOLD","height":132});
															thumbnails[1848052] = clik.newPhoto({"id":1848052,"src":"r4lattelout-new_thumb.jpg","galleries_id":124379,"server_id":18,"link":"photo_1848052.html","width":130,"caption":"latte lout SOLD","height":132});
															thumbnails[2092196] = clik.newPhoto({"id":2092196,"src":"r20firestarter-new_thumb.jpg","galleries_id":124379,"server_id":18,"link":"photo_2092196.html","width":130,"caption":"Firestarter SOLD","height":132});
															thumbnails[4804852] = clik.newPhoto({"id":4804852,"src":"mozzie_thumb.jpg","galleries_id":125224,"server_id":18,"link":"photo_4804852.html","width":130,"caption":"mozzie sold","height":128});
															thumbnails[1848054] = clik.newPhoto({"id":1848054,"src":"r6kelvin-new_thumb.jpg","galleries_id":124379,"server_id":18,"link":"photo_1848054.html","width":130,"caption":"kelvin the terminator SOLD","height":132});
															thumbnails[1891116] = clik.newPhoto({"id":1891116,"src":"r11blackbox-new_thumb.jpg","galleries_id":124379,"server_id":18,"link":"photo_1891116.html","width":130,"caption":"Black box SOLD","height":132});
															thumbnails[2052581] = clik.newPhoto({"id":2052581,"src":"r17-light weight-det-new_thumb.jpg","galleries_id":124379,"server_id":18,"link":"photo_2052581.html","width":130,"caption":"light weight SOLD","height":132});
															thumbnails[4804846] = clik.newPhoto({"id":4804846,"src":"mustard_thumb.jpg","galleries_id":124379,"server_id":18,"link":"photo_4804846.html","width":130,"caption":"Colonel Mustard sold","height":128});
															thumbnails[1913854] = clik.newPhoto({"id":1913854,"src":"r14tonka-new_thumb.jpg","galleries_id":128333,"server_id":18,"link":"photo_1913854.html","width":130,"caption":"Tonka SOLD","height":132});
															thumbnails[1931568] = clik.newPhoto({"id":1931568,"src":"r15-1100-milliamps-new_thumb.jpg","galleries_id":128333,"server_id":18,"link":"photo_1931568.html","width":130,"caption":"milliamps SOLD","height":132});
															thumbnails[2052583] = clik.newPhoto({"id":2052583,"src":"r18-Mrs Cheese-new_thumb.jpg","galleries_id":128333,"server_id":18,"link":"photo_2052583.html","width":130,"caption":"Mrs Cheese SOLD","height":132});
															thumbnails[2092203] = clik.newPhoto({"id":2092203,"src":"r21-pretty-vacant-new_thumb.jpg","galleries_id":128333,"server_id":18,"link":"photo_2092203.html","width":130,"caption":"Pretty vacant SOLD","height":132});
															thumbnails[2209932] = clik.newPhoto({"id":2209932,"src":"r23-vortexion new_thumb.jpg","galleries_id":128333,"server_id":18,"link":"photo_2209932.html","width":130,"caption":"vortexion SOLD","height":132});
															thumbnails[2209956] = clik.newPhoto({"id":2209956,"src":"r24-palmer gimp_thumb.jpg","galleries_id":128333,"server_id":18,"link":"photo_2209956.html","width":130,"caption":"Gimpy SOLD","height":132});
															thumbnails[2228118] = clik.newPhoto({"id":2228118,"src":"r27zeldabot_thumb.jpg","galleries_id":144049,"server_id":18,"link":"photo_2228118.html","width":130,"caption":"Zeldabot SOLD","height":132});
															thumbnails[2228122] = clik.newPhoto({"id":2228122,"src":"r28Tommybot_thumb.jpg","galleries_id":144049,"server_id":18,"link":"photo_2228122.html","width":130,"caption":"tommybot SOLD","height":132});
															thumbnails[2435766] = clik.newPhoto({"id":2435766,"src":"web janiebot_thumb.jpg","galleries_id":144049,"server_id":18,"link":"photo_2435766.html","width":130,"caption":"janiebot SOLD","height":132});
															thumbnails[2435767] = clik.newPhoto({"id":2435767,"src":"web super 8_thumb.jpg","galleries_id":144049,"server_id":18,"link":"photo_2435767.html","width":130,"caption":"super 8 sold","height":132});
															thumbnails[2435768] = clik.newPhoto({"id":2435768,"src":"web robotnik_thumb.jpg","galleries_id":144049,"server_id":18,"link":"photo_2435768.html","width":130,"caption":"robotnik sold","height":132});
															thumbnails[3905453] = clik.newPhoto({"id":3905453,"src":"austin_charger_thumb.jpg","galleries_id":144049,"server_id":18,"link":"photo_3905453.html","width":130,"caption":"Austin Charger sold","height":128});
															thumbnails[2609289] = clik.newPhoto({"id":2609289,"src":"brother_thumb.jpg","galleries_id":144049,"server_id":18,"link":"photo_2609289.html","width":130,"caption":"Big Brother SOLD","height":132});
															thumbnails[2609298] = clik.newPhoto({"id":2609298,"src":"mastaplasta_thumb.jpg","galleries_id":144049,"server_id":18,"link":"photo_2609298.html","width":130,"caption":"Masta-plasta sold","height":132});
															thumbnails[2706883] = clik.newPhoto({"id":2706883,"src":"Ro-Beco_thumb.jpg","galleries_id":144049,"server_id":18,"link":"photo_2706883.html","width":130,"caption":"Ro-Beco SOLD","height":132});
															thumbnails[2706909] = clik.newPhoto({"id":2706909,"src":"Mr Krups1_thumb.jpg","galleries_id":144049,"server_id":18,"link":"photo_2706909.html","width":130,"caption":"Mr Krups SOLD","height":132});
															thumbnails[2760213] = clik.newPhoto({"id":2760213,"src":"Transcor_thumb.jpg","galleries_id":144051,"server_id":18,"link":"photo_2760213.html","width":130,"caption":"Transcor SOLD","height":132});
															thumbnails[2760264] = clik.newPhoto({"id":2760264,"src":"fanny_thumb.jpg","galleries_id":144051,"server_id":18,"link":"photo_2760264.html","width":130,"caption":"Fanny the Tranny SOLD","height":132});
															thumbnails[2885288] = clik.newPhoto({"id":2885288,"src":"esmerelda_thumb.jpg","galleries_id":144051,"server_id":18,"link":"photo_2885288.html","width":130,"caption":"Esmarelda SOLD","height":132});
															thumbnails[2885294] = clik.newPhoto({"id":2885294,"src":"leonard_thumb.jpg","galleries_id":438690,"server_id":18,"link":"photo_2885294.html","width":130,"caption":"leonard SOLD","height":132});
															thumbnails[3233403] = clik.newPhoto({"id":3233403,"src":"sharpie_thumb.jpg","galleries_id":144051,"server_id":18,"link":"photo_3233403.html","width":130,"caption":"Sharpie SOLD","height":132});
															thumbnails[3242138] = clik.newPhoto({"id":3242138,"src":"kitchenalia_thumb.jpg","galleries_id":144051,"server_id":18,"link":"photo_3242138.html","width":130,"caption":"Kitchenalia SOLD","height":132});
															thumbnails[3242142] = clik.newPhoto({"id":3242142,"src":"big monster 202_thumb.jpg","galleries_id":144051,"server_id":18,"link":"photo_3242142.html","width":130,"caption":"Big Monster 202 sold","height":132});
															thumbnails[3242144] = clik.newPhoto({"id":3242144,"src":"jack speed_thumb.jpg","galleries_id":173176,"server_id":18,"link":"photo_3242144.html","width":130,"caption":"Jack Speed sold","height":132});
															thumbnails[3435908] = clik.newPhoto({"id":3435908,"src":"ac dc davies_thumb.jpg","galleries_id":173176,"server_id":18,"link":"photo_3435908.html","width":130,"caption":"AC\/DC Davies sold","height":132});
															thumbnails[3435910] = clik.newPhoto({"id":3435910,"src":"astor_thumb.jpg","galleries_id":173176,"server_id":18,"link":"photo_3435910.html","width":130,"caption":"astor sold","height":132});
															thumbnails[3435913] = clik.newPhoto({"id":3435913,"src":"duplex_thumb.jpg","galleries_id":124379,"server_id":18,"link":"photo_3435913.html","width":130,"caption":"duplex sold","height":132});
															thumbnails[5350573] = clik.newPhoto({"id":5350573,"src":"morris10_thumb.jpg","galleries_id":124379,"server_id":18,"link":"photo_5350573.html","width":130,"caption":"Morris 10 sold","height":128});
															thumbnails[3435916] = clik.newPhoto({"id":3435916,"src":"smiths_thumb.jpg","galleries_id":173176,"server_id":18,"link":"photo_3435916.html","width":130,"caption":"smiths SOLD","height":132});
															thumbnails[5350604] = clik.newPhoto({"id":5350604,"src":"lubette_thumb.jpg","galleries_id":173176,"server_id":18,"link":"photo_5350604.html","width":130,"caption":"Lubette SOLD","height":128});
															thumbnails[3435917] = clik.newPhoto({"id":3435917,"src":"kozyaire_thumb.jpg","galleries_id":173176,"server_id":18,"link":"photo_3435917.html","width":130,"caption":"kozyaire SOLD","height":132});
															thumbnails[5353533] = clik.newPhoto({"id":5353533,"src":"pocket_rocket_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_5353533.html","width":130,"caption":"Pocket Rocket SOLD","height":128});
															thumbnails[3566195] = clik.newPhoto({"id":3566195,"src":"10_speed_thumb.jpg","galleries_id":173176,"server_id":18,"link":"photo_3566195.html","width":130,"caption":"ten speed SOLD","height":132});
															thumbnails[5367012] = clik.newPhoto({"id":5367012,"src":"hilda_thumb.jpg","galleries_id":173176,"server_id":18,"link":"photo_5367012.html","width":130,"caption":"Hilda sold","height":128});
															thumbnails[5367029] = clik.newPhoto({"id":5367029,"src":"nutter_thumb.jpg","galleries_id":128333,"server_id":18,"link":"photo_5367029.html","width":130,"caption":"Nutter sold","height":128});
															thumbnails[3566204] = clik.newPhoto({"id":3566204,"src":"jimmybot_thumb.jpg","galleries_id":173176,"server_id":18,"link":"photo_3566204.html","width":130,"caption":"jimmybot SOLD","height":132});
															thumbnails[3905459] = clik.newPhoto({"id":3905459,"src":"mercoid_thumb.jpg","galleries_id":173176,"server_id":18,"link":"photo_3905459.html","width":130,"caption":"Mercoid sold<br>\r\n","height":128});
															thumbnails[3566205] = clik.newPhoto({"id":3566205,"src":"ultimate_12_thumb.jpg","galleries_id":173176,"server_id":18,"link":"photo_3566205.html","width":130,"caption":"ultimate 12 SOLD","height":132});
															thumbnails[3836951] = clik.newPhoto({"id":3836951,"src":"pacemaker_thumb.jpg","galleries_id":128333,"server_id":18,"link":"photo_3836951.html","width":130,"caption":"pacemaker sold","height":132});
															thumbnails[3836956] = clik.newPhoto({"id":3836956,"src":"60mph_thumb.jpg","galleries_id":128333,"server_id":18,"link":"photo_3836956.html","width":130,"caption":"60 Miles Per Hour sold","height":128});
															thumbnails[3836964] = clik.newPhoto({"id":3836964,"src":"LittleSteadyEddie_thumb.jpg","galleries_id":124379,"server_id":18,"link":"photo_3836964.html","width":130,"caption":"Little Steady Eddie sold","height":128});
															thumbnails[3836967] = clik.newPhoto({"id":3836967,"src":"avenger_thumb.jpg","galleries_id":144051,"server_id":18,"link":"photo_3836967.html","width":130,"caption":"Avenger sold","height":128});
															thumbnails[3836970] = clik.newPhoto({"id":3836970,"src":"morrison350_thumb.jpg","galleries_id":144049,"server_id":18,"link":"photo_3836970.html","width":130,"caption":"Morrison 350 SOLD","height":128});
															thumbnails[3905370] = clik.newPhoto({"id":3905370,"src":"transcor2_thumb.jpg","galleries_id":144051,"server_id":18,"link":"photo_3905370.html","width":130,"caption":"Transcor 2 sold","height":128});
															thumbnails[3905374] = clik.newPhoto({"id":3905374,"src":"stela_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_3905374.html","width":130,"caption":"Stella sold","height":128});
															thumbnails[3905382] = clik.newPhoto({"id":3905382,"src":"clarostat_thumb.jpg","galleries_id":173176,"server_id":18,"link":"photo_3905382.html","width":130,"caption":"Clarostat sold","height":128});
															thumbnails[3905384] = clik.newPhoto({"id":3905384,"src":"dodge_brother_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_3905384.html","width":130,"caption":"Dodge brother SOLD","height":128});
															thumbnails[3905439] = clik.newPhoto({"id":3905439,"src":"sanyo_smith_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_3905439.html","width":130,"caption":"Sanyo Smith sold","height":128});
															thumbnails[4804844] = clik.newPhoto({"id":4804844,"src":"kozyaireweb_thumb.jpg","galleries_id":197324,"server_id":18,"link":"photo_4804844.html","width":130,"caption":"Kozyaire sold","height":128});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[299231] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"for sale","link":"gallery_299231.html","maxRecords":0.0,"photoIDs":[5817817.0,6448352.0,7177281.0,7704320.0,8230910.0,8230914.0,7704297.0,7704313.0,7704309.0,7704305.0,7704303.0,7704352.0,7704357.0,3435919.0,4804854.0,5821736.0,7182542.0,7182544.0,7182547.0,7182551.0],"skipIndex":0,"section_code":"gallery","featured_images":"8230914,8230910,7704357,7704352,7704320,7704313,7704309,7704305,7704303,7704297","id":299231,"singleSection":false});				  						galleries[124379] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ROBOTS 1","link":"gallery_124379.html","maxRecords":0.0,"photoIDs":[6463786.0,1848049.0,1848050.0,1848052.0,2092196.0,1848054.0,1891116.0,2052581.0,4804846.0,3435913.0,5350573.0,3836964.0],"skipIndex":0,"section_code":"gallery","featured_images":"6463786,5350573,4804846,3836964,3435913,2092196,2052581,1891116,1848054,1848052","id":124379,"singleSection":false});				  						galleries[128333] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ROBOTS 2","link":"gallery_128333.html","maxRecords":0.0,"photoIDs":[1913854.0,1931568.0,2052583.0,2092203.0,2209932.0,2209956.0,5367029.0,3836951.0,3836956.0],"skipIndex":0,"section_code":"gallery","featured_images":"5367029,3836956,3836951,2209956,2209932,2092203,2052583,1931568,1913854","id":128333,"singleSection":false});				  						galleries[144049] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ROBOTS 3","link":"gallery_144049.html","maxRecords":0.0,"photoIDs":[7177464.0,2228118.0,2228122.0,2435766.0,2435767.0,2435768.0,3905453.0,2609289.0,2609298.0,2706883.0,2706909.0,3836970.0],"skipIndex":0,"section_code":"gallery","featured_images":"7177464,3905453,3836970,2706909,2706883,2609298,2609289,2435768,2435767,2435766","id":144049,"singleSection":false});				  						galleries[144051] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ROBOTS 4","link":"gallery_144051.html","maxRecords":0.0,"photoIDs":[5723588.0,7182550.0,2760213.0,2760264.0,2885288.0,3233403.0,3242138.0,3242142.0,3836967.0,3905370.0],"skipIndex":0,"section_code":"gallery","featured_images":7182550.0,"id":144051,"singleSection":false});				  						galleries[173176] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ROBOTS 5","link":"gallery_173176.html","maxRecords":0.0,"photoIDs":[3242144.0,3435908.0,3435910.0,3435916.0,5350604.0,3435917.0,3566195.0,5367012.0,3566204.0,3905459.0,3566205.0,3905382.0],"skipIndex":0,"section_code":"gallery","featured_images":"5367012,5350604,3905459,3905382,3566205,3566204,3566195,3435917,3435916,3435910","id":173176,"singleSection":false});				  						galleries[197324] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ROBOTS 6","link":"gallery_197324.html","maxRecords":0.0,"photoIDs":[5723585.0,5723586.0,6448350.0,6463790.0,6463793.0,7177280.0,7704300.0,7704328.0,5353533.0,3905374.0,3905384.0,3905439.0,4804844.0],"skipIndex":0,"section_code":"gallery","featured_images":"7704328,7704300,7177280,6463793,6463790,6448350,5723586,5723585,5353533,4804844","id":197324,"singleSection":false});				  						galleries[125224] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"OTHER","link":"gallery_125224.html","maxRecords":0.0,"photoIDs":[7182545.0,7182549.0,1860665.0,3905375.0,3905465.0,1860718.0,4804852.0],"skipIndex":0,"section_code":"gallery","featured_images":"7182549,7182545,4804852,3905465,3905375,1860718,1860665","id":125224,"singleSection":false});				  						galleries[438690] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"dogs","link":"gallery_438690.html","maxRecords":0.0,"photoIDs":[3917653.0,3435926.0,2885294.0],"skipIndex":0,"section_code":"gallery","featured_images":"3917653,3435926,2885294","id":438690,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8230910,7182550,7177281,1817804,7704305';
imageSets[2] = '7182550';
imageSets[3] = '7182550';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/wendyandmart/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/wendyandmart/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 += '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:'',$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 = 'buggyrobot.com: ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> NZ$' + (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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="wendyandmart@gmail.com">';
					temp += '<input type="hidden" name="currency_code" value="NZD">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="wendyandmart@gmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

