window.thumbnails = {};
															thumbnails[4066163] = clik.newPhoto({"id":4066163,"src":"Biege_thumb.jpg","galleries_id":242196,"server_id":15,"link":"photo_4066163.html","width":128,"caption":"Dandelion Seed Jasper","height":130});
															thumbnails[4066552] = clik.newPhoto({"id":4066552,"src":"organics_3_thumb.jpg","galleries_id":345619,"server_id":15,"link":"photo_4066552.html","width":130,"caption":"Oh Very Young","height":128});
															thumbnails[8871625] = clik.newPhoto({"id":8871625,"src":"DSC_0002_thumb.JPG","galleries_id":345619,"server_id":15,"link":"photo_8871625.html","width":120,"caption":"Distant Shores Batik","height":119});
															thumbnails[9095711] = clik.newPhoto({"id":9095711,"src":"CIMG2008_1_thumb.JPG","galleries_id":479967,"server_id":15,"link":"photo_9095711.html","width":120,"caption":"","height":90});
															thumbnails[4066130] = clik.newPhoto({"id":4066130,"src":"AsheDuckEgg_thumb.jpg","galleries_id":242196,"server_id":15,"link":"photo_4066130.html","width":130,"caption":"Brown and Duck Egg blue dandelion","height":129});
															thumbnails[4066555] = clik.newPhoto({"id":4066555,"src":"organics_thumb.jpg","galleries_id":345619,"server_id":15,"link":"photo_4066555.html","width":128,"caption":"Oh Very Young","height":130});
															thumbnails[8871730] = clik.newPhoto({"id":8871730,"src":"DSC_0004_thumb.JPG","galleries_id":479967,"server_id":15,"link":"photo_8871730.html","width":120,"caption":"Gyedu ladies","height":95});
															thumbnails[9095714] = clik.newPhoto({"id":9095714,"src":"CIMG2010_1_thumb.JPG","galleries_id":479967,"server_id":15,"link":"photo_9095714.html","width":120,"caption":"","height":90});
															thumbnails[4066158] = clik.newPhoto({"id":4066158,"src":"AsheGreen_thumb.jpg","galleries_id":242196,"server_id":15,"link":"photo_4066158.html","width":130,"caption":"Dandelion Seed Jade","height":130});
															thumbnails[4066561] = clik.newPhoto({"id":4066561,"src":"CIMG1689_thumb.jpg","galleries_id":345619,"server_id":15,"link":"photo_4066561.html","width":129,"caption":"Oh Very Young","height":130});
															thumbnails[6190156] = clik.newPhoto({"id":6190156,"src":"InPersuit_thumb.jpg","galleries_id":345618,"server_id":15,"link":"photo_6190156.html","width":120,"caption":"Hartshead Pike Ashton-under-Lyne at dusk","height":119});
															thumbnails[9095716] = clik.newPhoto({"id":9095716,"src":"CIMG2013_1_thumb.JPG","galleries_id":479967,"server_id":15,"link":"photo_9095716.html","width":120,"caption":"","height":90});
															thumbnails[4066563] = clik.newPhoto({"id":4066563,"src":"organics_7_thumb.jpg","galleries_id":345619,"server_id":15,"link":"photo_4066563.html","width":130,"caption":"Oh Very Young","height":121});
															thumbnails[6190144] = clik.newPhoto({"id":6190144,"src":"websize_thumb.jpg","galleries_id":345618,"server_id":15,"link":"photo_6190144.html","width":120,"caption":"Three Graces Silver Birch trees","height":83});
															thumbnails[7363882] = clik.newPhoto({"id":7363882,"src":"CIMG0927_thumb.jpg","galleries_id":242196,"server_id":15,"link":"photo_7363882.html","width":118,"caption":"Dandelion seed Burgundy","height":120});
															thumbnails[9095725] = clik.newPhoto({"id":9095725,"src":"CIMG2020_1_thumb.JPG","galleries_id":479967,"server_id":15,"link":"photo_9095725.html","width":120,"caption":"","height":90});
															thumbnails[4066484] = clik.newPhoto({"id":4066484,"src":"CIMG1693_thumb.jpg","galleries_id":345619,"server_id":15,"link":"photo_4066484.html","width":130,"caption":"Evening Light","height":129});
															thumbnails[6318776] = clik.newPhoto({"id":6318776,"src":"websize4_thumb.jpg","galleries_id":345618,"server_id":15,"link":"photo_6318776.html","width":60,"caption":"Hartshead Pike Ashton-under-Lyne Winter ","height":120});
															thumbnails[7363890] = clik.newPhoto({"id":7363890,"src":"Sepia2_50cm_x_50cm_thumb.jpg","galleries_id":242196,"server_id":15,"link":"photo_7363890.html","width":120,"caption":"Dandelion seed Sepia","height":117});
															thumbnails[9095730] = clik.newPhoto({"id":9095730,"src":"closeup_1_thumb.jpg","galleries_id":479967,"server_id":15,"link":"photo_9095730.html","width":113,"caption":"","height":120});
															thumbnails[4066489] = clik.newPhoto({"id":4066489,"src":"whitetextile_2_thumb.jpg","galleries_id":345619,"server_id":15,"link":"photo_4066489.html","width":130,"caption":"White light","height":130});
															thumbnails[6318767] = clik.newPhoto({"id":6318767,"src":"websize2_thumb.jpg","galleries_id":345618,"server_id":15,"link":"photo_6318767.html","width":59,"caption":"Hartshead Pike Ashton-under-Lyne Winter sun","height":120});
															thumbnails[7363892] = clik.newPhoto({"id":7363892,"src":"Sepia_50cm_x_50cm_thumb.jpg","galleries_id":242196,"server_id":15,"link":"photo_7363892.html","width":120,"caption":"Dandelion seed Sepia too","height":118});
															thumbnails[9095734] = clik.newPhoto({"id":9095734,"src":"artwork_2_thumb.jpg","galleries_id":479967,"server_id":15,"link":"photo_9095734.html","width":120,"caption":"","height":78});
															thumbnails[4340536] = clik.newPhoto({"id":4340536,"src":"Inscape_thumb.jpg","galleries_id":345619,"server_id":15,"link":"photo_4340536.html","width":120,"caption":"Inscape","height":110});
															thumbnails[9095738] = clik.newPhoto({"id":9095738,"src":"artwork_5_thumb.jpg","galleries_id":479967,"server_id":15,"link":"photo_9095738.html","width":120,"caption":"","height":76});
															thumbnails[4008761] = clik.newPhoto({"id":4008761,"src":"Peony_thumb.jpg","galleries_id":242196,"server_id":15,"link":"photo_4008761.html","width":127,"caption":"Peony","height":130});
															thumbnails[7363945] = clik.newPhoto({"id":7363945,"src":"Blue_Watch_thumb.jpg","galleries_id":345619,"server_id":15,"link":"photo_7363945.html","width":120,"caption":"Blue Watch","height":120});
															thumbnails[9095745] = clik.newPhoto({"id":9095745,"src":"Artwork_19_thumb.jpg","galleries_id":479967,"server_id":15,"link":"photo_9095745.html","width":120,"caption":"","height":87});
															thumbnails[4008647] = clik.newPhoto({"id":4008647,"src":"LilacWine1_thumb.JPG","galleries_id":242196,"server_id":15,"link":"photo_4008647.html","width":130,"caption":"Lilac Cala Lily","height":130});
															thumbnails[9082997] = clik.newPhoto({"id":9082997,"src":"CIMG0008_thumb.JPG","galleries_id":345619,"server_id":15,"link":"photo_9082997.html","width":120,"caption":"Detail","height":105});
															thumbnails[9095747] = clik.newPhoto({"id":9095747,"src":"Aruba_1_thumb.JPG","galleries_id":479967,"server_id":15,"link":"photo_9095747.html","width":120,"caption":"","height":86});
															thumbnails[7363898] = clik.newPhoto({"id":7363898,"src":"CherryRed_thumb.jpg","galleries_id":242196,"server_id":15,"link":"photo_7363898.html","width":120,"caption":"Cherry Red Cala Lily","height":119});
															thumbnails[9082984] = clik.newPhoto({"id":9082984,"src":"closeup_thumb.jpg","galleries_id":345619,"server_id":15,"link":"photo_9082984.html","width":80,"caption":"Detail","height":120});
															thumbnails[9095772] = clik.newPhoto({"id":9095772,"src":"sa_6_thumb.jpg","galleries_id":479967,"server_id":15,"link":"photo_9095772.html","width":120,"caption":"","height":90});
															thumbnails[5370535] = clik.newPhoto({"id":5370535,"src":"dyptic_1_thumb.jpg","galleries_id":242196,"server_id":15,"link":"photo_5370535.html","width":120,"caption":"Poppies commission","height":118});
															thumbnails[9095774] = clik.newPhoto({"id":9095774,"src":"sa_50_thumb.jpg","galleries_id":479967,"server_id":15,"link":"photo_9095774.html","width":120,"caption":"","height":90});
															thumbnails[5370540] = clik.newPhoto({"id":5370540,"src":"dyptic_2_thumb.jpg","galleries_id":242196,"server_id":15,"link":"photo_5370540.html","width":120,"caption":"Poppies commission","height":119});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[345618] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscape","link":"gallery_345618.html","maxRecords":0.0,"photoIDs":[6190156.0,6190144.0,6318776.0,6318767.0],"skipIndex":0,"section_code":"gallery","featured_images":"6318776,6318767,6190156,6190144","id":345618,"singleSection":false});				  						galleries[242196] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers","link":"gallery_242196.html","maxRecords":0.0,"photoIDs":[4066163.0,4066130.0,4066158.0,7363882.0,7363890.0,7363892.0,4008761.0,4008647.0,7363898.0,5370535.0,5370540.0],"skipIndex":0,"section_code":"gallery","featured_images":"7363898,7363892,7363890,7363882,5370540,5370535,4066163,4066158,4066130,4008761","id":242196,"singleSection":false});				  						galleries[345619] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Textiles","link":"gallery_345619.html","maxRecords":0.0,"photoIDs":[4066552.0,8871625.0,4066555.0,4066561.0,4066563.0,4066484.0,4066489.0,4340536.0,7363945.0,9082997.0,9082984.0],"skipIndex":0,"section_code":"gallery","featured_images":"9082997,9082984,8871625,7363945,4340536,4066563,4066561,4066555,4066552,4066489","id":345619,"singleSection":false});				  						galleries[479967] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Inspiration","link":"gallery_479967.html","maxRecords":0.0,"photoIDs":[9095711.0,8871730.0,9095714.0,9095716.0,9095725.0,9095730.0,9095734.0,9095738.0,9095745.0,9095747.0,9095772.0,9095774.0],"skipIndex":0,"section_code":"gallery","featured_images":"9095774,9095772,9095747,9095745,9095738,9095734,9095730,9095725,9095716,9095714","id":479967,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4066130,4066563,4066489,4340536,4008761,4008647';
imageSets[3] = '9095774,9095772,9095747,9095745,9095738,9095734,9095730,9095725,9095716,9095714,9095711,9082997,9082984,8871730,8871625,7363945,7363898,7363892,7363890,7363882,6318776,6318767,6190156,6190144,5370540,5370535,4340536,4066563,4066561,4066555,4066552,4066489,4066484,4066163,4066158,4066130,4008761,4008647';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sueashton/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sueashton/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sueashton/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sueashton/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sueashton/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/sueashton/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sueashton/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sueashton/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 = 'Sue Ashton Textile Artist: ' + 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.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>            </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>             </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="SUEASHTON">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

