1window.thumbnails = {}; 2thumbnails[11182024] = clik.newPhoto({"galleries_id":565495,"server_id":68,"src":"Talisman_thumb.jpg","link":"photo_11182024.html","width":160,"id":11182024,"height":152,"caption":"Talisman"}, 1); 3thumbnails[11182159] = clik.newPhoto({"galleries_id":565792,"server_id":68,"src":"frogarms2_thumb.jpg","link":"photo_11182159.html","width":160,"id":11182159,"height":213,"caption":"Specimen 1"}, 1); 4thumbnails[11189028] = clik.newPhoto({"galleries_id":563315,"server_id":68,"src":"Cocoondrawing_1_thumb.jpg","link":"photo_11189028.html","width":160,"id":11189028,"height":405,"caption":"Cocoon drawing"}, 1); 5thumbnails[12518537] = clik.newPhoto({"galleries_id":565494,"server_id":68,"src":"Headress1_thumb.jpg","link":"photo_12518537.html","width":160,"id":12518537,"height":155,"caption":"Headress1"}, 1); 6thumbnails[12518543] = clik.newPhoto({"galleries_id":565494,"server_id":68,"src":"Headress2_thumb.jpg","link":"photo_12518543.html","width":160,"id":12518543,"height":147,"caption":"Headress 2"}, 1); 7thumbnails[12518562] = clik.newPhoto({"galleries_id":610326,"server_id":68,"src":"Assemblage1_thumb.jpg","link":"photo_12518562.html","width":160,"id":12518562,"height":145,"caption":""}, 1); 8thumbnails[12518563] = clik.newPhoto({"galleries_id":610326,"server_id":68,"src":"Assemblage2_thumb.jpg","link":"photo_12518563.html","width":160,"id":12518563,"height":161,"caption":""}, 1); 9thumbnails[12518564] = clik.newPhoto({"galleries_id":610326,"server_id":68,"src":"Assemblage3_thumb.jpg","link":"photo_12518564.html","width":160,"id":12518564,"height":161,"caption":""}, 1); 10thumbnails[12530998] = clik.newPhoto({"galleries_id":565494,"server_id":68,"src":"Item8_thumb.jpg","link":"photo_12530998.html","width":160,"id":12530998,"height":187,"caption":"Item 1"}, 1); 11thumbnails[12531668] = clik.newPhoto({"galleries_id":565494,"server_id":68,"src":"Item5_thumb.jpg","link":"photo_12531668.html","width":160,"id":12531668,"height":373,"caption":"Item 2"}, 1); 12thumbnails[12531671] = clik.newPhoto({"galleries_id":565494,"server_id":68,"src":"Item6_thumb.jpg","link":"photo_12531671.html","width":160,"id":12531671,"height":295,"caption":"Item 6"}, 1); 13thumbnails[12531694] = clik.newPhoto({"galleries_id":565494,"server_id":68,"src":"Item7_thumb_2.jpg","link":"photo_12531694.html","width":160,"id":12531694,"height":243,"caption":"Item 7"}, 1); 14thumbnails[11134492] = clik.newPhoto({"galleries_id":565792,"server_id":68,"src":"rainhartspecimen1_thumb.jpg","link":"photo_11134492.html","width":160,"id":11134492,"height":213,"caption":"Specimen 2"}, 1); 15thumbnails[11134841] = clik.newPhoto({"galleries_id":563335,"server_id":68,"src":"entitiesthearrival_thumb.jpg","link":"photo_11134841.html","width":160,"id":11134841,"height":120,"caption":"Entities the Arrival"}, 1); 16thumbnails[11134928] = clik.newPhoto({"galleries_id":563312,"server_id":68,"src":"cocoons4_thumb.jpg","link":"photo_11134928.html","width":160,"id":11134928,"height":213,"caption":"Cocoons 1"}, 1); 17thumbnails[11172029] = clik.newPhoto({"galleries_id":565481,"server_id":68,"src":"Item_5_thumb.jpg","link":"photo_11172029.html","width":160,"id":11172029,"height":136,"caption":"Unidentified object from Ostend"}, 1); 18thumbnails[11172045] = clik.newPhoto({"galleries_id":565494,"server_id":68,"src":"Item_4_thumb.jpg","link":"photo_11172045.html","width":160,"id":11172045,"height":280,"caption":"Item 5"}, 1); 19thumbnails[13896095] = clik.newPhoto({"galleries_id":662966,"server_id":68,"src":"The_Book_of_Tiny_Gifts4_thumb.jpg","link":"photo_13896095.html","width":160,"id":13896095,"height":120,"caption":"The Book of Tiny Gifts"}, 1); 20thumbnails[11134493] = clik.newPhoto({"galleries_id":565792,"server_id":68,"src":"rainhartspecimens3and4_thumb.jpg","link":"photo_11134493.html","width":160,"id":11134493,"height":213,"caption":"Specimens 3 and 4"}, 1); 21thumbnails[11134774] = clik.newPhoto({"galleries_id":563315,"server_id":68,"src":"Goosefeatherdrawing_thumb.jpg","link":"photo_11134774.html","width":160,"id":11134774,"height":213,"caption":"Goose Feather Bouquet"}, 1); 22thumbnails[11134842] = clik.newPhoto({"galleries_id":563335,"server_id":68,"src":"entitiestheexamination_thumb.jpg","link":"photo_11134842.html","width":160,"id":11134842,"height":120,"caption":"Entities the Examination"}, 1); 23thumbnails[11134930] = clik.newPhoto({"galleries_id":563312,"server_id":68,"src":"cocoons1_thumb.jpg","link":"photo_11134930.html","width":160,"id":11134930,"height":213,"caption":"Cocoons 2"}, 1); 24thumbnails[11172046] = clik.newPhoto({"galleries_id":565494,"server_id":68,"src":"Item_1_thumb.jpg","link":"photo_11172046.html","width":160,"id":11172046,"he
24ight":237,"caption":"Item 3"}, 1); 25thumbnails[13896098] = clik.newPhoto({"galleries_id":662970,"server_id":68,"src":"The_Book_of_Dolls_image1_thumb.jpg","link":"photo_13896098.html","width":160,"id":13896098,"height":120,"caption":"The Book of Dolls image"}, 1); 26thumbnails[11134843] = clik.newPhoto({"galleries_id":563335,"server_id":68,"src":"InstallationatCollectiondetail_thumb.jpg","link":"photo_11134843.html","width":160,"id":11134843,"height":213,"caption":"Entities-there are more things...detail)"}, 1); 27thumbnails[11134931] = clik.newPhoto({"galleries_id":563312,"server_id":68,"src":"cocoons2_thumb.jpg","link":"photo_11134931.html","width":160,"id":11134931,"height":213,"caption":"Cocoons 3"}, 1); 28thumbnails[11172047] = clik.newPhoto({"galleries_id":565494,"server_id":68,"src":"Item_2_thumb.jpg","link":"photo_11172047.html","width":160,"id":11172047,"height":370,"caption":"Item 4"}, 1); 29thumbnails[13896099] = clik.newPhoto({"galleries_id":662969,"server_id":68,"src":"The_imposible_image_image1_thumb.jpg","link":"photo_13896099.html","width":160,"id":13896099,"height":120,"caption":"The imposible image image"}, 1); 30thumbnails[11134776] = clik.newPhoto({"galleries_id":563315,"server_id":68,"src":"Fourbonesandafeatherdrawing1_thumb.jpg","link":"photo_11134776.html","width":160,"id":11134776,"height":120,"caption":"Four Bones and a Feather"}, 1); 31thumbnails[11134933] = clik.newPhoto({"galleries_id":563312,"server_id":68,"src":"cocoons31_thumb.jpg","link":"photo_11134933.html","width":160,"id":11134933,"height":120,"caption":"Cocoons 4"}, 1); 32thumbnails[11172048] = clik.newPhoto({"galleries_id":565494,"server_id":68,"src":"Item_3_thumb.jpg","link":"photo_11172048.html","width":160,"id":11172048,"height":263,"caption":"Item 8"}, 1); 33thumbnails[11134778] = clik.newPhoto({"galleries_id":563315,"server_id":68,"src":"specimendrawing4_thumb.jpg","link":"photo_11134778.html","width":160,"id":11134778,"height":213,"caption":"specimen Drawing 1"}, 1); 34thumbnails[11134779] = clik.newPhoto({"galleries_id":563315,"server_id":68,"src":"Specimendrawing1_thumb.jpg","link":"photo_11134779.html","width":160,"id":11134779,"height":213,"caption":"Specimen Drawing 2"}, 1); 35thumbnails[11134780] = clik.newPhoto({"galleries_id":563315,"server_id":68,"src":"Specimendrawing2_thumb.jpg","link":"photo_11134780.html","width":160,"id":11134780,"height":220,"caption":"Specimen Drawing 3"}, 1); 36thumbnails[11134781] = clik.newPhoto({"galleries_id":563315,"server_id":68,"src":"Specimendrawing3_thumb.jpg","link":"photo_11134781.html","width":160,"id":11134781,"height":120,"caption":"Specimen Drawing 4"}, 1); 37 38/*************************************************************************** 39* Create the array of Gallery objects * 40***************************************************************************/ 41var galleries = new Object(); 42galleries[610326] = clik.newGallery({"singleSection":false,"featured_images":"12518564,12518563,12518562","photoIDs":[12518562,12518563,12518564],"usePopups":false,"parentGallery":"","section_code":"gallery","skipIndex":0,"link":"gallery_610326.html","title":"Assemblages","id":610326,"maxRecords":0});galleries[662970] = clik.newGallery({"featured_images":"The_Book_of_Dolls_image.jpg","usePopups":false,"parentGallery":662965,"section_code":"gallery","photo_thumbnail_height":120,"photo_thumbnail_width":160,"skipIndex":0,"maxRecords":0,"singleSection":false,"photoIDs":[13896098],"link":"gallery_662970.html","photo_thumbnail":"http://amazon.clikpic.com/juliegoughuk/images/The_Book_of_Dolls_image.jpg","title":"The Book of Dolls","id":662970});galleries[662966] = clik.newGallery({"featured_images":"The_Book_of_Tiny_Gifts3.jpg","usePopups":false,"parentGallery":662965,"section_code":"gallery","photo_thumbnail_height":120,"photo_thumbnail_width":160,"skipIndex":0,"maxRecords":0,"singleSection":false,"photoIDs":[13896095],"link":"gallery_662966.html","photo_thumbnail":"http://amazon.clikpic.com/juliegoughuk/images/The_Book_of_Tiny_Gifts3.jpg","title":"The Book of Tiny Gifts","id":662966});galleries[662965] = clik.newGallery({"featured_images":"The_Book_of_Tiny_Gifts2.jpg","usePopups":false,"parentGallery":"","section_code":"gallery","photo_thumbnail_height":120,"photo_thumbnail_width":160,"skipIndex":0,"maxRecords":0,"singleSection":false,"photoIDs":[],"link":"gallery_662965.html","photo_thumbnail":"http://amazon.clikpic.com/juliegoughuk/images/The_Book_of_Tiny_Gifts2.jpg","title":"The Easterlies Project","id":662965});galleries[662969] = clik.newGallery({"featured_images":"The_imposible_image_image.jpg","usePopups":false,"parentGallery":662965,"section_code":"gallery","photo_thumbnail_height":120,"photo_thumbnail_width":160,"skipIndex":0,"maxRecords":0,"singleSection":false,"photoIDs":[13896099],"link":"gallery_662969.html","photo_thumbnail":"http://amazon.clikpic.com/juliegoughuk/images/The_imposible_image_image.jpg","title":"The Impossible Image","id":662969});galleries[563315] = clik.newGallery({"featured_images":"Cocoondrawing_2.jpg","usePopups":false,"parentGallery":"","section_code":"gallery","photo_thumbnail_height":506,"photo_thumbnail_width":200,"skipIndex":0,"maxRecords":0,"singleSection":false,"photoIDs":[11189028,11134774,11134776,11134778,11134779,11134780,11134781],"link":"gallery_563315.html","photo_thumbnail":"http://amazon.clikpic.com/juliegoughuk/images/Cocoondrawing_2.jpg","title":"Drawings - specimens, cocoons, feathers","id":563315});galleries[565481] = clik.newGallery({"singleSection":false,"featured_images":11172029,"photoIDs":[11172029],"usePopups":false,"parentGallery":"","section_code":"gallery","skipIndex":0,"link":"gallery_565481.html","title":"Unidentified, Object from Ostend","id":565481,"maxRecords":0});galleries[565495] = clik.newGallery({"singleSection":false,"featured_images":11182024,"photoIDs":[11182024],"usePopups":false,"parentGallery":"","section_code":"gallery","skipIndex":0,"link":"gallery_565495.html","title":"The disapearance of Carla Markham","id":565495,"maxRecords":0});galleries[565792] = clik.newGallery({"singleSection":false,"featured_images":"11182159,11134493,11134492","photoIDs":[11182159,11134492,11134493],"usePopups":false,"parentGallery":"","section_code":"gallery","skipIndex":0,"link":"gallery_565792.html","title":"Specimens from the collection of Alex Rainhart","id":565792,"maxRecords":0});galleries[565494] = clik.newGallery({"singleSection":false,"featured_images":"12531694,12531671,12531668,12530998,12518543,12518537,11172048,11172047,11172046,11172045","photoIDs":[12518537,12518543,12530998,12531668,12531671,12531694,11172045,11172046,11172047,11172048],"usePopups":false,"parentGallery":"","section_code":"gallery","skipIndex":0,"link":"gallery_565494.html","title":"Objects of Undisclosed origins","id":565494,"maxRecords":0});galleries[563245] = clik.newGallery({"singleSection":false,"featured_images":"11134933,11134931,11134930,11134928,11134843,11134842,11134841","photoIDs":[],"usePopups":false,"parentGallery":"","section_code":"gallery","skipIndex":0,"link":"gallery_563245.html","title":"Installations - cocoons and Entities","id":563245,"maxRecords":0});galleries[563312] = clik.newGallery({"featured_images":"cocoons3.jpg","usePopups":false,"parentGallery":563245,"section_code":"gallery","photo_thumbnail_height":450,"photo_thumbnail_width":600,"skipIndex":0,"maxRecords":0,"singleSection":false,"photoIDs":[11134928,11134930,11134931,11134933],"link":"gallery_563312.html","photo_thumbnail":"http://amazon.clikpic.com/juliegoughuk/images/cocoons3.jpg","title":"Cocoons","i
42d":563312});galleries[563335] = clik.newGallery({"singleSection":false,"featured_images":"11134843,11134842,11134841","photoIDs":[11134841,11134842,11134843],"usePopups":false,"parentGallery":563245,"section_code":"gallery","skipIndex":0,"link":"gallery_563335.html","title":"Entities","id":563335,"maxRecords":0});/*************************************************************************** 43* Create the array of image sets * 44***************************************************************************/ 45var imageSets = {}; 46imageSets[1] = '13896099,13896098,13896095,12531694,12531671,12531668,12530998,12518564,12518563,12518562,12518543,12518537,11189028,11182159,11182024,11172048,11172047,11172046,11172045,11172029,11134933,11134931,11134930,11134928,11134843,11134842,11134841,11134781,11134780,11134779,11134778,11134776,11134774,11134493,11134492'; 47imageSets[3] = '13896099,13896098,13896095,12531694,12531671,12531668,12530998,12518564,12518563,12518562,12518543,12518537,11189028,11182159,11182024,11172048,11172047,11172046,11172045,11172029,11134933,11134931,11134930,11134928,11134843,11134842,11134841,11134781,11134780,11134779,11134778,11134776,11134774,11134493,11134492'; 48imageSets[4] = '13896099,13896098,13896095'; 49 /*************************************************************************** 50* Get a server path given an ID * 51***************************************************************************/ 52function getServerPath(server_id, thumbnail) { 53 var val = -1; 54 switch (server_id) { 55 case 88: 56 return 'http://farm7.clik.com/juliegoughuk/images'; 57 case 89: 58 return 'http://farm8.clik.com/juliegoughuk/images'; 59 case 110: 60 return 'http://old7.clik.com/juliegoughuk/images'; 61 case 112: 62 return 'http://old4.clik.com/juliegoughuk/images'; 63 case 114: 64 return 'backup1.clik.com/juliegoughuk/images'; 65 case 115: 66 return 'http://cf92.clik.com/juliegoughuk/images'; 67 case 116: 68 return 'http://cf96.clik.com/juliegoughuk/images'; 69 case 90: 70 return 'http://server90.clik.com/juliegoughuk/images'; 71 case 117: 72 return 'http://cf95.clik.com/juliegoughuk/images'; 73 case 91: 74 return 'http://old2.clik.com/juliegoughuk/images'; 75 case 118: 76 return 'http://cf94.clik.com/juliegoughuk/images'; 77 case 92: 78 return 'http://83.138.175.186/juliegoughuk/images'; 79 case 119: 80 return 'http://server119.clik.com/juliegoughuk/images'; 81 case 93: 82 return 'http://server93.clik.com/juliegoughuk/images'; 83 case 50: 84 return '[cliktext value=article.servers_id type=servers_id]'; 85 case 94: 86 return 'http://server94.clik.com/juliegoughuk/images'; 87 case 51: 88 return 'http://www12.clikpic.com/juliegoughuk/images'; 89 case 95: 90 return 'http://server95.clik.com/juliegoughuk/images'; 91 case 52: 92 return 'http://tpc22.clikpic.com/juliegoughuk/images'; 93 case 96: 94 return 'http://server96.clik.com/juliegoughuk/images'; 95 case 53: 96 if (thumbnail) { return 'http://images.clikpic.com/juliegoughuk/images'; 97 } return 'http://images.clikpic.com/juliegoughuk/images'; 98 case 97: 99 return 'http://server97.clik.com/juliegoughuk/images'; 100 case 54: 101 return 'dns1.clik.com/juliegoughuk/images'; 102 case 98: 103 return 'http://server98.clik.com/juliegoughuk/images'; 104 case 55: 105 return 'dns2.clik.com/juliegoughuk/images'; 106 case 99: 107 return 'http://old5.clik.com/juliegoughuk/images'; 108 case 57: 109 return 'admin2.clikpic.com/juliegoughuk/images'; 110 case 58: 111 if (thumbnail) { return 'images_test.clikpic.com/juliegoughuk/images'; 112 } return 'images_test.clikpic.com/juliegoughuk/images'; 113 case 15: 114 return 'http://www3.clikpic.com/juliegoughuk/images'; 115 case 59: 116 return 'http://test11.clikpic.com/juliegoughuk/images'; 117 case 18: 118 return 'http://www4.clikpic.com/juliegoughuk/images'; 119 case 19: 120 return 'http://www5.clikpic.com/juliegoughuk/images'; 121 case 120: 122 return 'images'; 123 case 0: 124 return 'http://www.clikpic.com/juliegoughuk/images'; 125 case 121: 126 return 'http://old1.clik.com/juliegoughuk/images'; 127 case 1: 128 return 'http://www1.clikpic.com/juliegoughuk/images'; 129 case 122: 130 return 'http://farm3.clik.com/juliegoughuk/images'; 131 case 2: 132 return 'http://admin.clikpic.com/juliegoughuk/images'; 133 case 123: 134 return 'http://server123.clik.com/juliegoughuk/images'; 135 case 124:
136 return 'tpc25.clik.com/blocktest/juliegoughuk/images'; 137 case 4: 138 return 'http://clikchurch.clikpic.com/juliegoughuk/images'; 139 case 125: 140 return 'http://server125.clik.com/juliegoughuk/images'; 141 case 5: 142 return 'http://www2.clikpic.com/juliegoughuk/images'; 143 case 126: 144 return 'http://duau18opsnf8i.cloudfront.net/juliegoughuk/images'; 145 case 128: 146 return 'http://tpc27.clikpic.com/juliegoughuk/images'; 147 case 129: 148 return 'http://server126.clik.com/juliegoughuk/images'; 149 case 61: 150 return 'http://admin1.clikpic.com/juliegoughuk/images'; 151 case 62: 152 return 'http://admin6.clikpic.com/juliegoughuk/images'; 153 case 63: 154 return 'http://dbtest3.clikpic.com//juliegoughuk/images'; 155 case 64: 156 return 'http://admin7.clikpic.com/juliegoughuk/images'; 157 case 21: 158 return 'http://www6.clikpic.com/juliegoughuk/images'; 159 case 65: 160 return 'http://admin8.clikpic.com/juliegoughuk/images'; 161 case 22: 162 return 'http://tpc21.clikpic.com/juliegoughuk/images'; 163 case 66: 164 return 'http://www13.clikpic.com/juliegoughuk/images'; 165 case 68: 166 if (thumbnail) { return 'http://amazon.clikpic.com/juliegoughuk/images'; 167 } return 'http://amazon.clikpic.com/juliegoughuk/images'; 168 case 25: 169 return 'http://tpc16/clikpic/juliegoughuk/images'; 170 case 69: 171 return 'http://farm1.clik.com/juliegoughuk/images'; 172 case 26: 173 return 'http://tpc20.clikpic.com/juliegoughuk/images'; 174 case 130: 175 return 'http://server127.clik.com/juliegoughuk/images'; 176 case 131: 177 return 'http://server128.clik.com/juliegoughuk/images'; 178 case 132: 179 return 'http://server132.clik.com/juliegoughuk/images'; 180 case 70: 181 if (thumbnail) { return 'http://d2033d905cppg6.cloudfront.net/juliegoughuk/images'; 182 } return 'http://d2033d905cppg6.cloudfront.net/juliegoughuk/images'; 183 case 71: 184 return 'http://tpc21.clikpic.com/farmtest/juliegoughuk/images'; 185 case 72: 186 return 'hostedtest.clikpic.com/juliegoughuk/images'; 187 case 74: 188 return 'http://staging.clikpic.com/juliegoughuk/images'; 189 case 31: 190 return 'http://www7.clikpic.com/juliegoughuk/images'; 191 case 75: 192 return 'http://amazon.clikpic.com/_common'; 193 case 32: 194 return 'http://www8.clikpic.com/juliegoughuk/images'; 195 case 77: 196 return 'http://migrate2.clikpic.com/juliegoughuk/images'; 197 case 34: 198 return 'http://www9.clikpic.com/juliegoughuk/images'; 199 case 78: 200 return 'http://migrate4.clikpic.com/juliegoughuk/images'; 201 case 35: 202 return 'http://admin3.clikpic.com/juliegoughuk/images'; 203 case 79: 204 return 'http://www14.clikpic.com/juliegoughuk/images'; 205 case 37: 206 return 'http://admin4.clikpic.com/juliegoughuk/images'; 207 case 38: 208 return 'http://admin5.clikpic.com/juliegoughuk/images'; 209 case 39: 210 return 'http://www10.clikpic.com/juliegoughuk/images'; 211 case 100: 212 return 'http://old8.clik.com/juliegoughuk/images'; 213 case 101: 214 return 'http://ftp.clikpic.com/juliegoughuk/images'; 215 case 103: 216 return 'http://broken7.clik.com/juliegoughuk/images'; 217 case 104: 218 return 'http://92.52.111.51/juliegoughuk/images'; 219 case 106: 220 return 'http://old3.clik.com/juliegoughuk/images'; 221 case 80: 222 return 'http://tpc25.clikpic.com/juliegoughuk/images'; 223 case 81: 224 return 'http://farm2.clik.com/juliegoughuk/images'; 225 case 108: 226 return 'http://old6.clik.com/juliegoughuk/images'; 227 case 82: 228 return 'http://test1.clikpic.com/juliegoughuk/images'; 229 case 83: 230 return 'http://farm5.clik.com/juliegoughuk/images'; 231 case 40: 232 return 'http://www11.clikpic.com/juliegoughuk/images'; 233 case 84: 234 return 'http://farm3.clik.com/juliegoughuk/images'; 235 case 85: 236 return 'http://farm4.clik.com/juliegoughuk/images'; 237 case 42: 238 return 'db2.clikpic.com/juliegoughuk/images'; 239 case 87: 240 return 'http://farm6.clik.com/juliegoughuk/images'; 241 } 242} 243 244/*************************************************************************** 245* img = reference to image object in which to show image * 246***************************************************************************/ 247function showHomeImage(img) { 248 imageID = randomListVal(''); 249 if (!basic) { 250 img.src = photos[imageID].src; 251 img.width = photos[imageID].width; 252 img.height = photos[imageID].height; 253 img.parentNode.title = img.alt = photos[imageID].caption; 254 } else { 255 newImage = new Image(photos[imageID].width,photos[imageID].height); 256 newImage.src = photos[imageID].src; 257 document.images[img.name] = newImage; 258 259 } 260} 261 262function getHomeImageLink(imageID) { 263 var href='', photo = (backgrounds || photos || {})[imageID]; 264 if(photo){ 265 if (photo && photo.galleries_id != '') { 266 href = photo.fnGalleryLink(); 267 } 268 else { 269 href += 'gallery.html'; 270 } 271 } 272 return href; 273} 274 275/*************************************************************************** 276* Show a random image on home page from featured images * 277***************************************************************************/
278function showHomeImageInline(el, image_sets_id, href) { 279 280 var css = {}, imageID, 281 imageSetsId = 1; 282 if(image_sets_id){ 283 imageSetsId = image_sets_id; 284 } 285 imageID = randomListVal(imageSets[imageSetsId]); 286 if (href == null && 'gallery' != '') { 287 href = getHomeImageLink(imageID); 288 } 289 290 updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0], 291 $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'), speed:0, href:href, css:css, onAfter: function(){ this.closest('.contentsection').doManualAlign({ inner: 'img', crop: 'a' }); } }); 292} 293 294/*************************************************************************** 295* Set 'img' to be a new image given its photo() object * 296***************************************************************************/ 297function updateImage (options) { 298 var defaults = { nextPhoto:'', field:'', img:'', $photo:'', $title:'', $detail:'', $detailContainer:'', 299 updateDocumentTitle:false, speed:0, href:false, css:false, updateHash:false, updateHashHistory:true, onAfter:null, onBefore:null, changeImage:true, afterFade:null, transitionMode:'fade_dissolve' }, 300 op = $.extend({},defaults,options), 301 html = '', temp = '', 302 photoId = op.nextPhoto.id, 303 photoCaption = ''+op.nextPhoto.caption, 304 $containers = $(),heights = {}, 305 photoSrc = op.nextPhoto.src, 306 newPhotoDimensions = {}, 307 checkIsInContainer = function( $el ) { 308 var cont = $el.closest('.contentsection-container'); 309 if( cont.length ) { 310 $containers = $containers.add(cont); 311 if( !(cont.attr('id') in heights) ) { 312 heights[cont.attr('id')] = cont.height(); 313 } 314 }; 315 return cont.length; 316 }; 317 if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id && op.$photo.is(':visible')) { 318 clik.changeHash('photos_id=' + op.nextPhoto.id, op.updateHashHistory); 319 } 320 321 op.transitionMode = op.transitionMode.replace('fade_', ''); 322 if (op.updateDocumentTitle) { 323 document.title = 'Julie Gough UK artist: ' + photoCaption; 324 } 325 if( op.$detailContainer != '' ) { 326 $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){ 327 var field = clik.getPrefixedClass(this.className, 'replaceable_photo-'), 328 dontSlide; 329 if( field == 'photo_caption' ) field = 'caption'; 330 if (field in op.nextPhoto) { 331 dontSlide = checkIsInContainer($(this)); 332 $(this).fadeGalleryDetails(op.nextPhoto[field], op.speed,false,dontSlide); 333 } 334 }).end().find('.replaceable_paymentBuyLink').each(function(){ 335 var dontSlide = checkIsInContainer($(this)); 336 $(this).fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){ 337 if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) { 338 toggleAddToCartConfirm(backgrounds, op.$detailContainer); 339 } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) { 340 toggleAddToCartConfirm(photos, op.$detailContainer); 341 } 342 },dontSlide) 343 }); 344 } 345 if( $containers.length ) { 346 $containers.each(function(){ 347 var $c = $(this), 348 h = $c.show().height(); 349 if( $c.find('div.contentsection:not(.empty)').length ) { 350 if( op.$photo.closest('.contentsection').data('hideOverlays') ) { 351 $c.hide(); 352 } else { 353 $c.height(heights[$c.attr('id')]); 354 $c.animate({height:h},op.speed,function(){$c.height('');}); 355 } 356 } else { 357 $c.slideUp(op.speed); 358 } 359 }); 360 }; 361 newPhotoDimensions.width = op.nextPhoto.width; 362 newPhotoDimensions.height = op.nextPhoto.height; 363 if (op.$photo.length > 0 && op.changeImage) { 364 html = $('<img/>',{ 365 'class': 'mainphoto photo', 366 src: photoSrc, 367 id: 'mainPic', 368 name: 'mainPic', 369 width: newPhotoDimensions.width, 370 height: newPhotoDimensions.height, 371 alt: photoCaption, 372 css: op.css || {} 373 }); 374 if (op.href) { 375 if (op.href.match(/<a/)) { 376 html = $(op.href).append(html); 377 } else { 378 html = $('<a/>', { 379 href: op.href, 380 title: photoCaption 381 }).append(html); 382 } 383 } else { 384 html = $('<a/>', { 385 title: photoCaption 386 }).append(html); 387 } 388 if (op.speed == 0) { 389 op.$photo.html(html); 390 if (op.onBefore) { 391 op.onBefore.apply(op.$photo); 392 } 393 if (op.onAfter) { 394 op.onAfter.apply(op.$photo); 395 } 396 } else { 397 op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,op.transitionMode,function(){ 398 if (op.onAfter) { 399 op.onAfter.apply(this); 400 } 401 clik.doColumnResize(false, $(this)); 402 }, op.onBefore,op.afterFade||function(){}); 403 } 404 } 405 if (op.field) { 406 op.field.value = photoId; 407 } else { 408 op.$photo.data('image_id', photoId); 409 } 410 if (!op.speed) { 411 clik.doColumnResize(false, op.$photo); 412 } 413 return html; 414 } 415 416/*************************************************************************** 417* Toggle add to cart confirmation element and set up the click event for * 418* the 'Add to cart' button. * 419***************************************************************************/ 420function toggleAddToCartConfirm(array, root){ 421 if (typeof(array) !== 'object' || array === null) { 422 array = photos; 423 } 424 if (!$(root).length) { root = $('body'); } if($('#paymentConfirm', root).length > 0){ 425 $('#paymentConfirm', root).hide(); 426 $('#paymentAddButton', root) 427 .unbind() 428 .click(function(){ 429 form = $('#paymentForm', root)[0]; 430 option_id = 0; 431 if(form.item_option.value){ 432 option_id = form.item_option.value; 433 } 434 if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id,form.item_type.value)){ 435 if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();} 436 else{ 437 $('#paymentConfirm', root).text('Item added to cart').fadeIn(); 438 } 439 dspOrderDetails(form.site.value); 440 if ($('#cartDiv').length) { writeCartTable(arrayOfItems); } 441 } 442 else{ 443 $('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn(); 444 } 445 }); 446 } 447} 448 449/*************************************************************************** 450* Get payment info for image - add as 'method' to photo object * 451***************************************************************************/ 452clik.photo.fnGetImageDetails = function(){ 453 var temp = ''; 454 if (this.description != '') { 455 temp += '<div id="imageDescription">' + this.description + '</div>'; 456 } 457 if (this.photo_ref != '') { 458 temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>'; 459 } 460 if (this.takendate != '') { 461 462 temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>'; 463 } 464 465 if (this.location != '') { 466 467 temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' + this.location + '</div>'; 468 } 469 470 if (this.photographer != '') { 471 472 temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>'; 473 } 474 475 if (temp != '') { 476 temp += '<div class="spacer"></div>'; 477 } 478 return temp; 479};
480 481/*************************************************************************** 482* Get payment info for image - add as 'method' to photo object * 483***************************************************************************/ 484clik.photo.fnGetPaymentInfo = function(){ 485 var temp = ''; 486 if (this.item_price !== '') { 487 temp += '<p>Order this print:</p>'; 488 temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>'; 489 var item_name = this.purchase_instruction; 490 var amount = (this.item_price).toFixed(2); 491 var item_option = 0; 492 } 493 else { 494 495 } 496 if (this.item_price !== '') { 497 temp += '<div class="clearing"> </div>'; 498 } 499 return temp;}; 500 501/*************************************************************************** 502* Pick a photo at random from the featured images of a gallery. * 503* Gallery_id = id of gallery to choose, * 504* img = reference to html image in * 505* which to show image * 506***************************************************************************/ 507function showGalleryImage(gallery_id, img, updateLink) { 508 509 if(img && !$(img).hasClass('no_image')){ 510 if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) { 511 imageID = imageID[1]; 512 } else { 513 imageID = randomListVal(galleries[gallery_id].featured_images); 514 } 515 516 if (imageID != 0) { 517 if( !isNaN(parseInt(imageID)) && isFinite(imageID) ) { //ID is numeric (i.e. we have a proper image id) 518 img.src = thumbnails[imageID].src; 519 img.width = thumbnails[imageID].width; 520 img.height = thumbnails[imageID].height; 521 } else {//ID is not numeric (i.e. we have a gallery heading image defined with src, width & height) 522 img.src = galleries[gallery_id].photo_thumbnail; 523 img.width = galleries[gallery_id].photo_thumbnail_width; 524 img.height = galleries[gallery_id].photo_thumbnail_height; 525 } img.alt = galleries[gallery_id].title; 526 if (updateLink) { 527 $(img).parent().attr({ title: galleries[gallery_id].title }).filter(function(){return this.href;}).attr({ href: thumbnails[imageID].fnGalleryLink(gallery_id) }); 528 } 529 } 530 } 531} 532 533/*************************************************************************** 534* If we have dynamic HTML, replace the galleries link with a list that * 535* doesn't include thecurrent gallery * 536***************************************************************************/ 537function showGalleries(gallery_id) { 538 539 540 if (!basic) { 541 temp = ''; 542 for (i = 0; i < galleries.length; i++) { 543 544 545 if (galleries[i].id != gallery_id) { 546 547 if (temp != '') { 548 temp += ' | '; 549 } 550 temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>'; 551 } 552 } 553 document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp; 554 } 555} 556 557
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.