window.thumbnails = {};
															thumbnails[7647263] = clik.newPhoto({"id":7647263,"src":"CandleStack_instructions_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":85,"caption":"","height":71});
															thumbnails[8617757] = clik.newPhoto({"id":8617757,"src":"Tools1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":107,"caption":"","height":160});
															thumbnails[8922803] = clik.newPhoto({"id":8922803,"src":"QurterworkshopWelcome_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"","height":160});
															thumbnails[7101114] = clik.newPhoto({"id":7101114,"src":"tabesetting_thumb.jpg","galleries_id":333110,"server_id":5,"link":"photo_7101114.html","width":160,"caption":"","height":107});
															thumbnails[8617410] = clik.newPhoto({"id":8617410,"src":"aeroplanecutlery_thumb.jpg","galleries_id":455526,"server_id":5,"link":"photo_8617410.html","width":160,"caption":"Aeroplane ","height":55});
															thumbnails[8617417] = clik.newPhoto({"id":8617417,"src":"Monocandlesticks_thumb.jpg","galleries_id":333109,"server_id":5,"link":"photo_8617417.html","width":107,"caption":"Mono CandleStack ","height":160});
															thumbnails[8617419] = clik.newPhoto({"id":8617419,"src":"brasscandlesticks_thumb.jpg","galleries_id":333109,"server_id":5,"link":"photo_8617419.html","width":107,"caption":"Multi CandleStack","height":160});
															thumbnails[8617704] = clik.newPhoto({"id":8617704,"src":"PLacemat_thumb.jpg","galleries_id":455537,"server_id":5,"link":"photo_8617704.html","width":160,"caption":"Place mats","height":107});
															thumbnails[8617705] = clik.newPhoto({"id":8617705,"src":"Placemats_thumb.jpg","galleries_id":455537,"server_id":5,"link":"photo_8617705.html","width":160,"caption":"Placemats ","height":107});
															thumbnails[7086915] = clik.newPhoto({"id":7086915,"src":"CandleStacksnew_thumb.jpg","galleries_id":333110,"server_id":5,"link":"photo_7086915.html","width":130,"caption":"CandleStacks ","height":127});
															thumbnails[7101127] = clik.newPhoto({"id":7101127,"src":"plate_thumb.jpg","galleries_id":333110,"server_id":5,"link":"photo_7101127.html","width":160,"caption":"Silver plates","height":89});
															thumbnails[7086805] = clik.newPhoto({"id":7086805,"src":"newmoire_thumb.jpg","galleries_id":333109,"server_id":5,"link":"photo_7086805.html","width":130,"caption":"Moire Vessels","height":87});
															thumbnails[7101134] = clik.newPhoto({"id":7101134,"src":"Spoon_thumb.jpg","galleries_id":455526,"server_id":5,"link":"photo_7101134.html","width":145,"caption":"LARGEspoon","height":130});
															thumbnails[7086822] = clik.newPhoto({"id":7086822,"src":"Silverservice_thumb.jpg","galleries_id":333109,"server_id":5,"link":"photo_7086822.html","width":130,"caption":"you can lay your table with silver","height":91});
															thumbnails[7101145] = clik.newPhoto({"id":7101145,"src":"Bloomspoon_thumb.jpg","galleries_id":455526,"server_id":5,"link":"photo_7101145.html","width":141,"caption":"Bloom Spoon","height":130});
															thumbnails[7086813] = clik.newPhoto({"id":7086813,"src":"newshadowcloth_thumb.jpg","galleries_id":333109,"server_id":5,"link":"photo_7086813.html","width":130,"caption":"Table4one ","height":88});
															thumbnails[7101156] = clik.newPhoto({"id":7101156,"src":"Beaker_thumb.jpg","galleries_id":333110,"server_id":5,"link":"photo_7101156.html","width":96,"caption":"Reflections ","height":130});
															thumbnails[7086983] = clik.newPhoto({"id":7086983,"src":"HipFlasknew_thumb.jpg","galleries_id":455537,"server_id":5,"link":"photo_7086983.html","width":130,"caption":"Pewter Hip Flasks ","height":87});
															thumbnails[7101163] = clik.newPhoto({"id":7101163,"src":"Patternbowl_thumb.jpg","galleries_id":333110,"server_id":5,"link":"photo_7101163.html","width":130,"caption":"Silver bowl","height":117});
															thumbnails[7087006] = clik.newPhoto({"id":7087006,"src":"Leafbowlnew_thumb.jpg","galleries_id":455537,"server_id":5,"link":"photo_7087006.html","width":130,"caption":"Pewter Leaf pattern bowl","height":87});
															thumbnails[5989733] = clik.newPhoto({"id":5989733,"src":"Decantercups_thumb.gif","galleries_id":333110,"server_id":5,"link":"photo_5989733.html","width":130,"caption":"Together","height":86});
															thumbnails[7086891] = clik.newPhoto({"id":7086891,"src":"candlestackpairnew_thumb.jpg","galleries_id":333110,"server_id":5,"link":"photo_7086891.html","width":60,"caption":"CandleStacks ","height":130});
															thumbnails[5994416] = clik.newPhoto({"id":5994416,"src":"GreyCandlestack_thumb.jpg","galleries_id":333110,"server_id":5,"link":"photo_5994416.html","width":74,"caption":"CandleStacks","height":130});
															thumbnails[5989739] = clik.newPhoto({"id":5989739,"src":"caddyteaspoon_thumb.jpg","galleries_id":333110,"server_id":5,"link":"photo_5989739.html","width":130,"caption":"Tea Caddy spoon","height":86});
															thumbnails[7087208] = clik.newPhoto({"id":7087208,"src":"CS7Delanynew_thumb.jpg","galleries_id":333110,"server_id":5,"link":"photo_7087208.html","width":160,"caption":"CandleStacks ","height":107});
															thumbnails[5989807] = clik.newPhoto({"id":5989807,"src":"patternbowls_thumb.gif","galleries_id":333110,"server_id":5,"link":"photo_5989807.html","width":130,"caption":"Pinch and spice bowls","height":88});
															thumbnails[5989802] = clik.newPhoto({"id":5989802,"src":"jam-plates_thumb.gif","galleries_id":333110,"server_id":5,"link":"photo_5989802.html","width":130,"caption":"Jam plates","height":86});
															thumbnails[8655471] = clik.newPhoto({"id":8655471,"src":"breaking_the_rules_thumb.jpg","galleries_id":455526,"server_id":5,"link":"photo_8655471.html","width":160,"caption":"Hand forged silver spoons ","height":107});
															thumbnails[6197291] = clik.newPhoto({"id":6197291,"src":"VictoriaDelanyElle_thumb.gif","galleries_id":455481,"server_id":5,"link":"photo_6197291.html","width":130,"caption":"","height":96});
															thumbnails[6197311] = clik.newPhoto({"id":6197311,"src":"VictoriadelanyELLEWaddesdon_thumb.gif","galleries_id":455481,"server_id":5,"link":"photo_6197311.html","width":130,"caption":"","height":87});
															thumbnails[6197315] = clik.newPhoto({"id":6197315,"src":"VictoriadelanyWorldofInteri_thumb.gif","galleries_id":455481,"server_id":5,"link":"photo_6197315.html","width":130,"caption":"","height":117});
															thumbnails[7346771] = clik.newPhoto({"id":7346771,"src":"press_thumb.jpg","galleries_id":455481,"server_id":5,"link":"photo_7346771.html","width":160,"caption":"","height":113});
															thumbnails[8616517] = clik.newPhoto({"id":8616517,"src":"HomesGardens_thumb.jpg","galleries_id":455481,"server_id":5,"link":"photo_8616517.html","width":160,"caption":"","height":92});
															thumbnails[8616520] = clik.newPhoto({"id":8616520,"src":"Homesproperty_thumb.jpg","galleries_id":455481,"server_id":5,"link":"photo_8616520.html","width":160,"caption":"","height":160});
															thumbnails[8616523] = clik.newPhoto({"id":8616523,"src":"HouseGarden_thumb.jpg","galleries_id":455481,"server_id":5,"link":"photo_8616523.html","width":160,"caption":"","height":113});
															thumbnails[8616524] = clik.newPhoto({"id":8616524,"src":"SundayTimesHome_thumb.jpg","galleries_id":455481,"server_id":5,"link":"photo_8616524.html","width":160,"caption":"","height":116});
															thumbnails[8616525] = clik.newPhoto({"id":8616525,"src":"TheTimesmagazine_thumb.jpg","galleries_id":455481,"server_id":5,"link":"photo_8616525.html","width":160,"caption":"","height":125});
															thumbnails[8616535] = clik.newPhoto({"id":8616535,"src":"TheStylist_thumb.jpg","galleries_id":455481,"server_id":5,"link":"photo_8616535.html","width":160,"caption":"","height":132});
															thumbnails[8616552] = clik.newPhoto({"id":8616552,"src":"VOGUE_thumb.jpg","galleries_id":455481,"server_id":5,"link":"photo_8616552.html","width":160,"caption":"","height":132});
															thumbnails[8655570] = clik.newPhoto({"id":8655570,"src":"ElleDecoOctober11_thumb.jpg","galleries_id":455481,"server_id":5,"link":"photo_8655570.html","width":160,"caption":"Elle Deco feature October 2011","height":113});
															thumbnails[8655572] = clik.newPhoto({"id":8655572,"src":"ElledecoMoire_thumb.jpg","galleries_id":455481,"server_id":5,"link":"photo_8655572.html","width":117,"caption":"Close up of Elle Deco Feature October 2011","height":160});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[455526] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cutlery","link":"gallery_455526.html","maxRecords":0.0,"photoIDs":[8617410.0,7101134.0,7101145.0,8655471.0],"skipIndex":0,"section_code":"gallery","featured_images":8617410.0,"id":455526,"singleSection":false});				  						galleries[455481] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"In the press","link":"section551077.html","maxRecords":0.0,"photoIDs":[6197291.0,6197311.0,6197315.0,7346771.0,8616517.0,8616520.0,8616523.0,8616524.0,8616525.0,8616535.0,8616552.0,8655570.0,8655572.0],"skipIndex":0,"section_code":"section551077","featured_images":"8655572,8655570,8616552,8616535,8616525,8616524,8616523,8616520,8616517,7346771","id":455481,"singleSection":true});				  						galleries[333109] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Objects","link":"gallery_333109.html","maxRecords":0.0,"photoIDs":[8617417.0,8617419.0,7086805.0,7086822.0,7086813.0],"skipIndex":0,"section_code":"gallery","featured_images":8617417.0,"id":333109,"singleSection":false});				  						galleries[333110] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Silver tableware","link":"gallery_333110.html","maxRecords":0.0,"photoIDs":[7101114.0,7086915.0,7101127.0,7101156.0,7101163.0,5989733.0,7086891.0,5994416.0,5989739.0,7087208.0,5989807.0,5989802.0],"skipIndex":0,"section_code":"gallery","featured_images":7101156.0,"id":333110,"singleSection":false});				  						galleries[455537] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Products","link":"gallery_455537.html","maxRecords":0.0,"photoIDs":[8617704.0,8617705.0,7086983.0,7087006.0],"skipIndex":0,"section_code":"gallery","featured_images":"8617705,8617704","id":455537,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8617417,8617410,7101127,7086805,7101145,7086983';
imageSets[2] = '8617705,8617704,8617417,8617410,7101156';
imageSets[3] = '8922803,8655572,8655570,8655471,8617757,8617705,8617704,8617419,8617417,8617410,8616552,8616535,8616525,8616524,8616523,8616520,8616517,7647263,7346771,7101163,7101156,7101145,7101134,7101127,7101114,7087208,7087006,7086983,7086915,7086891,7086822,7086813,7086805,6197315,6197311,6197291,5994416,5989807,5989802,5989739,5989733';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/victoriadelany/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/victoriadelany/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 = 'victoriadelany: ' + 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;
	}
}

			

