window.thumbnails = new Object();
												thumbnails[7305528] = new thumbnail(7305528,'','Workers in the Stall (Raleigh, 2003)','Hispanic_Woman_with_umbrella_resized_thumb.jpg',87, 130,1,'							photo_7305528.html');
												thumbnails[3203565] = new thumbnail(3203565,'','','WallJohn-31_thumb.jpg',130, 88,1,'							photo_3203565.html');
												thumbnails[2622372] = new thumbnail(2622372,'','The Price of His Art (Barcelona, 2005)','One Euro for Web_thumb.jpg',130, 87,1,'							photo_2622372.html');
												thumbnails[237353] = new thumbnail(237353,'','Thirty-Six Views of Jesus, #1 (2002)','B-Freezing-horizontal-web_thumb.jpg',130, 88,1,'							photo_237353.html');
												thumbnails[238833] = new thumbnail(238833,'','Tulip #1 (2001)','Tulip 3_thumb.jpg',130, 87,1,'							photo_238833.html');
												thumbnails[553348] = new thumbnail(553348,'','Circus Car (Paris, 2002)','03_wall_CircusCar_thumb.jpg',89, 130,1,'							photo_553348.html');
												thumbnails[555459] = new thumbnail(555459,'','Mark\'s Barn (2005)','Mark-Hewett\'s-Barn-72-web_thumb.jpg',87, 130,1,'							photo_555459.html');
												thumbnails[555462] = new thumbnail(555462,'','Boat at Rest (Scotland 2003)','Scotland-2003-72-for-web_thumb.jpg',86, 130,1,'							photo_555462.html');
												thumbnails[559950] = new thumbnail(559950,'','Musician with Child (Valetta, 2002)','Wall_John_03_thumb.jpg',130, 88,1,'							photo_559950.html');
												thumbnails[911858] = new thumbnail(911858,'','Quilt Seller ','Quilt-Seller11_thumb.jpg',130, 87,1,'							photo_911858.html');
												thumbnails[946141] = new thumbnail(946141,'','Stringing Peppers','StringingPeppers-web1_thumb.jpg',88, 130,1,'							photo_946141.html');
												thumbnails[2197093] = new thumbnail(2197093,'','You\'re Perfect (Paris, 2005)','Photographer and little man B&W for web_thumb.jpg',130, 88,1,'							photo_2197093.html');
												thumbnails[2622337] = new thumbnail(2622337,'','Welcome to the Street (Cambridge, 2005)','Wall_John_011_thumb.jpg',130, 88,1,'							photo_2622337.html');
												thumbnails[3203564] = new thumbnail(3203564,'','Man with Cap (Santiago de Anaya, 2008)','WallJohn-3_thumb.jpg',130, 88,1,'							photo_3203564.html');
												thumbnails[2692554] = new thumbnail(2692554,'','Park Land (Montpellier, 2003)','Woman grafitti France B&W_thumb.jpg',87, 130,1,'							photo_2692554.html');
												thumbnails[2697349] = new thumbnail(2697349,'','Way of Life (Cambridge, 2003)','Flag Graffitti 2 B&W border_thumb.jpg',130, 88,1,'							photo_2697349.html');
												thumbnails[239598] = new thumbnail(239598,'','Live Your Life (Cambridge, 2003)','LiveYourLife_thumb.jpg',130, 88,1,'							photo_239598.html');
												thumbnails[237102] = new thumbnail(237102,'','Tulip #2 (2001)','Tulip_thumb.jpg',130, 85,1,'							photo_237102.html');
												thumbnails[237360] = new thumbnail(237360,'','Flower Seller ','Flower Seller_thumb.jpg',130, 90,1,'							photo_237360.html');
												thumbnails[244131] = new thumbnail(244131,'','Untitled (Baton Rouge, 2006)','graffitti Baton Rouge_thumb.jpg',130, 88,1,'							photo_244131.html');
												thumbnails[547146] = new thumbnail(547146,'','Venice #2','Venice---72-GS-crop_thumb.jpg',82, 130,1,'							photo_547146.html');
												thumbnails[555476] = new thumbnail(555476,'','S&H (Boone 2005)','Barn-S&H-web_thumb.jpg',130, 86,1,'							photo_555476.html');
												thumbnails[2621600] = new thumbnail(2621600,'','Walking in Mexico City (2008)','Stilts Guy Mexico City1_thumb.jpg',89, 130,1,'							photo_2621600.html');
												thumbnails[2622349] = new thumbnail(2622349,'','On a Roll (London, 2005)','Clown in London_thumb.jpg',88, 130,1,'							photo_2622349.html');
												thumbnails[1986027] = new thumbnail(1986027,'','Two Guys (Santiago de Anaya, 2008)','Two guys Window_thumb.jpg',130, 99,1,'							photo_1986027.html');
												thumbnails[237258] = new thumbnail(237258,'','Musician with Child (Streets of Valetta #1, 2001)','Wall_John_00_thumb.jpg',130, 88,1,'							photo_237258.html');
												thumbnails[237372] = new thumbnail(237372,'','Flower Seller with Child ','FlowerSellers_thumb.jpg',130, 91,1,'							photo_237372.html');
												thumbnails[238782] = new thumbnail(238782,'','Tulip #3 (2001)','tulip 2_thumb.jpg',130, 86,1,'							photo_238782.html');
												thumbnails[239306] = new thumbnail(239306,'','Cambridge Folly (2003)','RiverHouse_thumb.jpg',130, 88,1,'							photo_239306.html');
												thumbnails[244132] = new thumbnail(244132,'','Your Time\'s Up (Cambridge, 2003)','Times up cleaned_thumb.jpg',130, 89,1,'							photo_244132.html');
												thumbnails[547147] = new thumbnail(547147,'','Venice #3','Venice---72-vertical-web-GS_thumb.jpg',88, 130,1,'							photo_547147.html');
												thumbnails[557999] = new thumbnail(557999,'','The Photographer Contemplates the SFMA (San Francisco, 2006)','Self-Portrait-San-Francisco_thumb.jpg',130, 85,1,'							photo_557999.html');
												thumbnails[780991] = new thumbnail(780991,'','New Market Generation','Market Smiling Child_thumb.jpg',130, 87,1,'							photo_780991.html');
												thumbnails[946156] = new thumbnail(946156,'','Flower Sellers','FlowerSellers1_thumb.jpg',130, 89,1,'							photo_946156.html');
												thumbnails[2683208] = new thumbnail(2683208,'','Thumbs Up (Cambridge, 2003)','Thumbs Up_thumb.jpg',130, 89,1,'							photo_2683208.html');
												thumbnails[237365] = new thumbnail(237365,'','Change of Seasons ','Snowman_thumb.jpg',130, 91,1,'							photo_237365.html');
												thumbnails[549507] = new thumbnail(549507,'','Doorway (Lucca, 2003)','DoorwayinLuccaforWWW1_thumb.jpg',87, 130,1,'							photo_549507.html');
												thumbnails[737549] = new thumbnail(737549,'','The Graces (after Botticelli\'s Primavera) Streets of Montpellier #1, 2003','Wall_John_000_thumb.jpg',130, 87,1,'							photo_737549.html');
												thumbnails[946144] = new thumbnail(946144,'','Basket Maker','BasketMaker1_thumb.jpg',130, 88,1,'							photo_946144.html');
												thumbnails[2621775] = new thumbnail(2621775,'','Getting Back (Washington, 2005)','12WallTakeThatWhitey2002_thumb.jpg',130, 90,1,'							photo_2621775.html');
												thumbnails[548888] = new thumbnail(548888,'','Stringing Peppers ','StringingPeppers1_thumb.jpg',89, 130,1,'							photo_548888.html');
												thumbnails[2661308] = new thumbnail(2661308,'','Friends ','Two Girls with Umbrella border_thumb.jpg',86, 130,1,'							photo_2661308.html');
												thumbnails[547145] = new thumbnail(547145,'','Venice #1','Venice-72-crouch-GS-web_thumb.jpg',86, 130,1,'							photo_547145.html');
												thumbnails[2661309] = new thumbnail(2661309,'','Pea Seller ','woman with peas sized 12x18_thumb.jpg',88, 130,1,'							photo_2661309.html');
												thumbnails[2661306] = new thumbnail(2661306,'','Under the Umbrella ','Hispanic Woman with umbrella resized_thumb.jpg',88, 130,1,'							photo_2661306.html');
												thumbnails[549365] = new thumbnail(549365,'','Untitled (Thirty-Six views of Genatis, #3)','Genatis-Old-Shot-721_thumb.jpg',89, 130,1,'							photo_549365.html');
												thumbnails[238910] = new thumbnail(238910,'','Next Generation #1 ','Young Girl_thumb.jpg',130, 84,1,'							photo_238910.html');
												thumbnails[549522] = new thumbnail(549522,'','Through the Arch (Louvre, 2005)','028-Louvre-Arch-Web_thumb.jpg',83, 130,1,'							photo_549522.html');
												thumbnails[561025] = new thumbnail(561025,'','Stringing Peppers (Keith Allen, 2003)','StringingPeppers-web_thumb.jpg',89, 130,1,'							photo_561025.html');
												thumbnails[753053] = new thumbnail(753053,'','Spark! (Streets of London # 2)','Spark! man 2 for WWW_thumb.jpg',77, 130,1,'							photo_753053.html');
												thumbnails[2698132] = new thumbnail(2698132,'','Tortilla Chef (Santiago, 2008)','Tortilla Chef B&W tint _thumb.jpg',91, 130,1,'							photo_2698132.html');
												thumbnails[238911] = new thumbnail(238911,'','New Potatoes ','New Potato Glowering Woman_thumb.jpg',130, 83,1,'							photo_238911.html');
												thumbnails[549516] = new thumbnail(549516,'','Untitled (Louvre, 2005)','LouvrefromMusee-Web_thumb.jpg',86, 130,1,'							photo_549516.html');
												thumbnails[552144] = new thumbnail(552144,'','Spark! (Streets of London #2)','Spark! man 2 for WWW1_thumb.jpg',77, 130,1,'							photo_552144.html');
												thumbnails[557952] = new thumbnail(557952,'','Obo Hobo (Charlotte, 2002)','NASCAR-Clown-web1_thumb.jpg',88, 130,1,'							photo_557952.html');
												thumbnails[561031] = new thumbnail(561031,'','Untitled (Thirty-Six Views of Genatis #5, 2005)','Genatis-2004_thumb.web1.jpg',86, 130,1,'							photo_561031.html');
												thumbnails[670759] = new thumbnail(670759,'','Venice #6','Venice veil horizontal GS 72 web1_thumb.jpg',130, 85,1,'							photo_670759.html');
												thumbnails[1993130] = new thumbnail(1993130,'','The Photographer Contemplates the Metropolitan Museum (New York, 2008)','Metropolitan self portrait_thumb.jpg',87, 130,1,'							photo_1993130.html');
												thumbnails[236915] = new thumbnail(236915,'','Basket Maker ','BasketMaker_thumb.jpg',130, 89,1,'							photo_236915.html');
												thumbnails[552139] = new thumbnail(552139,'','The Photographer Contemplates the High Museum of Art (Atlanta, 2006)','High-Museum-72-GS-Web_thumb.jpg',83, 130,1,'							photo_552139.html');
												thumbnails[560945] = new thumbnail(560945,'','Untitled (Thirty-Six Views of Genatis, #1)','Genatis-Old-Shot-72_thumb.jpg',89, 130,1,'							photo_560945.html');
												thumbnails[237418] = new thumbnail(237418,'','Take that! (Streets of Washington #1, 2004)','StreetKidsgivetheFinger_thumb.jpg',130, 89,1,'							photo_237418.html');
												thumbnails[547153] = new thumbnail(547153,'','Venice #8','Venice - 72 GS WEB _thumb.jpg',130, 85,1,'							photo_547153.html');
												thumbnails[552151] = new thumbnail(552151,'','Fair Vender #2 (Raleigh 2004)','FairVenderWeb_thumb.jpg',87, 130,1,'							photo_552151.html');
												thumbnails[555470] = new thumbnail(555470,'','The photographer Contemplates a Strange Head in Tulsa (Oklahoma, 2002)','StrangeHead-72-web_thumb.jpg',88, 130,1,'							photo_555470.html');
												thumbnails[560958] = new thumbnail(560958,'','Doorway in Lucca (Streets of Florence series #6)','DoorwayinLuccaforWWW_thumb.jpg',88, 130,1,'							photo_560958.html');
												thumbnails[565943] = new thumbnail(565943,'','Apple Seller ','Adult-Apple-Seller-Web_thumb.jpg',130, 87,1,'							photo_565943.html');
												thumbnails[237271] = new thumbnail(237271,'','Portobello Road (Streets of London #1, 2003)','Wall_John_27_thumb.jpg',130, 87,1,'							photo_237271.html');
												thumbnails[549390] = new thumbnail(549390,'','Untitled (Streets of Baltimore Series, #1)','Glassesman-72-Web_thumb.jpg',88, 130,1,'							photo_549390.html');
												thumbnails[880225] = new thumbnail(880225,'','Barbie and Friend','Barbie-and-Santa-72 cleaned cropped_thumb.jpg',83, 130,1,'							photo_880225.html');
												thumbnails[946168] = new thumbnail(946168,'','Next Generation ','Market Smiling Child 72_thumb.jpg',130, 88,1,'							photo_946168.html');
												thumbnails[2201425] = new thumbnail(2201425,'','Calle della Botte (Italy, 2007)','Calle Delle Botte_thumb.jpg',86, 130,1,'							photo_2201425.html');
												thumbnails[2643169] = new thumbnail(2643169,'','On a Roll (London, 2005)','Wall_John_051_thumb.jpg',88, 130,1,'							photo_2643169.html');
												thumbnails[1986024] = new thumbnail(1986024,'','Strolling in Mexico City (2008)','Stilts Guy Mexico City12_thumb.jpg',89, 130,1,'							photo_1986024.html');
												thumbnails[549468] = new thumbnail(549468,'','Circus Car (Streets of Paris Series #3, 2003)','03_wall_CircusCar1_thumb.jpg',89, 130,1,'							photo_549468.html');
												thumbnails[555473] = new thumbnail(555473,'','Monk with Pigeons (Streets of Tokyo #1 2003)','Monk-72-web_thumb.jpg',84, 130,1,'							photo_555473.html');
												thumbnails[1991510] = new thumbnail(1991510,'','Woman with Child (Actopan, Mexico 2008)','Woman and child in Market_thumb.jpg',130, 89,1,'							photo_1991510.html');
												thumbnails[2621506] = new thumbnail(2621506,'','Buckets at the Market ','Buckets_thumb.jpg',130, 89,1,'							photo_2621506.html');
												thumbnails[946174] = new thumbnail(946174,'','Quilt Seller (2002)','Quilt-Seller1_thumb.jpg',130, 87,1,'							photo_946174.html');
												thumbnails[244136] = new thumbnail(244136,'','Fair Vendor #1 (Raleigh, 2005)','T jnwfair_thumb.002.jpg',130, 86,1,'							photo_244136.html');
												thumbnails[946159] = new thumbnail(946159,'','Apple Seller (2001)','Market 5_thumb.jpg',130, 87,1,'							photo_946159.html');
												thumbnails[1991508] = new thumbnail(1991508,'','Balloon Man (Actopan, Mexico 2008)','Wall_John_02_thumb.jpg',130, 88,1,'							photo_1991508.html');
												thumbnails[2622273] = new thumbnail(2622273,'','Balloon Woman (Cambridge, 2003)','Wall_John_031_thumb.jpg',130, 89,1,'							photo_2622273.html');
												thumbnails[2622334] = new thumbnail(2622334,'','Making a Woman (Bologna, 2007)','Wall_John_041_thumb.jpg',130, 93,1,'							photo_2622334.html');
												thumbnails[670758] = new thumbnail(670758,'','Venice #5','Venice - mask canal 72 web GS1_thumb.jpg',130, 85,1,'							photo_670758.html');
												thumbnails[1985995] = new thumbnail(1985995,'','Police Woman (Mexico City, 2008)','Wall_John_32_thumb.jpg',130, 88,1,'							photo_1985995.html');
												thumbnails[2661332] = new thumbnail(2661332,'','Collard Man ','Collard Man luster border_thumb.jpg',130, 87,1,'							photo_2661332.html');
												thumbnails[2661335] = new thumbnail(2661335,'','Man in Stall ','Man in Stall_thumb.jpg',130, 89,1,'							photo_2661335.html');
												thumbnails[7301141] = new thumbnail(7301141,'392792','Urban Narcissism','Urban_Narcissism_thumb.jpg',130, 88,1,'							photo_7301141.html');
												thumbnails[7293427] = new thumbnail(7293427,'392793','Male Gaze No. 1','Male_Gaze_thumb.jpg',130, 88,1,'							photo_7293427.html');
												thumbnails[7301137] = new thumbnail(7301137,'392792','Make a Man in Manhattan','Make_a_Man_in_Manhattan_thumb.jpg',130, 87,1,'							photo_7301137.html');
												thumbnails[7304627] = new thumbnail(7304627,'394968','Guy in Cap (Mexico, 2008)','guy_in_Cap_2_thumb.jpg',130, 87,1,'							photo_7304627.html');
												thumbnails[7305338] = new thumbnail(7305338,'395157','Quilt Maker (Raleigh, 2003)','Farmers_Market_Hat_Woman_Adjusted_12x18_border_toned_thumb.jpg',130, 88,1,'							photo_7305338.html');
												thumbnails[7293429] = new thumbnail(7293429,'392793','Watch Over You No. 1','Watch_Over_You_thumb.jpg',130, 85,1,'							photo_7293429.html');
												thumbnails[7301140] = new thumbnail(7301140,'392792','Make a Woman in Bologna','Make_a_Woman_in_Bologna_thumb.jpg',130, 91,1,'							photo_7301140.html');
												thumbnails[7304646] = new thumbnail(7304646,'394968','The Bride Celebrates with her Companions (Georgia, 2004)','Bride_celebrates_8x12_toned_thumb.jpg',130, 84,1,'							photo_7304646.html');
												thumbnails[7305404] = new thumbnail(7305404,'395157','Basket Maker (Raleigh, 2003)','Neil_Thomas_luster_proof_8x12_toned_thumb.jpg',130, 88,1,'							photo_7305404.html');
												thumbnails[7293431] = new thumbnail(7293431,'392793','Watch Over You No. 2','Watch_Over_You_2_thumb.jpg',130, 87,1,'							photo_7293431.html');
												thumbnails[7301146] = new thumbnail(7301146,'392792','Furtive Male Gaze','Bologna_Store_Window_with_Nude_and_Man_thumb.jpg',130, 87,1,'							photo_7301146.html');
												thumbnails[7304679] = new thumbnail(7304679,'394968','Two Guys in a Window (Mexico, 2008)','21._WallJ_Two_Guys_thumb.jpg',130, 98,1,'							photo_7304679.html');
												thumbnails[7305409] = new thumbnail(7305409,'395157','Collard Seller (Raleigh, 2003)','Collard_Man_luster_border_thumb.jpg',130, 86,1,'							photo_7305409.html');
												thumbnails[7301521] = new thumbnail(7301521,'392793','Male Gaze No. 3','Male_Gaze_3_thumb.jpg',130, 87,1,'							photo_7301521.html');
												thumbnails[7293489] = new thumbnail(7293489,'392793','Living in the Gaze','Living_in_the_Gaze_thumb.jpg',130, 88,1,'							photo_7293489.html');
												thumbnails[7293436] = new thumbnail(7293436,'392793','Black Coat Woman No. 1','Piazza_de_San_Marco_straightened_300_8x12_toned_thumb.jpg',130, 88,1,'							photo_7293436.html');
												thumbnails[7301148] = new thumbnail(7301148,'392792','The Transformation by Desire','Transformation_of_Desire_thumb.jpg',85, 130,1,'							photo_7301148.html');
												thumbnails[7304653] = new thumbnail(7304653,'394968','Man in Turban (India, 2008)','Wall_John_02_94E72FC3-24E8-5EC4-4FFC9C4EDAB465F4_thumb.jpg',130, 87,1,'							photo_7304653.html');
												thumbnails[7305413] = new thumbnail(7305413,'395157','Mrs. Barefoot (Raleigh, 2003)','Barefoot_Farms_10x15_border_toned_trimmed_thumb.jpg',130, 87,1,'							photo_7305413.html');
												thumbnails[7293441] = new thumbnail(7293441,'392793','Black Coat Woman No. 2','Paris_black_coat_woman_8x12_tint_border_print_version_thumb.jpg',130, 86,1,'							photo_7293441.html');
												thumbnails[7304667] = new thumbnail(7304667,'394968','Beggar Woman (India, 2008)','2WallBeggarWoman_thumb.jpg',87, 130,1,'							photo_7304667.html');
												thumbnails[7305426] = new thumbnail(7305426,'395157','Stringing Peppers (Raleigh, 2003)','Keith_Allen_luster_print_version_straightened_toned_thumb.jpg',89, 130,1,'							photo_7305426.html');
												thumbnails[7293439] = new thumbnail(7293439,'392793','The Graces','The_Graces_in_the_Street_thumb.jpg',130, 85,1,'							photo_7293439.html');
												thumbnails[7293446] = new thumbnail(7293446,'392793','Recycling Gaze','Eno_2008_www_thumb.jpg',130, 86,1,'							photo_7293446.html');
												thumbnails[7301624] = new thumbnail(7301624,'392792','30% Off','30_Off_thumb.jpg',91, 130,1,'							photo_7301624.html');
												thumbnails[7304672] = new thumbnail(7304672,'394968','Genatis (North Carolina, 2004)','3WallGenatis_thumb.jpg',87, 130,1,'							photo_7304672.html');
												thumbnails[7305428] = new thumbnail(7305428,'395157','Pea Seller (Raleigh, 2003)','woman_with_peas_sized_12x18_thumb.jpg',86, 130,1,'							photo_7305428.html');
												thumbnails[7293463] = new thumbnail(7293463,'392793','Gazing Coots on Bench','Coots_on_Bench_BW_toned_8x12_thumb.jpg',130, 87,1,'							photo_7293463.html');
												thumbnails[7301604] = new thumbnail(7301604,'392792','Looking/Looking Back #5','Looking_Looking_Back_No1._5_thumb.jpg',78, 130,1,'							photo_7301604.html');
												thumbnails[7301151] = new thumbnail(7301151,'392792','Presiding Spirit of Acquisition','Presiding_Spirit_of_Acquisition_thumb.jpg',87, 130,1,'							photo_7301151.html');
												thumbnails[7304682] = new thumbnail(7304682,'394968','Guy in Hat (Mexico, 2008)','3._WallJ_Man_with_Hat_thumb.jpg',87, 130,1,'							photo_7304682.html');
												thumbnails[7305432] = new thumbnail(7305432,'395157','Girls under Umbrella (Raleigh, 2003)','Two_Girls_with_Umbrella_border_thumb.jpg',83, 130,1,'							photo_7305432.html');
												thumbnails[7301635] = new thumbnail(7301635,'392792','Looking/Looking Back #1','Looking-LookingBack_No12._1_thumb.jpg',130, 87,1,'							photo_7301635.html');
												thumbnails[7293454] = new thumbnail(7293454,'392793','Gaze of the Artist No. 1','Painters_Gaze_thumb.jpg',130, 85,1,'							photo_7293454.html');
												thumbnails[7301631] = new thumbnail(7301631,'392792','Looking Together','Looking_Together_thumb.jpg',130, 82,1,'							photo_7301631.html');
												thumbnails[7304684] = new thumbnail(7304684,'394968','Tortilla Chef','7_thumb.jpg',90, 130,1,'							photo_7304684.html');
												thumbnails[7305740] = new thumbnail(7305740,'395157','Collard Seller No. 3 (Raleigh, 2003)','Making_Change_umbrella_10x15_toned_thumb.jpg',88, 130,1,'							photo_7305740.html');
												thumbnails[7293456] = new thumbnail(7293456,'392793','Gaze of the Artist No. 2','Photographer_in_Wilmington_BW_10x15_toned_thumb.jpg',130, 86,1,'							photo_7293456.html');
												thumbnails[7301640] = new thumbnail(7301640,'392792','Headless Male/Gazing Female','Bologna_store_window_baithing_model_www_thumb.jpg',130, 88,1,'							photo_7301640.html');
												thumbnails[7305435] = new thumbnail(7305435,'395157','Younger Generation (Raleigh, 2003)','Young_Girl_thumb.jpg',130, 87,1,'							photo_7305435.html');
												thumbnails[7293450] = new thumbnail(7293450,'392793','Gazing/Gazing Back','Lucca_window_horizontal_BW_50_denoise_thumb.jpg',130, 87,1,'							photo_7293450.html');
												thumbnails[7293459] = new thumbnail(7293459,'392793','Musician with Child','Musician_with_Child_10x15_toned_thumb.jpg',130, 87,1,'							photo_7293459.html');
												thumbnails[7305597] = new thumbnail(7305597,'395157','Collard Seller No. 2 (Raleigh, 2003)','Collar_seller_2_10x15_thumb.jpg',130, 88,1,'							photo_7305597.html');
												thumbnails[7293461] = new thumbnail(7293461,'392793','Watch over Me','Bear_with_kid_DC_2004_BW_10x15_toned_thumb.jpg',130, 94,1,'							photo_7293461.html');
												thumbnails[7305439] = new thumbnail(7305439,'395157','Merchant (Raleigh, 2003)','Man_in_Stall_thumb.jpg',130, 87,1,'							photo_7305439.html');
												thumbnails[7301653] = new thumbnail(7301653,'392792','Sentinels of Desire','Window_cropped_thumb.jpg',130, 94,1,'							photo_7301653.html');
												thumbnails[7305447] = new thumbnail(7305447,'395157','Younger Generation No. 2 (Raleigh, 2003)','New_Potato_Glowering_Woman_thumb.jpg',130, 87,1,'							photo_7305447.html');
												thumbnails[7305771] = new thumbnail(7305771,'395157','Younger Generation No. 4 (Raleigh, 2003)','Farmers_Market_Female_Child_Adjusted_10x15_border_thumb.jpg',130, 88,1,'							photo_7305771.html');
												thumbnails[7293465] = new thumbnail(7293465,'392793','Stop!','30_thumb.jpg',130, 87,1,'							photo_7293465.html');
												thumbnails[7305763] = new thumbnail(7305763,'395157','Flower Seller No. 1 (Raleigh, 2003)','Flower_Woman_10x15_thumb.jpg',130, 86,1,'							photo_7305763.html');
												thumbnails[7301663] = new thumbnail(7301663,'392792','Looking/Looking Back #3','Looking_Looking_Back_No1._4_thumb.jpg',88, 130,1,'							photo_7301663.html');
												thumbnails[7301670] = new thumbnail(7301670,'392792','Looking/Looking Back #6','Looking-Looking_Back_No._3_thumb.jpg',87, 130,1,'							photo_7301670.html');
												thumbnails[7305730] = new thumbnail(7305730,'395157','Flower Sellers (Raleigh, 2003)','flower_folks_with_border_luster_thumb.jpg',130, 87,1,'							photo_7305730.html');
												thumbnails[7301646] = new thumbnail(7301646,'392792','Looking/Looking Back #2','Looking-LookingBack_No1._2_thumb.jpg',88, 130,1,'							photo_7301646.html');
												thumbnails[7301643] = new thumbnail(7301643,'392792','Penelope!','Penelope_thumb.jpg',89, 130,1,'							photo_7301643.html');
												thumbnails[7305756] = new thumbnail(7305756,'395157','Man with Hat (Raleigh, 2003)','man_with_hat_10x15_thumb.jpg',130, 88,1,'							photo_7305756.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[392792] = new gallery(392792,'7301137','The Surface of Desire','gallery',[7301141,7301137,7301140,7301146,7301148,7301624,7301604,7301151,7301635,7301631,7301640,7301653,7301663,7301670,7301646,7301643],0, 1, '', '																																																																																																							gallery_392792.html',0,0);
				  					galleries[392793] = new gallery(392793,'7293427','Living in the Gaze','gallery',[7293427,7293429,7293431,7301521,7293489,7293436,7293441,7293439,7293446,7293463,7293454,7293456,7293450,7293459,7293461,7293465],0, 1, '', '																																																																																																							gallery_392793.html',0,0);
				  					galleries[394968] = new gallery(394968,'7304627','Portraits','gallery',[7304627,7304646,7304679,7304653,7304667,7304672,7304682,7304684],0, 1, '', '																																																																																																							gallery_394968.html',0,0);
				  					galleries[395157] = new gallery(395157,'7305413','Farmers Market','gallery',[7305338,7305404,7305409,7305413,7305426,7305428,7305432,7305740,7305435,7305597,7305439,7305447,7305771,7305763,7305730,7305756],0, 1, '', '																																																																																																							gallery_395157.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[238840] = '7305771,7305763,7305756,7305740,7305730,7305597,7305528,7305447,7305439,7305435,7305432,7305428,7305426,7305413,7305404,7305338';
imageSets[238731] = '7301521,7293489,7293465,7293463,7293461,7293459,7293456,7293454,7293450,7293446,7293441,7293439,7293436,7293431';
imageSets[238839] = '7304684,7304682,7304679,7304672,7304667,7304653,7304646,7304627';
imageSets[1] = '7305413,7304627,7301137,7293427';
imageSets[2] = '7305413,7304627,7301137,7293427,3203564,1985995,946141,555476,553348,552144,552139,239598,237102,236915';
imageSets[3] = '3203565,3203564,2697349,2692554,2683208,2661309,2661308,2622372,2622349,2622337,2621775,2621600,2197093,1986027,946156,946144,946141,911858,780991,737549';
imageSets[238838] = '7301670,7301663,7301653,7301646,7301643,7301640,7301635,7301624,7301604,7301151,7301148,7301146,7301141,7301140,7301137';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jnwallphoto/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jnwallphoto/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));		}, 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 = 'John N Wall | Photographer: ' + 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));    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				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>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> 				$' + (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="jnwallphoto@gmail.com">';
	temp = temp + '<input type="hidden" name="currency_code" value="USD">';
	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="jnwallphoto@gmail.com">';
	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;
	}
}

			

