window.thumbnails = new Object();
												thumbnails[582935] = new thumbnail(582935,'44491','','pianomanW1_thumb.jpg',130, 86,15,'photo_582935.html');
												thumbnails[597371] = new thumbnail(597371,'44491','','Firestones_thumb.jpg',130, 88,15,'photo_597371.html');
												thumbnails[598630] = new thumbnail(598630,'44491','Solace unleashed 2004','SolaceUnleashedW_thumb.jpg',130, 90,15,'photo_598630.html');
												thumbnails[598730] = new thumbnail(598730,'44491','Tomb Cross 2','TombCross2W_thumb.jpg',130, 88,15,'photo_598730.html');
												thumbnails[598732] = new thumbnail(598732,'44491','Mardi Gras Cross 2004','MardiGrasCrossW_thumb.jpg',130, 88,15,'photo_598732.html');
												thumbnails[598735] = new thumbnail(598735,'44491','Singer and Drums','Drums&sing05W_thumb.jpg',130, 86,15,'photo_598735.html');
												thumbnails[608203] = new thumbnail(608203,'44491','Accordion Zydeco','AccordianPlayW_thumb.jpg',130, 85,15,'photo_608203.html');
												thumbnails[608205] = new thumbnail(608205,'44491','The French Quarter 2003','SingerWithMike2W_thumb.jpg',130, 93,15,'photo_608205.html');
												thumbnails[624636] = new thumbnail(624636,'44491','Minstrel','MinstrelW_thumb.jpg',130, 192,15,'photo_624636.html');
												thumbnails[7089321] = new thumbnail(7089321,'385451','Hands of a Master','AbueloManosChavez2W_thumb.jpg',130, 98,15,'photo_7089321.html');
												thumbnails[7089325] = new thumbnail(7089325,'385450','Dolores Porras.  Treasure of Mexico','DoloresPorras_thumb.jpg',130, 185,15,'photo_7089325.html');
												thumbnails[7089891] = new thumbnail(7089891,'385446','View from B&B','OacacaRoofView2W_thumb.jpg',130, 98,15,'photo_7089891.html');
												thumbnails[7089903] = new thumbnail(7089903,'385451','Rugs: Federico Chavez','RugsChavezours2W_thumb.jpg',130, 130,15,'photo_7089903.html');
												thumbnails[7089915] = new thumbnail(7089915,'385451','Yarns: Chavez Family','YarnsChavezW_thumb.jpg',130, 98,15,'photo_7089915.html');
												thumbnails[7089927] = new thumbnail(7089927,'385444','','YohualichanTemple2W_thumb.jpg',130, 98,15,'photo_7089927.html');
												thumbnails[7126378] = new thumbnail(7126378,'385444','Voices in Stone','MitlaZapotecDetails2_thumb.jpg',130, 87,15,'photo_7126378.html');
												thumbnails[7126382] = new thumbnail(7126382,'385444','','YohualichanTemple3W_947A6DEA-24E8-5EC4-4F25F53CD4BEB395_thumb.jpg',130, 98,15,'photo_7126382.html');
												thumbnails[7126390] = new thumbnail(7126390,'385444','A Mix of Cultures','YohualichanDancers1W_thumb.jpg',130, 105,15,'photo_7126390.html');
												thumbnails[7126688] = new thumbnail(7126688,'385470','Wisk','WiskCooking_thumb.jpg',130, 87,15,'photo_7126688.html');
												thumbnails[7126703] = new thumbnail(7126703,'385446','Early Morning on the Mountain','BenitoJuarezEarMorn2_thumb.jpg',130, 105,15,'photo_7126703.html');
												thumbnails[7126766] = new thumbnail(7126766,'385446','','CactusSedumW_thumb.jpg',130, 87,15,'photo_7126766.html');
												thumbnails[7126784] = new thumbnail(7126784,'385448','Lights of the Pasada','NiteLightPasada_thumb.jpg',130, 87,15,'photo_7126784.html');
												thumbnails[7126786] = new thumbnail(7126786,'385448','Christmas Fireworks cascade, Oaxaca City','OaxacaFrwrksCascadeW_thumb.jpg',130, 87,15,'photo_7126786.html');
												thumbnails[7126787] = new thumbnail(7126787,'385448','Fountain, Puebla City','PueblaZocoloFountainW_thumb.jpg',130, 130,15,'photo_7126787.html');
												thumbnails[7126797] = new thumbnail(7126797,'385449','Beaded Textile, Museo','TextileBeads1W1_thumb.jpg',130, 87,15,'photo_7126797.html');
												thumbnails[7126799] = new thumbnail(7126799,'385449','','TextileBeads2W_thumb.jpg',130, 87,15,'photo_7126799.html');
												thumbnails[7126803] = new thumbnail(7126803,'385449','Circles of Wool','TextilePatternBrnW_thumb.jpg',130, 87,15,'photo_7126803.html');
												thumbnails[7126808] = new thumbnail(7126808,'385450','','TeotitlanFace1W_94BC0FC0-24E8-5EC4-4FE67EDAEB3DE9CC_thumb.jpg',130, 130,15,'photo_7126808.html');
												thumbnails[7126811] = new thumbnail(7126811,'385450','','Woman1W_thumb.jpg',130, 194,15,'photo_7126811.html');
												thumbnails[7126815] = new thumbnail(7126815,'385451','Chavez Loom','Loom2bW_thumb.jpg',130, 98,15,'photo_7126815.html');
												thumbnails[7126816] = new thumbnail(7126816,'385451','Above the Valley','TeotitlanVALLE_thumb.jpg',130, 98,15,'photo_7126816.html');
												thumbnails[7126819] = new thumbnail(7126819,'385451','','TheValleMist_thumb.jpg',130, 87,15,'photo_7126819.html');
												thumbnails[7335723] = new thumbnail(7335723,'396978','Antenna','Antenna_Shawnee_OH_2008W_thumb.jpg',130, 193,15,'photo_7335723.html');
												thumbnails[7335725] = new thumbnail(7335725,'396978','Cold Day','Cold_Day_Shawnee_OH_2008W_thumb.jpg',130, 87,15,'photo_7335725.html');
												thumbnails[7335734] = new thumbnail(7335734,'396978','Post & Clapboard','PostClapboard_Shawnee_OH_2008W_thumb.jpg',130, 88,15,'photo_7335734.html');
												thumbnails[7335739] = new thumbnail(7335739,'396978','Hydrant in Snow','Hydrant_Shawnee_OH_2008W_thumb.jpg',130, 193,15,'photo_7335739.html');
												thumbnails[7335742] = new thumbnail(7335742,'396978','RR Curve','RailroadCurveW_thumb.jpg',130, 87,15,'photo_7335742.html');
												thumbnails[7335743] = new thumbnail(7335743,'396978','','SnowAlley_Goucester_OH_2008W_thumb.jpg',130, 193,15,'photo_7335743.html');
												thumbnails[7335745] = new thumbnail(7335745,'396978','Snow-Mow','SnowMower_Shawnee_OH_2008W_thumb.jpg',130, 87,15,'photo_7335745.html');
												thumbnails[7335748] = new thumbnail(7335748,'396978','Steps in snow','SnowSteps_Shawnee_OH_2008W_thumb.jpg',130, 194,15,'photo_7335748.html');
												thumbnails[7335754] = new thumbnail(7335754,'396978','','ThroughWindow_Shawnee_OH_2008W_thumb.jpg',130, 87,15,'photo_7335754.html');
												thumbnails[7335756] = new thumbnail(7335756,'396978','Tractor Seat','TractorSeat_Glucester_OH_2008W_thumb.jpg',130, 193,15,'photo_7335756.html');
												thumbnails[7335757] = new thumbnail(7335757,'396978','Truck-House','TruckHouse_Gloucester_OH_2008W_thumb.jpg',130, 87,15,'photo_7335757.html');
												thumbnails[7335785] = new thumbnail(7335785,'396978','Window Winter','Window_Shawnee_OH_2008W_thumb.jpg',130, 193,15,'photo_7335785.html');
												thumbnails[7336688] = new thumbnail(7336688,'397044','Elevator 1','Grain_Elevator_1_Logan_County_Illinois_2007W_thumb.jpg',130, 87,15,'photo_7336688.html');
												thumbnails[7336691] = new thumbnail(7336691,'397044','Grain Elevator 2','Grain_Elevator_2_Logan_County_IL_2007W_thumb.jpg',130, 192,15,'photo_7336691.html');
												thumbnails[7336694] = new thumbnail(7336694,'397044','Grain Elevator 3','Grain_Elevator_3_Logan_County_IL_2007W_thumb.jpg',130, 88,15,'photo_7336694.html');
												thumbnails[7336696] = new thumbnail(7336696,'397044','Grain Elevator 4','Grain_Elevator_4_Logan_County_IL_2007W_thumb.jpg',130, 192,15,'photo_7336696.html');
												thumbnails[7336699] = new thumbnail(7336699,'397044','Grain Elevator 5','Grain_Elevator_5_Logan_County_IL_2007W_thumb.jpg',130, 88,15,'photo_7336699.html');
												thumbnails[7336700] = new thumbnail(7336700,'397044','Grain Elevator 6','Grain_Elevator_6_Logan_County_IL_2007W_thumb.jpg',130, 192,15,'photo_7336700.html');
												thumbnails[7336703] = new thumbnail(7336703,'397044','Grain Elevator 7','Grain_Elevator_7_Logan_County_IL_2007W_thumb.jpg',130, 192,15,'photo_7336703.html');
												thumbnails[7336708] = new thumbnail(7336708,'397044','Grain Elevator 8','Grain_Elevator_8_Logan_County_IL_2007W_thumb.jpg',130, 192,15,'photo_7336708.html');
												thumbnails[7336714] = new thumbnail(7336714,'397044','Grain Towers','Grain_Towers_1_Logan_County_IL_2007W_thumb.jpg',130, 88,15,'photo_7336714.html');
												thumbnails[7345983] = new thumbnail(7345983,'397612','Doorway','DoorwayTeotitlanW3_thumb.jpg',130, 87,15,'photo_7345983.html');
												thumbnails[7345988] = new thumbnail(7345988,'397612','Window','WindowTeotitlanMx200-W_thumb.jpg',130, 192,15,'photo_7345988.html');
												thumbnails[7345998] = new thumbnail(7345998,'397612','Bicycle 1','tOm-Oaxaca-Bicycle1W_thumb.jpg',130, 193,15,'photo_7345998.html');
												thumbnails[7346002] = new thumbnail(7346002,'397612','Beyond the Church','tOm-Oaxaca-ChurchSkyMangrW_thumb.jpg',130, 87,15,'photo_7346002.html');
												thumbnails[7346005] = new thumbnail(7346005,'397612','Ladder','LadderTeotitlanMx2009W_thumb.jpg',130, 195,15,'photo_7346005.html');
												thumbnails[7346016] = new thumbnail(7346016,'397612','Farm Working','tOm-Oaxaca-FarmingW_thumb.jpg',130, 88,15,'photo_7346016.html');
												thumbnails[7346018] = new thumbnail(7346018,'397612','Market Work','tOm-Oaxaca-MktManW_thumb.jpg',130, 88,15,'photo_7346018.html');
												thumbnails[7346025] = new thumbnail(7346025,'397612','Fruit Bowl','tOm-Oaxaca-OutKitFruitW_thumb.jpg',130, 88,15,'photo_7346025.html');
												thumbnails[7346027] = new thumbnail(7346027,'397612','Wall, Church','tOm-Oaxaca-Wall2W_thumb.jpg',130, 87,15,'photo_7346027.html');
												thumbnails[7346029] = new thumbnail(7346029,'397612','From the Church','tOm-Qaxaca-StreetChurchW_thumb.jpg',130, 87,15,'photo_7346029.html');
												thumbnails[2556131] = new thumbnail(2556131,'163271','Hutong Image 1','BeijingHutong1c4fap_thumb.jpg',130, 88,15,'photo_2556131.html');
												thumbnails[2557425] = new thumbnail(2557425,'163271','Blanket Drying','BeijingHutongBlanktW_thumb.jpg',130, 88,15,'photo_2557425.html');
												thumbnails[2557435] = new thumbnail(2557435,'163271','Mother & Child','BeijingHutongWmnChld72_thumb.jpg',130, 88,15,'photo_2557435.html');
												thumbnails[7850321] = new thumbnail(7850321,'423562','','TreeShapesW2_Teotitlan_del_Valle_thumb.jpg',130, 193,15,'photo_7850321.html');
												thumbnails[2557428] = new thumbnail(2557428,'163271','Bicycle','BeijingHutongCycleW_thumb.jpg',130, 192,15,'photo_2557428.html');
												thumbnails[7850322] = new thumbnail(7850322,'423562','','TreeShapesW3_Teotitlan_del_Valle_thumb.jpg',130, 192,15,'photo_7850322.html');
												thumbnails[2557431] = new thumbnail(2557431,'163271','Cooking outdoors along the street in a Beijing Hutong','BeijingHutongRestaurW_thumb.jpg',130, 193,15,'photo_2557431.html');
												thumbnails[7850324] = new thumbnail(7850324,'423562','','TreeShapesW5_Teotitlan_del_Valle_thumb.jpg',130, 194,15,'photo_7850324.html');
												thumbnails[7089327] = new thumbnail(7089327,'385447','Woman at Market','OaxacaMkt1W_thumb.jpg',130, 87,15,'photo_7089327.html');
												thumbnails[7126621] = new thumbnail(7126621,'385455','','ColorChurchW_thumb.jpg',130, 194,15,'photo_7126621.html');
												thumbnails[7126683] = new thumbnail(7126683,'385470','','KeyholeW_thumb.jpg',130, 87,15,'photo_7126683.html');
												thumbnails[7126704] = new thumbnail(7126704,'385446','Early Morning on the mountain','BenitoJuarezYeloFlwr_thumb.jpg',130, 87,15,'photo_7126704.html');
												thumbnails[7335197] = new thumbnail(7335197,'396955','Dancers 1','Dancers1SanMigueldeAllendeMexico_2007W_thumb.jpg',130, 88,15,'photo_7335197.html');
												thumbnails[7337449] = new thumbnail(7337449,'397079','El Picacho','Robbins_t5_El_Picacho_thumb.jpg',130, 193,15,'photo_7337449.html');
												thumbnails[7340878] = new thumbnail(7340878,'397319','SummerHouse','Summer_House_Licking_County_Ohio_2006W_thumb.jpg',130, 87,15,'photo_7340878.html');
												thumbnails[7436273] = new thumbnail(7436273,'403143','Abuela','AbuelaSanMigueldeAllende2006W_thumb.jpg',130, 194,15,'photo_7436273.html');
												thumbnails[2557438] = new thumbnail(2557438,'163271','Olympic Presence','Beijng2CokeOlymSgnsW_thumb.jpg',130, 192,15,'photo_2557438.html');
												thumbnails[7850326] = new thumbnail(7850326,'423562','','TreeShapesW6_Teotitlan_del_Valle_thumb.jpg',130, 194,15,'photo_7850326.html');
												thumbnails[7850329] = new thumbnail(7850329,'423562','','TreeShapesW7_Teotitlan_del_Valle_thumb.jpg',130, 193,15,'photo_7850329.html');
												thumbnails[577057] = new thumbnail(577057,'44491','Bourbon Street Bikes','BourbonStreetBikes041_thumb.jpg',130, 90,15,'photo_577057.html');
												thumbnails[7126411] = new thumbnail(7126411,'385445','','ChurchDmeBambFence_thumb.jpg',130, 197,15,'photo_7126411.html');
												thumbnails[7126626] = new thumbnail(7126626,'385455','','ColorsStone5W_thumb.jpg',130, 173,15,'photo_7126626.html');
												thumbnails[7126693] = new thumbnail(7126693,'385470','Colonial Lighting Detail','LightDragonW_thumb.jpg',130, 87,15,'photo_7126693.html');
												thumbnails[7126777] = new thumbnail(7126777,'385447','Corn in the Market','OcotlanCornW_thumb.jpg',130, 87,15,'photo_7126777.html');
												thumbnails[7335203] = new thumbnail(7335203,'396955','Dancers 5','Dancers_5_San_Miguel_de_Allende_Mexico_2007W_thumb.jpg',130, 88,15,'photo_7335203.html');
												thumbnails[7337471] = new thumbnail(7337471,'397079','Roots','Robbins_t10_Roots_thumb.jpg',130, 193,15,'photo_7337471.html');
												thumbnails[7340948] = new thumbnail(7340948,'397319','Mystical Morning 2','Mystical_Morning_2_Licking_County_Ohio_2006W_thumb.jpg',130, 88,15,'photo_7340948.html');
												thumbnails[7850332] = new thumbnail(7850332,'423562','','TreeshapesW12_Oaxaca_City_thumb.jpg',130, 195,15,'photo_7850332.html');
												thumbnails[7850330] = new thumbnail(7850330,'423562','','TreeshapesW11_Oaxaca_City_thumb.jpg',130, 87,15,'photo_7850330.html');
												thumbnails[7850320] = new thumbnail(7850320,'423562','','TreeShapesW1_Teotitlan_del_Valle_thumb.jpg',130, 88,15,'photo_7850320.html');
												thumbnails[7089326] = new thumbnail(7089326,'385455','Door with Shadows','DoorShadowW_thumb.jpg',130, 193,15,'photo_7089326.html');
												thumbnails[7126674] = new thumbnail(7126674,'385470','','ColonialDoor2_thumb.jpg',130, 87,15,'photo_7126674.html');
												thumbnails[7126778] = new thumbnail(7126778,'385447','Peppers, Ocotlan','OcotlanPeppersW_thumb.jpg',130, 87,15,'photo_7126778.html');
												thumbnails[7335268] = new thumbnail(7335268,'396955','Dancers 9','Dancers_9_San_Miguel_de_Allende_Mexico_2007W_thumb.jpg',130, 88,15,'photo_7335268.html');
												thumbnails[7337464] = new thumbnail(7337464,'397079','Cathedral Saint','Robbins_t8_Cathedral_Saint_thumb.jpg',130, 193,15,'photo_7337464.html');
												thumbnails[7340882] = new thumbnail(7340882,'397319','Antrim Morning','Antrim_Morning_Columbus_Ohio_2006W_thumb.jpg',130, 88,15,'photo_7340882.html');
												thumbnails[7436284] = new thumbnail(7436284,'403143','Market talk','MarketTalkTeotitlanDelValle_2008W_thumb.jpg',130, 190,15,'photo_7436284.html');
												thumbnails[7337441] = new thumbnail(7337441,'397079','Pasada Pipes','Robbins_t1_Pasada_with_Pipes_thumb.jpg',130, 88,15,'photo_7337441.html');
												thumbnails[7436276] = new thumbnail(7436276,'403143','Flower Market','FlowerMarketCuetzelan2006W_thumb.jpg',130, 194,15,'photo_7436276.html');
												thumbnails[7337442] = new thumbnail(7337442,'397079','Pasada Drum','Robbins_t2_Pasada_con_Drum_thumb.jpg',130, 88,15,'photo_7337442.html');
												thumbnails[7337446] = new thumbnail(7337446,'397079','with Tuba','Robbins_t3_Pasada_with_Tuba_thumb.jpg',130, 87,15,'photo_7337446.html');
												thumbnails[7126426] = new thumbnail(7126426,'385445','','ChurchOaxacaW_thumb.jpg',130, 194,15,'photo_7126426.html');
												thumbnails[7126631] = new thumbnail(7126631,'385455','','DSCF0491colorsW_948B82BE-24E8-5EC4-4F91B994FBB8E5E4_thumb.jpg',130, 178,15,'photo_7126631.html');
												thumbnails[7126698] = new thumbnail(7126698,'385470','Typical tile Roof','ShedRoofW_thumb.jpg',130, 87,15,'photo_7126698.html');
												thumbnails[7126774] = new thumbnail(7126774,'385447','Market, Ocotlan','Ocotlan3W_thumb.jpg',130, 194,15,'photo_7126774.html');
												thumbnails[7335200] = new thumbnail(7335200,'396955','Dancers 3','Dancers_3_San_Miguel_de_Allende_Mexico_2007W_thumb.jpg',130, 192,15,'photo_7335200.html');
												thumbnails[7337452] = new thumbnail(7337452,'397079','Cathedral Stone','Robbins_t6_Cathedral_Stone_1_thumb.jpg',130, 194,15,'photo_7337452.html');
												thumbnails[7340920] = new thumbnail(7340920,'397319','Morning Lilly','Morning_Lillies_US_Rt123._40_Indiana_2006W_thumb.jpg',130, 88,15,'photo_7340920.html');
												thumbnails[7436281] = new thumbnail(7436281,'403143','A Seat at the Market','SeatAtTheMarketTeotitlan2008W_thumb.jpg',130, 88,15,'photo_7436281.html');
												thumbnails[7118769] = new thumbnail(7118769,'385455','','DSCF0483colorsW_thumb.jpg',130, 199,15,'photo_7118769.html');
												thumbnails[7126781] = new thumbnail(7126781,'385447','Shoes, Ocotlan','OcotlanMarket1W_thumb.jpg',130, 186,15,'photo_7126781.html');
												thumbnails[7136394] = new thumbnail(7136394,'385470','Memorials, church wall','ChalupaChrchGravesW_thumb.jpg',130, 98,15,'photo_7136394.html');
												thumbnails[7335224] = new thumbnail(7335224,'396955','Dancers 7','Dancers_7_San_Miguel_de_Allende_Mexico_2007W_thumb.jpg',130, 192,15,'photo_7335224.html');
												thumbnails[7337461] = new thumbnail(7337461,'397079','Cross','Robbins_t7_Cross_thumb.jpg',130, 195,15,'photo_7337461.html');
												thumbnails[7340888] = new thumbnail(7340888,'397319','AntrimPath','AntrimPath_Columbus_Ohio_2006W_thumb.jpg',130, 87,15,'photo_7340888.html');
												thumbnails[7436294] = new thumbnail(7436294,'403143','Ice Cream Vendor','IceCreamVendorOaxaca2008W_thumb.jpg',130, 88,15,'photo_7436294.html');
												thumbnails[592488] = new thumbnail(592488,'44491','Tomb Cross 1','TombCross1w_thumb.jpg',130, 192,15,'photo_592488.html');
												thumbnails[598622] = new thumbnail(598622,'44491','Wrapped Hydrant 2004','WrappedHydrant05W_thumb.jpg',130, 192,15,'photo_598622.html');
												thumbnails[7126427] = new thumbnail(7126427,'385445','Pond Reflection','ChurchReflection_thumb.jpg',130, 194,15,'photo_7126427.html');
												thumbnails[7126669] = new thumbnail(7126669,'385455','','YellowRedWindowW_thumb.jpg',130, 194,15,'photo_7126669.html');
												thumbnails[7126696] = new thumbnail(7126696,'385470','Making Paper','PaperPressW_thumb.jpg',130, 87,15,'photo_7126696.html');
												thumbnails[7126771] = new thumbnail(7126771,'385447','Market, Ocotlan','LadiesMaketOcotlan2_thumb.jpg',130, 130,15,'photo_7126771.html');
												thumbnails[7335199] = new thumbnail(7335199,'396955','Dancers 2','Dancers_2_San_Miguel_de_Allende_Mexico_2007W_thumb.jpg',130, 193,15,'photo_7335199.html');
												thumbnails[7337447] = new thumbnail(7337447,'397079','after Pasada','Robbins_t4_AfterPasada_thumb.jpg',130, 87,15,'photo_7337447.html');
												thumbnails[7340891] = new thumbnail(7340891,'397319','BigSky','Big_Sky_Licking_County_Ohio_2006W_thumb.jpg',130, 88,15,'photo_7340891.html');
												thumbnails[7436301] = new thumbnail(7436301,'403143','Market Flowers','MarketFlowersTeotitlan2008W_thumb.jpg',130, 88,15,'photo_7436301.html');
												thumbnails[582931] = new thumbnail(582931,'44491','','BourbonStW1_thumb.jpg',130, 190,15,'photo_582931.html');
												thumbnails[597370] = new thumbnail(597370,'44491','Inside out','GalleryReflectns05w_thumb.jpg',130, 192,15,'photo_597370.html');
												thumbnails[7118767] = new thumbnail(7118767,'385455','','WindowCornerOax_thumb.jpg',130, 173,15,'photo_7118767.html');
												thumbnails[7126684] = new thumbnail(7126684,'385470','Metate','MetateW_thumb.jpg',130, 87,15,'photo_7126684.html');
												thumbnails[7335201] = new thumbnail(7335201,'396955','Dancers 4','Dancers_4_San_Miguel_de_Allende_Mexico_2007W_thumb.jpg',130, 193,15,'photo_7335201.html');
												thumbnails[7337467] = new thumbnail(7337467,'397079','Ascension','Robbins_t9_Ascension_thumb.jpg',130, 88,15,'photo_7337467.html');
												thumbnails[7340980] = new thumbnail(7340980,'397319','Grazing','Sam_GrazingBWsmlW_thumb.jpg',130, 192,15,'photo_7340980.html');
												thumbnails[7436305] = new thumbnail(7436305,'403143','Market Women','MarketWomenTeotitlan2008W_thumb.jpg',130, 88,15,'photo_7436305.html');
												thumbnails[582883] = new thumbnail(582883,'44491','New Orleans Angel','AngelNewOrleans05W4_thumb.jpg',130, 175,15,'photo_582883.html');
												thumbnails[7118777] = new thumbnail(7118777,'385455','Bicycle Window','DSCF0489colorsW_thumb.jpg',130, 173,15,'photo_7118777.html');
												thumbnails[7126629] = new thumbnail(7126629,'385455','','ColorWindwReflect_thumb.jpg',130, 87,15,'photo_7126629.html');
												thumbnails[7126701] = new thumbnail(7126701,'385470','Tree Trunk, Oaxaca City','TreeTrunkW_thumb.jpg',130, 87,15,'photo_7126701.html');
												thumbnails[7335212] = new thumbnail(7335212,'396955','Dancers 6','Dancers_6_San_Miguel_de_Allende_Mexico_2007W_thumb.jpg',130, 194,15,'photo_7335212.html');
												thumbnails[7436320] = new thumbnail(7436320,'403143','Market Cooking','MarketCookingTlacolula2008W_thumb.jpg',130, 88,15,'photo_7436320.html');
												thumbnails[7896067] = new thumbnail(7896067,'397079','','Foundations500ht_thumb.jpg',130, 87,15,'photo_7896067.html');
												thumbnails[7126676] = new thumbnail(7126676,'385455','Time Faded Color','ColumnBaseW_thumb.jpg',130, 87,15,'photo_7126676.html');
												thumbnails[7126639] = new thumbnail(7126639,'385455','Pomegranate, Las Granadas B&B','PomegranateW_thumb.jpg',130, 87,15,'photo_7126639.html');
												thumbnails[7126694] = new thumbnail(7126694,'385470','Local Transport','OXEN_thumb.jpg',130, 194,15,'photo_7126694.html');
												thumbnails[7335237] = new thumbnail(7335237,'396955','Dancers 8','Dancers_8_San_Miguel_de_Allende_Mexico_2007W_thumb.jpg',130, 195,15,'photo_7335237.html');
												thumbnails[7340955] = new thumbnail(7340955,'397319','Mystical Morning 1','Mystical_Morning1_Licking_County_Ohio_2006W_thumb.jpg',130, 188,15,'photo_7340955.html');
												thumbnails[7436312] = new thumbnail(7436312,'403143','Mother & Daughter','MotherDaughterTeotitlan2008W_thumb.jpg',130, 87,15,'photo_7436312.html');
												thumbnails[576945] = new thumbnail(576945,'396955','Church Dancers','DancersYohual05_thumb.jpg',130, 171,15,'photo_576945.html');
												thumbnails[2559062] = new thumbnail(2559062,'163271','Craft Shop, Beijing','54BeijCrftShops064W_thumb.jpg',130, 87,15,'photo_2559062.html');
												thumbnails[7126423] = new thumbnail(7126423,'385445','','ChurchOaxacaAngel_thumb.jpg',130, 173,15,'photo_7126423.html');
												thumbnails[7126643] = new thumbnail(7126643,'385455','','CornicePurpleW_thumb.jpg',130, 87,15,'photo_7126643.html');
												thumbnails[7340954] = new thumbnail(7340954,'397319','Mystical Morning 3','Mystical_Morning_3_Licking_County_Ohio_2006W_thumb.jpg',130, 193,15,'photo_7340954.html');
												thumbnails[7126623] = new thumbnail(7126623,'385455','','ColorsPinkShop_thumb.jpg',130, 98,15,'photo_7126623.html');
												thumbnails[7126673] = new thumbnail(7126673,'385470','Colonial Door','ColonialDoor1_thumb.jpg',130, 194,15,'photo_7126673.html');
												thumbnails[7335320] = new thumbnail(7335320,'396955','Dancers 10','Dancers_10_San_Miguel_de_Allende_Mexico_2007W_thumb.jpg',130, 87,15,'photo_7335320.html');
												thumbnails[2559068] = new thumbnail(2559068,'163271','Hutong condemned','43HutongGoing3W_thumb.jpg',130, 87,15,'photo_2559068.html');
												thumbnails[7089323] = new thumbnail(7089323,'385445','','Columns1W_thumb.jpg',130, 173,15,'photo_7089323.html');
												thumbnails[7126625] = new thumbnail(7126625,'385455','','ColorsPinkShop2_thumb.jpg',130, 98,15,'photo_7126625.html');
												thumbnails[7340967] = new thumbnail(7340967,'397319','Field of Flowers','Field_of_Flowers_Licking_County_Ohio_2006W_thumb.jpg',130, 88,15,'photo_7340967.html');
												thumbnails[7126586] = new thumbnail(7126586,'385455','','AdopbeYelo2_thumb.jpg',130, 107,15,'photo_7126586.html');
												thumbnails[7126647] = new thumbnail(7126647,'385455','Early Light in the Courtyard','SistersYardW_thumb.jpg',130, 97,15,'photo_7126647.html');
												thumbnails[2559030] = new thumbnail(2559030,'163271','Drying shoes','BeijingHutongShoesDryW_thumb.jpg',130, 88,15,'photo_2559030.html');
												thumbnails[7089324] = new thumbnail(7089324,'385450','Dolores Porras. Woman of vision.','DeloresPorrasW_thumb.jpg',130, 126,15,'photo_7089324.html');
												thumbnails[7126409] = new thumbnail(7126409,'385445','','ChurchColorSkyW_thumb.jpg',130, 130,15,'photo_7126409.html');
												thumbnails[7126650] = new thumbnail(7126650,'385455','Low perspective on the window','WindowSillBelow_thumb.jpg',130, 87,15,'photo_7126650.html');
												thumbnails[2559037] = new thumbnail(2559037,'163271','The Drinking Table','BeijngBeerTableW_thumb.jpg',130, 87,15,'photo_2559037.html');
												thumbnails[7126494] = new thumbnail(7126494,'385445','','OaxacaRoofView3W_94867080-24E8-5EC4-4FD381A87AB249FC_thumb.jpg',130, 130,15,'photo_7126494.html');
												thumbnails[7126668] = new thumbnail(7126668,'385455','','YelloHouse_thumb.jpg',130, 87,15,'photo_7126668.html');
												thumbnails[7126419] = new thumbnail(7126419,'385445','','ChurchDomes2W_thumb.jpg',130, 87,15,'photo_7126419.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[385439] = new gallery(385439,'7850321,7436273,7345988,7340954,7337464,7336700,7335748,7335743,7335224,2557431,624636','Black & White Portfolio','gallery',[],0, 0, '', 'gallery_385439.html',0,0);
				  					galleries[385437] = new gallery(385437,'7136394,7126819,7126799,7126784,7126778,7126704,7126625,7126494,7126382,7089324','Color Portfolio','gallery',[],0, 0, '', 'gallery_385437.html',0,0);
				  					galleries[397319] = new gallery(397319,'7340954','DreamScape','gallery',[7340878,7340948,7340882,7340920,7340888,7340891,7340980,7340955,7340954,7340967],0, 0, '385439', 'gallery_397319.html',0,0);
				  					galleries[396978] = new gallery(396978,'7335748,7335743','Little Cities','gallery',[7335723,7335725,7335734,7335739,7335742,7335743,7335745,7335748,7335754,7335756,7335757,7335785],0, 0, '385439', 'gallery_396978.html',0,0);
				  					galleries[403143] = new gallery(403143,'7436273','Market Women','gallery',[7436273,7436284,7436276,7436281,7436294,7436301,7436305,7436320,7436312],0, 0, '385439', 'gallery_403143.html',0,0);
				  					galleries[397079] = new gallery(397079,'7337464','Mexico Dreams','gallery',[7337449,7337471,7337464,7337441,7337442,7337446,7337452,7337461,7337447,7337467,7896067],0, 0, '385439', 'gallery_397079.html',0,0);
				  					galleries[397612] = new gallery(397612,'7345988','Oaxaca','gallery',[7345983,7345988,7345998,7346002,7346005,7346016,7346018,7346025,7346027,7346029],0, 0, '385439', 'gallery_397612.html',0,0);
				  					galleries[397044] = new gallery(397044,'7336700','SILOS','gallery',[7336688,7336691,7336694,7336696,7336699,7336700,7336703,7336708,7336714],0, 0, '385439', 'gallery_397044.html',0,0);
				  					galleries[163271] = new gallery(163271,'2557431','Beijing, China','gallery',[2556131,2557425,2557435,2557428,2557431,2557438,2559062,2559068,2559030,2559037],0, 0, '385439', 'gallery_163271.html',0,0);
				  					galleries[385444] = new gallery(385444,'7126382','Ancient Voices','gallery',[7089927,7126378,7126382,7126390],0, 0, '385437', 'gallery_385444.html',0,0);
				  					galleries[396955] = new gallery(396955,'7335224','DANCERS','gallery',[7335197,7335203,7335268,7335200,7335224,7335199,7335201,7335212,7335237,576945,7335320],0, 0, '385439', 'gallery_396955.html',0,0);
				  					galleries[385446] = new gallery(385446,'7126704','Early Morning Light','gallery',[7089891,7126703,7126766,7126704],0, 0, '385437', 'gallery_385446.html',0,0);
				  					galleries[385470] = new gallery(385470,'7136394','Details','gallery',[7126688,7126683,7126693,7126674,7126698,7136394,7126696,7126684,7126701,7126694,7126673],0, 0, '385437', 'gallery_385470.html',0,0);
				  					galleries[385449] = new gallery(385449,'7126799','Patterns','gallery',[7126797,7126799,7126803],0, 0, '385437', 'gallery_385449.html',0,0);
				  					galleries[423562] = new gallery(423562,'7850321','TREES','gallery',[7850321,7850322,7850324,7850326,7850329,7850332,7850330,7850320],0, 0, '385439', 'gallery_423562.html',0,0);
				  					galleries[385455] = new gallery(385455,'7126625','Colors of Oaxaca','gallery',[7126621,7126626,7089326,7126631,7118769,7126669,7118767,7118777,7126629,7126676,7126639,7126643,7126623,7126625,7126586,7126647,7126650,7126668],0, 0, '385437', 'gallery_385455.html',0,0);
				  					galleries[385447] = new gallery(385447,'7126778','Markets','gallery',[7089327,7126777,7126778,7126774,7126781,7126771],0, 0, '385437', 'gallery_385447.html',0,0);
				  					galleries[385448] = new gallery(385448,'7126784','Night Light','gallery',[7126784,7126786,7126787],0, 0, '385437', 'gallery_385448.html',0,0);
				  					galleries[385451] = new gallery(385451,'7126819','Teotitlan del Valle','gallery',[7089321,7089903,7089915,7126815,7126816,7126819],0, 0, '385437', 'gallery_385451.html',0,0);
				  					galleries[385445] = new gallery(385445,'7126494','Churches','gallery',[7126411,7126426,7126427,7126423,7089323,7126409,7126494,7126419],0, 0, '385437', 'gallery_385445.html',0,0);
				  					galleries[44491] = new gallery(44491,'624636','New Orleans','gallery',[582935,597371,598630,598730,598732,598735,608203,608205,624636,577057,592488,598622,582931,597370,582883],0, 0, '385439', 'gallery_44491.html',0,0);
				  					galleries[385450] = new gallery(385450,'7089324','Portraits','gallery',[7089325,7126808,7126811,7089324],0, 0, '385437', 'gallery_385450.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7896067,7850332,7850330,7850329,7850326,7850324,7850322,7850321,7850320,7436320,7436312,7436305,7436301,7436294,7436284,7436281,7436276,7436273,7346029,7346027,7346025,7346018,7346016,7346005,7346002,7345998,7345988,7345983,7340980,7340967,7340955,7340954,7340948,7340920,7340891,7340888,7340882,7340878,7337471,7337467,7337464,7337461,7337452,7337449,7337447,7337446,7337442,7337441,7336714,7336708';
imageSets[2] = '7850321,7436273,7345988,7340954,7337464,7336700,7335748,7335743,7335224,7136394,7126819,7126799,7126784,7126778,7126704,7126625,7126494,7126382,7089324,2557431,624636';
imageSets[3] = '7896067,7850332,7850330,7850329,7850326,7850324,7850322,7850321,7850320,7436320,7436312,7436305,7436301,7436294,7436284,7436281,7436276,7436273,7346029,7346027,7346025,7346018,7346016,7346005,7346002,7345998,7345988,7345983,7340980,7340967,7340955,7340954,7340948,7340920,7340891,7340888,7340882,7340878,7337471,7337467,7337464,7337461,7337452,7337449,7337447,7337446,7337442,7337441,7336714,7336708';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Robbinsx2/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Robbinsx2/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 = 'Robbins & Robbins fine art 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.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 + '<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;
	}
}

			

