window.thumbnails = new Object();
												thumbnails[7213] = new thumbnail(7213,'656','Poppy Field - North Norfolk','Poppy Field - North Norfolk_thumb.jpg',130, 88,15,'photo_7213.html');
												thumbnails[7341] = new thumbnail(7341,'656','Swallowtail Butterfly - Hickling','swall_thumb.jpg',130, 174,15,'photo_7341.html');
												thumbnails[7354] = new thumbnail(7354,'656','Cock Pheasant Displaying','Cock Pheasant Displaying - Hickling_thumb.jpg',130, 88,15,'photo_7354.html');
												thumbnails[7364] = new thumbnail(7364,'656','Horsey Mill - Norfolk','Horsey Mill_thumb.jpg',130, 192,15,'photo_7364.html');
												thumbnails[7379] = new thumbnail(7379,'656','Brown Hare - Norfolk','Brown Hare - Hickling_thumb.jpg',130, 192,15,'photo_7379.html');
												thumbnails[7380] = new thumbnail(7380,'656','Pony in Snow - Hickling','Pony in Snow - Hickling_thumb.jpg',130, 88,15,'photo_7380.html');
												thumbnails[7499] = new thumbnail(7499,'656','Turf Fen Mill - How Hill, Norfolk','Turf Fen Mill_thumb.jpg',130, 189,15,'photo_7499.html');
												thumbnails[7501] = new thumbnail(7501,'656','Sailing at Sunset - Horsey Mere','Sailing at Sunset_thumb.jpg',130, 88,15,'photo_7501.html');
												thumbnails[7503] = new thumbnail(7503,'656','Pink Rose','Pink Rose_thumb.jpg',130, 89,15,'photo_7503.html');
												thumbnails[7504] = new thumbnail(7504,'656','Greylag Goose at Sunrise -Hickling Broad','Greylag Goose at Sunrise_thumb.jpg',130, 89,15,'photo_7504.html');
												thumbnails[7505] = new thumbnail(7505,'656','Mute Swan at Sunrise','Mute Swan at Sunrise - Hickling Broad_thumb.jpg',130, 89,15,'photo_7505.html');
												thumbnails[7619] = new thumbnail(7619,'656','Barn Owl at Sunset','Barn Owl at Sunset - Hickling_thumb.jpg',130, 89,15,'photo_7619.html');
												thumbnails[7648] = new thumbnail(7648,'656','Sunflowers - Norfolk','Sunflowers-Hickling_thumb.jpg',130, 88,15,'photo_7648.html');
												thumbnails[7649] = new thumbnail(7649,'656','Kestral at Sunset - Horsey Marshes','Kestral at Sunset-Horsey Marshes_thumb.jpg',130, 88,15,'photo_7649.html');
												thumbnails[7928] = new thumbnail(7928,'656','Oak Tree in Poppy Field - Norfolk','Oak Tree in Poppy Field-_thumb.jpg',130, 182,15,'photo_7928.html');
												thumbnails[17128] = new thumbnail(17128,'656','Broad-bodied Chaser Dragonfly - Hickling','Broad-bodied Chaser Dragonfly (Male) - Hickling_thumb.jpg',130, 192,15,'photo_17128.html');
												thumbnails[17130] = new thumbnail(17130,'656','Great Spotted Woodpecker - Hickling','Great Spotted Woodpecker - Hickling_thumb.jpg',130, 192,15,'photo_17130.html');
												thumbnails[22162] = new thumbnail(22162,'656','Fishing Boat in Misty Dawn - Hickling Broad Norfolk','Fishing Boat at Sunrise - Hickling Broad_thumb.jpg',130, 89,15,'photo_22162.html');
												thumbnails[22164] = new thumbnail(22164,'656','Grey Seal Pup - Horsey Beach Norfolk','Grey Seal Pup - Horsey Beach Norfolk_thumb.jpg',130, 88,15,'photo_22164.html');
												thumbnails[138020] = new thumbnail(138020,'655','COMMON POPPY','gdf17147_thumb.jpg',130, 87,15,'photo_138020.html');
												thumbnails[2102997] = new thumbnail(2102997,'140132','SUMMER MEADOW 2','gdf17610_thumb.jpg',130, 89,15,'photo_2102997.html');
												thumbnails[2103001] = new thumbnail(2103001,'140132','SUMMER MEADOW 3','gdf17612_thumb.jpg',130, 87,15,'photo_2103001.html');
												thumbnails[2103005] = new thumbnail(2103005,'140132','MEADOW SWIRL','gdf17621_border_thumb.jpg',130, 53,15,'photo_2103005.html');
												thumbnails[2102591] = new thumbnail(2102591,'655','RED TULIP','gdf07340_thumb.jpg',130, 186,15,'photo_2102591.html');
												thumbnails[2103008] = new thumbnail(2103008,'140132','BANANA LEAF','gdf17548_thumb.jpg',130, 195,15,'photo_2103008.html');
												thumbnails[2103137] = new thumbnail(2103137,'140132','JAPANESE MAPLE LEAVES 1','gdf15495_thumb.jpg',130, 190,15,'photo_2103137.html');
												thumbnails[2102593] = new thumbnail(2102593,'655','TWO GEESE AT DAWN ON NORFOLK BROADS','gdf06080_thumb.jpg',130, 85,15,'photo_2102593.html');
												thumbnails[2103145] = new thumbnail(2103145,'140132','JAPANESE MAPLE LEAVES 2','gdf15491_thumb.jpg',130, 195,15,'photo_2103145.html');
												thumbnails[2103146] = new thumbnail(2103146,'140132','RUNNING BUFFALO','E1693_thumb.jpg',130, 86,15,'photo_2103146.html');
												thumbnails[2102594] = new thumbnail(2102594,'655','HERON ON POST AT DAWN ON NORFOLK BROADS','gdf03393_thumb.jpg',130, 85,15,'photo_2102594.html');
												thumbnails[2103371] = new thumbnail(2103371,'140132','CRYSTALS OF CITRIC ACID','FC85381_thumb.jpg',130, 199,15,'photo_2103371.html');
												thumbnails[2103373] = new thumbnail(2103373,'140132','CRYSTALS OF CITRIC ACID','FC8539_thumb.jpg',130, 199,15,'photo_2103373.html');
												thumbnails[2102596] = new thumbnail(2102596,'655','RED DAHLIA 2','gdf17618_thumb.jpg',130, 195,15,'photo_2102596.html');
												thumbnails[2103388] = new thumbnail(2103388,'140132','BEECH TREES 1','gdf17625_thumb.jpg',130, 87,15,'photo_2103388.html');
												thumbnails[2103394] = new thumbnail(2103394,'140132','BEECH TREES 2','gdf04677_thumb.jpg',130, 175,15,'photo_2103394.html');
												thumbnails[2103663] = new thumbnail(2103663,'140132','GREEN TREE','gdf04581_thumb.jpg',130, 87,15,'photo_2103663.html');
												thumbnails[2102606] = new thumbnail(2102606,'655','RED DAHLIA 1','gdf176191_thumb.jpg',130, 87,15,'photo_2102606.html');
												thumbnails[2103396] = new thumbnail(2103396,'140132','WATER DROP ON GREEN FEATHER','gdf15240_thumb.jpg',130, 195,15,'photo_2103396.html');
												thumbnails[2103401] = new thumbnail(2103401,'140132','WATER DROP ON BLUE FEATHER','gdf15241_thumb.jpg',130, 198,15,'photo_2103401.html');
												thumbnails[2102598] = new thumbnail(2102598,'655','MISTY TREES - HICKLING BROAD','gdf17296_thumb.jpg',130, 175,15,'photo_2102598.html');
												thumbnails[2103480] = new thumbnail(2103480,'140132','RIPPLES 1','gdf15685_thumb.jpg',130, 86,15,'photo_2103480.html');
												thumbnails[2103485] = new thumbnail(2103485,'140132','RIPPLES 2','gdf17606_thumb.jpg',130, 87,15,'photo_2103485.html');
												thumbnails[2102607] = new thumbnail(2102607,'655','SUNRISE THROUGH WILLOW BRANCHES','gdf033661_thumb.jpg',130, 195,15,'photo_2102607.html');
												thumbnails[2103511] = new thumbnail(2103511,'140132','GREYLAG GEESE','gdf05253_thumb.jpg',130, 97,15,'photo_2103511.html');
												thumbnails[2103512] = new thumbnail(2103512,'140132','CANADA GOOSE TAKING FLIGHT 1','gdf06711_thumb.jpg',130, 86,15,'photo_2103512.html');
												thumbnails[2102621] = new thumbnail(2102621,'655','JAPANESE MAPLE IN AUTUMN COLOURS','gdf04691_thumb.jpg',130, 97,15,'photo_2102621.html');
												thumbnails[2103525] = new thumbnail(2103525,'140132','CANADA GOOSE TAKING FLIGHT 2','gdf06713_thumb.jpg',130, 87,15,'photo_2103525.html');
												thumbnails[2102780] = new thumbnail(2102780,'655','GEESE IN FLIGHT AT SUNSET 1','gdf14378_thumb.jpg',130, 85,15,'photo_2102780.html');
												thumbnails[2102781] = new thumbnail(2102781,'655','GEESE IN FLIGHT AT SUNSET 2','gdf14400_thumb.jpg',130, 85,15,'photo_2102781.html');
												thumbnails[2103532] = new thumbnail(2103532,'140132','COMMON DAISY ','gdf07720_thumb.jpg',130, 195,15,'photo_2103532.html');
												thumbnails[2102788] = new thumbnail(2102788,'655','POPPY FLOWER','gdf17626_thumb.jpg',130, 195,15,'photo_2102788.html');
												thumbnails[2102812] = new thumbnail(2102812,'655','FUSCHIA FLOWER BUDS','gdf15561_thumb.jpg',130, 195,15,'photo_2102812.html');
												thumbnails[2102622] = new thumbnail(2102622,'655','RAY OF SUNLIGHT - THIRLEMERE','C1799_thumb.jpg',130, 173,15,'photo_2102622.html');
												thumbnails[2102813] = new thumbnail(2102813,'655','REEDS AT SUNRISE','gdf17627_thumb.jpg',130, 88,15,'photo_2102813.html');
												thumbnails[2103554] = new thumbnail(2103554,'140132','HYDRANGEA FLOWER ON ROSE LEAF','E4335_thumb.jpg',130, 85,15,'photo_2103554.html');
												thumbnails[2102814] = new thumbnail(2102814,'655','CALENDULA FLOWERS','gdf15643_thumb.jpg',130, 195,15,'photo_2102814.html');
												thumbnails[2102868] = new thumbnail(2102868,'655','CALENDULA  FLOWER','gdf07345_thumb.jpg',130, 195,15,'photo_2102868.html');
												thumbnails[2102985] = new thumbnail(2102985,'655','SUMMER MEADOW 4','gdf17628_thumb.jpg',130, 175,15,'photo_2102985.html');
												thumbnails[2102988] = new thumbnail(2102988,'655','SUMMER MEADOW 5','gdf17624_thumb.jpg',130, 196,15,'photo_2102988.html');
												thumbnails[2102992] = new thumbnail(2102992,'655','SUMMER MEADOW 1','gdf17015_thumb.jpg',130, 195,15,'photo_2102992.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[655] = new gallery(655,'138020','Fine Art Prints','gallery',[138020,2102591,2102593,2102594,2102596,2102606,2102598,2102607,2102621,2102780,2102781,2102788,2102812,2102622,2102813,2102814,2102868,2102985,2102988,2102992],0, 0, '', 'gallery_655.html',0,0);
				  					galleries[140132] = new gallery(140132,'2103525','Fine Art Prints 2','gallery',[2102997,2103001,2103005,2103008,2103137,2103145,2103146,2103371,2103373,2103388,2103394,2103663,2103396,2103401,2103480,2103485,2103511,2103512,2103525,2103532,2103554],0, 0, '', 'gallery_140132.html',0,0);
				  					galleries[656] = new gallery(656,'17130','Greeting Cards','gallery',[7213,7341,7354,7364,7379,7380,7499,7501,7503,7504,7505,7619,7648,7649,7928,17128,17130,22162,22164],0, 0, '', 'gallery_656.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '2103146,2103005,2102598,138020';
imageSets[2] = '2103525,138020,17130';
imageSets[3] = '2103663,2103554,2103532,2103525,2103512,2103511,2103485,2103480,2103401,2103396,2103394,2103388,2103373,2103371,2103146,2103145,2103137,2103008,2103005,2103001,2102997,2102992,2102988,2102985,2102868,2102814,2102813,2102812,2102788,2102781,2102780,2102622,2102621,2102607,2102606,2102598,2102596,2102594,2102593,2102591,138020,22164,22162,17130,17128,7928,7649,7648,7619,7505';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/geoffdufeu/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/geoffdufeu/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('');
		if (!basic) {
	img.src = photos[imageID].src;
	img.width = photos[imageID].width;
	img.height = photos[imageID].height;
  img.parentNode.title = img.alt = photos[imageID].caption;
	}
	else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
				
	}
			}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += '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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Natural Art Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:200};	    		options.photoinfoadjacent = true;			      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			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').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp = 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({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

