window.thumbnails = {};
															thumbnails[6246164] = clik.newPhoto({"id":6246164,"src":"The-Phone-Call_thumb.jpg","galleries_id":347546,"server_id":5,"link":"photo_6246164.html","width":130,"caption":"The Phone Call","height":103});
															thumbnails[6248795] = clik.newPhoto({"id":6248795,"src":"Relationship_thumb.jpg","galleries_id":347546,"server_id":5,"link":"photo_6248795.html","width":130,"caption":"Relationship","height":89});
															thumbnails[6254610] = clik.newPhoto({"id":6254610,"src":"Ballet_thumb.jpg","galleries_id":347782,"server_id":5,"link":"photo_6254610.html","width":130,"caption":"Ballet","height":92});
															thumbnails[6254900] = clik.newPhoto({"id":6254900,"src":"Innocent-look_thumb.jpg","galleries_id":347810,"server_id":5,"link":"photo_6254900.html","width":130,"caption":"Innocent thoughts","height":108});
															thumbnails[6254985] = clik.newPhoto({"id":6254985,"src":"Handle-with-care_thumb.jpg","galleries_id":347810,"server_id":5,"link":"photo_6254985.html","width":130,"caption":"Handle With Care","height":156});
															thumbnails[6255061] = clik.newPhoto({"id":6255061,"src":"Give-me-some-more_thumb.jpg","galleries_id":347546,"server_id":5,"link":"photo_6255061.html","width":130,"caption":"Give me some more","height":97});
															thumbnails[6256340] = clik.newPhoto({"id":6256340,"src":"La-Sylphide1_thumb.jpg","galleries_id":347782,"server_id":5,"link":"photo_6256340.html","width":130,"caption":"La Sylphide","height":87});
															thumbnails[6260579] = clik.newPhoto({"id":6260579,"src":"Mellieha-view_thumb.jpg","galleries_id":347547,"server_id":5,"link":"photo_6260579.html","width":130,"caption":"Mellieha","height":164});
															thumbnails[6260584] = clik.newPhoto({"id":6260584,"src":"The-Azurre-Window_thumb.jpg","galleries_id":347547,"server_id":5,"link":"photo_6260584.html","width":130,"caption":"Azure window","height":97});
															thumbnails[6260588] = clik.newPhoto({"id":6260588,"src":"The-palm-tree_thumb.jpg","galleries_id":347547,"server_id":5,"link":"photo_6260588.html","width":130,"caption":"Palm tree","height":175});
															thumbnails[6260593] = clik.newPhoto({"id":6260593,"src":"Painting-with-a-difference_thumb.jpg","galleries_id":348534,"server_id":5,"link":"photo_6260593.html","width":130,"caption":"Painting with a difference","height":97});
															thumbnails[6260601] = clik.newPhoto({"id":6260601,"src":"A-boy-with-3-chicks_thumb.jpg","galleries_id":347810,"server_id":5,"link":"photo_6260601.html","width":130,"caption":"Boy with Chicks","height":175});
															thumbnails[6260602] = clik.newPhoto({"id":6260602,"src":"Cavalry_thumb.jpg","galleries_id":347782,"server_id":5,"link":"photo_6260602.html","width":130,"caption":"Cavalry","height":88});
															thumbnails[6260607] = clik.newPhoto({"id":6260607,"src":"Emperor-Dragonfly_thumb.jpg","galleries_id":348048,"server_id":5,"link":"photo_6260607.html","width":130,"caption":"Emperor Dragonfly","height":149});
															thumbnails[6264758] = clik.newPhoto({"id":6264758,"src":"Apple-Sewn_thumb.jpg","galleries_id":348244,"server_id":5,"link":"photo_6264758.html","width":130,"caption":"Apple Sewn","height":108});
															thumbnails[6264759] = clik.newPhoto({"id":6264759,"src":"Egg-Fishing_thumb.jpg","galleries_id":348244,"server_id":5,"link":"photo_6264759.html","width":130,"caption":"Egg Fishing!","height":205});
															thumbnails[6264760] = clik.newPhoto({"id":6264760,"src":"Pretty_Lady_thumb.jpg","galleries_id":348244,"server_id":5,"link":"photo_6264760.html","width":130,"caption":"Pretty Lady","height":175});
															thumbnails[6264762] = clik.newPhoto({"id":6264762,"src":"Orange_thumb.jpg","galleries_id":348244,"server_id":5,"link":"photo_6264762.html","width":130,"caption":"Orange","height":137});
															thumbnails[6264763] = clik.newPhoto({"id":6264763,"src":"Tomato_thumb.jpg","galleries_id":348244,"server_id":5,"link":"photo_6264763.html","width":130,"caption":"Tomato","height":189});
															thumbnails[6264765] = clik.newPhoto({"id":6264765,"src":"Busy-Bee_thumb.jpg","galleries_id":348048,"server_id":5,"link":"photo_6264765.html","width":130,"caption":"Busy Bee","height":98});
															thumbnails[6264801] = clik.newPhoto({"id":6264801,"src":"Shieldbug_thumb.jpg","galleries_id":348048,"server_id":5,"link":"photo_6264801.html","width":130,"caption":"Shieldbug","height":93});
															thumbnails[6264904] = clik.newPhoto({"id":6264904,"src":"Golden-Bay_thumb.jpg","galleries_id":347547,"server_id":5,"link":"photo_6264904.html","width":130,"caption":"Golden Bay","height":97});
															thumbnails[6264905] = clik.newPhoto({"id":6264905,"src":"Warrior_thumb.jpg","galleries_id":347546,"server_id":5,"link":"photo_6264905.html","width":130,"caption":"Warrior","height":185});
															thumbnails[6264907] = clik.newPhoto({"id":6264907,"src":"Violinist_thumb.jpg","galleries_id":347782,"server_id":5,"link":"photo_6264907.html","width":130,"caption":"Violinist","height":130});
															thumbnails[6265123] = clik.newPhoto({"id":6265123,"src":"Under-the-Cross_thumb.jpg","galleries_id":347782,"server_id":5,"link":"photo_6265123.html","width":130,"caption":"Under the Cross","height":80});
															thumbnails[6265129] = clik.newPhoto({"id":6265129,"src":"Here-I-Slither_thumb.jpg","galleries_id":348244,"server_id":5,"link":"photo_6265129.html","width":130,"caption":"Here I come to Slither!","height":95});
															thumbnails[6265139] = clik.newPhoto({"id":6265139,"src":"Milking-goat-1_thumb.jpg","galleries_id":348534,"server_id":5,"link":"photo_6265139.html","width":130,"caption":"Milking Goat 1","height":97});
															thumbnails[6265142] = clik.newPhoto({"id":6265142,"src":"Popeyes-Village_thumb.jpg","galleries_id":347547,"server_id":5,"link":"photo_6265142.html","width":130,"caption":"Popeye's Village","height":94});
															thumbnails[6265144] = clik.newPhoto({"id":6265144,"src":"Red-Paint_thumb.jpg","galleries_id":348244,"server_id":5,"link":"photo_6265144.html","width":130,"caption":"Red Paint","height":110});
															thumbnails[6265189] = clik.newPhoto({"id":6265189,"src":"Sea-gull_thumb.jpg","galleries_id":348048,"server_id":5,"link":"photo_6265189.html","width":130,"caption":"Sea Gull","height":107});
															thumbnails[6265205] = clik.newPhoto({"id":6265205,"src":"Sea-gulls_thumb.jpg","galleries_id":348048,"server_id":5,"link":"photo_6265205.html","width":130,"caption":"Sea Gulls","height":94});
															thumbnails[6265232] = clik.newPhoto({"id":6265232,"src":"Snail_thumb.jpg","galleries_id":348048,"server_id":5,"link":"photo_6265232.html","width":130,"caption":"Snail","height":175});
															thumbnails[6265290] = clik.newPhoto({"id":6265290,"src":"Family1_thumb.jpg","galleries_id":347546,"server_id":5,"link":"photo_6265290.html","width":130,"caption":"Family","height":140});
															thumbnails[6268395] = clik.newPhoto({"id":6268395,"src":"Bilbao-Bridge-1_thumb.jpg","galleries_id":348246,"server_id":5,"link":"photo_6268395.html","width":130,"caption":"Bilbao Bridge 1","height":97});
															thumbnails[6268491] = clik.newPhoto({"id":6268491,"src":"Barba-Rossa-reading_thumb.jpg","galleries_id":348390,"server_id":5,"link":"photo_6268491.html","width":130,"caption":"Reading Time","height":103});
															thumbnails[6268495] = clik.newPhoto({"id":6268495,"src":"Chantelle-reading_thumb.jpg","galleries_id":348390,"server_id":5,"link":"photo_6268495.html","width":130,"caption":"The Key to Knowledge","height":107});
															thumbnails[6268508] = clik.newPhoto({"id":6268508,"src":"Maltese-boats_thumb.jpg","galleries_id":348391,"server_id":5,"link":"photo_6268508.html","width":130,"caption":"Maltese Boats","height":97});
															thumbnails[6268511] = clik.newPhoto({"id":6268511,"src":"Fun_Time_thumb.jpg","galleries_id":347810,"server_id":5,"link":"photo_6268511.html","width":130,"caption":"Fun Time","height":168});
															thumbnails[6268521] = clik.newPhoto({"id":6268521,"src":"Moses_thumb.jpg","galleries_id":347546,"server_id":5,"link":"photo_6268521.html","width":130,"caption":"Moses","height":169});
															thumbnails[6268527] = clik.newPhoto({"id":6268527,"src":"Patri-Frangiskan-jaqra_thumb.jpg","galleries_id":348390,"server_id":5,"link":"photo_6268527.html","width":130,"caption":"Reflective Moment","height":95});
															thumbnails[6268538] = clik.newPhoto({"id":6268538,"src":"Reaching-out_thumb.jpg","galleries_id":348390,"server_id":5,"link":"photo_6268538.html","width":130,"caption":"Reaching Out","height":101});
															thumbnails[6268606] = clik.newPhoto({"id":6268606,"src":"Shoe-making_thumb.jpg","galleries_id":348391,"server_id":5,"link":"photo_6268606.html","width":130,"caption":"Getting Ready","height":102});
															thumbnails[6268610] = clik.newPhoto({"id":6268610,"src":"Natural_History_Museum_London_thumb.jpg","galleries_id":348246,"server_id":5,"link":"photo_6268610.html","width":130,"caption":"Natural History Museum of London","height":102});
															thumbnails[6268615] = clik.newPhoto({"id":6268615,"src":"Fresh_look_thumb.jpg","galleries_id":347810,"server_id":5,"link":"photo_6268615.html","width":130,"caption":"Fresh Look","height":175});
															thumbnails[6268617] = clik.newPhoto({"id":6268617,"src":"The-Nomad_thumb.jpg","galleries_id":348390,"server_id":5,"link":"photo_6268617.html","width":130,"caption":"The Nomad","height":97});
															thumbnails[6268620] = clik.newPhoto({"id":6268620,"src":"The-Sultan_thumb.jpg","galleries_id":348390,"server_id":5,"link":"photo_6268620.html","width":130,"caption":"The Sultan","height":175});
															thumbnails[6271436] = clik.newPhoto({"id":6271436,"src":"Bambino_thumb.jpg","galleries_id":347810,"server_id":5,"link":"photo_6271436.html","width":130,"caption":"Bambino","height":172});
															thumbnails[6271441] = clik.newPhoto({"id":6271441,"src":"beauty_thumb.jpg","galleries_id":347810,"server_id":5,"link":"photo_6271441.html","width":130,"caption":"Beauty","height":160});
															thumbnails[6271446] = clik.newPhoto({"id":6271446,"src":"crab-spider-eating-a-bee_thumb.jpg","galleries_id":348048,"server_id":5,"link":"photo_6271446.html","width":130,"caption":"Crab Spider and Bee","height":106});
															thumbnails[6271450] = clik.newPhoto({"id":6271450,"src":"Metal-worker_thumb.jpg","galleries_id":348534,"server_id":5,"link":"photo_6271450.html","width":130,"caption":"Metal worker","height":97});
															thumbnails[6271452] = clik.newPhoto({"id":6271452,"src":"Milking-goat-2_thumb.jpg","galleries_id":348534,"server_id":5,"link":"photo_6271452.html","width":130,"caption":"Milking Goat 2","height":161});
															thumbnails[6271466] = clik.newPhoto({"id":6271466,"src":"Paul-farmer_thumb.jpg","galleries_id":347546,"server_id":5,"link":"photo_6271466.html","width":130,"caption":"Farmer","height":98});
															thumbnails[6271468] = clik.newPhoto({"id":6271468,"src":"Sparks_thumb.jpg","galleries_id":348534,"server_id":5,"link":"photo_6271468.html","width":130,"caption":"Sparks","height":162});
															thumbnails[6271785] = clik.newPhoto({"id":6271785,"src":"Baby-Fabio_thumb.jpg","galleries_id":347810,"server_id":5,"link":"photo_6271785.html","width":130,"caption":"Calling","height":110});
															thumbnails[6271798] = clik.newPhoto({"id":6271798,"src":"Liza-with-flower_thumb.jpg","galleries_id":347810,"server_id":5,"link":"photo_6271798.html","width":130,"caption":"Little Princess","height":110});
															thumbnails[6271801] = clik.newPhoto({"id":6271801,"src":"Relaxed_thumb.jpg","galleries_id":347810,"server_id":5,"link":"photo_6271801.html","width":130,"caption":"Relaxed","height":166});
															thumbnails[6272129] = clik.newPhoto({"id":6272129,"src":"Bee-Keeper_thumb.jpg","galleries_id":348534,"server_id":5,"link":"photo_6272129.html","width":130,"caption":"Bee Keeper","height":107});
															thumbnails[6272451] = clik.newPhoto({"id":6272451,"src":"bleeding-tree_thumb.jpg","galleries_id":348244,"server_id":5,"link":"photo_6272451.html","width":130,"caption":"Bleeding Tree","height":175});
															thumbnails[6272466] = clik.newPhoto({"id":6272466,"src":"Crucifixion-3_thumb.jpg","galleries_id":347782,"server_id":5,"link":"photo_6272466.html","width":130,"caption":"Crucifixion 3","height":181});
															thumbnails[6272468] = clik.newPhoto({"id":6272468,"src":"High-Priest_thumb.jpg","galleries_id":347546,"server_id":5,"link":"photo_6272468.html","width":130,"caption":"Hi Priest","height":166});
															thumbnails[6272472] = clik.newPhoto({"id":6272472,"src":"Lace-making_thumb.jpg","galleries_id":348534,"server_id":5,"link":"photo_6272472.html","width":130,"caption":"Lace Making","height":103});
															thumbnails[6272473] = clik.newPhoto({"id":6272473,"src":"Octopus_thumb.jpg","galleries_id":348391,"server_id":5,"link":"photo_6272473.html","width":130,"caption":"Octopus","height":111});
															thumbnails[6272475] = clik.newPhoto({"id":6272475,"src":"Pilate--Jesus-Chris_thumb.jpg","galleries_id":347782,"server_id":5,"link":"photo_6272475.html","width":130,"caption":"Pilate & Jesus","height":80});
															thumbnails[6272492] = clik.newPhoto({"id":6272492,"src":"Pouring_thumb.jpg","galleries_id":348244,"server_id":5,"link":"photo_6272492.html","width":130,"caption":"Pouring","height":102});
															thumbnails[6272497] = clik.newPhoto({"id":6272497,"src":"Rejected_thumb.jpg","galleries_id":348390,"server_id":5,"link":"photo_6272497.html","width":130,"caption":"Rejected","height":171});
															thumbnails[6275741] = clik.newPhoto({"id":6275741,"src":"Flagellation_thumb.jpg","galleries_id":347782,"server_id":5,"link":"photo_6275741.html","width":130,"caption":"Flagellation","height":97});
															thumbnails[6275743] = clik.newPhoto({"id":6275743,"src":"droplet_thumb.jpg","galleries_id":348244,"server_id":5,"link":"photo_6275743.html","width":130,"caption":"Droplet","height":70});
															thumbnails[6283203] = clik.newPhoto({"id":6283203,"src":"Scars-of-Time_thumb.jpg","galleries_id":348390,"server_id":5,"link":"photo_6283203.html","width":130,"caption":"Scars if Time","height":175});
															thumbnails[6283204] = clik.newPhoto({"id":6283204,"src":"Smoking-a-pipe_thumb.jpg","galleries_id":347546,"server_id":5,"link":"photo_6283204.html","width":130,"caption":"Smoking a Pipe","height":109});
															thumbnails[6283205] = clik.newPhoto({"id":6283205,"src":"Touching-Look_thumb.jpg","galleries_id":347546,"server_id":5,"link":"photo_6283205.html","width":130,"caption":"Touching Look","height":167});
															thumbnails[6283426] = clik.newPhoto({"id":6283426,"src":"Beauty-at-old-age_thumb.jpg","galleries_id":348390,"server_id":5,"link":"photo_6283426.html","width":130,"caption":"Beauty at Old age","height":170});
															thumbnails[6283454] = clik.newPhoto({"id":6283454,"src":"Bee_thumb.jpg","galleries_id":348048,"server_id":5,"link":"photo_6283454.html","width":130,"caption":"Bee","height":101});
															thumbnails[6283456] = clik.newPhoto({"id":6283456,"src":"Dragonfly_thumb.jpg","galleries_id":348048,"server_id":5,"link":"photo_6283456.html","width":130,"caption":"Dragonfly","height":95});
															thumbnails[6283457] = clik.newPhoto({"id":6283457,"src":"Soldier-Bugs_thumb.jpg","galleries_id":348048,"server_id":5,"link":"photo_6283457.html","width":130,"caption":"Soldier Bugs","height":97});
															thumbnails[6283458] = clik.newPhoto({"id":6283458,"src":"Knisja-tal-Karmnu-Fgura_thumb.jpg","galleries_id":348246,"server_id":5,"link":"photo_6283458.html","width":130,"caption":"Tal-Karmnu - Fgura","height":95});
															thumbnails[6283459] = clik.newPhoto({"id":6283459,"src":"Bilbao-Rotunda_thumb.jpg","galleries_id":348246,"server_id":5,"link":"photo_6283459.html","width":130,"caption":"Bilbao Rotunda","height":97});
															thumbnails[6283460] = clik.newPhoto({"id":6283460,"src":"Carmelite-Church_thumb.jpg","galleries_id":348246,"server_id":5,"link":"photo_6283460.html","width":130,"caption":"Carmelite Church - Valletta","height":166});
															thumbnails[6283485] = clik.newPhoto({"id":6283485,"src":"cats_thumb.jpg","galleries_id":348391,"server_id":5,"link":"photo_6283485.html","width":130,"caption":"Cats","height":80});
															thumbnails[6283487] = clik.newPhoto({"id":6283487,"src":"Escalator_thumb.jpg","galleries_id":348246,"server_id":5,"link":"photo_6283487.html","width":130,"caption":"Escalator","height":164});
															thumbnails[6283489] = clik.newPhoto({"id":6283489,"src":"Mario-the-cook_thumb.jpg","galleries_id":348534,"server_id":5,"link":"photo_6283489.html","width":130,"caption":"The Cook","height":98});
															thumbnails[6283547] = clik.newPhoto({"id":6283547,"src":"Mdina-View_thumb.jpg","galleries_id":347547,"server_id":5,"link":"photo_6283547.html","width":130,"caption":"Mdina View","height":79});
															thumbnails[6283548] = clik.newPhoto({"id":6283548,"src":"Skull_thumb.jpg","galleries_id":348391,"server_id":5,"link":"photo_6283548.html","width":130,"caption":"Skull","height":100});
															thumbnails[6485849] = clik.newPhoto({"id":6485849,"src":"Popeyes-Village_2_thumb.jpg","galleries_id":347547,"server_id":5,"link":"photo_6485849.html","width":130,"caption":"Popeye's Village 2","height":97});
															thumbnails[7430329] = clik.newPhoto({"id":7430329,"src":"Bahar_ic-Caghaq_thumb.jpg","galleries_id":347547,"server_id":5,"link":"photo_7430329.html","width":130,"caption":"Bahar ic-caghaq","height":97});
															thumbnails[6254986] = clik.newPhoto({"id":6254986,"src":"Crucifixion_thumb.jpg","galleries_id":347782,"server_id":5,"link":"photo_6254986.html","width":130,"caption":"Crucifixion","height":175});
															thumbnails[6265119] = clik.newPhoto({"id":6265119,"src":"Crucifixion-4_thumb.jpg","galleries_id":347782,"server_id":5,"link":"photo_6265119.html","width":130,"caption":"Crucifixion 2","height":183});
															thumbnails[6268609] = clik.newPhoto({"id":6268609,"src":"st-Georges-Organ_thumb.jpg","galleries_id":348246,"server_id":5,"link":"photo_6268609.html","width":130,"caption":"St. George's Organ ","height":98});
															thumbnails[6268614] = clik.newPhoto({"id":6268614,"src":"Staircase-verdala-palace_thumb.jpg","galleries_id":348246,"server_id":5,"link":"photo_6268614.html","width":130,"caption":"Staircase","height":175});
															thumbnails[6283488] = clik.newPhoto({"id":6283488,"src":"Guggenheim-Museum-Bilbao_thumb.jpg","galleries_id":348246,"server_id":5,"link":"photo_6283488.html","width":130,"caption":"Guggenheim Museum - Bilbao","height":175});
															thumbnails[6283207] = clik.newPhoto({"id":6283207,"src":"Towers_thumb.jpg","galleries_id":348246,"server_id":5,"link":"photo_6283207.html","width":130,"caption":"Towers","height":82});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[348246] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Architecture","link":"gallery_348246.html","maxRecords":0.0,"photoIDs":[6268395.0,6268610.0,6283458.0,6283459.0,6283460.0,6283487.0,6268609.0,6268614.0,6283488.0,6283207.0],"skipIndex":0,"section_code":"gallery","featured_images":"6283488,6283487,6283460,6283459,6283458,6283207,6268614,6268610,6268609,6268395","id":348246,"singleSection":false});				  						galleries[347810] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Children","link":"gallery_347810.html","maxRecords":0.0,"photoIDs":[6254900.0,6254985.0,6260601.0,6268511.0,6268615.0,6271436.0,6271441.0,6271785.0,6271798.0,6271801.0],"skipIndex":0,"section_code":"gallery","featured_images":"6271801,6271798,6271785,6271441,6271436,6268615,6268511,6260601,6254985,6254900","id":347810,"singleSection":false});				  						galleries[347782] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"gallery_347782.html","maxRecords":0.0,"photoIDs":[6254610.0,6256340.0,6260602.0,6264907.0,6265123.0,6272466.0,6272475.0,6275741.0,6254986.0,6265119.0],"skipIndex":0,"section_code":"gallery","featured_images":"6275741,6272475,6272466,6265123,6265119,6264907,6260602,6256340,6254986,6254610","id":347782,"singleSection":false});				  						galleries[348244] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fine art","link":"gallery_348244.html","maxRecords":0.0,"photoIDs":[6264758.0,6264759.0,6264760.0,6264762.0,6264763.0,6265129.0,6265144.0,6272451.0,6272492.0,6275743.0],"skipIndex":0,"section_code":"gallery","featured_images":"6275743,6272492,6272451,6265144,6265129,6264763,6264762,6264760,6264759,6264758","id":348244,"singleSection":false});				  						galleries[348048] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature","link":"gallery_348048.html","maxRecords":0.0,"photoIDs":[6260607.0,6264765.0,6264801.0,6265189.0,6265205.0,6265232.0,6271446.0,6283454.0,6283456.0,6283457.0],"skipIndex":0,"section_code":"gallery","featured_images":"6283457,6283456,6283454,6271446,6265232,6265205,6265189,6264801,6264765,6260607","id":348048,"singleSection":false});				  						galleries[348534] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People at work","link":"gallery_348534.html","maxRecords":0.0,"photoIDs":[6260593.0,6265139.0,6271450.0,6271452.0,6271468.0,6272129.0,6272472.0,6283489.0],"skipIndex":0,"section_code":"gallery","featured_images":"6283489,6272472,6272129,6271468,6271452,6271450,6265139,6260593","id":348534,"singleSection":false});				  						galleries[348391] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pictorial","link":"gallery_348391.html","maxRecords":0.0,"photoIDs":[6268508.0,6268606.0,6272473.0,6283485.0,6283548.0],"skipIndex":0,"section_code":"gallery","featured_images":"6283548,6283485,6272473,6268606,6268508","id":348391,"singleSection":false});				  						galleries[348390] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits - Monochrome","link":"gallery_348390.html","maxRecords":0.0,"photoIDs":[6268491.0,6268495.0,6268527.0,6268538.0,6268617.0,6268620.0,6272497.0,6283203.0,6283426.0],"skipIndex":0,"section_code":"gallery","featured_images":"6283426,6283203,6272497,6268620,6268617,6268538,6268527,6268495,6268491","id":348390,"singleSection":false});				  						galleries[347546] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_347546.html","maxRecords":0.0,"photoIDs":[6246164.0,6248795.0,6255061.0,6264905.0,6265290.0,6268521.0,6271466.0,6272468.0,6283204.0,6283205.0],"skipIndex":0,"section_code":"gallery","featured_images":"6283205,6283204,6272468,6271466,6268521,6265290,6264905,6255061,6248795,6246164","id":347546,"singleSection":false});				  						galleries[347547] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscape","link":"gallery_347547.html","maxRecords":0.0,"photoIDs":[6260579.0,6260584.0,6260588.0,6264904.0,6265142.0,6283547.0,6485849.0,7430329.0],"skipIndex":0,"section_code":"gallery","featured_images":"7430329,6485849,6283547,6265142,6264904,6260588,6260584,6260579","id":347547,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7430329,6485849,6283548,6283547,6283489,6283488,6283487,6283485,6283460,6283459,6283458,6283457,6283456,6283454,6283426,6283207,6283205,6283204,6283203,6275743,6275741,6272497,6272492,6272475,6272473,6272472,6272468,6272466,6272451,6272129,6271801,6271798,6271785,6271468,6271466,6271452,6271450,6271446,6271441,6271436,6268620,6268617,6268615,6268614,6268610,6268609,6268606,6268538,6268527,6268521';
imageSets[3] = '7430329,6485849,6283548,6283547,6283489,6283488,6283487,6283485,6283460,6283459,6283458,6283457,6283456,6283454,6283426,6283207,6283205,6283204,6283203,6275743,6275741,6272497,6272492,6272475,6272473,6272472,6272468,6272466,6272451,6272129,6271801,6271798,6271785,6271468,6271466,6271452,6271450,6271446,6271441,6271436,6268620,6268617,6268615,6268614,6268610,6268609,6268606,6268538,6268527,6268521';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Christazzopardi/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Christazzopardi/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 = 'Christopher Azzopardi Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (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.item_price !== '') {
			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;
	}
}

			

