window.thumbnails = {};
															thumbnails[748635] = clik.newPhoto({"id":748635,"src":"Acorn barnacles2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Acorn barnacles","height":87});
															thumbnails[748637] = clik.newPhoto({"id":748637,"src":"Baby blue tit1_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Baby blue tit","height":122});
															thumbnails[748645] = clik.newPhoto({"id":748645,"src":"Common Frog1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Common frog","height":87});
															thumbnails[748647] = clik.newPhoto({"id":748647,"src":"Dandelion1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Dandelion","height":87});
															thumbnails[748651] = clik.newPhoto({"id":748651,"src":"Golitha Falls1_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Golitha Falls","height":98});
															thumbnails[748652] = clik.newPhoto({"id":748652,"src":"golitha robin_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Early robin","height":98});
															thumbnails[748654] = clik.newPhoto({"id":748654,"src":"Grasshopper1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Close-up grasshopper","height":87});
															thumbnails[748657] = clik.newPhoto({"id":748657,"src":"Ladybird1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Ladybird","height":87});
															thumbnails[748658] = clik.newPhoto({"id":748658,"src":"Sand patterns_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Sandy patterns","height":87});
															thumbnails[748661] = clik.newPhoto({"id":748661,"src":"the Cheesewring_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"The Cheesewring","height":87});
															thumbnails[748662] = clik.newPhoto({"id":748662,"src":"Wild Bodmin horse_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Wild horse","height":87});
															thumbnails[748991] = clik.newPhoto({"id":748991,"src":"Wild Salmon_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Wild salmon","height":87});
															thumbnails[748993] = clik.newPhoto({"id":748993,"src":"Water beads_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Water beads","height":87});
															thumbnails[749006] = clik.newPhoto({"id":749006,"src":"Rocky River_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Reflections","height":78});
															thumbnails[749010] = clik.newPhoto({"id":749010,"src":"Gull_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Hungry gull","height":98});
															thumbnails[749013] = clik.newPhoto({"id":749013,"src":"Dragonfly wings_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":87,"caption":"Dragonfly wings","height":130});
															thumbnails[749026] = clik.newPhoto({"id":749026,"src":"Bridesmaid_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":87,"caption":"Bridesmaid","height":130});
															thumbnails[749040] = clik.newPhoto({"id":749040,"src":"Bride_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Bride","height":87});
															thumbnails[751854] = clik.newPhoto({"id":751854,"src":"IMG00119_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2229985] = clik.newPhoto({"id":2229985,"src":"_MG_0368_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Water beads 2","height":87});
															thumbnails[2229995] = clik.newPhoto({"id":2229995,"src":"CRW_0021_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Light Patterns","height":86});
															thumbnails[2229996] = clik.newPhoto({"id":2229996,"src":"CRW_0064_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Mitts the kitten","height":86});
															thumbnails[2229997] = clik.newPhoto({"id":2229997,"src":"CRW_0121_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":86,"caption":"Hot Embers","height":130});
															thumbnails[2230003] = clik.newPhoto({"id":2230003,"src":"_MG_0376_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Droplets","height":87});
															thumbnails[2230011] = clik.newPhoto({"id":2230011,"src":"CRW_0081_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Necklace","height":86});
															thumbnails[5600330] = clik.newPhoto({"id":5600330,"src":"LIP-Under-construction_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":130});
															thumbnails[5747686] = clik.newPhoto({"id":5747686,"src":"Values-icons_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Company values identity","height":130});
															thumbnails[6043937] = clik.newPhoto({"id":6043937,"src":"coming-soon_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Images coming soon","height":130});
															thumbnails[6043951] = clik.newPhoto({"id":6043951,"src":"coming-soon1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Art direction images coming soon","height":130});
															thumbnails[6807576] = clik.newPhoto({"id":6807576,"src":"Portrait1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Natasha Clarke","height":87});
															thumbnails[6807586] = clik.newPhoto({"id":6807586,"src":"Mathmos-art-direction_5300D5E3-1D09-001F-99EF9A50616CA4A9_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Mathmos photo competition","height":130});
															thumbnails[6807599] = clik.newPhoto({"id":6807599,"src":"Product_pebble_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Mathmos pebble","height":87});
															thumbnails[6807601] = clik.newPhoto({"id":6807601,"src":"Product_pebble2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Mathmos pebble","height":87});
															thumbnails[6828096] = clik.newPhoto({"id":6828096,"src":"NaturePets-whiskey_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Whiskey","height":130});
															thumbnails[6999575] = clik.newPhoto({"id":6999575,"src":"Macro_Heading_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Macro","height":130});
															thumbnails[6999591] = clik.newPhoto({"id":6999591,"src":"Landscape_Sydney_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Landscape","height":130});
															thumbnails[6999822] = clik.newPhoto({"id":6999822,"src":"Home-Page-image-winner_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":130});
															thumbnails[6828037] = clik.newPhoto({"id":6828037,"src":"Sport-rugby_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Sport","height":130});
															thumbnails[5748059] = clik.newPhoto({"id":5748059,"src":"Lou22_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Louise Wright","height":130});
															thumbnails[5748057] = clik.newPhoto({"id":5748057,"src":"Dave21_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"David Wright - Self portrait","height":130});
															thumbnails[6044113] = clik.newPhoto({"id":6044113,"src":"Why-us_thumb.jpg","galleries_id":349948,"server_id":15,"link":"photo_6044113.html","width":130,"caption":"","height":130});
															thumbnails[6310832] = clik.newPhoto({"id":6310832,"src":"Why-us-1_thumb.jpg","galleries_id":349948,"server_id":15,"link":"photo_6310832.html","width":130,"caption":"","height":130});
															thumbnails[6310833] = clik.newPhoto({"id":6310833,"src":"Why-us-2_thumb.jpg","galleries_id":349948,"server_id":15,"link":"photo_6310833.html","width":130,"caption":"","height":130});
															thumbnails[6310834] = clik.newPhoto({"id":6310834,"src":"Why-us-3_thumb.jpg","galleries_id":349948,"server_id":15,"link":"photo_6310834.html","width":130,"caption":"","height":130});
															thumbnails[6310835] = clik.newPhoto({"id":6310835,"src":"Why-us-4_thumb.jpg","galleries_id":349948,"server_id":15,"link":"photo_6310835.html","width":130,"caption":"","height":130});
															thumbnails[6310836] = clik.newPhoto({"id":6310836,"src":"Why-us-5_thumb.jpg","galleries_id":349948,"server_id":15,"link":"photo_6310836.html","width":130,"caption":"","height":130});
															thumbnails[5747554] = clik.newPhoto({"id":5747554,"src":"1click2meet_thumb.jpg","galleries_id":325545,"server_id":15,"link":"photo_5747554.html","width":130,"caption":"1click2meet logo identity","height":130});
															thumbnails[5747591] = clik.newPhoto({"id":5747591,"src":"30-max-logo_thumb.jpg","galleries_id":325545,"server_id":15,"link":"photo_5747591.html","width":130,"caption":"30 Max logo identity","height":130});
															thumbnails[5747617] = clik.newPhoto({"id":5747617,"src":"Annual-Awards-logo_thumb.jpg","galleries_id":325545,"server_id":15,"link":"photo_5747617.html","width":130,"caption":"Annual Awards logo identity","height":130});
															thumbnails[5747638] = clik.newPhoto({"id":5747638,"src":"BGL-logo_thumb.jpg","galleries_id":325545,"server_id":15,"link":"photo_5747638.html","width":130,"caption":"BGL Group brand identity","height":130});
															thumbnails[5747644] = clik.newPhoto({"id":5747644,"src":"Minster-Law-logo_thumb.jpg","galleries_id":325545,"server_id":15,"link":"photo_5747644.html","width":130,"caption":"Minster Law brand identity","height":130});
															thumbnails[5747648] = clik.newPhoto({"id":5747648,"src":"KWAS_thumb.jpg","galleries_id":325545,"server_id":15,"link":"photo_5747648.html","width":130,"caption":"KW Auto Services logo identity","height":130});
															thumbnails[5747660] = clik.newPhoto({"id":5747660,"src":"MPOJ_thumb.jpg","galleries_id":325545,"server_id":15,"link":"photo_5747660.html","width":130,"caption":"My Path Our Journey brand identity","height":130});
															thumbnails[5747669] = clik.newPhoto({"id":5747669,"src":"SMC-Logo_thumb.jpg","galleries_id":325545,"server_id":15,"link":"photo_5747669.html","width":130,"caption":"Senior Managers Conference brand identity","height":130});
															thumbnails[5747680] = clik.newPhoto({"id":5747680,"src":"wellbeing-logo_thumb.jpg","galleries_id":325545,"server_id":15,"link":"photo_5747680.html","width":130,"caption":"Wellbeing brand identity","height":130});
															thumbnails[5747716] = clik.newPhoto({"id":5747716,"src":"annual-report-winner_thumb.jpg","galleries_id":325551,"server_id":15,"link":"photo_5747716.html","width":130,"caption":"BGL Group Award Winning Annual Report","height":130});
															thumbnails[5747718] = clik.newPhoto({"id":5747718,"src":"Bennetts-Bike-Torque_thumb.jpg","galleries_id":325551,"server_id":15,"link":"photo_5747718.html","width":130,"caption":"Bennetts Bike Insurance internal magazine","height":130});
															thumbnails[5747803] = clik.newPhoto({"id":5747803,"src":"Bennetts-Panel-Brochure_thumb.jpg","galleries_id":325551,"server_id":15,"link":"photo_5747803.html","width":130,"caption":"Bennetts Brochure","height":130});
															thumbnails[5747811] = clik.newPhoto({"id":5747811,"src":"Douw-Steyn-Brochure_thumb.jpg","galleries_id":325551,"server_id":15,"link":"photo_5747811.html","width":130,"caption":"Douw Steyn in the community brochure","height":130});
															thumbnails[5747815] = clik.newPhoto({"id":5747815,"src":"How-to-grow-fresh-design-booklet_thumb.jpg","galleries_id":325551,"server_id":15,"link":"photo_5747815.html","width":130,"caption":"Creative studio booklet","height":130});
															thumbnails[5747977] = clik.newPhoto({"id":5747977,"src":"Diamonds-are-forever-invite_thumb.jpg","galleries_id":325552,"server_id":15,"link":"photo_5747977.html","width":130,"caption":"Diamonds are forever dinner invitation","height":130});
															thumbnails[5747982] = clik.newPhoto({"id":5747982,"src":"ITs-got-talent-Invite_thumb.jpg","galleries_id":325552,"server_id":15,"link":"photo_5747982.html","width":130,"caption":"IT's got talent evite","height":130});
															thumbnails[5747984] = clik.newPhoto({"id":5747984,"src":"Paint-the-town-red-invite_thumb.jpg","galleries_id":325552,"server_id":15,"link":"photo_5747984.html","width":130,"caption":"Awards ball invitation ","height":130});
															thumbnails[5747989] = clik.newPhoto({"id":5747989,"src":"Winter-Dinner-Invite_thumb.jpg","galleries_id":325552,"server_id":15,"link":"photo_5747989.html","width":130,"caption":"Winter Dinner Invitation","height":130});
															thumbnails[5748003] = clik.newPhoto({"id":5748003,"src":"Nocturnal-Species_thumb.jpg","galleries_id":325573,"server_id":15,"link":"photo_5748003.html","width":130,"caption":"Album Cover - Nocturnal Species","height":130});
															thumbnails[6043855] = clik.newPhoto({"id":6043855,"src":"Fun-Day-Invite_thumb.jpg","galleries_id":325552,"server_id":15,"link":"photo_6043855.html","width":130,"caption":"Fun Day invitation","height":130});
															thumbnails[6159703] = clik.newPhoto({"id":6159703,"src":"Cowes-week-invite_thumb.jpg","galleries_id":325552,"server_id":15,"link":"photo_6159703.html","width":130,"caption":"Cowes week evite","height":130});
															thumbnails[6159717] = clik.newPhoto({"id":6159717,"src":"Custard-Packaging_thumb.jpg","galleries_id":325573,"server_id":15,"link":"photo_6159717.html","width":130,"caption":"Sainsbury's custard packaging","height":130});
															thumbnails[6159752] = clik.newPhoto({"id":6159752,"src":"Groovy-Chick-adverts_thumb.jpg","galleries_id":344511,"server_id":15,"link":"photo_6159752.html","width":130,"caption":"Groovy Chick Adverts","height":130});
															thumbnails[6159760] = clik.newPhoto({"id":6159760,"src":"Bennetts-leaflet_thumb.jpg","galleries_id":344505,"server_id":15,"link":"photo_6159760.html","width":130,"caption":"Bennetts leaflet","height":130});
															thumbnails[6159779] = clik.newPhoto({"id":6159779,"src":"World-Env-Day-Poster_thumb.jpg","galleries_id":344505,"server_id":15,"link":"photo_6159779.html","width":130,"caption":"World Environment Day poster","height":130});
															thumbnails[6159791] = clik.newPhoto({"id":6159791,"src":"Fusion-ESI-Poster_thumb.jpg","galleries_id":344505,"server_id":15,"link":"photo_6159791.html","width":130,"caption":"Fusion ESI Poster","height":130});
															thumbnails[6159825] = clik.newPhoto({"id":6159825,"src":"1click2meet-poster_thumb.jpg","galleries_id":344505,"server_id":15,"link":"photo_6159825.html","width":130,"caption":"1click2meet poster","height":130});
															thumbnails[6159840] = clik.newPhoto({"id":6159840,"src":"Mathmos-art-direction_thumb.jpg","galleries_id":325553,"server_id":15,"link":"photo_6159840.html","width":130,"caption":"Mathmos photo competition","height":130});
															thumbnails[6159901] = clik.newPhoto({"id":6159901,"src":"Bennetts-xmas-ad-art-direction_thumb.jpg","galleries_id":325553,"server_id":15,"link":"photo_6159901.html","width":130,"caption":"Bennetts Xmas advert","height":130});
															thumbnails[6160102] = clik.newPhoto({"id":6160102,"src":"Fusion-awards_thumb.jpg","galleries_id":325573,"server_id":15,"link":"photo_6160102.html","width":130,"caption":"Fusion Awards","height":130});
															thumbnails[6160163] = clik.newPhoto({"id":6160163,"src":"Bennetts-ceiling-sign_thumb.jpg","galleries_id":339702,"server_id":15,"link":"photo_6160163.html","width":130,"caption":"Bennetts Ceiling sign","height":130});
															thumbnails[6160172] = clik.newPhoto({"id":6160172,"src":"Fusion-branding-wall_thumb.jpg","galleries_id":339702,"server_id":15,"link":"photo_6160172.html","width":130,"caption":"Fusion wall branding","height":130});
															thumbnails[6160206] = clik.newPhoto({"id":6160206,"src":"Bennetts-Adverts_thumb.jpg","galleries_id":344511,"server_id":15,"link":"photo_6160206.html","width":130,"caption":"Bennetts publication adverts","height":130});
															thumbnails[6310763] = clik.newPhoto({"id":6310763,"src":"BGL-sign_thumb.jpg","galleries_id":339702,"server_id":15,"link":"photo_6310763.html","width":130,"caption":"BGL External Sign","height":130});
															thumbnails[6787088] = clik.newPhoto({"id":6787088,"src":"Indesit-BBQ-poster_thumb.jpg","galleries_id":344505,"server_id":15,"link":"photo_6787088.html","width":130,"caption":"Indesit Poster","height":130});
															thumbnails[6998827] = clik.newPhoto({"id":6998827,"src":"Sport_Bike_thumb.jpg","galleries_id":325582,"server_id":15,"link":"photo_6998827.html","width":130,"caption":"Sport","height":130});
															thumbnails[6998874] = clik.newPhoto({"id":6998874,"src":"Portrait_heading_thumb.jpg","galleries_id":325578,"server_id":15,"link":"photo_6998874.html","width":130,"caption":"Portrait","height":130});
															thumbnails[6999057] = clik.newPhoto({"id":6999057,"src":"Abstract_Home_thumb.jpg","galleries_id":325585,"server_id":15,"link":"photo_6999057.html","width":130,"caption":"Abstract","height":130});
															thumbnails[6999059] = clik.newPhoto({"id":6999059,"src":"Nature_Heading_thumb.jpg","galleries_id":325574,"server_id":15,"link":"photo_6999059.html","width":130,"caption":"Nature","height":130});
															thumbnails[6999679] = clik.newPhoto({"id":6999679,"src":"Landscape_Brisbane2_thumb.jpg","galleries_id":325584,"server_id":15,"link":"photo_6999679.html","width":130,"caption":"Landscape","height":130});
															thumbnails[7830016] = clik.newPhoto({"id":7830016,"src":"Wedding-heading_thumb.jpg","galleries_id":325579,"server_id":15,"link":"photo_7830016.html","width":130,"caption":"","height":130});
															thumbnails[7830018] = clik.newPhoto({"id":7830018,"src":"Wedding-1_thumb.jpg","galleries_id":325579,"server_id":15,"link":"photo_7830018.html","width":130,"caption":"","height":130});
															thumbnails[7830020] = clik.newPhoto({"id":7830020,"src":"Wedding-2_thumb.jpg","galleries_id":325579,"server_id":15,"link":"photo_7830020.html","width":130,"caption":"","height":130});
															thumbnails[7830021] = clik.newPhoto({"id":7830021,"src":"Wedding-4_thumb.jpg","galleries_id":325579,"server_id":15,"link":"photo_7830021.html","width":130,"caption":"","height":130});
															thumbnails[7830022] = clik.newPhoto({"id":7830022,"src":"Wedding-5_thumb.jpg","galleries_id":325579,"server_id":15,"link":"photo_7830022.html","width":130,"caption":"","height":130});
															thumbnails[7830024] = clik.newPhoto({"id":7830024,"src":"Wedding-6_thumb.jpg","galleries_id":325579,"server_id":15,"link":"photo_7830024.html","width":130,"caption":"","height":130});
															thumbnails[7830027] = clik.newPhoto({"id":7830027,"src":"Wedding-7_thumb.jpg","galleries_id":325579,"server_id":15,"link":"photo_7830027.html","width":130,"caption":"","height":130});
															thumbnails[7830031] = clik.newPhoto({"id":7830031,"src":"Wedding-8_thumb.jpg","galleries_id":325579,"server_id":15,"link":"photo_7830031.html","width":130,"caption":"","height":130});
															thumbnails[7830037] = clik.newPhoto({"id":7830037,"src":"Wedding-9_thumb.jpg","galleries_id":325579,"server_id":15,"link":"photo_7830037.html","width":130,"caption":"","height":130});
															thumbnails[6827946] = clik.newPhoto({"id":6827946,"src":"Product-Heading-image_thumb.jpg","galleries_id":325583,"server_id":15,"link":"photo_6827946.html","width":130,"caption":"Product","height":130});
															thumbnails[6827960] = clik.newPhoto({"id":6827960,"src":"Events-heading-image_thumb.jpg","galleries_id":325581,"server_id":15,"link":"photo_6827960.html","width":130,"caption":"Events\/Reportage","height":130});
															thumbnails[6828029] = clik.newPhoto({"id":6828029,"src":"NaturePets-heading_thumb.jpg","galleries_id":379153,"server_id":15,"link":"photo_6828029.html","width":130,"caption":"Pets","height":130});
															thumbnails[5747951] = clik.newPhoto({"id":5747951,"src":"Lou21_thumb.jpg","galleries_id":350660,"server_id":15,"link":"photo_5747951.html","width":130,"caption":"Louise Wright","height":130});
															thumbnails[5747954] = clik.newPhoto({"id":5747954,"src":"Dave2_thumb.jpg","galleries_id":350660,"server_id":15,"link":"photo_5747954.html","width":130,"caption":"David Wright","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[350660] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Meet the Team","link":"section390435.html","maxRecords":0.0,"photoIDs":[5747951.0,5747954.0],"skipIndex":0,"section_code":"section390435","featured_images":"5747954,5747951","id":350660,"singleSection":true});				  						galleries[349948] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Why us?","link":"section390460.html","maxRecords":0.0,"photoIDs":[6044113.0,6310832.0,6310833.0,6310834.0,6310835.0,6310836.0],"skipIndex":0,"section_code":"section390460","featured_images":6044113.0,"id":349948,"singleSection":true});				  						galleries[325545] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Logos","link":"section353670_325545.html","maxRecords":0.0,"photoIDs":[5747554.0,5747591.0,5747617.0,5747638.0,5747644.0,5747648.0,5747660.0,5747669.0,5747680.0],"skipIndex":0,"section_code":"section353670","featured_images":"5747680,5747669,5747660,5747648,5747644,5747638,5747617,5747591,5747554","id":325545,"singleSection":false});				  						galleries[325551] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Brochures","link":"section353670_325551.html","maxRecords":0.0,"photoIDs":[5747716.0,5747718.0,5747803.0,5747811.0,5747815.0],"skipIndex":0,"section_code":"section353670","featured_images":5747716.0,"id":325551,"singleSection":false});				  						galleries[325552] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Invites","link":"section353670_325552.html","maxRecords":0.0,"photoIDs":[5747977.0,5747982.0,5747984.0,5747989.0,6043855.0,6159703.0],"skipIndex":0,"section_code":"section353670","featured_images":"6159703,6043855,5747989,5747984,5747982,5747977","id":325552,"singleSection":false});				  						galleries[344505] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Posters & Leaflets","link":"section353670_344505.html","maxRecords":0.0,"photoIDs":[6159760.0,6159779.0,6159791.0,6159825.0,6787088.0],"skipIndex":0,"section_code":"section353670","featured_images":"6787088,6159825,6159791,6159779,6159760","id":344505,"singleSection":false});				  						galleries[344511] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Adverts","link":"section353670_344511.html","maxRecords":0.0,"photoIDs":[6159752.0,6160206.0],"skipIndex":0,"section_code":"section353670","featured_images":"6160206,6159752","id":344511,"singleSection":false});				  						galleries[339702] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Branding","link":"section353670_339702.html","maxRecords":0.0,"photoIDs":[6160163.0,6160172.0,6310763.0],"skipIndex":0,"section_code":"section353670","featured_images":"6310763,6160172,6160163","id":339702,"singleSection":false});				  						galleries[325573] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous","link":"section353670_325573.html","maxRecords":0.0,"photoIDs":[5748003.0,6159717.0,6160102.0],"skipIndex":0,"section_code":"section353670","featured_images":"6160102,6159717,5748003","id":325573,"singleSection":false});				  						galleries[325553] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Art Direction","link":"section353670_325553.html","maxRecords":0.0,"photoIDs":[6159840.0,6159901.0],"skipIndex":0,"section_code":"section353670","featured_images":"6159901,6159840","id":325553,"singleSection":false});				  						galleries[325578] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"section353671_325578.html","maxRecords":0.0,"photoIDs":[6998874.0],"skipIndex":0,"section_code":"section353671","featured_images":6998874.0,"id":325578,"singleSection":false});				  						galleries[325579] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"section353671_325579.html","maxRecords":0.0,"photoIDs":[7830016.0,7830018.0,7830020.0,7830021.0,7830022.0,7830024.0,7830027.0,7830031.0,7830037.0],"skipIndex":0,"section_code":"section353671","featured_images":7830016.0,"id":325579,"singleSection":false});				  						galleries[379153] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pets","link":"section353671_379153.html","maxRecords":0.0,"photoIDs":[6828029.0],"skipIndex":0,"section_code":"section353671","featured_images":6828029.0,"id":379153,"singleSection":false});				  						galleries[325583] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Products","link":"section353671_325583.html","maxRecords":0.0,"photoIDs":[6827946.0],"skipIndex":0,"section_code":"section353671","featured_images":6827946.0,"id":325583,"singleSection":false});				  						galleries[325581] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"section353671_325581.html","maxRecords":0.0,"photoIDs":[6827960.0],"skipIndex":0,"section_code":"section353671","featured_images":6827960.0,"id":325581,"singleSection":false});				  						galleries[325582] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sport","link":"section353671_325582.html","maxRecords":0.0,"photoIDs":[6998827.0],"skipIndex":0,"section_code":"section353671","featured_images":6998827.0,"id":325582,"singleSection":false});				  						galleries[325574] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature","link":"section353671_325574.html","maxRecords":0.0,"photoIDs":[6999059.0],"skipIndex":0,"section_code":"section353671","featured_images":6999059.0,"id":325574,"singleSection":false});				  						galleries[325584] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"section353671_325584.html","maxRecords":0.0,"photoIDs":[6999679.0],"skipIndex":0,"section_code":"section353671","featured_images":6999679.0,"id":325584,"singleSection":false});				  						galleries[325585] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abstract","link":"section353671_325585.html","maxRecords":0.0,"photoIDs":[6999057.0],"skipIndex":0,"section_code":"section353671","featured_images":6999057.0,"id":325585,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6999822';
imageSets[2] = '7830016,6999679,6999591,6999059,6999057,6998874,6998827,6044113,5747716,6828029,6827960,6827946';
imageSets[3] = '7830037,7830031,7830027,7830024,7830022,7830021,7830020,7830018,7830016,6999822,6999679,6999591,6999575,6999059,6999057,6998874,6998827,6828096,6828037,6828029,6827960,6827946,6807601,6807599,6807586,6807576,6787088,6310836,6310835,6310834,6310833,6310832,6310763,6160206,6160172,6160163,6160102,6159901,6159840,6159825,6159791,6159779,6159760,6159752,6159717,6159703,6044113,6043951,6043937,6043855';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lifeinpictures/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lifeinpictures/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 += 'section390460.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 && 'section390460' != '') {
					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 = 'Life In Pictures - Design & Photographic Services: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<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;
	}
}

			

