window.thumbnails = new Object();
												thumbnails[2657554] = new thumbnail(2657554,'166068','','_MG_4316C2LO_thumb.jpg',130, 87,32,'photo_2657554.html');
												thumbnails[2657566] = new thumbnail(2657566,'199823','','_MG_9337_thumb.jpg',130, 87,32,'photo_2657566.html');
												thumbnails[2657570] = new thumbnail(2657570,'166068','','IMG_1231LO_thumb.jpg',130, 178,32,'photo_2657570.html');
												thumbnails[2657572] = new thumbnail(2657572,'168272','','IMG_6406LO_thumb.jpg',130, 199,32,'photo_2657572.html');
												thumbnails[2657576] = new thumbnail(2657576,'168269','','102_0251BLO_thumb.jpg',130, 195,32,'photo_2657576.html');
												thumbnails[2657592] = new thumbnail(2657592,'199829','','111_1116C_thumb.jpg',130, 195,32,'photo_2657592.html');
												thumbnails[2657596] = new thumbnail(2657596,'199829','','128_2839BLO_thumb.jpg',130, 84,32,'photo_2657596.html');
												thumbnails[2657601] = new thumbnail(2657601,'168269','','138_3841BLO_thumb.jpg',130, 87,32,'photo_2657601.html');
												thumbnails[2657603] = new thumbnail(2657603,'168269','','139_3918B_thumb.jpg',130, 87,32,'photo_2657603.html');
												thumbnails[2657606] = new thumbnail(2657606,'199829','','895_9580BLO_thumb.jpg',130, 87,32,'photo_2657606.html');
												thumbnails[2657608] = new thumbnail(2657608,'168269','','896_9632BLO_thumb.jpg',130, 87,32,'photo_2657608.html');
												thumbnails[2657611] = new thumbnail(2657611,'168269','','_MG_4790BLO_thumb.jpg',130, 87,32,'photo_2657611.html');
												thumbnails[2657616] = new thumbnail(2657616,'168269','','IMG_7822Lo_thumb.jpg',130, 87,32,'photo_2657616.html');
												thumbnails[2657624] = new thumbnail(2657624,'168265','','IMG_0100-1_thumb.jpg',130, 87,32,'photo_2657624.html');
												thumbnails[2657637] = new thumbnail(2657637,'168268','','Silent_scream_thumb.jpg',130, 87,32,'photo_2657637.html');
												thumbnails[2657642] = new thumbnail(2657642,'166069','','122_2231BLO_thumb.jpg',130, 87,32,'photo_2657642.html');
												thumbnails[2657643] = new thumbnail(2657643,'166069','','122_2257BLO_thumb.jpg',130, 87,32,'photo_2657643.html');
												thumbnails[2657644] = new thumbnail(2657644,'166069','','122_2266BLO_thumb.jpg',130, 89,32,'photo_2657644.html');
												thumbnails[2657645] = new thumbnail(2657645,'166069','','122_2275BLO_thumb.jpg',130, 195,32,'photo_2657645.html');
												thumbnails[2657652] = new thumbnail(2657652,'166069','','123_2315B_thumb.jpg',130, 87,32,'photo_2657652.html');
												thumbnails[2657656] = new thumbnail(2657656,'166069','','123_2364C_thumb.jpg',130, 76,32,'photo_2657656.html');
												thumbnails[2657660] = new thumbnail(2657660,'166069','','123_2381BLO_thumb.jpg',130, 195,32,'photo_2657660.html');
												thumbnails[2657666] = new thumbnail(2657666,'166069','','124_2446BLO_thumb.jpg',130, 87,32,'photo_2657666.html');
												thumbnails[2657672] = new thumbnail(2657672,'166069','','_MG_4225BLO_thumb.jpg',130, 195,32,'photo_2657672.html');
												thumbnails[2657683] = new thumbnail(2657683,'166069','','_MG_4469C2LO_thumb.jpg',130, 87,32,'photo_2657683.html');
												thumbnails[2657686] = new thumbnail(2657686,'166069','','IMG_2485b_thumb.jpg',130, 87,32,'photo_2657686.html');
												thumbnails[2657690] = new thumbnail(2657690,'199829','','109_0982BLO_thumb.jpg',130, 87,32,'photo_2657690.html');
												thumbnails[2657693] = new thumbnail(2657693,'199829','','112_1201Blo_thumb.jpg',130, 87,32,'photo_2657693.html');
												thumbnails[2657695] = new thumbnail(2657695,'199829','','112_1294BLO_thumb.jpg',130, 87,32,'photo_2657695.html');
												thumbnails[2657700] = new thumbnail(2657700,'199829','','895_9528BLO_thumb.jpg',130, 87,32,'photo_2657700.html');
												thumbnails[2657806] = new thumbnail(2657806,'199829','','895_9532BLO_thumb.jpg',130, 195,32,'photo_2657806.html');
												thumbnails[2657809] = new thumbnail(2657809,'168272','','IMG_3298_thumb.jpg',130, 195,32,'photo_2657809.html');
												thumbnails[2657811] = new thumbnail(2657811,'168272','','IMG_3367_thumb.jpg',130, 195,32,'photo_2657811.html');
												thumbnails[2657863] = new thumbnail(2657863,'168272','','IMG_3604_thumb.jpg',130, 195,32,'photo_2657863.html');
												thumbnails[2657864] = new thumbnail(2657864,'168272','','IMG_3647_thumb.jpg',130, 176,32,'photo_2657864.html');
												thumbnails[2657887] = new thumbnail(2657887,'168273','','Coffee_Bay_BLo_thumb.jpg',130, 32,32,'photo_2657887.html');
												thumbnails[2657897] = new thumbnail(2657897,'168273','','IMG_0145B_thumb.jpg',130, 87,32,'photo_2657897.html');
												thumbnails[2657905] = new thumbnail(2657905,'168273','','IMG_8357BLO_thumb.jpg',130, 87,32,'photo_2657905.html');
												thumbnails[2657909] = new thumbnail(2657909,'168273','','IMG_8375B_thumb.jpg',130, 86,32,'photo_2657909.html');
												thumbnails[2657929] = new thumbnail(2657929,'168264','','Candice_2_thumb.jpg',130, 87,32,'photo_2657929.html');
												thumbnails[2658004] = new thumbnail(2658004,'168268','','_MG_4841A2LO2_thumb.jpg',130, 87,32,'photo_2658004.html');
												thumbnails[2658009] = new thumbnail(2658009,'168268','','IMG_0024_1b_thumb.jpg',130, 195,32,'photo_2658009.html');
												thumbnails[2658010] = new thumbnail(2658010,'168268','','IMG_0032_1b_thumb.jpg',130, 195,32,'photo_2658010.html');
												thumbnails[2658013] = new thumbnail(2658013,'168268','','IMG_0035_1b_thumb.jpg',130, 195,32,'photo_2658013.html');
												thumbnails[2658016] = new thumbnail(2658016,'168264','','IMG_0064bLO_thumb.jpg',130, 87,32,'photo_2658016.html');
												thumbnails[2658019] = new thumbnail(2658019,'168264','','IMG_0273b_thumb.jpg',130, 87,32,'photo_2658019.html');
												thumbnails[2658021] = new thumbnail(2658021,'168268','','IMG_1299_thumb.jpg',130, 195,32,'photo_2658021.html');
												thumbnails[2658025] = new thumbnail(2658025,'168268','','IMG_1528_thumb.jpg',130, 195,32,'photo_2658025.html');
												thumbnails[2658167] = new thumbnail(2658167,'168268','','IMG_5932a_thumb.jpg',130, 87,32,'photo_2658167.html');
												thumbnails[2658173] = new thumbnail(2658173,'168268','','IMG_5935aLO_thumb.jpg',130, 130,32,'photo_2658173.html');
												thumbnails[2658181] = new thumbnail(2658181,'169755','','IMG_9936D_thumb.jpg',130, 99,32,'photo_2658181.html');
												thumbnails[2668180] = new thumbnail(2668180,'168264','','IMG_1016LO_thumb.jpg',130, 87,32,'photo_2668180.html');
												thumbnails[2668195] = new thumbnail(2668195,'168264','','IMG_4333cLO_thumb.jpg',130, 195,32,'photo_2668195.html');
												thumbnails[2668202] = new thumbnail(2668202,'168268','','IMG_0995B_thumb.jpg',130, 87,32,'photo_2668202.html');
												thumbnails[2668208] = new thumbnail(2668208,'168268','','IMG_1064_thumb.jpg',130, 87,32,'photo_2668208.html');
												thumbnails[2675225] = new thumbnail(2675225,'168272','','_MG_5668LO_thumb.jpg',130, 195,32,'photo_2675225.html');
												thumbnails[2675251] = new thumbnail(2675251,'166068','','130_3011BLO_thumb.jpg',130, 87,32,'photo_2675251.html');
												thumbnails[2675277] = new thumbnail(2675277,'168268','','140_4032C_thumb.jpg',130, 87,32,'photo_2675277.html');
												thumbnails[2675422] = new thumbnail(2675422,'166068','','885_8578BLO_thumb.jpg',130, 86,32,'photo_2675422.html');
												thumbnails[2675444] = new thumbnail(2675444,'168268','','100_0097B_thumb.jpg',130, 86,32,'photo_2675444.html');
												thumbnails[2675900] = new thumbnail(2675900,'168268','','IMG_7964LO_thumb.jpg',130, 87,32,'photo_2675900.html');
												thumbnails[2676006] = new thumbnail(2676006,'168268','','IMG_7996LO_thumb.jpg',130, 87,32,'photo_2676006.html');
												thumbnails[2676270] = new thumbnail(2676270,'168268','','IMG_8081LO_thumb.jpg',130, 87,32,'photo_2676270.html');
												thumbnails[2676549] = new thumbnail(2676549,'166068','','IMG_6663LO_thumb.jpg',130, 195,32,'photo_2676549.html');
												thumbnails[2676565] = new thumbnail(2676565,'166068','','898_9838LO2_thumb.jpg',130, 87,32,'photo_2676565.html');
												thumbnails[2689830] = new thumbnail(2689830,'169755','','_MG_7305A_thumb.jpg',130, 87,32,'photo_2689830.html');
												thumbnails[2689832] = new thumbnail(2689832,'169755','','farm-144C_thumb.jpg',130, 87,32,'photo_2689832.html');
												thumbnails[2689835] = new thumbnail(2689835,'168272','','food_thumb.jpg',130, 44,32,'photo_2689835.html');
												thumbnails[2689842] = new thumbnail(2689842,'169755','','IMG_0696b_thumb.jpg',130, 87,32,'photo_2689842.html');
												thumbnails[2689845] = new thumbnail(2689845,'169755','','IMG_0701_thumb.jpg',130, 195,32,'photo_2689845.html');
												thumbnails[2689889] = new thumbnail(2689889,'169755','','IMG_0711b_thumb.jpg',130, 87,32,'photo_2689889.html');
												thumbnails[2689899] = new thumbnail(2689899,'169755','','IMG_0864a_thumb.jpg',130, 87,32,'photo_2689899.html');
												thumbnails[2689900] = new thumbnail(2689900,'169755','','IMG_0893bLO_thumb.jpg',130, 87,32,'photo_2689900.html');
												thumbnails[2689904] = new thumbnail(2689904,'169755','','IMG_1123b_thumb.jpg',130, 67,32,'photo_2689904.html');
												thumbnails[2689905] = new thumbnail(2689905,'169755','','IMG_1132c_thumb.jpg',130, 96,32,'photo_2689905.html');
												thumbnails[2689908] = new thumbnail(2689908,'169755','','IMG_1220c_thumb.jpg',130, 87,32,'photo_2689908.html');
												thumbnails[2690002] = new thumbnail(2690002,'169755','','IMG_9973C_thumb.jpg',130, 195,32,'photo_2690002.html');
												thumbnails[2690739] = new thumbnail(2690739,'168264','','104_0412B2_thumb.jpg',130, 106,32,'photo_2690739.html');
												thumbnails[2690768] = new thumbnail(2690768,'168268','','898_9814B_thumb.jpg',130, 100,32,'photo_2690768.html');
												thumbnails[2758201] = new thumbnail(2758201,'168272','','IMG_3120_thumb.jpg',130, 87,32,'photo_2758201.html');
												thumbnails[2758203] = new thumbnail(2758203,'168272','','IMG_3178_thumb.jpg',130, 87,32,'photo_2758203.html');
												thumbnails[2779053] = new thumbnail(2779053,'166069','','IMG_2210B_thumb.jpg',130, 195,32,'photo_2779053.html');
												thumbnails[2779059] = new thumbnail(2779059,'166069','','IMG_2293B_thumb.jpg',130, 195,32,'photo_2779059.html');
												thumbnails[2779085] = new thumbnail(2779085,'166069','','IMG_2469B_thumb.jpg',130, 87,32,'photo_2779085.html');
												thumbnails[2779094] = new thumbnail(2779094,'166069','','IMG_2742B_thumb.jpg',130, 195,32,'photo_2779094.html');
												thumbnails[2779100] = new thumbnail(2779100,'168264','','IMG_2978_thumb.jpg',130, 195,32,'photo_2779100.html');
												thumbnails[2779159] = new thumbnail(2779159,'166069','','IMG_2597B_thumb.jpg',130, 195,32,'photo_2779159.html');
												thumbnails[3276984] = new thumbnail(3276984,'168265','','West-point-1_thumb.jpg',130, 87,32,'photo_3276984.html');
												thumbnails[3276987] = new thumbnail(3276987,'168265','','West-point-2_thumb.jpg',130, 86,32,'photo_3276987.html');
												thumbnails[3276991] = new thumbnail(3276991,'168265','','West-point-3_thumb.jpg',130, 87,32,'photo_3276991.html');
												thumbnails[3276993] = new thumbnail(3276993,'199821','','Corporate-portraits_thumb.jpg',130, 66,32,'photo_3276993.html');
												thumbnails[3276995] = new thumbnail(3276995,'199821','','Purp-Apricot1_thumb.jpg',130, 87,32,'photo_3276995.html');
												thumbnails[3277003] = new thumbnail(3277003,'199821','','SAB-man-2_thumb.jpg',130, 87,32,'photo_3277003.html');
												thumbnails[3277008] = new thumbnail(3277008,'166069','','IMG_6255BLO_thumb.jpg',130, 93,32,'photo_3277008.html');
												thumbnails[3277013] = new thumbnail(3277013,'199822','','Anchor-1_thumb.jpg',130, 87,32,'photo_3277013.html');
												thumbnails[3277014] = new thumbnail(3277014,'199822','','Anchor-2_thumb.jpg',130, 86,32,'photo_3277014.html');
												thumbnails[3277016] = new thumbnail(3277016,'199822','','Anchor-3_thumb.jpg',130, 195,32,'photo_3277016.html');
												thumbnails[3277017] = new thumbnail(3277017,'199822','','Anchor-4_thumb.jpg',130, 87,32,'photo_3277017.html');
												thumbnails[3277018] = new thumbnail(3277018,'199822','','Anchor-6_thumb.jpg',130, 87,32,'photo_3277018.html');
												thumbnails[3277019] = new thumbnail(3277019,'199822','','Eazi-Access1_thumb.jpg',130, 195,32,'photo_3277019.html');
												thumbnails[3277021] = new thumbnail(3277021,'199822','','Eazi-Access2_thumb.jpg',130, 195,32,'photo_3277021.html');
												thumbnails[3277022] = new thumbnail(3277022,'199822','','Eazi-Access3_thumb.jpg',130, 195,32,'photo_3277022.html');
												thumbnails[3277024] = new thumbnail(3277024,'199822','','Eazi-Access4_thumb.jpg',130, 87,32,'photo_3277024.html');
												thumbnails[3277025] = new thumbnail(3277025,'168264','','IMG_6016LO_thumb.jpg',130, 195,32,'photo_3277025.html');
												thumbnails[3277026] = new thumbnail(3277026,'168264','','IMG_6049LO_thumb.jpg',130, 195,32,'photo_3277026.html');
												thumbnails[3277475] = new thumbnail(3277475,'199823','','Firewater-2_thumb.jpg',130, 87,32,'photo_3277475.html');
												thumbnails[3277489] = new thumbnail(3277489,'199823','','Firewater-4_thumb.jpg',130, 87,32,'photo_3277489.html');
												thumbnails[3277492] = new thumbnail(3277492,'199823','','Firewater-5_thumb.jpg',130, 195,32,'photo_3277492.html');
												thumbnails[3277500] = new thumbnail(3277500,'199823','','Firewater-6_thumb.jpg',130, 195,32,'photo_3277500.html');
												thumbnails[3277509] = new thumbnail(3277509,'199823','','Firewater-8_thumb.jpg',130, 98,32,'photo_3277509.html');
												thumbnails[3277519] = new thumbnail(3277519,'199823','','Firewater-10_thumb.jpg',130, 195,32,'photo_3277519.html');
												thumbnails[3277524] = new thumbnail(3277524,'199823','','Firewater-11_thumb.jpg',130, 195,32,'photo_3277524.html');
												thumbnails[3332974] = new thumbnail(3332974,'169755','','IMG_7183BLO_thumb.jpg',130, 87,32,'photo_3332974.html');
												thumbnails[3332977] = new thumbnail(3332977,'169755','','IMG_7176ALO_thumb.jpg',130, 199,32,'photo_3332977.html');
												thumbnails[3332978] = new thumbnail(3332978,'169755','','IMG_7192LO_thumb.jpg',130, 195,32,'photo_3332978.html');
												thumbnails[3332979] = new thumbnail(3332979,'169755','','IMG_7235LO_thumb.jpg',130, 195,32,'photo_3332979.html');
												thumbnails[3332981] = new thumbnail(3332981,'169755','','IMG_7289B_thumb.jpg',130, 91,32,'photo_3332981.html');
												thumbnails[3332982] = new thumbnail(3332982,'169755','','IMG_7304_thumb.jpg',130, 174,32,'photo_3332982.html');
												thumbnails[3332983] = new thumbnail(3332983,'169755','','IMG_7393B_thumb.jpg',130, 95,32,'photo_3332983.html');
												thumbnails[3332984] = new thumbnail(3332984,'169755','','IMG_7475_thumb.jpg',130, 200,32,'photo_3332984.html');
												thumbnails[3332985] = new thumbnail(3332985,'169755','','IMG_7559B_thumb.jpg',130, 175,32,'photo_3332985.html');
												thumbnails[3333078] = new thumbnail(3333078,'169755','','IMG_8096_thumb.jpg',130, 87,32,'photo_3333078.html');
												thumbnails[3333098] = new thumbnail(3333098,'169755','','IMG_8132A_thumb.jpg',130, 195,32,'photo_3333098.html');
												thumbnails[3333265] = new thumbnail(3333265,'169755','','IMG_8518_thumb.jpg',130, 195,32,'photo_3333265.html');
												thumbnails[3333273] = new thumbnail(3333273,'169755','','IMG_8608_thumb.jpg',130, 79,32,'photo_3333273.html');
												thumbnails[3629796] = new thumbnail(3629796,'199821','','Librty-Portraits_thumb.jpg',130, 74,32,'photo_3629796.html');
												thumbnails[3629801] = new thumbnail(3629801,'168265','','AnahitaResort1_thumb.jpg',130, 87,32,'photo_3629801.html');
												thumbnails[3629806] = new thumbnail(3629806,'168265','','AnahitaResort2_thumb.jpg',130, 87,32,'photo_3629806.html');
												thumbnails[3629813] = new thumbnail(3629813,'168265','','AnahitaResort3_thumb.jpg',130, 195,32,'photo_3629813.html');
												thumbnails[3629818] = new thumbnail(3629818,'168265','','Maritius-1_thumb.jpg',130, 59,32,'photo_3629818.html');
												thumbnails[3629829] = new thumbnail(3629829,'169755','','_MG_0880-2_thumb.jpg',130, 195,32,'photo_3629829.html');
												thumbnails[3629832] = new thumbnail(3629832,'169755','','_MG_0919_thumb.jpg',130, 84,32,'photo_3629832.html');
												thumbnails[3629834] = new thumbnail(3629834,'169755','','_MG_1014-2_thumb.jpg',130, 195,32,'photo_3629834.html');
												thumbnails[3629837] = new thumbnail(3629837,'169755','','_MG_1307_thumb.jpg',130, 195,32,'photo_3629837.html');
												thumbnails[3629838] = new thumbnail(3629838,'169755','','_MG_1349_thumb.jpg',130, 195,32,'photo_3629838.html');
												thumbnails[4452885] = new thumbnail(4452885,'166069','','2_images_Jorge2_thumb.jpg',130, 90,32,'photo_4452885.html');
												thumbnails[4452896] = new thumbnail(4452896,'166069','','_MG_4673LO_thumb.jpg',130, 195,32,'photo_4452896.html');
												thumbnails[4452902] = new thumbnail(4452902,'166069','','_MG_4778BLO_thumb.jpg',130, 195,32,'photo_4452902.html');
												thumbnails[4452906] = new thumbnail(4452906,'166069','','_MG_4736LO_thumb.jpg',130, 195,32,'photo_4452906.html');
												thumbnails[4452908] = new thumbnail(4452908,'168268','','2_images_Jorge_thumb.jpg',130, 85,32,'photo_4452908.html');
												thumbnails[4452939] = new thumbnail(4452939,'199823','','_MG_2942BLO_thumb.jpg',130, 130,32,'photo_4452939.html');
												thumbnails[4499567] = new thumbnail(4499567,'199823','','Casual-tops_thumb.jpg',130, 56,32,'photo_4499567.html');
												thumbnails[4499630] = new thumbnail(4499630,'199823','','shoes-1_thumb.jpg',130, 37,32,'photo_4499630.html');
												thumbnails[4499872] = new thumbnail(4499872,'199823','','G1007_thumb.jpg',130, 105,32,'photo_4499872.html');
												thumbnails[5122325] = new thumbnail(5122325,'168265','','Afrox-building-landscp_thumb.jpg',130, 87,32,'photo_5122325.html');
												thumbnails[5122330] = new thumbnail(5122330,'168265','','Afrox-building-port_thumb.jpg',130, 195,32,'photo_5122330.html');
												thumbnails[5122333] = new thumbnail(5122333,'168268','','_MG_8978B_thumb.jpg',130, 195,32,'photo_5122333.html');
												thumbnails[5122335] = new thumbnail(5122335,'168268','','_MG_9223BLO_thumb.jpg',130, 195,32,'photo_5122335.html');
												thumbnails[5122339] = new thumbnail(5122339,'168268','','_MG_8996LO_thumb.jpg',130, 195,32,'photo_5122339.html');
												thumbnails[5122342] = new thumbnail(5122342,'168268','','_MG_9175LO_thumb.jpg',130, 130,32,'photo_5122342.html');
												thumbnails[5122344] = new thumbnail(5122344,'168268','','_MG_0784BLO_thumb.jpg',130, 195,32,'photo_5122344.html');
												thumbnails[5122346] = new thumbnail(5122346,'168268','','_MG_0755LO_thumb.jpg',130, 195,32,'photo_5122346.html');
												thumbnails[5122362] = new thumbnail(5122362,'168268','','_MG_0715LO_thumb.jpg',130, 130,32,'photo_5122362.html');
												thumbnails[5122388] = new thumbnail(5122388,'168268','','_MG_0590LO_thumb.jpg',130, 195,32,'photo_5122388.html');
												thumbnails[5266205] = new thumbnail(5266205,'166069','','_MG_1388LO_thumb.jpg',130, 195,32,'photo_5266205.html');
												thumbnails[5266206] = new thumbnail(5266206,'166069','','_MG_1447LO_thumb.jpg',130, 130,32,'photo_5266206.html');
												thumbnails[5266209] = new thumbnail(5266209,'166069','','_MG_1642LO_thumb.jpg',130, 195,32,'photo_5266209.html');
												thumbnails[5266210] = new thumbnail(5266210,'166069','','_MG_1648LO_thumb.jpg',130, 130,32,'photo_5266210.html');
												thumbnails[5266211] = new thumbnail(5266211,'166069','','_MG_1700LO_thumb.jpg',130, 195,32,'photo_5266211.html');
												thumbnails[5266214] = new thumbnail(5266214,'166069','','_MG_8684-2LO_thumb.jpg',130, 195,32,'photo_5266214.html');
												thumbnails[5266217] = new thumbnail(5266217,'166069','','_MG_8742-2LO_thumb.jpg',130, 195,32,'photo_5266217.html');
												thumbnails[5266219] = new thumbnail(5266219,'166069','','_MG_8855-2LO_thumb.jpg',130, 195,32,'photo_5266219.html');
												thumbnails[5983175] = new thumbnail(5983175,'166069','','_MG_5836LO_thumb.jpg',130, 87,32,'photo_5983175.html');
												thumbnails[5983180] = new thumbnail(5983180,'166069','','_MG_6103LO_thumb.jpg',130, 195,32,'photo_5983180.html');
												thumbnails[5983185] = new thumbnail(5983185,'166069','','_MG_6159LO_thumb.jpg',130, 195,32,'photo_5983185.html');
												thumbnails[5983191] = new thumbnail(5983191,'166069','','_MG_6223LO_thumb.jpg',130, 195,32,'photo_5983191.html');
												thumbnails[5983197] = new thumbnail(5983197,'168264','','_MG_7144CLO_thumb.jpg',130, 195,32,'photo_5983197.html');
												thumbnails[5983202] = new thumbnail(5983202,'168264','','_MG_7235C_thumb.jpg',130, 195,32,'photo_5983202.html');
												thumbnails[6311718] = new thumbnail(6311718,'199821','','Studio-4332_1_thumb.jpg',130, 47,32,'photo_6311718.html');
												thumbnails[6633888] = new thumbnail(6633888,'199823','','OldSpice_thumb.jpg',130, 64,32,'photo_6633888.html');
												thumbnails[6664086] = new thumbnail(6664086,'168268','','John_Smit_thumb.jpg',130, 66,32,'photo_6664086.html');
												thumbnails[6856419] = new thumbnail(6856419,'199823','','Diablo-wine_thumb.jpg',130, 195,32,'photo_6856419.html');
												thumbnails[7148708] = new thumbnail(7148708,'166069','','SXY-Cindy_thumb.jpg',130, 87,32,'photo_7148708.html');
												thumbnails[7148712] = new thumbnail(7148712,'166069','','SXY-Cindy2_thumb.jpg',130, 87,32,'photo_7148712.html');
												thumbnails[7148720] = new thumbnail(7148720,'166069','','SXY-Michelle_thumb.jpg',130, 87,32,'photo_7148720.html');
												thumbnails[7148722] = new thumbnail(7148722,'166069','','SXY-Michelle1_thumb.jpg',130, 87,32,'photo_7148722.html');
												thumbnails[7148730] = new thumbnail(7148730,'166069','','SXY-Michelle2_thumb.jpg',130, 87,32,'photo_7148730.html');
												thumbnails[7148785] = new thumbnail(7148785,'166069','','DJ-Fresh_thumb.jpg',130, 87,32,'photo_7148785.html');
												thumbnails[7148872] = new thumbnail(7148872,'386391','','Poker2_thumb.jpg',130, 87,32,'photo_7148872.html');
												thumbnails[7148897] = new thumbnail(7148897,'386391','','Rolette_thumb.jpg',130, 99,32,'photo_7148897.html');
												thumbnails[7148901] = new thumbnail(7148901,'386391','','Rolette2_thumb.jpg',130, 87,32,'photo_7148901.html');
												thumbnails[7148903] = new thumbnail(7148903,'386391','','SlotMachines_thumb.jpg',130, 195,32,'photo_7148903.html');
												thumbnails[7148912] = new thumbnail(7148912,'386391','','Total_Leaflet_A5_thumb.jpg',130, 185,32,'photo_7148912.html');
												thumbnails[7148917] = new thumbnail(7148917,'386391','','Toys-R-us_Chanukah_thumb.jpg',130, 170,32,'photo_7148917.html');
												thumbnails[7148921] = new thumbnail(7148921,'199821','','ABSA_Capital_Group_thumb.jpg',130, 87,32,'photo_7148921.html');
												thumbnails[7149030] = new thumbnail(7149030,'168265','','BidVest_thumb.jpg',130, 87,32,'photo_7149030.html');
												thumbnails[7149041] = new thumbnail(7149041,'386391','','Monti-BirdG-BusBilbrd1_thumb.jpg',130, 87,32,'photo_7149041.html');
												thumbnails[7257763] = new thumbnail(7257763,'199823','','Grolsch-group-LO2_thumb.jpg',130, 130,32,'photo_7257763.html');
												thumbnails[7381136] = new thumbnail(7381136,'199821','','ABSA_Capital_Group2_thumb.jpg',130, 195,32,'photo_7381136.html');
												thumbnails[7817905] = new thumbnail(7817905,'166069','','SXY-Michelle11A_thumb.jpg',130, 87,32,'photo_7817905.html');
												thumbnails[7817912] = new thumbnail(7817912,'166069','','SXY-Michelle11B_thumb.jpg',130, 87,32,'photo_7817912.html');
												thumbnails[7817919] = new thumbnail(7817919,'166069','','SXY-Michelle11C_thumb.jpg',130, 87,32,'photo_7817919.html');
												thumbnails[7817924] = new thumbnail(7817924,'166069','','SXY-Michelle11D_thumb.jpg',130, 87,32,'photo_7817924.html');
												thumbnails[6311612] = new thumbnail(6311612,'199823','','Addidas-Fresh-Boost_thumb.jpg',130, 186,32,'photo_6311612.html');
												thumbnails[6311606] = new thumbnail(6311606,'199823','','Calvin-Klein1_thumb.jpg',130, 195,32,'photo_6311606.html');
												thumbnails[6311594] = new thumbnail(6311594,'199823','','Clinique1_thumb.jpg',130, 186,32,'photo_6311594.html');
												thumbnails[4499869] = new thumbnail(4499869,'199823','','1919-Tools--Other-access_thumb.jpg',130, 85,32,'photo_4499869.html');
												thumbnails[4499865] = new thumbnail(4499865,'199823','','1917-Tungsten-Rasps-3b_thumb.jpg',130, 116,32,'photo_4499865.html');
												thumbnails[4499859] = new thumbnail(4499859,'199823','','1917-Brushes_thumb.jpg',130, 115,32,'photo_4499859.html');
												thumbnails[4499855] = new thumbnail(4499855,'199823','','1916-Carbide-Cuttrs_thumb.jpg',130, 85,32,'photo_4499855.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[168269] = new gallery(168269,'2657603','Animals','gallery',[2657576,2657601,2657603,2657608,2657611,2657616],0, 0, '', 'gallery_168269.html',0,0);
				  					galleries[168265] = new gallery(168265,'5122330','Architecture/Resorts & Interiors','gallery',[2657624,3276984,3276987,3276991,3629801,3629806,3629813,3629818,5122325,5122330,7149030],0, 0, '', 'gallery_168265.html',0,0);
				  					galleries[386391] = new gallery(386391,'7149041,7148917,7148912,7148903,7148901,7148897,7148872','Commercial Photography','gallery',[7148872,7148897,7148901,7148903,7148912,7148917,7149041],0, 0, '', 'gallery_386391.html',0,0);
				  					galleries[199821] = new gallery(199821,'3276995','Corporate','gallery',[3276993,3276995,3277003,3629796,6311718,7148921,7381136],0, 0, '', 'gallery_199821.html',0,0);
				  					galleries[199829] = new gallery(199829,'2657806','Flowers & Macro','gallery',[2657592,2657596,2657606,2657690,2657693,2657695,2657700,2657806],0, 0, '', 'gallery_199829.html',0,0);
				  					galleries[168272] = new gallery(168272,'2657811','Food & Drink','gallery',[2657572,2657809,2657811,2657863,2657864,2675225,2689835,2758201,2758203],0, 0, '', 'gallery_168272.html',0,0);
				  					galleries[199822] = new gallery(199822,'3277021','Industrial','gallery',[3277013,3277014,3277016,3277017,3277018,3277019,3277021,3277022,3277024],0, 0, '', 'gallery_199822.html',0,0);
				  					galleries[168273] = new gallery(168273,'2657905','Landscapes','gallery',[2657887,2657897,2657905,2657909],0, 0, '', 'gallery_168273.html',0,0);
				  					galleries[168264] = new gallery(168264,'2657929','Nude','gallery',[2657929,2658016,2658019,2668180,2668195,2690739,2779100,3277025,3277026,5983197,5983202],0, 0, '', 'gallery_168264.html',0,0);
				  					galleries[168268] = new gallery(168268,'2658025,2658021','Portraits','gallery',[2657637,2658004,2658009,2658010,2658013,2658021,2658025,2658167,2658173,2668202,2668208,2675277,2675444,2675900,2676006,2676270,2690768,4452908,5122333,5122335,5122339,5122342,5122344,5122346,5122362,5122388,6664086],0, 0, '', 'gallery_168268.html',0,0);
				  					galleries[199823] = new gallery(199823,'6311606','Product photography','gallery',[2657566,3277475,3277489,3277492,3277500,3277509,3277519,3277524,4452939,4499567,4499630,4499872,6633888,6856419,7257763,6311612,6311606,6311594,4499869,4499865,4499859,4499855],0, 0, '', 'gallery_199823.html',0,0);
				  					galleries[169755] = new gallery(169755,'2689832','Wedding','gallery',[2658181,2689830,2689832,2689842,2689845,2689889,2689899,2689900,2689904,2689905,2689908,2690002,3332974,3332977,3332978,3332979,3332981,3332982,3332983,3332984,3332985,3333078,3333098,3333265,3333273,3629829,3629832,3629834,3629837,3629838],0, 0, '', 'gallery_169755.html',0,0);
				  					galleries[166068] = new gallery(166068,'2676565,2676549,2675422,2675251,2657570,2657554','Abstract','gallery',[2657554,2657570,2675251,2675422,2676549,2676565],0, 0, '', 'gallery_166068.html',0,0);
				  					galleries[166069] = new gallery(166069,'3277008,2657643','Fashion / Glam','gallery',[2657642,2657643,2657644,2657645,2657652,2657656,2657660,2657666,2657672,2657683,2657686,2779053,2779059,2779085,2779094,2779159,3277008,4452885,4452896,4452902,4452906,5266205,5266206,5266209,5266210,5266211,5266214,5266217,5266219,5983175,5983180,5983185,5983191,7148708,7148712,7148720,7148722,7148730,7148785,7817905,7817912,7817919,7817924],0, 0, '', 'gallery_166069.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[167601] = '7257763,6856419,6633888,6311612,6311606,6311594,4499872,4499869,4499865,4499859,4499855,4499630,4499567,4452939,3277524,3277519,3277509,3277500,3277492,3277489,3277475,2657566';
imageSets[1] = '7257763,7148785,7148730,6856419,6664086,6633888,5983185,5983180,5983175,5266214,5266210,4452908,4452896,3629818,3332985,3332982,3332978,3277026,3277025,3277021,3277008,3276995,2779094,2779085,2779059,2758203,2690002,2689905,2689904,2689900,2689889,2689835,2689832,2676549,2676270,2675277,2675225,2668180,2658181,2658025,2658016,2657929,2657905,2657811,2657806,2657603,2657596,2657570';
imageSets[2] = '6311606,5122330,3277021,3277008,3276995,2689832,2658025,2658021,2657929,2657905,2657811,2657806,2657643,2657603';
imageSets[3] = '6311718,6311612,6311606,6311594,5983202,5983197,5983191,5983185,5983180,5983175,5266219,5266217,5266214,5266211,5266210,5266209,5266206,5266205,5122388,5122362,5122346,5122344,5122342,5122339,5122335,5122333,5122330,5122325,4499872,4499869,4499865,4499859,4499855,4499630,4499567,4452939,4452908,4452906,4452902,4452896,4452885,3629838,3629837,3629834,3629832,3629829,3629818,3629813,3629806,3629801,3629796,3333273,3333265,3333098,3333078,3332985';
imageSets[128984] = '7149030,5122330,5122325,3629818,3629813,3629806,3629801,3276991,3276987,3276984';
imageSets[128985] = '6856419';
imageSets[128986] = '3629818';
imageSets[128987] = '5983202,5983197,3277026,3277025';
imageSets[128988] = '7148785,6664086,5983202,5122388,5122362,5122346,5122344,5122342,5122339,5122335,5122333,4452908,4452906,4452902,4452896,4452885';
imageSets[128990] = '7817924,7817919,7817912,7817905,7148785,7148730,7148722,7148712,7148708,5983191,5983185,5983180,5983175,5266219,5266217,5266214,5266211,5266210,5266209,5266206,5266205,4452902,4452896,4452885,3277026,3277025,3277008';
imageSets[129204] = '3629838,3629837,3629834,3629832,3629829,3333273,3333265,3333098,3333078,3332985,3332984,3332983,3332982,3332981,3332979,3332978,3332977,3332974';
imageSets[167600] = '3277024,3277022,3277021,3277019,3277018,3277017,3277016,3277014,3277013';
imageSets[167599] = '7381136,7148921,6311718,3629796,3277003,3276995,3276993';
imageSets[238263] = '7149041,7148917,7148912,7148903,7148897,7148872';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/TonivS/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/TonivS/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/TonivS/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/TonivS/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/TonivS/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/TonivS/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('');
		if (!basic) {
	img.src = photos[imageID].src;
	img.width = photos[imageID].width;
	img.height = photos[imageID].height;
  img.parentNode.title = img.alt = photos[imageID].caption;
	}
	else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
				
	}
			}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}
