window.thumbnails = {};
															thumbnails[2988022] = clik.newPhoto({"id":2988022,"src":"Dish_Of_The_DayOG_Thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Dish Of The Day Original Pencils","height":100});
															thumbnails[2988120] = clik.newPhoto({"id":2988120,"src":"Giddy_UpOG_Thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Giddy-Up Original Pencils","height":100});
															thumbnails[2988156] = clik.newPhoto({"id":2988156,"src":"Halloween_BumpkinOG_Thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Halloween Bumpkin Original Pencils","height":100});
															thumbnails[2988169] = clik.newPhoto({"id":2988169,"src":"Halloween_Pole_DancerOG_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Halloween Pole Dancer Original Pencils","height":100});
															thumbnails[2988178] = clik.newPhoto({"id":2988178,"src":"HappyHalloweenOG_Thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Happy Halloween Original Pencils","height":100});
															thumbnails[2988190] = clik.newPhoto({"id":2988190,"src":"MermaidOG_Thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Mermaid Original Pencils","height":100});
															thumbnails[2988206] = clik.newPhoto({"id":2988206,"src":"OktbooberfestOG_Thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Oktbooberfest Original Pencils","height":100});
															thumbnails[2988220] = clik.newPhoto({"id":2988220,"src":"Sexy_SantaOG_Thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Sexy Santa Original Pencils","height":100});
															thumbnails[2988226] = clik.newPhoto({"id":2988226,"src":"Sexy_ThanksgivingOG_Thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Sexy Thanksgiving Original Pencils","height":100});
															thumbnails[2988238] = clik.newPhoto({"id":2988238,"src":"Tight_FitOG_Thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Tight Fit Original Pencils","height":100});
															thumbnails[2988259] = clik.newPhoto({"id":2988259,"src":"XmarksthespotOG_Thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"X Marks The Spot Original Pencils","height":100});
															thumbnails[3008967] = clik.newPhoto({"id":3008967,"src":"Sexy_Xmas_RUDEolfOG_Thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Sexy Xmas RUDEolf Original Pencils","height":100});
															thumbnails[3054872] = clik.newPhoto({"id":3054872,"src":"Sexy_Xmas_Cracker_OG_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Sexy Xmas Cracker Original Pencils","height":100});
															thumbnails[3924110] = clik.newPhoto({"id":3924110,"src":"Supergirl_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3924110.html","width":65,"caption":"Supergirl ","height":100});
															thumbnails[3943534] = clik.newPhoto({"id":3943534,"src":"PigSick_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3943534.html","width":65,"caption":"Pig Sick","height":100});
															thumbnails[4051457] = clik.newPhoto({"id":4051457,"src":"Sexy_Sam_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_4051457.html","width":65,"caption":"Sexy Sam","height":100});
															thumbnails[4151265] = clik.newPhoto({"id":4151265,"src":"Canada_Day_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_4151265.html","width":65,"caption":"Fly Your Flag","height":100});
															thumbnails[4151287] = clik.newPhoto({"id":4151287,"src":"Revolutionary_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_4151287.html","width":65,"caption":"Revolutionary","height":100});
															thumbnails[4633845] = clik.newPhoto({"id":4633845,"src":"Dotty_Lolly_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_4633845.html","width":65,"caption":"Dotty Lolly","height":100});
															thumbnails[4633864] = clik.newPhoto({"id":4633864,"src":"Heartbreaker_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_4633864.html","width":65,"caption":"Heartbreaker","height":100});
															thumbnails[4633875] = clik.newPhoto({"id":4633875,"src":"Sexy_Summer_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_4633875.html","width":65,"caption":"Sexy Summer","height":100});
															thumbnails[4801044] = clik.newPhoto({"id":4801044,"src":"Come_Fly_With_Me_thumb.jpg","galleries_id":274654,"server_id":1,"link":"photo_4801044.html","width":65,"caption":"Come Fly With Me","height":100});
															thumbnails[4801047] = clik.newPhoto({"id":4801047,"src":"Light_My_Fire_thumb.jpg","galleries_id":274654,"server_id":1,"link":"photo_4801047.html","width":65,"caption":"Light My Fire","height":100});
															thumbnails[4801051] = clik.newPhoto({"id":4801051,"src":"Nine_To_five_thumb.jpg","galleries_id":274654,"server_id":1,"link":"photo_4801051.html","width":65,"caption":"Nine To Five","height":100});
															thumbnails[4801052] = clik.newPhoto({"id":4801052,"src":"Rootin_Tootin_thumb.jpg","galleries_id":274654,"server_id":1,"link":"photo_4801052.html","width":65,"caption":"Rootin Tootin","height":100});
															thumbnails[4801056] = clik.newPhoto({"id":4801056,"src":"Sponge_Bath_thumb.jpg","galleries_id":274654,"server_id":1,"link":"photo_4801056.html","width":65,"caption":"Sponge Bath","height":100});
															thumbnails[4801057] = clik.newPhoto({"id":4801057,"src":"Stupid_Cupid_thumb.jpg","galleries_id":274654,"server_id":1,"link":"photo_4801057.html","width":65,"caption":"Stupid Cupid","height":100});
															thumbnails[4801059] = clik.newPhoto({"id":4801059,"src":"Hot_Rod_thumb.jpg","galleries_id":274654,"server_id":1,"link":"photo_4801059.html","width":65,"caption":"Wide Whites Woman","height":100});
															thumbnails[4801736] = clik.newPhoto({"id":4801736,"src":"Festival_Girl_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_4801736.html","width":65,"caption":"Festival Girl","height":100});
															thumbnails[5632705] = clik.newPhoto({"id":5632705,"src":"Cupid_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_5632705.html","width":65,"caption":"Love Bullet","height":100});
															thumbnails[5632710] = clik.newPhoto({"id":5632710,"src":"Cutepid_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_5632710.html","width":65,"caption":"Val","height":100});
															thumbnails[5632711] = clik.newPhoto({"id":5632711,"src":"Bunny_Love_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_5632711.html","width":65,"caption":"Bunny Love","height":100});
															thumbnails[5889148] = clik.newPhoto({"id":5889148,"src":"StPaddys_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_5889148.html","width":65,"caption":"St Paddy's","height":100});
															thumbnails[8530451] = clik.newPhoto({"id":8530451,"src":"TimeForABrew_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_8530451.html","width":65,"caption":"Time For A Brew","height":100});
															thumbnails[8838879] = clik.newPhoto({"id":8838879,"src":"WinterWonderland_BE0D76CA-1E4F-37DC-71813C4C3084B7CB_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_8838879.html","width":65,"caption":"Snowflake","height":100});
															thumbnails[9004671] = clik.newPhoto({"id":9004671,"src":"PartyGirls_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_9004671.html","width":65,"caption":"Party Girls","height":100});
															thumbnails[8922260] = clik.newPhoto({"id":8922260,"src":"XmasCandy_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_8922260.html","width":65,"caption":"Xmas Candy","height":100});
															thumbnails[3183471] = clik.newPhoto({"id":3183471,"src":"Xmasbumpudding_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3183471.html","width":65,"caption":"Xmas Bum Pudding","height":100});
															thumbnails[3183477] = clik.newPhoto({"id":3183477,"src":"Snowball_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3183477.html","width":65,"caption":"Snowball","height":100});
															thumbnails[3213899] = clik.newPhoto({"id":3213899,"src":"Sexy_Xmas_Elf_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3213899.html","width":65,"caption":"Sexy Xmas Elf","height":100});
															thumbnails[3213900] = clik.newPhoto({"id":3213900,"src":"XmAss_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3213900.html","width":65,"caption":"XmAss","height":100});
															thumbnails[3248719] = clik.newPhoto({"id":3248719,"src":"HappyNewYear2009_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3248719.html","width":65,"caption":"Happy New Year 2009","height":100});
															thumbnails[3248723] = clik.newPhoto({"id":3248723,"src":"Cork_Popper_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3248723.html","width":65,"caption":"Cork Popper","height":100});
															thumbnails[3334157] = clik.newPhoto({"id":3334157,"src":"Birthday_Cake_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3334157.html","width":65,"caption":"Birthday Cake","height":100});
															thumbnails[3334162] = clik.newPhoto({"id":3334162,"src":"Chinese_New_Year_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3334162.html","width":65,"caption":"Chinese New Year","height":100});
															thumbnails[3928353] = clik.newPhoto({"id":3928353,"src":"Call_Me_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3928353.html","width":65,"caption":"Call Me","height":100});
															thumbnails[3974562] = clik.newPhoto({"id":3974562,"src":"Stars_and_Stripes_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3974562.html","width":65,"caption":"Stars and Stripes","height":100});
															thumbnails[7505920] = clik.newPhoto({"id":7505920,"src":"Hello_Eve1_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_7505920.html","width":65,"caption":"Hello Eve","height":100});
															thumbnails[8530476] = clik.newPhoto({"id":8530476,"src":"Wild_Thing_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_8530476.html","width":65,"caption":"Wild Thing","height":100});
															thumbnails[3816822] = clik.newPhoto({"id":3816822,"src":"Funkalicious_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3816822.html","width":65,"caption":"Funkalicious","height":100});
															thumbnails[7505926] = clik.newPhoto({"id":7505926,"src":"Pumpkin_Pie_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_7505926.html","width":65,"caption":"Pumpkin Pie","height":100});
															thumbnails[3809720] = clik.newPhoto({"id":3809720,"src":"Draikana_Succubus_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3809720.html","width":65,"caption":"Drakaina Succubus","height":100});
															thumbnails[3440107] = clik.newPhoto({"id":3440107,"src":"Cat_That_Got_The_Cream_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3440107.html","width":65,"caption":"Cat That Got The Cream","height":100});
															thumbnails[3644087] = clik.newPhoto({"id":3644087,"src":"Yummy_Bunny_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3644087.html","width":65,"caption":"Yummy Bunny","height":100});
															thumbnails[3694063] = clik.newPhoto({"id":3694063,"src":"Canary_Yellow_Diamond_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3694063.html","width":65,"caption":"Canary Yellow","height":100});
															thumbnails[3740367] = clik.newPhoto({"id":3740367,"src":"Oh_My_God_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3740367.html","width":65,"caption":"OMG","height":100});
															thumbnails[3542933] = clik.newPhoto({"id":3542933,"src":"Irish_Eyes_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3542933.html","width":65,"caption":"Irish Eyes","height":100});
															thumbnails[3420966] = clik.newPhoto({"id":3420966,"src":"Love_Scene_Girl_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3420966.html","width":65,"caption":"Love Scene Girl","height":100});
															thumbnails[3423375] = clik.newPhoto({"id":3423375,"src":"Alternative_Valentine's_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3423375.html","width":65,"caption":"alternative Valentine's","height":100});
															thumbnails[3502072] = clik.newPhoto({"id":3502072,"src":"Kiss_Me_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3502072.html","width":65,"caption":"Kiss Me","height":100});
															thumbnails[3420962] = clik.newPhoto({"id":3420962,"src":"Valentine's_Balloon_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3420962.html","width":65,"caption":"Valentine's Balloon","height":100});
															thumbnails[3291064] = clik.newPhoto({"id":3291064,"src":"Wind_Samurai_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3291064.html","width":65,"caption":"Wind Samurai","height":100});
															thumbnails[3275632] = clik.newPhoto({"id":3275632,"src":"Hot_Ass_Hell1_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3275632.html","width":65,"caption":"Hot Ass Hell","height":100});
															thumbnails[3275441] = clik.newPhoto({"id":3275441,"src":"BlackRoseSpit_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_3275441.html","width":65,"caption":"Black Rose Spit","height":100});
															thumbnails[2954812] = clik.newPhoto({"id":2954812,"src":"Daviddelight2_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_2954812.html","width":65,"caption":"Tickling David's Fancy ","height":100});
															thumbnails[2959252] = clik.newPhoto({"id":2959252,"src":"Dish_Of_The_Day_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2959252.html","width":65,"caption":"Dish Of The Day","height":100});
															thumbnails[2954794] = clik.newPhoto({"id":2954794,"src":"Heel_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_2954794.html","width":65,"caption":"Heel ","height":100});
															thumbnails[2962393] = clik.newPhoto({"id":2962393,"src":"Halloween_Bumpkin_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2962393.html","width":65,"caption":"Halloween Bumpkin","height":100});
															thumbnails[2957251] = clik.newPhoto({"id":2957251,"src":"BedsideManners_Thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_2957251.html","width":65,"caption":"Bedside Manners","height":100});
															thumbnails[2963993] = clik.newPhoto({"id":2963993,"src":"Happy_Halloween_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2963993.html","width":65,"caption":"Happy Halloween","height":100});
															thumbnails[2957769] = clik.newPhoto({"id":2957769,"src":"Bombshell_Thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_2957769.html","width":65,"caption":"Bombshell","height":100});
															thumbnails[2963995] = clik.newPhoto({"id":2963995,"src":"Oktbooberfest_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2963995.html","width":65,"caption":"Oktbooberfest","height":100});
															thumbnails[2957794] = clik.newPhoto({"id":2957794,"src":"Boing!_Thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_2957794.html","width":65,"caption":"Boing!","height":100});
															thumbnails[2963997] = clik.newPhoto({"id":2963997,"src":"Sexy_Thanksgiving_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2963997.html","width":65,"caption":"Sexy Thanksgiving","height":100});
															thumbnails[2963998] = clik.newPhoto({"id":2963998,"src":"X_Marks_The_Spot_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2963998.html","width":65,"caption":"X Marks The Spot","height":100});
															thumbnails[2964536] = clik.newPhoto({"id":2964536,"src":"Summer_Thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_2964536.html","width":65,"caption":"Summer","height":100});
															thumbnails[2957826] = clik.newPhoto({"id":2957826,"src":"BoobTheBuilder_Thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_2957826.html","width":65,"caption":"Boob The Builder","height":100});
															thumbnails[2964000] = clik.newPhoto({"id":2964000,"src":"Halloween_Pole_Dancer_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2964000.html","width":65,"caption":"Halloween Pole Dancer","height":100});
															thumbnails[2957850] = clik.newPhoto({"id":2957850,"src":"Cocktail_Thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_2957850.html","width":65,"caption":"Cocktail","height":100});
															thumbnails[2964003] = clik.newPhoto({"id":2964003,"src":"Tightfit_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2964003.html","width":65,"caption":"Tight Fit","height":100});
															thumbnails[2957830] = clik.newPhoto({"id":2957830,"src":"PuttingTheCheerInCheerleade_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_2957830.html","width":65,"caption":"Putting The Cheer in Cheerleader","height":100});
															thumbnails[2964011] = clik.newPhoto({"id":2964011,"src":"USA_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2964011.html","width":65,"caption":"USA Pin-up Babe","height":100});
															thumbnails[2958347] = clik.newPhoto({"id":2958347,"src":"Starlet_Gone-_Wild_thumb.jpg","galleries_id":182354,"server_id":1,"link":"photo_2958347.html","width":65,"caption":"Starlet Gone Wild","height":100});
															thumbnails[2964013] = clik.newPhoto({"id":2964013,"src":"Hanky_Spanky_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2964013.html","width":65,"caption":"Hanky Spanky","height":100});
															thumbnails[2964015] = clik.newPhoto({"id":2964015,"src":"Mermaid_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2964015.html","width":65,"caption":"Mermaid","height":100});
															thumbnails[2964019] = clik.newPhoto({"id":2964019,"src":"GiddyUp_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2964019.html","width":65,"caption":"Giddy-Up","height":100});
															thumbnails[2964020] = clik.newPhoto({"id":2964020,"src":"Great_Britain_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2964020.html","width":65,"caption":"GB Pin-up Babe","height":100});
															thumbnails[2986869] = clik.newPhoto({"id":2986869,"src":"Sexy_Santa_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_2986869.html","width":65,"caption":"Sexy Santa","height":100});
															thumbnails[3008950] = clik.newPhoto({"id":3008950,"src":"Sexy_Xmas_RUDEolf_Thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3008950.html","width":65,"caption":"Sexy Xmas RUDEolf","height":100});
															thumbnails[3054859] = clik.newPhoto({"id":3054859,"src":"Sexy_Xmas_Cracker_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3054859.html","width":65,"caption":"Sexy Xmas Cracker","height":100});
															thumbnails[3067597] = clik.newPhoto({"id":3067597,"src":"Sexy_Xmas_Boobles_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3067597.html","width":65,"caption":"Sexy Xmas Boobles","height":100});
															thumbnails[3088201] = clik.newPhoto({"id":3088201,"src":"Mistletoe_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3088201.html","width":65,"caption":"Mistletoe","height":100});
															thumbnails[3107469] = clik.newPhoto({"id":3107469,"src":"XXXmas_Fairy_Lights_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3107469.html","width":65,"caption":"XXXmas Fairy Lights","height":100});
															thumbnails[3135094] = clik.newPhoto({"id":3135094,"src":"Tasty_Thanksgiving_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3135094.html","width":65,"caption":"Tasty Thanksgiving","height":100});
															thumbnails[3135096] = clik.newPhoto({"id":3135096,"src":"Unwrap_Me_thumb.jpg","galleries_id":182355,"server_id":1,"link":"photo_3135096.html","width":65,"caption":"Unwrap Me","height":100});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[182354] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bam Pin-ups","link":"gallery_182354.html","maxRecords":0.0,"photoIDs":[4051457.0,4151265.0,4633845.0,4633864.0,4633875.0,4801736.0,5632710.0,5632711.0,5889148.0,8530451.0,3928353.0,3974562.0,7505920.0,8530476.0,3816822.0,7505926.0,3809720.0,3440107.0,3644087.0,3694063.0,3740367.0,3542933.0,3420966.0,3423375.0,3502072.0,3420962.0,3291064.0,3275632.0,3275441.0,2954812.0,2954794.0,2957251.0,2957769.0,2957794.0,2964536.0,2957826.0,2957850.0,2957830.0,2958347.0],"skipIndex":0,"section_code":"gallery","featured_images":"8530476,8530451,7505926,7505920,5889148,5632711,5632710,4801736,4633875,4633864","id":182354,"singleSection":false});				  						galleries[182355] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wham Bam Pin-ups","link":"gallery_182355.html","maxRecords":0.0,"photoIDs":[3924110.0,3943534.0,4151287.0,5632705.0,8838879.0,9004671.0,8922260.0,3183471.0,3183477.0,3213899.0,3213900.0,3248719.0,3248723.0,3334157.0,3334162.0,2959252.0,2962393.0,2963993.0,2963995.0,2963997.0,2963998.0,2964000.0,2964003.0,2964011.0,2964013.0,2964015.0,2964019.0,2964020.0,2986869.0,3008950.0,3054859.0,3067597.0,3088201.0,3107469.0,3135094.0,3135096.0],"skipIndex":0,"section_code":"gallery","featured_images":"9004671,8922260,8838879,5632705,4151287,3943534,3924110,3334162,3334157,3248723","id":182355,"singleSection":false});				  						galleries[274654] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bam Pinup Retro Belles","link":"gallery_274654.html","maxRecords":0.0,"photoIDs":[4801044.0,4801047.0,4801051.0,4801052.0,4801056.0,4801057.0,4801059.0],"skipIndex":0,"section_code":"gallery","featured_images":"4801059,4801057,4801056,4801052,4801051,4801047,4801044","id":274654,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3974562,3816822,3809720,3740367,3694063,3542933,3291064,2954812';
imageSets[3] = '9004671,8922260,8838879,8530476,8530451,7505926,7505920,5889148,5632711,5632710,5632705,4801736,4801059,4801057,4801056,4801052,4801051,4801047,4801044,4633875,4633864,4633845,4151287,4151265,4051457,3974562,3943534,3928353,3924110,3816822,3809720,3740367,3694063,3644087,3542933,3502072,3440107,3423375,3420966,3420962,3334162,3334157,3291064,3275632,3275441,3248723,3248719,3213900,3213899,3183477';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/bampinups/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/bampinups/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/bampinups/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/bampinups/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/bampinups/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/bampinups/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/bampinups/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/bampinups/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Bam Pin-ups: Sexy pinups & pinup toons: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> $' + (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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="BAMPINUPS">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

