window.thumbnails = {};
															thumbnails[5614742] = clik.newPhoto({"id":5614742,"src":"NZ_Mural1comp_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"NZ Mural Photo Block 25cm x 25cm","height":130});
															thumbnails[5614743] = clik.newPhoto({"id":5614743,"src":"Kariotahi_Panorama_Canvas_writing_comp_40FC0C17-1D09-001F-995337F5BCBA859A_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Kariotahi Canvas","height":61});
															thumbnails[5614744] = clik.newPhoto({"id":5614744,"src":"IMG_1193web_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Magnets, 5cm x 5cm, 9mm thick BUY ONE GET ONE FREE","height":128});
															thumbnails[5614745] = clik.newPhoto({"id":5614745,"src":"hook_40FFDD72-1D09-001F-990A58ECFC7670E2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Hook Keyring","height":223});
															thumbnails[5614746] = clik.newPhoto({"id":5614746,"src":"kiwi_41003DB3-1D09-001F-991916D4D12E6078_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Kiwi Keyring","height":130});
															thumbnails[5614748] = clik.newPhoto({"id":5614748,"src":"tiki_4100A75A-1D09-001F-9989EC6C121DE21D_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Tiki Keyring","height":239});
															thumbnails[5614749] = clik.newPhoto({"id":5614749,"src":"Gift_Card_5_pk_4102C875-1D09-001F-9901E86269F2F05D_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Gift Cards pk 5","height":61});
															thumbnails[6483807] = clik.newPhoto({"id":6483807,"src":"Flax_photo_web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6953444] = clik.newPhoto({"id":6953444,"src":"MB1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"MB1","height":214});
															thumbnails[6953451] = clik.newPhoto({"id":6953451,"src":"mb11_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"MB11","height":254});
															thumbnails[7132340] = clik.newPhoto({"id":7132340,"src":"R89_circle_thumb.gif","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8380552] = clik.newPhoto({"id":8380552,"src":"Business_Card_Nov_2010_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":75});
															thumbnails[8404839] = clik.newPhoto({"id":8404839,"src":"Diosa_Logo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Diosa","height":111});
															thumbnails[8404840] = clik.newPhoto({"id":8404840,"src":"Littlekiwis_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[8404841] = clik.newPhoto({"id":8404841,"src":"Dummy_Doofahs_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":160});
															thumbnails[8404842] = clik.newPhoto({"id":8404842,"src":"Fragile_Rage_voucher_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":72});
															thumbnails[8404843] = clik.newPhoto({"id":8404843,"src":"Little_Miss_Lacey_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[8404844] = clik.newPhoto({"id":8404844,"src":"Scamps_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":88});
															thumbnails[8404845] = clik.newPhoto({"id":8404845,"src":"Sweet_Designs_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[8404846] = clik.newPhoto({"id":8404846,"src":"wild_ones_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":137});
															thumbnails[8404848] = clik.newPhoto({"id":8404848,"src":"SAF_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":167});
															thumbnails[8404955] = clik.newPhoto({"id":8404955,"src":"ld_copy1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":118});
															thumbnails[8415173] = clik.newPhoto({"id":8415173,"src":"magical_masquerade_thumb.png","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":65});
															thumbnails[8415174] = clik.newPhoto({"id":8415174,"src":"Fragile_Rage_voucher1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":72});
															thumbnails[8415183] = clik.newPhoto({"id":8415183,"src":"Blossom_Room_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":113});
															thumbnails[8415184] = clik.newPhoto({"id":8415184,"src":"Miss_Trillys_Pretties_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":179});
															thumbnails[8415185] = clik.newPhoto({"id":8415185,"src":"NZ_Direct_Paua_map_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":219});
															thumbnails[8415541] = clik.newPhoto({"id":8415541,"src":"BM-_3D_Template_Badge_Clear_Cut_copy_thumb.gif","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":114});
															thumbnails[8424601] = clik.newPhoto({"id":8424601,"src":"flutterbubs_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":97});
															thumbnails[9063404] = clik.newPhoto({"id":9063404,"src":"website_front_pic_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":97});
															thumbnails[1904950] = clik.newPhoto({"id":1904950,"src":"TM_IMG_5913_thumb.JPG","galleries_id":126372,"server_id":1,"link":"photo_1904950.html","width":130,"caption":"Daisy","height":87});
															thumbnails[1961241] = clik.newPhoto({"id":1961241,"src":"TM_000215_thumb.jpg","galleries_id":126370,"server_id":1,"link":"photo_1961241.html","width":130,"caption":"Canadian Rockies","height":95});
															thumbnails[1961244] = clik.newPhoto({"id":1961244,"src":"TM_D1000007_thumb.jpg","galleries_id":126370,"server_id":1,"link":"photo_1961244.html","width":130,"caption":"Pretty Pool, Port Hedland","height":87});
															thumbnails[1961257] = clik.newPhoto({"id":1961257,"src":"TM_IMG_5441_thumb.jpg","galleries_id":126372,"server_id":1,"link":"photo_1961257.html","width":130,"caption":"Punga","height":195});
															thumbnails[1961259] = clik.newPhoto({"id":1961259,"src":"TM_IMG_5792_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_1961259.html","width":130,"caption":"Sea Shell - Pauanui","height":87});
															thumbnails[1961392] = clik.newPhoto({"id":1961392,"src":"IMG_6391_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_1961392.html","width":130,"caption":"Sunset Pauanui Estuary","height":87});
															thumbnails[2099021] = clik.newPhoto({"id":2099021,"src":"Beach 9 Block MountFW_thumb.JPG","galleries_id":304309,"server_id":1,"link":"photo_2099021.html","width":130,"caption":"Beach Theme Mural","height":129});
															thumbnails[2111357] = clik.newPhoto({"id":2111357,"src":"Kariotahi Beach Panorama Web_thumb.jpg","galleries_id":126370,"server_id":1,"link":"photo_2111357.html","width":130,"caption":"Panorama - Looking down at Kariotahi Beach from the Cliff top. ","height":58});
															thumbnails[2118137] = clik.newPhoto({"id":2118137,"src":"Kariotahi Beachweb_thumb.jpg","galleries_id":126370,"server_id":1,"link":"photo_2118137.html","width":130,"caption":"Footprints on the beach.","height":87});
															thumbnails[2323313] = clik.newPhoto({"id":2323313,"src":"Pohutakwa_thumb.JPG","galleries_id":126372,"server_id":1,"link":"photo_2323313.html","width":130,"caption":"Pohutakawa","height":87});
															thumbnails[2323317] = clik.newPhoto({"id":2323317,"src":"Redhotpoker_thumb.JPG","galleries_id":126372,"server_id":1,"link":"photo_2323317.html","width":130,"caption":"Red Hot Poker","height":87});
															thumbnails[2501029] = clik.newPhoto({"id":2501029,"src":"Manu Bay_Panorama1 comp_thumb.jpg","galleries_id":126370,"server_id":1,"link":"photo_2501029.html","width":130,"caption":"Manu Bay, Raglan","height":43});
															thumbnails[2501030] = clik.newPhoto({"id":2501030,"src":"IMG_8838bluefcomp_thumb.jpg","galleries_id":126370,"server_id":1,"link":"photo_2501030.html","width":130,"caption":"Blue Delight","height":87});
															thumbnails[2684303] = clik.newPhoto({"id":2684303,"src":"D1000147A_thumb.JPG","galleries_id":126372,"server_id":1,"link":"photo_2684303.html","width":130,"caption":"Paua Rainbow","height":130});
															thumbnails[2684311] = clik.newPhoto({"id":2684311,"src":"IMG_6532A_thumb.JPG","galleries_id":126372,"server_id":1,"link":"photo_2684311.html","width":130,"caption":"Hibiscus Droplets","height":130});
															thumbnails[2684540] = clik.newPhoto({"id":2684540,"src":"paua_thumb.jpg","galleries_id":126372,"server_id":1,"link":"photo_2684540.html","width":130,"caption":"Paua Rocks","height":86});
															thumbnails[2828453] = clik.newPhoto({"id":2828453,"src":"NZ Mural1comp_thumb.jpg","galleries_id":304309,"server_id":1,"link":"photo_2828453.html","width":130,"caption":"NZ Mural ","height":130});
															thumbnails[3040089] = clik.newPhoto({"id":3040089,"src":"Manu Bay Raglan_thumb.jpg","galleries_id":304309,"server_id":1,"link":"photo_3040089.html","width":130,"caption":"Manu Bay, Raglan, NZ  ","height":59});
															thumbnails[3040091] = clik.newPhoto({"id":3040091,"src":"Pauanui Coromandel_thumb.jpg","galleries_id":304309,"server_id":1,"link":"photo_3040091.html","width":130,"caption":"Pauanui Beach, Coromandel Peninsula","height":59});
															thumbnails[3267717] = clik.newPhoto({"id":3267717,"src":"whangapoac4 copy_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_3267717.html","width":130,"caption":"Whangapoua","height":87});
															thumbnails[3293123] = clik.newPhoto({"id":3293123,"src":"Lillies2_thumb.JPG","galleries_id":126372,"server_id":1,"link":"photo_3293123.html","width":130,"caption":"Lillies Cluster","height":86});
															thumbnails[3293158] = clik.newPhoto({"id":3293158,"src":"Whangapoua Mural1 copy_thumb.jpg","galleries_id":304309,"server_id":1,"link":"photo_3293158.html","width":130,"caption":"Whangapoua Mural ","height":59});
															thumbnails[3293159] = clik.newPhoto({"id":3293159,"src":"Whangapoua Mural2 copy1_thumb.jpg","galleries_id":304309,"server_id":1,"link":"photo_3293159.html","width":130,"caption":"Whangapoua, Coromandel","height":59});
															thumbnails[3293160] = clik.newPhoto({"id":3293160,"src":"Christchurch_thumb.jpg","galleries_id":304309,"server_id":1,"link":"photo_3293160.html","width":130,"caption":"Christchurch, NZ  ","height":59});
															thumbnails[3420674] = clik.newPhoto({"id":3420674,"src":"grass beach vieww_thumb.JPG","galleries_id":126370,"server_id":1,"link":"photo_3420674.html","width":130,"caption":"Papamoa Sunrise","height":87});
															thumbnails[3727806] = clik.newPhoto({"id":3727806,"src":"FJnight1_thumb.jpg","galleries_id":126370,"server_id":1,"link":"photo_3727806.html","width":130,"caption":"Torches Fiji","height":195});
															thumbnails[3727816] = clik.newPhoto({"id":3727816,"src":"FJnight2_thumb.jpg","galleries_id":126370,"server_id":1,"link":"photo_3727816.html","width":130,"caption":"Sunset, Fiji Islands","height":87});
															thumbnails[3727896] = clik.newPhoto({"id":3727896,"src":"FJnight3_thumb.jpg","galleries_id":126370,"server_id":1,"link":"photo_3727896.html","width":130,"caption":"Palm Trees, Fiji","height":195});
															thumbnails[3727926] = clik.newPhoto({"id":3727926,"src":"Frang1_thumb.jpg","galleries_id":126372,"server_id":1,"link":"photo_3727926.html","width":130,"caption":"Frangipani Hamock","height":87});
															thumbnails[3727928] = clik.newPhoto({"id":3727928,"src":"Frang2_thumb.jpg","galleries_id":126372,"server_id":1,"link":"photo_3727928.html","width":130,"caption":"Frangipani Sand","height":87});
															thumbnails[3727933] = clik.newPhoto({"id":3727933,"src":"Frang3_thumb.jpg","galleries_id":126372,"server_id":1,"link":"photo_3727933.html","width":130,"caption":"Frangipani lounger","height":87});
															thumbnails[3727938] = clik.newPhoto({"id":3727938,"src":"Coconut_thumb.jpg","galleries_id":126372,"server_id":1,"link":"photo_3727938.html","width":130,"caption":"Coconut","height":87});
															thumbnails[5116074] = clik.newPhoto({"id":5116074,"src":"Kariotahi_Panorama_Canvas_writing_comp_thumb.jpg","galleries_id":304313,"server_id":1,"link":"photo_5116074.html","width":130,"caption":"Kariotahi Panorama Canvas 32\" x 12\"  ","height":61});
															thumbnails[5116076] = clik.newPhoto({"id":5116076,"src":"Magnet_6_selection_gift_basket_comp_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5116076.html","width":130,"caption":"6 Magnet Selection Pack ","height":124});
															thumbnails[5396012] = clik.newPhoto({"id":5396012,"src":"1_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396012.html","width":130,"caption":"MAG1","height":131});
															thumbnails[5396100] = clik.newPhoto({"id":5396100,"src":"2_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396100.html","width":130,"caption":"MAG2","height":133});
															thumbnails[5396104] = clik.newPhoto({"id":5396104,"src":"3_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396104.html","width":130,"caption":"MAG3","height":131});
															thumbnails[5396105] = clik.newPhoto({"id":5396105,"src":"4_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396105.html","width":130,"caption":"MAG4","height":130});
															thumbnails[5396109] = clik.newPhoto({"id":5396109,"src":"5_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396109.html","width":130,"caption":"MAG5","height":131});
															thumbnails[5396112] = clik.newPhoto({"id":5396112,"src":"6_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396112.html","width":130,"caption":"MAG6","height":131});
															thumbnails[5396115] = clik.newPhoto({"id":5396115,"src":"7_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396115.html","width":130,"caption":"MAG7","height":132});
															thumbnails[5396117] = clik.newPhoto({"id":5396117,"src":"8_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396117.html","width":130,"caption":"MAG8","height":132});
															thumbnails[5396120] = clik.newPhoto({"id":5396120,"src":"9_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396120.html","width":130,"caption":"MAG9","height":133});
															thumbnails[5396125] = clik.newPhoto({"id":5396125,"src":"11_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396125.html","width":130,"caption":"MAG11","height":138});
															thumbnails[5396130] = clik.newPhoto({"id":5396130,"src":"12_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396130.html","width":130,"caption":"MAG12","height":130});
															thumbnails[5396133] = clik.newPhoto({"id":5396133,"src":"13_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396133.html","width":130,"caption":"MAG13","height":130});
															thumbnails[5396135] = clik.newPhoto({"id":5396135,"src":"14_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396135.html","width":130,"caption":"MAG14","height":130});
															thumbnails[5396138] = clik.newPhoto({"id":5396138,"src":"15_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396138.html","width":130,"caption":"MAG15","height":130});
															thumbnails[5396143] = clik.newPhoto({"id":5396143,"src":"16_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396143.html","width":130,"caption":"MAG16","height":130});
															thumbnails[5396145] = clik.newPhoto({"id":5396145,"src":"17_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396145.html","width":130,"caption":"MAG17","height":130});
															thumbnails[5396147] = clik.newPhoto({"id":5396147,"src":"18_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396147.html","width":130,"caption":"MAG18","height":130});
															thumbnails[5396148] = clik.newPhoto({"id":5396148,"src":"19_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396148.html","width":130,"caption":"MAG19","height":130});
															thumbnails[5396149] = clik.newPhoto({"id":5396149,"src":"20_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396149.html","width":130,"caption":"MAG20","height":130});
															thumbnails[5396150] = clik.newPhoto({"id":5396150,"src":"21_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396150.html","width":130,"caption":"MAG21","height":130});
															thumbnails[5396152] = clik.newPhoto({"id":5396152,"src":"22_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396152.html","width":130,"caption":"MAG22","height":130});
															thumbnails[5396153] = clik.newPhoto({"id":5396153,"src":"23_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396153.html","width":130,"caption":"MAG23","height":130});
															thumbnails[5396154] = clik.newPhoto({"id":5396154,"src":"24_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396154.html","width":130,"caption":"MAG24","height":195});
															thumbnails[5396156] = clik.newPhoto({"id":5396156,"src":"25_thumb.jpg","galleries_id":304310,"server_id":1,"link":"photo_5396156.html","width":130,"caption":"MAG25","height":195});
															thumbnails[5396164] = clik.newPhoto({"id":5396164,"src":"hook_thumb.jpg","galleries_id":304573,"server_id":1,"link":"photo_5396164.html","width":130,"caption":"Maori Hook Keyring","height":223});
															thumbnails[5396165] = clik.newPhoto({"id":5396165,"src":"kiwi_thumb.jpg","galleries_id":304573,"server_id":1,"link":"photo_5396165.html","width":130,"caption":"Kiwi Keyring","height":130});
															thumbnails[5396166] = clik.newPhoto({"id":5396166,"src":"tiki_thumb.jpg","galleries_id":304573,"server_id":1,"link":"photo_5396166.html","width":130,"caption":"Tiki Keyring","height":239});
															thumbnails[5396254] = clik.newPhoto({"id":5396254,"src":"Voucher_thumb.jpg","galleries_id":304313,"server_id":1,"link":"photo_5396254.html","width":130,"caption":"Vouchers","height":65});
															thumbnails[5396307] = clik.newPhoto({"id":5396307,"src":"GC5_BB_thumb.jpg","galleries_id":273578,"server_id":1,"link":"photo_5396307.html","width":130,"caption":"Baby Boy - Congratulations","height":62});
															thumbnails[5396308] = clik.newPhoto({"id":5396308,"src":"GC6_BG_thumb.jpg","galleries_id":273578,"server_id":1,"link":"photo_5396308.html","width":130,"caption":"Baby Girl - Congratulations","height":62});
															thumbnails[5578603] = clik.newPhoto({"id":5578603,"src":"Hahei1_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5578603.html","width":130,"caption":"Hahei","height":200});
															thumbnails[5578656] = clik.newPhoto({"id":5578656,"src":"Hahei2_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5578656.html","width":130,"caption":"Hahei","height":87});
															thumbnails[5578660] = clik.newPhoto({"id":5578660,"src":"Cathedral_Cove1_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5578660.html","width":130,"caption":"Cathedral Cove","height":195});
															thumbnails[5578765] = clik.newPhoto({"id":5578765,"src":"Matarangi1_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5578765.html","width":130,"caption":"Matarangi","height":45});
															thumbnails[5579131] = clik.newPhoto({"id":5579131,"src":"M002_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5579131.html","width":130,"caption":"Matarangi","height":79});
															thumbnails[5579133] = clik.newPhoto({"id":5579133,"src":"mat1_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5579133.html","width":130,"caption":"Matarangi","height":195});
															thumbnails[5579160] = clik.newPhoto({"id":5579160,"src":"Matarangi3_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5579160.html","width":130,"caption":"Matarangi","height":87});
															thumbnails[5579166] = clik.newPhoto({"id":5579166,"src":"Matarangi2_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5579166.html","width":130,"caption":"Matarangi","height":195});
															thumbnails[5579248] = clik.newPhoto({"id":5579248,"src":"CC3_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5579248.html","width":130,"caption":"Cathedral Cove","height":87});
															thumbnails[5579261] = clik.newPhoto({"id":5579261,"src":"CC1_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5579261.html","width":130,"caption":"Motueka Island","height":67});
															thumbnails[5579270] = clik.newPhoto({"id":5579270,"src":"CC4_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5579270.html","width":130,"caption":"Cabbage Tree, Cathedral Cove","height":195});
															thumbnails[5579400] = clik.newPhoto({"id":5579400,"src":"Hotwater1_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5579400.html","width":130,"caption":"Hotwater Beach","height":58});
															thumbnails[5579401] = clik.newPhoto({"id":5579401,"src":"Hotwater2_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5579401.html","width":130,"caption":"Hotwater Beach","height":87});
															thumbnails[5579404] = clik.newPhoto({"id":5579404,"src":"Hotwater3_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5579404.html","width":130,"caption":"Hotwater Beach","height":87});
															thumbnails[5579423] = clik.newPhoto({"id":5579423,"src":"Matarangi_Panorama2_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5579423.html","width":130,"caption":"Matarangi Panorama","height":29});
															thumbnails[5579506] = clik.newPhoto({"id":5579506,"src":"TC001_thumb.jpg","galleries_id":316379,"server_id":1,"link":"photo_5579506.html","width":130,"caption":"Coromandel","height":87});
															thumbnails[5804696] = clik.newPhoto({"id":5804696,"src":"whitianga_web12_thumb.JPG","galleries_id":316379,"server_id":1,"link":"photo_5804696.html","width":130,"caption":"Whitianga","height":87});
															thumbnails[5804697] = clik.newPhoto({"id":5804697,"src":"whitianga_web11_thumb.JPG","galleries_id":316379,"server_id":1,"link":"photo_5804697.html","width":130,"caption":"Whitianga","height":87});
															thumbnails[5804698] = clik.newPhoto({"id":5804698,"src":"whitianga_web21_thumb.JPG","galleries_id":316379,"server_id":1,"link":"photo_5804698.html","width":130,"caption":"Whitianga","height":87});
															thumbnails[5804699] = clik.newPhoto({"id":5804699,"src":"whitianga_web31_thumb.JPG","galleries_id":316379,"server_id":1,"link":"photo_5804699.html","width":130,"caption":"Whitianga","height":86});
															thumbnails[5804701] = clik.newPhoto({"id":5804701,"src":"Tairua_web_thumb.JPG","galleries_id":316379,"server_id":1,"link":"photo_5804701.html","width":130,"caption":"Tairua","height":87});
															thumbnails[5804702] = clik.newPhoto({"id":5804702,"src":"Tairua_web1_thumb.JPG","galleries_id":316379,"server_id":1,"link":"photo_5804702.html","width":130,"caption":"Tairua","height":87});
															thumbnails[6499368] = clik.newPhoto({"id":6499368,"src":"9_block_mural_sepia_thumb.jpg","galleries_id":357814,"server_id":1,"link":"photo_6499368.html","width":130,"caption":"9 block mural","height":130});
															thumbnails[6499369] = clik.newPhoto({"id":6499369,"src":"eli27bw_thumb.jpg","galleries_id":357814,"server_id":1,"link":"photo_6499369.html","width":130,"caption":"","height":195});
															thumbnails[6499370] = clik.newPhoto({"id":6499370,"src":"eli_bucket1_thumb.jpg","galleries_id":357814,"server_id":1,"link":"photo_6499370.html","width":130,"caption":"","height":267});
															thumbnails[6499371] = clik.newPhoto({"id":6499371,"src":"elikirseriesbw_thumb.jpg","galleries_id":357814,"server_id":1,"link":"photo_6499371.html","width":130,"caption":"","height":34});
															thumbnails[6499373] = clik.newPhoto({"id":6499373,"src":"Em_flower_foot_thumb.jpg","galleries_id":357814,"server_id":1,"link":"photo_6499373.html","width":130,"caption":"","height":87});
															thumbnails[6499374] = clik.newPhoto({"id":6499374,"src":"Emma_thumb.jpg","galleries_id":357814,"server_id":1,"link":"photo_6499374.html","width":130,"caption":"","height":87});
															thumbnails[6499375] = clik.newPhoto({"id":6499375,"src":"H30BW_thumb.jpg","galleries_id":357814,"server_id":1,"link":"photo_6499375.html","width":130,"caption":"","height":87});
															thumbnails[6499378] = clik.newPhoto({"id":6499378,"src":"L3BW_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_6499378.html","width":130,"caption":"","height":87});
															thumbnails[6499379] = clik.newPhoto({"id":6499379,"src":"L11BB_BW_daisy_reflection_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_6499379.html","width":130,"caption":"","height":87});
															thumbnails[6677463] = clik.newPhoto({"id":6677463,"src":"E2_bw1_thumb.jpg","galleries_id":364885,"server_id":1,"link":"photo_6677463.html","width":130,"caption":"","height":87});
															thumbnails[6677464] = clik.newPhoto({"id":6677464,"src":"E55_bw1_thumb.jpg","galleries_id":364885,"server_id":1,"link":"photo_6677464.html","width":130,"caption":"","height":87});
															thumbnails[6677472] = clik.newPhoto({"id":6677472,"src":"E1_bw_comp1_thumb.jpg","galleries_id":364885,"server_id":1,"link":"photo_6677472.html","width":130,"caption":"","height":87});
															thumbnails[6677473] = clik.newPhoto({"id":6677473,"src":"E8_bw_thumb.jpg","galleries_id":364885,"server_id":1,"link":"photo_6677473.html","width":130,"caption":"","height":87});
															thumbnails[6958908] = clik.newPhoto({"id":6958908,"src":"M35_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_6958908.html","width":130,"caption":"","height":86});
															thumbnails[6958919] = clik.newPhoto({"id":6958919,"src":"M21_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_6958919.html","width":130,"caption":"Belly Art By Anna Molineux","height":87});
															thumbnails[6958921] = clik.newPhoto({"id":6958921,"src":"M18_bw1_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_6958921.html","width":130,"caption":"","height":195});
															thumbnails[6958925] = clik.newPhoto({"id":6958925,"src":"M46_bw_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_6958925.html","width":130,"caption":"","height":195});
															thumbnails[6958926] = clik.newPhoto({"id":6958926,"src":"M25bw_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_6958926.html","width":130,"caption":"","height":87});
															thumbnails[6999116] = clik.newPhoto({"id":6999116,"src":"R2_bw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_6999116.html","width":130,"caption":"","height":88});
															thumbnails[6999117] = clik.newPhoto({"id":6999117,"src":"R4_bw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_6999117.html","width":130,"caption":"","height":87});
															thumbnails[6999307] = clik.newPhoto({"id":6999307,"src":"R9_bw_red_hat_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_6999307.html","width":130,"caption":"","height":87});
															thumbnails[7110869] = clik.newPhoto({"id":7110869,"src":"R56_bw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7110869.html","width":130,"caption":"","height":87});
															thumbnails[7110870] = clik.newPhoto({"id":7110870,"src":"R41_bw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7110870.html","width":130,"caption":"","height":87});
															thumbnails[7110872] = clik.newPhoto({"id":7110872,"src":"R89_bw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7110872.html","width":130,"caption":"","height":87});
															thumbnails[7216937] = clik.newPhoto({"id":7216937,"src":"WG1bw_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_7216937.html","width":130,"caption":"","height":195});
															thumbnails[7216938] = clik.newPhoto({"id":7216938,"src":"WG11cbw_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_7216938.html","width":130,"caption":"","height":87});
															thumbnails[7216940] = clik.newPhoto({"id":7216940,"src":"WG27_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_7216940.html","width":130,"caption":"","height":195});
															thumbnails[7216942] = clik.newPhoto({"id":7216942,"src":"WG32_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_7216942.html","width":130,"caption":"","height":86});
															thumbnails[7216944] = clik.newPhoto({"id":7216944,"src":"WG55_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_7216944.html","width":130,"caption":"","height":87});
															thumbnails[7216946] = clik.newPhoto({"id":7216946,"src":"G16cbw_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_7216946.html","width":130,"caption":"","height":87});
															thumbnails[7305981] = clik.newPhoto({"id":7305981,"src":"WIMG_4708bw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7305981.html","width":130,"caption":"","height":87});
															thumbnails[7305983] = clik.newPhoto({"id":7305983,"src":"WIMG_4724bw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7305983.html","width":130,"caption":"","height":87});
															thumbnails[7305989] = clik.newPhoto({"id":7305989,"src":"WIMG_4864bw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7305989.html","width":130,"caption":"","height":91});
															thumbnails[7305994] = clik.newPhoto({"id":7305994,"src":"WIMG_4786bw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7305994.html","width":130,"caption":"","height":87});
															thumbnails[7305996] = clik.newPhoto({"id":7305996,"src":"WIMG_4790bw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7305996.html","width":130,"caption":"","height":195});
															thumbnails[7306021] = clik.newPhoto({"id":7306021,"src":"WIMG_4759bw1_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7306021.html","width":130,"caption":"","height":195});
															thumbnails[7306023] = clik.newPhoto({"id":7306023,"src":"WIMG_4753bw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7306023.html","width":130,"caption":"","height":195});
															thumbnails[7306024] = clik.newPhoto({"id":7306024,"src":"WIMG_4945bw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7306024.html","width":130,"caption":"","height":195});
															thumbnails[7419380] = clik.newPhoto({"id":7419380,"src":"wGIMG_5746w_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7419380.html","width":130,"caption":"","height":87});
															thumbnails[7419381] = clik.newPhoto({"id":7419381,"src":"wGIMG_5824bww_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7419381.html","width":130,"caption":"","height":87});
															thumbnails[7419382] = clik.newPhoto({"id":7419382,"src":"wGIMG_5807cbww_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7419382.html","width":130,"caption":"","height":86});
															thumbnails[7419383] = clik.newPhoto({"id":7419383,"src":"wGIMG_5897bww_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7419383.html","width":130,"caption":"","height":87});
															thumbnails[7419384] = clik.newPhoto({"id":7419384,"src":"wGIMG_6003wbw_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_7419384.html","width":130,"caption":"","height":86});
															thumbnails[8380672] = clik.newPhoto({"id":8380672,"src":"Krystal_Cake_Smash1w1_thumb.jpg","galleries_id":444578,"server_id":1,"link":"photo_8380672.html","width":130,"caption":"","height":130});
															thumbnails[8380673] = clik.newPhoto({"id":8380673,"src":"9316w_thumb.jpg","galleries_id":444578,"server_id":1,"link":"photo_8380673.html","width":130,"caption":"","height":86});
															thumbnails[8380675] = clik.newPhoto({"id":8380675,"src":"9378w_thumb.jpg","galleries_id":444578,"server_id":1,"link":"photo_8380675.html","width":130,"caption":"","height":87});
															thumbnails[8380678] = clik.newPhoto({"id":8380678,"src":"Jayden_Cake_Smashw_thumb.jpg","galleries_id":444578,"server_id":1,"link":"photo_8380678.html","width":130,"caption":"","height":130});
															thumbnails[8380679] = clik.newPhoto({"id":8380679,"src":"0977w_thumb.jpg","galleries_id":444578,"server_id":1,"link":"photo_8380679.html","width":130,"caption":"","height":87});
															thumbnails[8380681] = clik.newPhoto({"id":8380681,"src":"1101w_thumb.jpg","galleries_id":444578,"server_id":1,"link":"photo_8380681.html","width":130,"caption":"","height":87});
															thumbnails[8380682] = clik.newPhoto({"id":8380682,"src":"1221w_thumb.jpg","galleries_id":444578,"server_id":1,"link":"photo_8380682.html","width":130,"caption":"","height":195});
															thumbnails[8380683] = clik.newPhoto({"id":8380683,"src":"0604w_thumb.jpg","galleries_id":357814,"server_id":1,"link":"photo_8380683.html","width":130,"caption":"","height":195});
															thumbnails[8380684] = clik.newPhoto({"id":8380684,"src":"0530w_thumb.jpg","galleries_id":357814,"server_id":1,"link":"photo_8380684.html","width":130,"caption":"","height":87});
															thumbnails[8380685] = clik.newPhoto({"id":8380685,"src":"0436w_thumb.jpg","galleries_id":357814,"server_id":1,"link":"photo_8380685.html","width":130,"caption":"","height":87});
															thumbnails[8380687] = clik.newPhoto({"id":8380687,"src":"8008w_thumb.jpg","galleries_id":364885,"server_id":1,"link":"photo_8380687.html","width":130,"caption":"","height":87});
															thumbnails[8380688] = clik.newPhoto({"id":8380688,"src":"8125w_thumb.jpg","galleries_id":364885,"server_id":1,"link":"photo_8380688.html","width":130,"caption":"","height":87});
															thumbnails[8380755] = clik.newPhoto({"id":8380755,"src":"0068w_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_8380755.html","width":130,"caption":"","height":86});
															thumbnails[8380757] = clik.newPhoto({"id":8380757,"src":"0195w_thumb.jpg","galleries_id":377189,"server_id":1,"link":"photo_8380757.html","width":130,"caption":"","height":86});
															thumbnails[8380759] = clik.newPhoto({"id":8380759,"src":"7411w_thumb.jpg","galleries_id":364885,"server_id":1,"link":"photo_8380759.html","width":130,"caption":"","height":87});
															thumbnails[8380760] = clik.newPhoto({"id":8380760,"src":"7527w_thumb.jpg","galleries_id":364885,"server_id":1,"link":"photo_8380760.html","width":130,"caption":"","height":192});
															thumbnails[8380762] = clik.newPhoto({"id":8380762,"src":"0814w_thumb.jpg","galleries_id":364885,"server_id":1,"link":"photo_8380762.html","width":130,"caption":"","height":195});
															thumbnails[8380764] = clik.newPhoto({"id":8380764,"src":"0657w_thumb.jpg","galleries_id":357814,"server_id":1,"link":"photo_8380764.html","width":130,"caption":"","height":87});
															thumbnails[8380765] = clik.newPhoto({"id":8380765,"src":"0921w_thumb.jpg","galleries_id":357814,"server_id":1,"link":"photo_8380765.html","width":130,"caption":"","height":84});
															thumbnails[8380767] = clik.newPhoto({"id":8380767,"src":"web9038bwcc_19E36CBF-24E8-5EC4-4F7D145FFA334F18_thumb.jpg","galleries_id":444581,"server_id":1,"link":"photo_8380767.html","width":130,"caption":"","height":86});
															thumbnails[8380768] = clik.newPhoto({"id":8380768,"src":"8920w_thumb.jpg","galleries_id":444581,"server_id":1,"link":"photo_8380768.html","width":130,"caption":"","height":87});
															thumbnails[8380770] = clik.newPhoto({"id":8380770,"src":"1591w_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_8380770.html","width":130,"caption":"","height":195});
															thumbnails[8380771] = clik.newPhoto({"id":8380771,"src":"1617w_thumb.jpg","galleries_id":357815,"server_id":1,"link":"photo_8380771.html","width":130,"caption":"","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[444578] = clik.newGallery({"parentGallery":304579,"usePopups":true,"title":"Cake Smash","link":"gallery_444578.html","maxRecords":0.0,"photoIDs":[8380672.0,8380673.0,8380675.0,8380678.0,8380679.0,8380681.0,8380682.0],"skipIndex":0,"section_code":"gallery","featured_images":"8380682,8380681,8380679,8380678,8380675,8380673,8380672","id":444578,"singleSection":false});				  						galleries[444581] = clik.newGallery({"parentGallery":304579,"usePopups":true,"title":"Family Portraits","link":"gallery_444581.html","maxRecords":0.0,"photoIDs":[8380767.0,8380768.0],"skipIndex":0,"section_code":"gallery","featured_images":"8380768,8380767","id":444581,"singleSection":false});				  						galleries[138377] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"FOR SALE ","link":"gallery_138377.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"3040091,2099021","id":138377,"singleSection":false});				  						galleries[273578] = clik.newGallery({"parentGallery":138377,"usePopups":true,"title":"Gift Cards","link":"gallery_273578.html","maxRecords":0.0,"photoIDs":[5396307.0,5396308.0],"skipIndex":0,"section_code":"gallery","featured_images":"5396308,5396307","id":273578,"singleSection":false});				  						galleries[304573] = clik.newGallery({"parentGallery":138377,"usePopups":true,"title":"Key rings","link":"gallery_304573.html","maxRecords":0.0,"photoIDs":[5396164.0,5396165.0,5396166.0],"skipIndex":0,"section_code":"gallery","featured_images":"5396166,5396165,5396164","id":304573,"singleSection":false});				  						galleries[304310] = clik.newGallery({"parentGallery":138377,"usePopups":true,"title":"Magnets","link":"gallery_304310.html","maxRecords":0.0,"photoIDs":[5116076.0,5396012.0,5396100.0,5396104.0,5396105.0,5396109.0,5396112.0,5396115.0,5396117.0,5396120.0,5396125.0,5396130.0,5396133.0,5396135.0,5396138.0,5396143.0,5396145.0,5396147.0,5396148.0,5396149.0,5396150.0,5396152.0,5396153.0,5396154.0,5396156.0],"skipIndex":0,"section_code":"gallery","featured_images":"5396156,5396154,5396153,5396152,5396150,5396149,5396148,5396147,5396145,5396143","id":304310,"singleSection":false});				  						galleries[304313] = clik.newGallery({"parentGallery":138377,"usePopups":true,"title":"Misc","link":"gallery_304313.html","maxRecords":0.0,"photoIDs":[5116074.0,5396254.0],"skipIndex":0,"section_code":"gallery","featured_images":"5396254,5116074","id":304313,"singleSection":false});				  						galleries[304309] = clik.newGallery({"parentGallery":138377,"usePopups":true,"title":"Photo Blocks","link":"gallery_304309.html","maxRecords":0.0,"photoIDs":[2099021.0,2828453.0,3040089.0,3040091.0,3293158.0,3293159.0,3293160.0],"skipIndex":0,"section_code":"gallery","featured_images":"3040091,2099021","id":304309,"singleSection":false});				  						galleries[304579] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Portfolio","link":"gallery_304579.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7305994,7216938,6677472,6499375,5579248,3293123","id":304579,"singleSection":false});				  						galleries[377189] = clik.newGallery({"parentGallery":304579,"usePopups":true,"title":"Pregnancy Portraits","link":"gallery_377189.html","maxRecords":0.0,"photoIDs":[6958908.0,6958919.0,6958921.0,6958925.0,6958926.0,7216937.0,7216938.0,7216940.0,7216942.0,7216944.0,7216946.0,8380755.0,8380757.0],"skipIndex":0,"section_code":"gallery","featured_images":7216938.0,"id":377189,"singleSection":false});				  						galleries[364885] = clik.newGallery({"parentGallery":304579,"usePopups":true,"title":"Toddler Portraits","link":"gallery_364885.html","maxRecords":0.0,"photoIDs":[6677463.0,6677464.0,6677472.0,6677473.0,8380687.0,8380688.0,8380759.0,8380760.0,8380762.0],"skipIndex":0,"section_code":"gallery","featured_images":6677472.0,"id":364885,"singleSection":false});				  						galleries[357815] = clik.newGallery({"parentGallery":304579,"usePopups":true,"title":"Newborn Portraits","link":"gallery_357815.html","maxRecords":0.0,"photoIDs":[6499378.0,6499379.0,6999116.0,6999117.0,6999307.0,7110869.0,7110870.0,7110872.0,7305981.0,7305983.0,7305989.0,7305994.0,7305996.0,7306021.0,7306023.0,7306024.0,7419380.0,7419381.0,7419382.0,7419383.0,7419384.0,8380770.0,8380771.0],"skipIndex":0,"section_code":"gallery","featured_images":7305994.0,"id":357815,"singleSection":false});				  						galleries[357814] = clik.newGallery({"parentGallery":304579,"usePopups":true,"title":"Baby Portraits","link":"gallery_357814.html","maxRecords":0.0,"photoIDs":[6499368.0,6499369.0,6499370.0,6499371.0,6499373.0,6499374.0,6499375.0,8380683.0,8380684.0,8380685.0,8380764.0,8380765.0],"skipIndex":0,"section_code":"gallery","featured_images":6499375.0,"id":357814,"singleSection":false});				  						galleries[316379] = clik.newGallery({"parentGallery":304579,"usePopups":true,"title":"Coromandel","link":"gallery_316379.html","maxRecords":0.0,"photoIDs":[1961259.0,1961392.0,3267717.0,5578603.0,5578656.0,5578660.0,5578765.0,5579131.0,5579133.0,5579160.0,5579166.0,5579248.0,5579261.0,5579270.0,5579400.0,5579401.0,5579404.0,5579423.0,5579506.0,5804696.0,5804697.0,5804698.0,5804699.0,5804701.0,5804702.0],"skipIndex":0,"section_code":"gallery","featured_images":5579248.0,"id":316379,"singleSection":false});				  						galleries[126372] = clik.newGallery({"parentGallery":304579,"usePopups":true,"title":"Nature","link":"gallery_126372.html","maxRecords":0.0,"photoIDs":[1904950.0,1961257.0,2323313.0,2323317.0,2684303.0,2684311.0,2684540.0,3293123.0,3727926.0,3727928.0,3727933.0,3727938.0],"skipIndex":0,"section_code":"gallery","featured_images":3293123.0,"id":126372,"singleSection":false});				  						galleries[126370] = clik.newGallery({"parentGallery":304579,"usePopups":true,"title":"Landscapes","link":"gallery_126370.html","maxRecords":0.0,"photoIDs":[1961241.0,1961244.0,2111357.0,2118137.0,2501029.0,2501030.0,3420674.0,3727806.0,3727816.0,3727896.0],"skipIndex":0,"section_code":"gallery","featured_images":"3727896,3727816,3727806,3420674,2501030,2501029,2118137,2111357,1961244,1961241","id":126370,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9063404';
imageSets[2] = '7305994,7216938,6677472,6499375,5579248,3293123,3040091,2099021';
imageSets[3] = '5396166,5396165';
imageSets[244629] = '8404848';
imageSets[244627] = '8404955';
imageSets[244641] = '8415541';
imageSets[244698] = '8415184';
imageSets[244699] = '8415183';
imageSets[244628] = '8404839';
imageSets[244727] = '8424601';
imageSets[244631] = '8404840';
imageSets[244632] = '8404846';
imageSets[244633] = '8404841';
imageSets[244634] = '8404843';
imageSets[244635] = '8404845';
imageSets[244636] = '8404844';
imageSets[244637] = '8415174,8404842';
imageSets[244639] = '8415173';
imageSets[244700] = '8415185';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lightdrawing/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lightdrawing/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 = 'Light Drawing - Art & Design by Tarsha Mehrtens: ' + 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>Order this:</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.payment_groups_id !== '') {
		temp += '<p>Buy this online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="LIGHTDRAWING">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							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 += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