/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
  var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
		if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
    
  updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
  var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
      op = $.extend({},defaults,options),
      html = '', temp = '',
      photoId = op.nextPhoto.id,
      photoCaption = op.nextPhoto.caption,
      photoSrc = op.nextPhoto.src;
		
		if (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    if (op.$photo.length > 0) {
      html = $('<img/>',{
        'class': 'mainphoto photo',
        src: photoSrc,
        id: 'mainPic',
        name: 'mainPic',
        width: op.nextPhoto.width,
        height: op.nextPhoto.height,
        alt: photoCaption,
        css: op.css || {}
      });
      if (op.href) {
      	if (op.href.match(/<a/)) {
      	  html = $(op.href).append(html);
      	} else {
		  html = $('<a/>', {
			href: op.href,
			title: photoCaption
		  }).append(html);
	    }
      } else {
      	html = $('<a/>', {
			title: photoCaption
		  }).append(html);
      }
      if (op.speed == 0) {        op.$photo.html(html);        if (op.onBefore) {          op.onBefore.apply(op.$photo);        }        if (op.onAfter) {          op.onAfter.apply(op.$photo);        }      } else {        op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){            if (op.onAfter) {		    op.onAfter.apply(this);          }		  clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Anton van Straaten Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp = temp + '<p>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> AU$' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																				temp = temp + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = 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 = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="toni@bopa.co.za">';
	temp = temp + '<input type="hidden" name="currency_code" value="AUD">';
	temp = temp + '<input type="hidden" name="add" value="1">';
					temp = temp + '<input type="hidden" name="amount" value="'+amount+'">';
	temp = temp + '<input type="hidden" name="item_number" value="'+ref+'">';
					temp = temp + '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
									temp = temp + '</form>';
								temp = temp + '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="toni@bopa.co.za">';
	temp = temp + '<input type="hidden" name="display" value="1">';
	temp = temp + '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
	temp = temp + '</form>';
							temp = temp + '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
		
	if(img){
	      if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
        imageID = imageID[1];
      } else {
			  imageID = randomListVal(galleries[gallery_id].featured_images);
      }
							
			if (imageID != 0) {
				img.src = thumbnails[imageID].src;
				img.width = thumbnails[imageID].width;
				img.height = thumbnails[imageID].height;
				img.alt = galleries[gallery_id].title;
        if (updateLink) {
          $(img).parent().attr({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

