window.thumbnails = {};
															thumbnails[5781232] = clik.newPhoto({"id":5781232,"src":"07770016_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":86});
															thumbnails[5731367] = clik.newPhoto({"id":5731367,"src":"AAA024_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":86});
															thumbnails[7413927] = clik.newPhoto({"id":7413927,"src":"01_girl_rickhirtle_thumb.jpg","galleries_id":401691,"server_id":5,"link":"photo_7413927.html","width":130,"caption":"","height":105});
															thumbnails[7413936] = clik.newPhoto({"id":7413936,"src":"02_girl_rickhirtle_thumb.jpg","galleries_id":401691,"server_id":5,"link":"photo_7413936.html","width":130,"caption":"","height":102});
															thumbnails[7413938] = clik.newPhoto({"id":7413938,"src":"03_girl_rickhirtle_thumb.jpg","galleries_id":401691,"server_id":5,"link":"photo_7413938.html","width":130,"caption":"","height":107});
															thumbnails[7413944] = clik.newPhoto({"id":7413944,"src":"04_girl_rickhirtle_thumb.jpg","galleries_id":401691,"server_id":5,"link":"photo_7413944.html","width":130,"caption":"","height":107});
															thumbnails[7413953] = clik.newPhoto({"id":7413953,"src":"05_girl_rickhirtle_thumb.jpg","galleries_id":401691,"server_id":5,"link":"photo_7413953.html","width":130,"caption":"","height":106});
															thumbnails[7413957] = clik.newPhoto({"id":7413957,"src":"06_girl_rickhirtle_thumb.jpg","galleries_id":401691,"server_id":5,"link":"photo_7413957.html","width":130,"caption":"","height":107});
															thumbnails[7414048] = clik.newPhoto({"id":7414048,"src":"07_girl_rickhirtle_thumb.jpg","galleries_id":401691,"server_id":5,"link":"photo_7414048.html","width":130,"caption":"","height":105});
															thumbnails[7414097] = clik.newPhoto({"id":7414097,"src":"08_girl_rickhirtle_thumb.jpg","galleries_id":401691,"server_id":5,"link":"photo_7414097.html","width":130,"caption":"","height":106});
															thumbnails[7414055] = clik.newPhoto({"id":7414055,"src":"09_girl_rickhirtle_thumb.jpg","galleries_id":401691,"server_id":5,"link":"photo_7414055.html","width":130,"caption":"","height":107});
															thumbnails[5731381] = clik.newPhoto({"id":5731381,"src":"hole_rickhirtlecom12_thumb.jpg","galleries_id":324479,"server_id":5,"link":"photo_5731381.html","width":130,"caption":"","height":86});
															thumbnails[5781109] = clik.newPhoto({"id":5781109,"src":"07520036_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5781109.html","width":130,"caption":"","height":86});
															thumbnails[8175606] = clik.newPhoto({"id":8175606,"src":"Wheelchair_rickhirtle_thumb.jpg","galleries_id":324415,"server_id":5,"link":"photo_8175606.html","width":130,"caption":"","height":129});
															thumbnails[5729027] = clik.newPhoto({"id":5729027,"src":"16510034_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5729027.html","width":130,"caption":"","height":86});
															thumbnails[5731327] = clik.newPhoto({"id":5731327,"src":"WARWICK_BEES_thumb.jpg","galleries_id":324414,"server_id":5,"link":"photo_5731327.html","width":130,"caption":"","height":128});
															thumbnails[5731373] = clik.newPhoto({"id":5731373,"src":"DSC_2088_thumb.JPG","galleries_id":324479,"server_id":5,"link":"photo_5731373.html","width":130,"caption":"","height":90});
															thumbnails[5731329] = clik.newPhoto({"id":5731329,"src":"chrisbakerrickhirtlecom_thumb.jpg","galleries_id":324414,"server_id":5,"link":"photo_5731329.html","width":130,"caption":"","height":128});
															thumbnails[5731364] = clik.newPhoto({"id":5731364,"src":"16500020_thumb.jpg","galleries_id":324415,"server_id":5,"link":"photo_5731364.html","width":130,"caption":"","height":86});
															thumbnails[5731372] = clik.newPhoto({"id":5731372,"src":"4C_in_Tunnel_2_thumb.jpg","galleries_id":324479,"server_id":5,"link":"photo_5731372.html","width":130,"caption":"","height":86});
															thumbnails[5781136] = clik.newPhoto({"id":5781136,"src":"07520030_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5781136.html","width":130,"caption":"","height":86});
															thumbnails[5731366] = clik.newPhoto({"id":5731366,"src":"_RAD7560_thumb.JPG","galleries_id":324415,"server_id":5,"link":"photo_5731366.html","width":130,"caption":"","height":87});
															thumbnails[5731336] = clik.newPhoto({"id":5731336,"src":"AAA007_thumb.jpg","galleries_id":324414,"server_id":5,"link":"photo_5731336.html","width":130,"caption":"","height":86});
															thumbnails[5731365] = clik.newPhoto({"id":5731365,"src":"CarBush_rickhirtle_thumb.jpg","galleries_id":324415,"server_id":5,"link":"photo_5731365.html","width":130,"caption":"","height":195});
															thumbnails[5731376] = clik.newPhoto({"id":5731376,"src":"sammy__thumb.jpg","galleries_id":324479,"server_id":5,"link":"photo_5731376.html","width":130,"caption":"","height":85});
															thumbnails[5781101] = clik.newPhoto({"id":5781101,"src":"07520031_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5781101.html","width":130,"caption":"","height":86});
															thumbnails[8615799] = clik.newPhoto({"id":8615799,"src":"AzariIII_RickHirtle_thumb.jpg","galleries_id":324414,"server_id":19,"link":"photo_8615799.html","width":130,"caption":"","height":86});
															thumbnails[5729050] = clik.newPhoto({"id":5729050,"src":"16510013_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5729050.html","width":130,"caption":"","height":86});
															thumbnails[5728993] = clik.newPhoto({"id":5728993,"src":"16550004_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5728993.html","width":130,"caption":"","height":128});
															thumbnails[5728986] = clik.newPhoto({"id":5728986,"src":"16550011_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5728986.html","width":130,"caption":"","height":128});
															thumbnails[5731330] = clik.newPhoto({"id":5731330,"src":"AAA033_thumb.jpg","galleries_id":324414,"server_id":5,"link":"photo_5731330.html","width":130,"caption":"","height":86});
															thumbnails[5731387] = clik.newPhoto({"id":5731387,"src":"c_u_action_rickhirtlecom1_thumb.jpg","galleries_id":324479,"server_id":5,"link":"photo_5731387.html","width":130,"caption":"","height":86});
															thumbnails[8175612] = clik.newPhoto({"id":8175612,"src":"GirlTree_rickhirtle_thumb.jpg","galleries_id":324415,"server_id":5,"link":"photo_8175612.html","width":130,"caption":"","height":195});
															thumbnails[5729052] = clik.newPhoto({"id":5729052,"src":"16510019_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5729052.html","width":130,"caption":"","height":86});
															thumbnails[5731333] = clik.newPhoto({"id":5731333,"src":"_RAD6911_thumb.JPG","galleries_id":324414,"server_id":5,"link":"photo_5731333.html","width":130,"caption":"","height":87});
															thumbnails[6055742] = clik.newPhoto({"id":6055742,"src":"Fast_web_thumb.jpg","galleries_id":324479,"server_id":5,"link":"photo_6055742.html","width":130,"caption":"","height":86});
															thumbnails[8175618] = clik.newPhoto({"id":8175618,"src":"jaccuzzzzi_rickhirtle_thumb.jpg","galleries_id":324415,"server_id":5,"link":"photo_8175618.html","width":130,"caption":"","height":128});
															thumbnails[5728985] = clik.newPhoto({"id":5728985,"src":"16560005_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5728985.html","width":130,"caption":"","height":128});
															thumbnails[5731335] = clik.newPhoto({"id":5731335,"src":"_RAD6237_thumb.JPG","galleries_id":324414,"server_id":5,"link":"photo_5731335.html","width":130,"caption":"","height":87});
															thumbnails[5731370] = clik.newPhoto({"id":5731370,"src":"_RAD5144_thumb.JPG","galleries_id":324415,"server_id":5,"link":"photo_5731370.html","width":130,"caption":"","height":83});
															thumbnails[5731378] = clik.newPhoto({"id":5731378,"src":"_RAD7844_thumb.JPG","galleries_id":324479,"server_id":5,"link":"photo_5731378.html","width":130,"caption":"","height":86});
															thumbnails[8139831] = clik.newPhoto({"id":8139831,"src":"Louise_rickhitle_dot_com_thumb.jpg","galleries_id":324414,"server_id":5,"link":"photo_8139831.html","width":130,"caption":"","height":87});
															thumbnails[5729060] = clik.newPhoto({"id":5729060,"src":"16510029_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5729060.html","width":130,"caption":"","height":86});
															thumbnails[5731337] = clik.newPhoto({"id":5731337,"src":"AAA011_thumb.jpg","galleries_id":324414,"server_id":5,"link":"photo_5731337.html","width":130,"caption":"","height":86});
															thumbnails[5731380] = clik.newPhoto({"id":5731380,"src":"352C0060_thumb.JPG","galleries_id":324479,"server_id":5,"link":"photo_5731380.html","width":130,"caption":"","height":87});
															thumbnails[5729069] = clik.newPhoto({"id":5729069,"src":"16510032_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5729069.html","width":130,"caption":"","height":86});
															thumbnails[5729066] = clik.newPhoto({"id":5729066,"src":"16510031_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5729066.html","width":130,"caption":"","height":86});
															thumbnails[5731368] = clik.newPhoto({"id":5731368,"src":"AAA002_thumb.jpg","galleries_id":324415,"server_id":5,"link":"photo_5731368.html","width":130,"caption":"","height":86});
															thumbnails[6399033] = clik.newPhoto({"id":6399033,"src":"Conzrickhirtlecom1_thumb.jpg","galleries_id":324479,"server_id":5,"link":"photo_6399033.html","width":130,"caption":"","height":198});
															thumbnails[5729002] = clik.newPhoto({"id":5729002,"src":"16510001_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5729002.html","width":130,"caption":"","height":86});
															thumbnails[6055740] = clik.newPhoto({"id":6055740,"src":"Sam_web_thumb.jpg","galleries_id":324479,"server_id":5,"link":"photo_6055740.html","width":130,"caption":"","height":86});
															thumbnails[8175727] = clik.newPhoto({"id":8175727,"src":"cowsass_rickhirtle_thumb.jpg","galleries_id":324415,"server_id":5,"link":"photo_8175727.html","width":130,"caption":"","height":130});
															thumbnails[5728999] = clik.newPhoto({"id":5728999,"src":"16500024_thumb.jpg","galleries_id":324423,"server_id":5,"link":"photo_5728999.html","width":130,"caption":"","height":86});
															thumbnails[5731383] = clik.newPhoto({"id":5731383,"src":"DSC_0428_thumb.JPG","galleries_id":324479,"server_id":5,"link":"photo_5731383.html","width":130,"caption":"","height":85});
															thumbnails[8175724] = clik.newPhoto({"id":8175724,"src":"Yoyogi_rickhirtle_thumb.jpg","galleries_id":324415,"server_id":5,"link":"photo_8175724.html","width":130,"caption":"","height":130});
															thumbnails[5731382] = clik.newPhoto({"id":5731382,"src":"causraction_thumb.jpg","galleries_id":324479,"server_id":5,"link":"photo_5731382.html","width":130,"caption":"","height":173});
															thumbnails[5731346] = clik.newPhoto({"id":5731346,"src":"AAA020_thumb.jpg","galleries_id":324414,"server_id":5,"link":"photo_5731346.html","width":130,"caption":"","height":195});
															thumbnails[5731374] = clik.newPhoto({"id":5731374,"src":"DSC_9796_thumb.JPG","galleries_id":324479,"server_id":5,"link":"photo_5731374.html","width":130,"caption":"","height":85});
															thumbnails[7167246] = clik.newPhoto({"id":7167246,"src":"SAMrickhirtledotcom2_thumb.jpg","galleries_id":324414,"server_id":5,"link":"photo_7167246.html","width":130,"caption":"","height":198});
															thumbnails[5780914] = clik.newPhoto({"id":5780914,"src":"AAA008_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780914.html","width":130,"caption":"01-01-2010","height":195});
															thumbnails[5780916] = clik.newPhoto({"id":5780916,"src":"AAA005_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780916.html","width":130,"caption":"01-01-2010","height":195});
															thumbnails[5780917] = clik.newPhoto({"id":5780917,"src":"AAA0072_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780917.html","width":130,"caption":"01-01-2010","height":86});
															thumbnails[5780972] = clik.newPhoto({"id":5780972,"src":"07770002_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780972.html","width":130,"caption":"02-01-2010","height":86});
															thumbnails[5780976] = clik.newPhoto({"id":5780976,"src":"07770003_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780976.html","width":130,"caption":"02-01-2010","height":86});
															thumbnails[5780979] = clik.newPhoto({"id":5780979,"src":"07770004_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780979.html","width":130,"caption":"02-01-2010","height":86});
															thumbnails[5780981] = clik.newPhoto({"id":5780981,"src":"07770023_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780981.html","width":130,"caption":"02-01-2010","height":86});
															thumbnails[5780987] = clik.newPhoto({"id":5780987,"src":"07770027_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780987.html","width":130,"caption":"03-01-2010","height":86});
															thumbnails[5780990] = clik.newPhoto({"id":5780990,"src":"07770029_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780990.html","width":130,"caption":"03-01-2010","height":86});
															thumbnails[5780993] = clik.newPhoto({"id":5780993,"src":"07770031_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780993.html","width":130,"caption":"04-01-2010","height":86});
															thumbnails[5780995] = clik.newPhoto({"id":5780995,"src":"07770032_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780995.html","width":130,"caption":"04-01-2010","height":86});
															thumbnails[5780998] = clik.newPhoto({"id":5780998,"src":"07770033_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780998.html","width":130,"caption":"04-01-2010","height":86});
															thumbnails[5780999] = clik.newPhoto({"id":5780999,"src":"07770034_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5780999.html","width":130,"caption":"05-01-2010","height":86});
															thumbnails[5781003] = clik.newPhoto({"id":5781003,"src":"07770036_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5781003.html","width":130,"caption":"05-01-2010","height":86});
															thumbnails[5781047] = clik.newPhoto({"id":5781047,"src":"07760002_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5781047.html","width":130,"caption":"05-01-2010","height":86});
															thumbnails[5781050] = clik.newPhoto({"id":5781050,"src":"07760006_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5781050.html","width":130,"caption":"06-01-2010","height":86});
															thumbnails[5781062] = clik.newPhoto({"id":5781062,"src":"07760007_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5781062.html","width":130,"caption":"07-01-2010","height":86});
															thumbnails[5781066] = clik.newPhoto({"id":5781066,"src":"07760009_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5781066.html","width":130,"caption":"07-01-2010","height":86});
															thumbnails[5781067] = clik.newPhoto({"id":5781067,"src":"07760011_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5781067.html","width":130,"caption":"07-01-2010","height":86});
															thumbnails[5781069] = clik.newPhoto({"id":5781069,"src":"07760012_thumb.jpg","galleries_id":324731,"server_id":5,"link":"photo_5781069.html","width":130,"caption":"07-01-2010","height":86});
															thumbnails[5731361] = clik.newPhoto({"id":5731361,"src":"16540003_thumb.jpg","galleries_id":324730,"server_id":5,"link":"photo_5731361.html","width":130,"caption":"","height":128});
															thumbnails[7458306] = clik.newPhoto({"id":7458306,"src":"kPeen_rickhirtledotcom_thumb.jpg","galleries_id":324730,"server_id":5,"link":"photo_7458306.html","width":130,"caption":"","height":130});
															thumbnails[5731363] = clik.newPhoto({"id":5731363,"src":"16540002_thumb.jpg","galleries_id":324730,"server_id":5,"link":"photo_5731363.html","width":130,"caption":"","height":128});
															thumbnails[7037834] = clik.newPhoto({"id":7037834,"src":"AshmitPatel_by_rickhirtle_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7037834.html","width":130,"caption":"","height":86});
															thumbnails[8159111] = clik.newPhoto({"id":8159111,"src":"norblacknorwhite2_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_8159111.html","width":130,"caption":"","height":86});
															thumbnails[8159210] = clik.newPhoto({"id":8159210,"src":"NBNW_IndiaToday_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_8159210.html","width":130,"caption":"","height":181});
															thumbnails[7037886] = clik.newPhoto({"id":7037886,"src":"norblacknorwhite1rickhirtle.com_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7037886.html","width":130,"caption":"","height":137});
															thumbnails[8159212] = clik.newPhoto({"id":8159212,"src":"NBNW_India_Today_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_8159212.html","width":130,"caption":"","height":173});
															thumbnails[7909187] = clik.newPhoto({"id":7909187,"src":"Roopam_RickHirtle3_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7909187.html","width":130,"caption":"","height":86});
															thumbnails[7909190] = clik.newPhoto({"id":7909190,"src":"Roopam_RickHirtle1_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7909190.html","width":130,"caption":"","height":86});
															thumbnails[7909192] = clik.newPhoto({"id":7909192,"src":"Roopam_RickHirtle2_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7909192.html","width":130,"caption":"","height":86});
															thumbnails[7909194] = clik.newPhoto({"id":7909194,"src":"Roopam_RickHirtle4_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7909194.html","width":130,"caption":"","height":86});
															thumbnails[7909198] = clik.newPhoto({"id":7909198,"src":"Roopam_RickHirtle8_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7909198.html","width":130,"caption":"","height":86});
															thumbnails[7909200] = clik.newPhoto({"id":7909200,"src":"Roopam_RickHirtle6_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7909200.html","width":130,"caption":"","height":86});
															thumbnails[7909202] = clik.newPhoto({"id":7909202,"src":"Roopam_RickHirtle7_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7909202.html","width":130,"caption":"","height":86});
															thumbnails[7909204] = clik.newPhoto({"id":7909204,"src":"Roopam_RickHirtle5_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7909204.html","width":130,"caption":"","height":86});
															thumbnails[7913943] = clik.newPhoto({"id":7913943,"src":"Monica_Dogra_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7913943.html","width":130,"caption":"","height":84});
															thumbnails[7913945] = clik.newPhoto({"id":7913945,"src":"Monica_Dogra2_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7913945.html","width":130,"caption":"","height":84});
															thumbnails[7913950] = clik.newPhoto({"id":7913950,"src":"Monica_Dogra3_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7913950.html","width":130,"caption":"","height":84});
															thumbnails[7544384] = clik.newPhoto({"id":7544384,"src":"NBNW_rickhirtle_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7544384.html","width":130,"caption":"","height":92});
															thumbnails[7544386] = clik.newPhoto({"id":7544386,"src":"NBNW_FW11_LOOKBOOK1_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7544386.html","width":130,"caption":"","height":92});
															thumbnails[7544402] = clik.newPhoto({"id":7544402,"src":"NBNW_FW11_LOOKBOOK4_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7544402.html","width":130,"caption":"","height":92});
															thumbnails[7544403] = clik.newPhoto({"id":7544403,"src":"NBNW_FW11_LOOKBOOK6_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7544403.html","width":130,"caption":"","height":92});
															thumbnails[7544460] = clik.newPhoto({"id":7544460,"src":"NBNW_FW11_LOOKBOOK3_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7544460.html","width":130,"caption":"","height":92});
															thumbnails[7909173] = clik.newPhoto({"id":7909173,"src":"NBNW_FW11_LOOKBOOK_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_7909173.html","width":130,"caption":"","height":92});
															thumbnails[6489245] = clik.newPhoto({"id":6489245,"src":"photoshop_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_6489245.html","width":130,"caption":"","height":86});
															thumbnails[6503408] = clik.newPhoto({"id":6503408,"src":"rttc7rickhirtlecom_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_6503408.html","width":130,"caption":"","height":86});
															thumbnails[6503539] = clik.newPhoto({"id":6503539,"src":"rttc2rickhirtlecom_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_6503539.html","width":130,"caption":"","height":87});
															thumbnails[6486060] = clik.newPhoto({"id":6486060,"src":"rttc4rickhirtlecom_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_6486060.html","width":130,"caption":"","height":86});
															thumbnails[6503568] = clik.newPhoto({"id":6503568,"src":"rttc6rickhirtlecom_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_6503568.html","width":130,"caption":"","height":86});
															thumbnails[6503712] = clik.newPhoto({"id":6503712,"src":"rttc8rickhirtlecom_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_6503712.html","width":130,"caption":"","height":86});
															thumbnails[6526682] = clik.newPhoto({"id":6526682,"src":"5caughtrickhirtlecom_thumb.jpg","galleries_id":357290,"server_id":5,"link":"photo_6526682.html","width":130,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[324730] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Check this out!","link":"projects_324730.html","maxRecords":0.0,"photoIDs":[5731361.0,7458306.0,5731363.0],"skipIndex":0,"section_code":"projects","featured_images":5731361.0,"id":324730,"singleSection":false});				  						galleries[357290] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial","link":"work.html","maxRecords":0.0,"photoIDs":[7037834.0,8159111.0,8159210.0,7037886.0,8159212.0,7909187.0,7909190.0,7909192.0,7909194.0,7909198.0,7909200.0,7909202.0,7909204.0,7913943.0,7913945.0,7913950.0,7544384.0,7544386.0,7544402.0,7544403.0,7544460.0,7909173.0,6489245.0,6503408.0,6503539.0,6486060.0,6503568.0,6503712.0,6526682.0],"skipIndex":0,"section_code":"work","featured_images":7037886.0,"id":357290,"singleSection":true});				  						galleries[324731] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Purchase 2010","link":"projects_324731.html","maxRecords":0.0,"photoIDs":[5780914.0,5780916.0,5780917.0,5780972.0,5780976.0,5780979.0,5780981.0,5780987.0,5780990.0,5780993.0,5780995.0,5780998.0,5780999.0,5781003.0,5781047.0,5781050.0,5781062.0,5781066.0,5781067.0,5781069.0],"skipIndex":0,"section_code":"projects","featured_images":5780917.0,"id":324731,"singleSection":false});				  						galleries[324414] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People","link":"collections_324414.html","maxRecords":0.0,"photoIDs":[5731327.0,5731329.0,5731336.0,8615799.0,5731330.0,5731333.0,5731335.0,8139831.0,5731337.0,5731346.0,7167246.0],"skipIndex":0,"section_code":"collections","featured_images":5731330.0,"id":324414,"singleSection":false});				  						galleries[324415] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Contextomy","link":"collections_324415.html","maxRecords":0.0,"photoIDs":[8175606.0,5731364.0,5731366.0,5731365.0,8175612.0,8175618.0,5731370.0,5731368.0,8175727.0,8175724.0],"skipIndex":0,"section_code":"collections","featured_images":"5731370,5731365","id":324415,"singleSection":false});				  						galleries[401691] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"About a girl","link":"collections_401691.html","maxRecords":0.0,"photoIDs":[7413927.0,7413936.0,7413938.0,7413944.0,7413953.0,7413957.0,7414048.0,7414097.0,7414055.0],"skipIndex":0,"section_code":"collections","featured_images":7413953.0,"id":401691,"singleSection":false});				  						galleries[324423] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PR China","link":"collections_324423.html","maxRecords":0.0,"photoIDs":[5781109.0,5729027.0,5781136.0,5781101.0,5729050.0,5728993.0,5728986.0,5729052.0,5728985.0,5729060.0,5729069.0,5729066.0,5729002.0,5728999.0],"skipIndex":0,"section_code":"collections","featured_images":"5781136,5728985","id":324423,"singleSection":false});				  						galleries[324479] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Vandalism","link":"collections_324479.html","maxRecords":0.0,"photoIDs":[5731381.0,5731373.0,5731372.0,5731376.0,5731387.0,6055742.0,5731378.0,5731380.0,6399033.0,6055740.0,5731383.0,5731382.0,5731374.0],"skipIndex":0,"section_code":"collections","featured_images":"6399033,6055742,5731380,5731372","id":324479,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5731361,5731363,7413953,5731373,5731327,5731372,5731364,5731336,5729050,5731370,5731380,5731337,5729060,5731367';
imageSets[2] = '5780917,5731361,7037886,7413953,5781136,5731372,5731365,5731330,6055742,5731370,5728985,5731380,6399033';
imageSets[3] = '5731387,5781232,5731378';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Rkilly/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Rkilly/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 += 'collections.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 && 'collections' != '') {
					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 = 'rick hirtle photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> CN$' + (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 print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		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" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="rrrrrrrrrrick@gmail.com">';
					temp += '<input type="hidden" name="currency_code" value="CAD">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="rrrrrrrrrrick@gmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

