window.thumbnails = new Object();
												thumbnails[3827282] = new thumbnail(3827282,'88936','Performance by Design, Video Installation, 2009 ','Performance1_thumb.jpg',130, 173,15,'photo_3827282.html');
												thumbnails[6460060] = new thumbnail(6460060,'356132','New Arrivals, Poster, Chongqing, China, 2010','nicola_smithPOSTER_thumb.jpg',130, 95,15,'photo_6460060.html');
												thumbnails[7507460] = new thumbnail(7507460,'88959','Ghosts move about me, Chinese Arts Centre, Manchester, 2010','1ghost_nicola_smith_thumb.jpg',130, 83,15,'photo_7507460.html');
												thumbnails[7507645] = new thumbnail(7507645,'88921','Drawing, Emergency Balloon Drop, Greenroom, 2010','draw1_nicola_smith_thumb.jpg',130, 91,15,'photo_7507645.html');
												thumbnails[3827301] = new thumbnail(3827301,'88936','Performance by Design, 2009','Performance3b_thumb.jpg',130, 95,15,'photo_3827301.html');
												thumbnails[6460064] = new thumbnail(6460064,'356132','New Arrivals, Performance, 501 Artspace, China, 2010','nicola_smith_new1_thumb.jpg',130, 87,15,'photo_6460064.html');
												thumbnails[7507568] = new thumbnail(7507568,'88959','Ghosts move about me, Chinese Arts Centre, Manchester, 2010','2ghost_nicola_smith_thumb.jpg',130, 83,15,'photo_7507568.html');
												thumbnails[7507648] = new thumbnail(7507648,'88921','Drawing, Human Maypole, 2010','draw2_nicola_smith_thumb.jpg',130, 90,15,'photo_7507648.html');
												thumbnails[3827284] = new thumbnail(3827284,'88936','Performance by Design, 2009','Performance2_thumb.jpg',130, 98,15,'photo_3827284.html');
												thumbnails[5160569] = new thumbnail(5160569,'88921','DIY 6, Activate the City Wanderer, Liverpool, 2009','diy6_thumb.jpg',130, 174,15,'photo_5160569.html');
												thumbnails[6460071] = new thumbnail(6460071,'356132','It\'s Now or Never, Bosa Novas bar, China, 2010','nicola_smith_bosa_thumb.jpg',130, 87,15,'photo_6460071.html');
												thumbnails[7507624] = new thumbnail(7507624,'88959','Magician, Video, Chinese Arts Centre, Manchester, 2010','3wow_nicola_smith_thumb.jpg',130, 83,15,'photo_7507624.html');
												thumbnails[1246794] = new thumbnail(1246794,'88936','It\'s Now Or Never, Sunderland Degree Show, 2007','ItsNowOrNever1_thumb.jpg',130, 173,15,'photo_1246794.html');
												thumbnails[3393644] = new thumbnail(3393644,'356132','Sandwich Box, Postcard, New Life Berlin Festival, 2008','postcardfront_thumb.jpg',130, 87,15,'photo_3393644.html');
												thumbnails[5328491] = new thumbnail(5328491,'88921','Found illustration, 2009','lite64_thumb.jpg',130, 88,15,'photo_5328491.html');
												thumbnails[7507313] = new thumbnail(7507313,'88959','Miss Eventé, 2010','1event_nicola_smith_thumb.jpg',130, 195,15,'photo_7507313.html');
												thumbnails[7507383] = new thumbnail(7507383,'88953','International Cleaner, Chongqing, China, 2010','clean1_nicola_smith_thumb.jpg',130, 74,15,'photo_7507383.html');
												thumbnails[1247180] = new thumbnail(1247180,'88936','It\'s Now Or Never, Sunderland Degree Show, 2007','ItsNowOrNever2_thumb.jpg',130, 173,15,'photo_1247180.html');
												thumbnails[5328304] = new thumbnail(5328304,'88921','You are here, performance lecture, video still, 2009','pres2_thumb.JPEG',130, 99,15,'photo_5328304.html');
												thumbnails[6463939] = new thumbnail(6463939,'356132','Sandwich Box Project, New Life Berlin Festival, 2008','nicola_smith_san2_thumb.jpg',130, 98,15,'photo_6463939.html');
												thumbnails[7507322] = new thumbnail(7507322,'88959','The Eventé, MA Fine Art, Liverpool JMU Biennial show, 2010','2event_nicola_smith_thumb.jpg',130, 195,15,'photo_7507322.html');
												thumbnails[7507397] = new thumbnail(7507397,'88953','International Cleaner, Chongqing, China, 2010','clean3_nicola_smith_thumb.jpg',130, 73,15,'photo_7507397.html');
												thumbnails[1247197] = new thumbnail(1247197,'88936','It\'s Now Or Never, Sunderland Degree Show, 2007','ItsNowOrNever3_thumb.jpg',130, 173,15,'photo_1247197.html');
												thumbnails[1268884] = new thumbnail(1268884,'88921','Domestic still life series, 2007','dom2_thumb.jpg',130, 98,15,'photo_1268884.html');
												thumbnails[1268886] = new thumbnail(1268886,'88921','Domestic still life series, 2007','dom3_thumb.jpg',130, 98,15,'photo_1268886.html');
												thumbnails[6463949] = new thumbnail(6463949,'356132','Sandwich Box, Poster, New Life Berlin Festival, 2008','nicola_smith_san2b2_thumb.jpg',130, 94,15,'photo_6463949.html');
												thumbnails[7507324] = new thumbnail(7507324,'88959','The Eventé, Ephemera, Liverpool JMU Biennial show, 2010','3event_nicola_smith_thumb.jpg',130, 195,15,'photo_7507324.html');
												thumbnails[7507390] = new thumbnail(7507390,'88953','International Cleaner, Chongqing, China, 2010','clean4_nicola_smith_thumb.jpg',130, 73,15,'photo_7507390.html');
												thumbnails[1247413] = new thumbnail(1247413,'88936','Inspire, Cell Intervention, Video Installation, 2007','CellIntervention1_thumb.jpg',130, 98,15,'photo_1247413.html');
												thumbnails[1268888] = new thumbnail(1268888,'88921','Studio still life series, 2007','dom6_thumb.jpg',130, 98,15,'photo_1268888.html');
												thumbnails[6463980] = new thumbnail(6463980,'356132','On Screen In Street, Flyer, Sunderland, 2007','nicola_smith_on_thumb.jpg',130, 88,15,'photo_6463980.html');
												thumbnails[6464321] = new thumbnail(6464321,'88953','BLOP, My Tunes, Arnolfini, Bristol, 2010','Nicola_SmithA3_thumb.jpg',130, 104,15,'photo_6464321.html');
												thumbnails[6471611] = new thumbnail(6471611,'88959','Departures, Performance & video, Liverpool JMU, 2010','nicola_smith_dep1d_thumb.jpg',130, 91,15,'photo_6471611.html');
												thumbnails[1247438] = new thumbnail(1247438,'88936','Inspire, Cell Intervention, 2007','CellIntervention2_thumb.jpg',130, 131,15,'photo_1247438.html');
												thumbnails[1268889] = new thumbnail(1268889,'88921','Studio still life series, 2007','dom5_thumb.jpg',130, 98,15,'photo_1268889.html');
												thumbnails[6459102] = new thumbnail(6459102,'88953','Fab Lab, Future Everything, Giddy Up \'I\', Manchester, 2010','nicola_smith_fab2_thumb.jpg',130, 98,15,'photo_6459102.html');
												thumbnails[6463997] = new thumbnail(6463997,'356132','On Screen In Street, Video Still, Sunderland, 2007','nicola_smith_base2_thumb.jpg',130, 104,15,'photo_6463997.html');
												thumbnails[6471528] = new thumbnail(6471528,'88959','Departures, Performance & video, Liverpool JMU, 2010','nicola_smith_dep2_thumb.jpg',130, 81,15,'photo_6471528.html');
												thumbnails[1247449] = new thumbnail(1247449,'88936','Inspire, Cell Intervention, 2007','CellIntervention3_thumb.jpg',130, 131,15,'photo_1247449.html');
												thumbnails[6463998] = new thumbnail(6463998,'356132','On Screen In Street, Video Installation, Sunderland, 2007','nicola_smith_base3_thumb.jpg',130, 98,15,'photo_6463998.html');
												thumbnails[6464292] = new thumbnail(6464292,'88953','Cut & Paper Intervention, Liverpool, 2009','nicola_smith_cut_thumb.jpg',130, 95,15,'photo_6464292.html');
												thumbnails[1247483] = new thumbnail(1247483,'88936','New Talent Light box, Untitled, NGCA Sunderland, 2007 ','NGCA1new_thumb.jpg',130, 98,15,'photo_1247483.html');
												thumbnails[2119341] = new thumbnail(2119341,'88936','Minimal With Feeling, 2007','WEBminimal1_thumb.jpg',130, 98,15,'photo_2119341.html');
												thumbnails[2119366] = new thumbnail(2119366,'88936','Minimal With Feeling, 2007','WEBtable2d_thumb.gif',130, 92,15,'photo_2119366.html');
												thumbnails[2305502] = new thumbnail(2305502,'88953','Rival de Loop, Berlin, 2008','WEBdraw4_thumb.jpg',130, 173,15,'photo_2305502.html');
												thumbnails[3827126] = new thumbnail(3827126,'88953','Rival de Loop, Berlin, 2008','Rival2_thumb.jpg',130, 134,15,'photo_3827126.html');
												thumbnails[3827163] = new thumbnail(3827163,'88953','Rival de Loop, Berlin, 2008','Rival1_thumb.jpg',130, 92,15,'photo_3827163.html');
												thumbnails[5328398] = new thumbnail(5328398,'88959','Open Mic, Hope Mill, Pool Arts Exhibition, 2009','openmic2_thumb.jpg',130, 98,15,'photo_5328398.html');
												thumbnails[5328384] = new thumbnail(5328384,'88959','Open Mic, Hope Mill, Pool Arts Exhibition, 2009','openmic1_thumb.jpg',130, 98,15,'photo_5328384.html');
												thumbnails[5328405] = new thumbnail(5328405,'88959','Open Mic, Hope Mill, Pool Arts Exhibition, 2009','openmic3a_thumb.jpg',130, 98,15,'photo_5328405.html');
												thumbnails[2305454] = new thumbnail(2305454,'88953','Futuresonic, Guided Walk, Single Cell Collective, 2008','WEBchalk6_thumb.JPG',130, 98,15,'photo_2305454.html');
												thumbnails[2305456] = new thumbnail(2305456,'88953','Futuresonic, Guided Walk, Single Cell Collective, 2008','WEBchalk7_thumb.jpg',130, 98,15,'photo_2305456.html');
												thumbnails[2305457] = new thumbnail(2305457,'88953','Futuresonic, Guided Walk, Single Cell Collective, 2008','WEBchalk8_thumb.jpg',130, 98,15,'photo_2305457.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[356132] = new gallery(356132,'6460064','Artist Residencies','gallery',[6460060,6460064,6460071,3393644,6463939,6463949,6463980,6463997,6463998],0, 0, '', 'gallery_356132.html',0,0);
				  					galleries[88959] = new gallery(88959,'6471611','Live Art','gallery',[7507460,7507568,7507624,7507313,7507322,7507324,6471611,6471528,5328398,5328384,5328405],0, 0, '', 'gallery_88959.html',0,0);
				  					galleries[88953] = new gallery(88953,'6459102','Urban Interventions','gallery',[7507383,7507397,7507390,6464321,6459102,6464292,2305502,3827126,3827163,2305454,2305456,2305457],0, 0, '', 'gallery_88953.html',0,0);
				  					galleries[88936] = new gallery(88936,'3827301','Installation','gallery',[3827282,3827301,3827284,1246794,1247180,1247197,1247413,1247438,1247449,1247483,2119341,2119366],0, 0, '', 'gallery_88936.html',0,0);
				  					galleries[88921] = new gallery(88921,'7507645','Visual Research','gallery',[7507645,7507648,5160569,5328491,5328304,1268884,1268886,1268888,1268889],0, 0, '', 'gallery_88921.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '6471611';
imageSets[2] = '7507645,6471611,6460064,6459102,3827301';
imageSets[3] = '7507648,7507645,7507624,7507568,7507460,7507397,7507390,7507383,7507324,7507322,7507313,6471611,6471528,6464321,6464292,6463998,6463997,6463980,6463949,6463939,6460071,6460064,6460060,6459102,5328491,5328405,5328398,5328384,5328304,5160569,3827301,3827284,3827282,3827163,3827126,3393644,2305502,2305457,2305456,2305454,2119366,2119341,1268889,1268888,1268886,1268884,1247483,1247449,1247438,1247413';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/nsmith/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/nsmith/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/nsmith/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/nsmith/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www2.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/nsmith/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/nsmith/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 = 'Nicola Smith: ' + 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));      $('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;
	}
}

			

