window.thumbnails = new Object();
												thumbnails[1234942] = new thumbnail(1234942,'88277','Fitou as a baby, born 2006','_MG_3097_thumb.jpg',130, 195,15,'photo_1234942.html');
												thumbnails[1234957] = new thumbnail(1234957,'88275','Moet','_MG_3106_thumb.jpg',130, 195,15,'photo_1234957.html');
												thumbnails[1234967] = new thumbnail(1234967,'88275','','_MG_3107_thumb.jpg',130, 86,15,'photo_1234967.html');
												thumbnails[1234970] = new thumbnail(1234970,'88275','','_MG_3115_thumb.jpg',130, 195,15,'photo_1234970.html');
												thumbnails[1234972] = new thumbnail(1234972,'88275','','_MG_3120_thumb.JPG2.jpg',130, 144,15,'photo_1234972.html');
												thumbnails[1234989] = new thumbnail(1234989,'88276','','_MG_3121_thumb.jpg',130, 195,15,'photo_1234989.html');
												thumbnails[1235049] = new thumbnail(1235049,'88275','Chablis','IMG_3085_thumb.jpg',130, 195,15,'photo_1235049.html');
												thumbnails[1235190] = new thumbnail(1235190,'93521','Rooney, guess why he is called Rooney','_MG_5346_thumb.jpg',130, 224,15,'photo_1235190.html');
												thumbnails[1325392] = new thumbnail(1325392,'93522','All the family on a cold snowy day','_MG_5349_thumb.jpg',130, 87,15,'photo_1325392.html');
												thumbnails[1325396] = new thumbnail(1325396,'88277','Merlot, born 2006, this was after his first shearing 2007','_MG_4506_thumb.jpg',130, 195,15,'photo_1325396.html');
												thumbnails[1325399] = new thumbnail(1325399,'88277','Merlot','_MG_4510_thumb.jpg',130, 195,15,'photo_1325399.html');
												thumbnails[1325401] = new thumbnail(1325401,'88277','Merlot','_MG_4511_thumb.jpg',130, 195,15,'photo_1325401.html');
												thumbnails[1325403] = new thumbnail(1325403,'93521','Gavin','_MG_4512_thumb.jpg',130, 195,15,'photo_1325403.html');
												thumbnails[1325406] = new thumbnail(1325406,'93521','Gavin','_MG_4513_thumb.jpg',130, 195,15,'photo_1325406.html');
												thumbnails[1325408] = new thumbnail(1325408,'93520','Bosley after being sheared','_MG_4515_thumb.jpg',130, 195,15,'photo_1325408.html');
												thumbnails[1325410] = new thumbnail(1325410,'93520','Bosley','_MG_4517_thumb.jpg',130, 195,15,'photo_1325410.html');
												thumbnails[1325412] = new thumbnail(1325412,'93521','Rooney, Gavin and Bosley','_MG_4520_thumb.jpg',130, 87,15,'photo_1325412.html');
												thumbnails[1325413] = new thumbnail(1325413,'93521','Mateus, Matty for short','_MG_4526_thumb.jpg',130, 87,15,'photo_1325413.html');
												thumbnails[1325416] = new thumbnail(1325416,'93521','Rio, after shearing','_MG_4527_thumb.jpg',130, 195,15,'photo_1325416.html');
												thumbnails[1325420] = new thumbnail(1325420,'93521','Gavin','_MG_4528_thumb.jpg',130, 195,15,'photo_1325420.html');
												thumbnails[1325422] = new thumbnail(1325422,'93521','Rio','_MG_4532_thumb.jpg',130, 195,15,'photo_1325422.html');
												thumbnails[1325426] = new thumbnail(1325426,'93521','Rio','_MG_4534_thumb.jpg',130, 282,15,'photo_1325426.html');
												thumbnails[1325436] = new thumbnail(1325436,'88277','','_MG_4535_thumb.jpg',130, 195,15,'photo_1325436.html');
												thumbnails[1325438] = new thumbnail(1325438,'93521','Gavin, our beautiful stud male','_MG_5348_thumb.jpg',130, 102,15,'photo_1325438.html');
												thumbnails[1325440] = new thumbnail(1325440,'93518','Zinfandel and her big brother Bollinger','_MG_5352_thumb.jpg',130, 151,15,'photo_1325440.html');
												thumbnails[1325444] = new thumbnail(1325444,'93520','Bosley, one of our stud males','_MG_5338_thumb.jpg',130, 195,15,'photo_1325444.html');
												thumbnails[1325515] = new thumbnail(1325515,'93518','Barolo','Alapca website_thumb.jpg',130, 195,15,'photo_1325515.html');
												thumbnails[1325528] = new thumbnail(1325528,'93518','Pinot feeling grumpy','_MG_5357_thumb.jpg',130, 96,15,'photo_1325528.html');
												thumbnails[1325529] = new thumbnail(1325529,'93518','Bollinger from the champagne line','_MG_5359_thumb.jpg',130, 116,15,'photo_1325529.html');
												thumbnails[1325531] = new thumbnail(1325531,'93518','Pinot as a baby','_MG_4569_thumb.jpg',130, 195,15,'photo_1325531.html');
												thumbnails[1325532] = new thumbnail(1325532,'93518','Pinot and Bollinger as babies','_MG_4570_thumb.jpg',130, 195,15,'photo_1325532.html');
												thumbnails[1325535] = new thumbnail(1325535,'93518','Moet with Pinot and Barolo (Rolo for short)','_MG_4573_thumb.jpg',130, 87,15,'photo_1325535.html');
												thumbnails[1325536] = new thumbnail(1325536,'93522','Rioja','_MG_4578_thumb.jpg',130, 87,15,'photo_1325536.html');
												thumbnails[1325540] = new thumbnail(1325540,'93518','Carla with Rolo','_MG_4582_thumb.jpg',130, 195,15,'photo_1325540.html');
												thumbnails[1325541] = new thumbnail(1325541,'93518','Bolly again','_MG_4583_thumb.jpg',130, 87,15,'photo_1325541.html');
												thumbnails[1325551] = new thumbnail(1325551,'93518','Rolo as a baby','_MG_4584_thumb.jpg',130, 195,15,'photo_1325551.html');
												thumbnails[1325562] = new thumbnail(1325562,'93518','All brothers together','_MG_4589_thumb.jpg',130, 87,15,'photo_1325562.html');
												thumbnails[1325564] = new thumbnail(1325564,'93518','Brothers again','_MG_4592_thumb.jpg',130, 87,15,'photo_1325564.html');
												thumbnails[1325566] = new thumbnail(1325566,'93518','Chablis, Moet and Rioja with their offspring','_MG_4610_thumb.jpg',130, 87,15,'photo_1325566.html');
												thumbnails[1325568] = new thumbnail(1325568,'93518','','_MG_4558_thumb.jpg',130, 195,15,'photo_1325568.html');
												thumbnails[1993820] = new thumbnail(1993820,'93518','Pinot Noir, so cute','_MG_5296_thumb.jpg',130, 195,15,'photo_1993820.html');
												thumbnails[1993822] = new thumbnail(1993822,'93518','Bordeaux, very friendly big boy','_MG_5298_thumb.jpg',130, 195,15,'photo_1993822.html');
												thumbnails[1993824] = new thumbnail(1993824,'93518','Brothers and sister together','_MG_5301_thumb.jpg',130, 88,15,'photo_1993824.html');
												thumbnails[1993825] = new thumbnail(1993825,'93522','Moet with her son Bolly and Chablis with daughter Zinny','_MG_5305_thumb.jpg',130, 76,15,'photo_1993825.html');
												thumbnails[1993827] = new thumbnail(1993827,'93518','Bordeaux','_MG_5307_thumb.jpg',130, 195,15,'photo_1993827.html');
												thumbnails[1993829] = new thumbnail(1993829,'93518','Bordeaux','_MG_5310_thumb.jpg',130, 195,15,'photo_1993829.html');
												thumbnails[1993830] = new thumbnail(1993830,'93518','Barolo, he has the most enormous eyelashes','_MG_5311_thumb.jpg',130, 195,15,'photo_1993830.html');
												thumbnails[1993832] = new thumbnail(1993832,'93522','Paprika and Rolo','_MG_5315_thumb.jpg',130, 87,15,'photo_1993832.html');
												thumbnails[1993834] = new thumbnail(1993834,'93518','Pinot Noir','_MG_5317_thumb.jpg',130, 152,15,'photo_1993834.html');
												thumbnails[1993835] = new thumbnail(1993835,'93522','Paprika','_MG_5318_thumb.jpg',130, 87,15,'photo_1993835.html');
												thumbnails[1993836] = new thumbnail(1993836,'93518','Pinot Noir','_MG_5319_thumb.jpg',130, 87,15,'photo_1993836.html');
												thumbnails[1993837] = new thumbnail(1993837,'93522','Chablis, Bollinger and Zinfandel (or zinny for short)','_MG_5320_thumb.jpg',130, 87,15,'photo_1993837.html');
												thumbnails[1993838] = new thumbnail(1993838,'93522','Bollinger','_MG_5321_thumb.jpg',130, 98,15,'photo_1993838.html');
												thumbnails[1993840] = new thumbnail(1993840,'93522','Bollinger and Rolo','_MG_5327_thumb.jpg',130, 87,15,'photo_1993840.html');
												thumbnails[1993844] = new thumbnail(1993844,'93521','Rio, he is such a little sweety','_MG_5333_thumb.jpg',130, 203,15,'photo_1993844.html');
												thumbnails[1993851] = new thumbnail(1993851,'88277','Fitou','_MG_5335_thumb.jpg',130, 195,15,'photo_1993851.html');
												thumbnails[1993861] = new thumbnail(1993861,'88277','Fitou (no mistaking him)','_MG_5342_thumb.jpg',130, 195,15,'photo_1993861.html');
												thumbnails[1235054] = new thumbnail(1235054,'93521','Gavin','_MG_5344_thumb.jpg',130, 195,15,'photo_1235054.html');
												thumbnails[1234952] = new thumbnail(1234952,'88277','','_MG_3098_thumb.jpg',130, 195,15,'photo_1234952.html');
												thumbnails[1234954] = new thumbnail(1234954,'88277','','_MG_3099_thumb.jpg',130, 86,15,'photo_1234954.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[93518] = new gallery(93518,'1993822,1325551','Babies Born August 2007','gallery',[1325440,1325515,1325528,1325529,1325531,1325532,1325535,1325540,1325541,1325551,1325562,1325564,1325566,1325568,1993820,1993822,1993824,1993827,1993829,1993830,1993834,1993836],0, 0, '', 'gallery_93518.html',0,0);
				  					galleries[88275] = new gallery(88275,'1234957','Chablis and Moet','gallery',[1234957,1234967,1234970,1234972,1235049],0, 0, '', 'gallery_88275.html',0,0);
				  					galleries[88276] = new gallery(88276,'1234989','Paprika','gallery',[1234989],0, 0, '', 'gallery_88276.html',0,0);
				  					galleries[88277] = new gallery(88277,'1325396,1234942','Fitou and Merlot','gallery',[1234942,1325396,1325399,1325401,1325436,1993851,1993861,1234952,1234954],0, 0, '', 'gallery_88277.html',0,0);
				  					galleries[93520] = new gallery(93520,'1325444,1325410,1325408','Bosley','gallery',[1325408,1325410,1325444],0, 0, '', 'gallery_93520.html',0,0);
				  					galleries[93521] = new gallery(93521,'1993844,1325422','Boys','gallery',[1235190,1325403,1325406,1325412,1325413,1325416,1325420,1325422,1325426,1325438,1993844,1235054],0, 0, '', 'gallery_93521.html',0,0);
				  					galleries[93522] = new gallery(93522,'1325536,1325392','Girls','gallery',[1325392,1325536,1993825,1993832,1993835,1993837,1993838,1993840],0, 0, '', 'gallery_93522.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '1993844,1993840,1993822,1325406,1325401,1325396,1325392,1235049,1234989,1234972,1234970,1234967,1234957,1234942';
imageSets[2] = '1993844,1993822,1325551,1325536,1325422,1325396,1325392,1234957,1234942';
imageSets[3] = '1993861,1993851,1993844,1993840,1993838,1993837,1993836,1993835,1993834,1993832,1993830,1993829,1993827,1993825,1993824,1993822,1993820,1325568,1325566,1325564,1325562,1325551,1325541,1325540,1325536,1325535,1325532,1325531,1325529,1325528,1325515,1325444,1325440,1325438,1325436,1325426,1325422,1325420,1325416,1325413,1325412,1325410,1325408,1325406,1325403,1325401,1325399,1325396,1325392,1235190';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/winealpacas/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/winealpacas/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 = 'Summer Wine Alpacas: ' + 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;
	}
}

			

