window.thumbnails = new Object();
												thumbnails[3497046] = new thumbnail(3497046,'213900','Sian Lloyd Visits The Studio','SianLloyd340_thumb.jpg',130, 163,1,'																			photo_3497046.html');
												thumbnails[3497048] = new thumbnail(3497048,'213900','Sian meets The Interviewees','SianLloyd7001_thumb.jpg',130, 104,1,'																			photo_3497048.html');
												thumbnails[3497051] = new thumbnail(3497051,'213900','Sian Gets Ready To Interview Stella','SianLloyd44_thumb.jpg',130, 163,1,'																			photo_3497051.html');
												thumbnails[3497052] = new thumbnail(3497052,'213900','Stella & Sian','SianLloyd300_thumb.jpg',130, 104,1,'																			photo_3497052.html');
												thumbnails[3497053] = new thumbnail(3497053,'213900','Mary Bird & Sian Lloyd','SianLloyd180_thumb.jpg',130, 104,1,'																			photo_3497053.html');
												thumbnails[3497055] = new thumbnail(3497055,'213900','Sian Interviews Gerwyn','SianLloyd23_thumb.jpg',130, 104,1,'																			photo_3497055.html');
												thumbnails[3497057] = new thumbnail(3497057,'213900','Rose & Sian','SianLloyd170_thumb.jpg',130, 104,1,'																			photo_3497057.html');
												thumbnails[3497059] = new thumbnail(3497059,'213900','Enjoying A Cuppa Afterwards','SianLloyd66_thumb.jpg',130, 104,1,'																			photo_3497059.html');
												thumbnails[3497060] = new thumbnail(3497060,'213900','A Gift For Sian ','SianLloyd73_thumb.jpg',130, 163,1,'																			photo_3497060.html');
												thumbnails[3310706] = new thumbnail(3310706,'201729','Exhibition Poster, permission Is Granted To print This Poster for Publicity Purposes.','posterexibweb1_thumb.jpg',130, 184,1,'																			photo_3310706.html');
												thumbnails[3310731] = new thumbnail(3310731,'201729','S. Phillips & Seafarer<br>\r\nOne Of A Number Of images Of Seafarer, Amy johnson & Jimmy Mollison Which Feature In The Exhibition','Seafarer12_thumb.jpg',130, 77,1,'																			photo_3310731.html');
												thumbnails[3764318] = new thumbnail(3764318,'201729','Stella Giving The Opening Speech','stella_thumb.jpg',130, 74,1,'																			photo_3764318.html');
												thumbnails[3764320] = new thumbnail(3764320,'201729','So Much To See','spectator_thumb.jpg',130, 104,1,'																			photo_3764320.html');
												thumbnails[3764324] = new thumbnail(3764324,'201729','The Mayor & Mayoress Of Laugharne','mayoroflaugharne_thumb.jpg',130, 104,1,'																			photo_3764324.html');
												thumbnails[3764328] = new thumbnail(3764328,'201729','Gerry Lewis - Entertainer','gerry_thumb.jpg',130, 163,1,'																			photo_3764328.html');
												thumbnails[3764331] = new thumbnail(3764331,'201729','Gallery Entrance','galleryday_thumb.jpg',130, 64,1,'																			photo_3764331.html');
												thumbnails[3764332] = new thumbnail(3764332,'201729','Mayor & Mayoress Of Laugharne<br>\r\nReverend Brian Witt<br>\r\nStella & Mayor Of St Clears, Mr. Tom Brown','galleryopening_thumb.jpg',130, 104,1,'																			photo_3764332.html');
												thumbnails[3764333] = new thumbnail(3764333,'201729','Towards The Studio','galleryinterior_thumb.jpg',130, 59,1,'																			photo_3764333.html');
												thumbnails[3778745] = new thumbnail(3778745,'201729','Stella Receiving An Award For Services To The Community 2008-2009','mayor27_thumb.jpg',130, 164,1,'																			photo_3778745.html');
												thumbnails[3778763] = new thumbnail(3778763,'201729','Sal Wowing The Crowd','sal2_thumb.jpg',130, 276,1,'																			photo_3778763.html');
												thumbnails[4373327] = new thumbnail(4373327,'201729','','newpostcardweb_thumb.jpg',130, 93,1,'																			photo_4373327.html');
												thumbnails[4723148] = new thumbnail(4723148,'201729','St Clears YFC','stclearsyfc2009_thumb.jpg',130, 87,1,'																			photo_4723148.html');
												thumbnails[3347647] = new thumbnail(3347647,'204264','\'Queenie\' Landlady Of The Corvus','queenie1_thumb.jpg',130, 163,1,'																			photo_3347647.html');
												thumbnails[3347649] = new thumbnail(3347649,'204264','Betty - an Evacuee From London ','bettyrance1_thumb.jpg',130, 163,1,'																			photo_3347649.html');
												thumbnails[3347655] = new thumbnail(3347655,'204264','Maldwyn - The Soldier','legion_thumb.jpg',130, 163,1,'																			photo_3347655.html');
												thumbnails[3347658] = new thumbnail(3347658,'204264','Molly - The Hairdresser','moly2_thumb.jpg',130, 163,1,'																			photo_3347658.html');
												thumbnails[3347662] = new thumbnail(3347662,'204264','May - The Farmer','may2_thumb.jpg',130, 163,1,'																			photo_3347662.html');
												thumbnails[3347667] = new thumbnail(3347667,'204264','Leighton - The Encyclopedia Of Local Knowledge','layt3_thumb.jpg',130, 163,1,'																			photo_3347667.html');
												thumbnails[3347668] = new thumbnail(3347668,'204264','Betty - Long Family History','betty1_thumb.jpg',130, 163,1,'																			photo_3347668.html');
												thumbnails[3347670] = new thumbnail(3347670,'204264','Ellis - The Farmer','ellis1_thumb.jpg',130, 163,1,'																			photo_3347670.html');
												thumbnails[3347671] = new thumbnail(3347671,'204264','Olive - The Laugharne Connection','ol3_thumb.jpg',130, 163,1,'																			photo_3347671.html');
												thumbnails[3347672] = new thumbnail(3347672,'204264','Vilma - Local Knowledge','vilma1_thumb.jpg',130, 163,1,'																			photo_3347672.html');
												thumbnails[3347675] = new thumbnail(3347675,'204264','Beti Fach - Ambassador To St Clears','betty3_thumb.jpg',130, 195,1,'																			photo_3347675.html');
												thumbnails[2910677] = new thumbnail(2910677,'180298','Stella Griffiths','stella1_thumb.jpg',130, 162,1,'																			photo_2910677.html');
												thumbnails[2910686] = new thumbnail(2910686,'180298','','IMG_4627_thumb.jpg',130, 86,1,'																			photo_2910686.html');
												thumbnails[2910690] = new thumbnail(2910690,'180298','Talking Point','IMG_4635_thumb.jpg',130, 86,1,'																			photo_2910690.html');
												thumbnails[2910692] = new thumbnail(2910692,'180298','Stella Signing Books','IMG_4646_thumb.jpg',130, 195,1,'																			photo_2910692.html');
												thumbnails[2910697] = new thumbnail(2910697,'180298','Memories Stirred','IMG_4678_thumb.jpg',130, 195,1,'																			photo_2910697.html');
												thumbnails[2910700] = new thumbnail(2910700,'180298','Reunited Footballers','IMG_4709_thumb.jpg',130, 86,1,'																			photo_2910700.html');
												thumbnails[2910704] = new thumbnail(2910704,'180298','Intense Discussion','IMG_4663_thumb.jpg',130, 195,1,'																			photo_2910704.html');
												thumbnails[2910709] = new thumbnail(2910709,'180298','A Kiss For The Author','IMG_4697_thumb.jpg',130, 195,1,'																			photo_2910709.html');
												thumbnails[2910712] = new thumbnail(2910712,'180298','Is That Really You','IMG_4725_thumb.jpg',130, 86,1,'																			photo_2910712.html');
												thumbnails[2910717] = new thumbnail(2910717,'180298','Lifting The Cup Again','IMG_4733_thumb.jpg',130, 195,1,'																			photo_2910717.html');
												thumbnails[2910720] = new thumbnail(2910720,'180298','','IMG_4740_thumb.jpg',130, 86,1,'																			photo_2910720.html');
												thumbnails[2910906] = new thumbnail(2910906,'180298','Stanleys Grand Daughter<br>\r\nSallie Griffiths','IMG_2604_thumb.jpg',130, 140,1,'																			photo_2910906.html');
												thumbnails[2910908] = new thumbnail(2910908,'180298','Stanley\'s Grandson<br>\r\nTim Griffiths (Binx)','IMG_2605_thumb.jpg',130, 150,1,'																			photo_2910908.html');
												thumbnails[5893016] = new thumbnail(5893016,'332805','Click To Order','web2_thumb.jpg',130, 188,1,'																			photo_5893016.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[204264] = new gallery(204264,'3347675,3347672,3347671,3347670,3347668,3347667,3347662,3347658,3347655,3347649','Memories Of St Clears','section251496',[3347647,3347649,3347655,3347658,3347662,3347667,3347668,3347670,3347671,3347672,3347675],0, 0, '', '																																																																																																																																	section251496.html',0,1);
				  					galleries[201729] = new gallery(201729,'3310706','Multimedia Exhibition 2009','section248380',[3310706,3310731,3764318,3764320,3764324,3764328,3764331,3764332,3764333,3778745,3778763,4373327,4723148],0, 0, '', '																																																																																																																																	section248380.html',0,1);
				  					galleries[213900] = new gallery(213900,'3497060,3497059,3497057,3497055,3497053,3497052,3497051,3497048,3497046','Stanley Phillips on BBC Wales','section262917',[3497046,3497048,3497051,3497052,3497053,3497055,3497057,3497059,3497060],0, 0, '', '																																																																																																																																	section262917.html',0,1);
				  					galleries[332805] = new gallery(332805,'5893016','Stanley\'s Diary','section398731',[5893016],0, 0, '', '																																																																																																																																	section398731.html',0,1);
				  					galleries[180298] = new gallery(180298,'2910908,2910906,2910720,2910717,2910712,2910709,2910704,2910700,2910697,2910692','Stanley\'s Book','section223889',[2910677,2910686,2910690,2910692,2910697,2910700,2910704,2910709,2910712,2910717,2910720,2910906,2910908],0, 0, '', '																																																																																																																																	section223889.html',0,1);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '5893016,4373327,3778763,3778745,3764333,3764332,3764331,3764328,3764324,3764320,3764318,3497053,3497052,3497046,3347675,3347672,3347671,3347670,3347647,3310731,3310706,2910908,2910906,2910720,2910717,2910712,2910704,2910700,2910692,2910686,2910677';
imageSets[2] = '3310706';
imageSets[3] = '5893016,4723148,4373327,3778763,3778745,3764333,3764332,3764331,3764328,3764324,3764320,3764318,3497060,3497059,3497057,3497055,3497053,3497052,3497051,3497048,3497046,3347675,3347672,3347671,3347670,3347668,3347667,3347662,3347658,3347655,3347649,3347647,3310731,3310706,2910908,2910906,2910720,2910717,2910712,2910709,2910704,2910700,2910697,2910692,2910690,2910686,2910677';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/stellahope/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/stellahope/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/stellahope/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/stellahope/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/stellahope/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/stellahope/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 += 'section262917.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 && 'section262917' != '') {
					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));		}, 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 = 'Stanley Phillips Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      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));    }        
    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>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> 				&pound;' + (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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
				
		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 + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
	temp = temp + '	<input type="hidden" name="item_option" value="' + item_option + '">';
	temp = temp + '	<input type="hidden" name="site" value="STELLAHOPE">';
		temp = temp + '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp = temp + '	<input type="hidden" name="quantity" value="1">';
								temp = temp + '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
			temp = 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 = temp + '</form>';
		temp = temp + '<div class="clearing">&nbsp;</div>';
	temp = temp + '<div id="confirmContainer">';
	temp = temp + '<div id="paymentConfirm">Item added to cart</div>';
	temp = temp + '</div>';
			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;
	}
}

			

