window.thumbnails = {};
															thumbnails[5386712] = clik.newPhoto({"id":5386712,"src":"simongriffithssculpture-8_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":97});
															thumbnails[5386789] = clik.newPhoto({"id":5386789,"src":"simongriffithssculpture-2_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386789.html","width":130,"caption":"Heron ","height":97});
															thumbnails[5386793] = clik.newPhoto({"id":5386793,"src":"simongriffithssculpture-1_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386793.html","width":130,"caption":"Fox Asleep","height":97});
															thumbnails[5386832] = clik.newPhoto({"id":5386832,"src":"simongriffithssculpture-4_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386832.html","width":130,"caption":"Wren Pair","height":97});
															thumbnails[5386843] = clik.newPhoto({"id":5386843,"src":"simongriffithssculpture-5_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386843.html","width":130,"caption":"Badger Pair","height":97});
															thumbnails[5386902] = clik.newPhoto({"id":5386902,"src":"simongriffithssculpture-6_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386902.html","width":130,"caption":"Ptarmigan Pair","height":97});
															thumbnails[5386914] = clik.newPhoto({"id":5386914,"src":"simongriffithssculpture-91_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386914.html","width":130,"caption":"Magpie Tail-up","height":174});
															thumbnails[5386921] = clik.newPhoto({"id":5386921,"src":"simongriffithssculpture-11_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386921.html","width":130,"caption":"Curlew","height":97});
															thumbnails[5386925] = clik.newPhoto({"id":5386925,"src":"simongriffithssculpture-12_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386925.html","width":130,"caption":"Songthrush","height":97});
															thumbnails[5386928] = clik.newPhoto({"id":5386928,"src":"simongriffithssculpture-13_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386928.html","width":130,"caption":"Eagle Owl Sleepy","height":174});
															thumbnails[5386947] = clik.newPhoto({"id":5386947,"src":"simongriffithssculpture-14_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386947.html","width":130,"caption":"Peregrine Falcon","height":174});
															thumbnails[5386952] = clik.newPhoto({"id":5386952,"src":"simongriffithssculpture-15_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386952.html","width":130,"caption":"Eagle Owl","height":174});
															thumbnails[5386960] = clik.newPhoto({"id":5386960,"src":"simongriffithssculpture-16_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386960.html","width":130,"caption":"Barn Owl in Flight","height":174});
															thumbnails[5386965] = clik.newPhoto({"id":5386965,"src":"simongriffithssculpture-17_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386965.html","width":130,"caption":"Flying Crow 1","height":97});
															thumbnails[5386977] = clik.newPhoto({"id":5386977,"src":"SimonGriffithsNov09-255_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386977.html","width":130,"caption":"Flying Crow 2","height":97});
															thumbnails[5386978] = clik.newPhoto({"id":5386978,"src":"simongriffithssculpture-19_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386978.html","width":130,"caption":"Flying Lapwing","height":174});
															thumbnails[5386980] = clik.newPhoto({"id":5386980,"src":"simongriffithssculpture-20_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386980.html","width":130,"caption":"Flying Dove","height":174});
															thumbnails[5386982] = clik.newPhoto({"id":5386982,"src":"simongriffithssculpture-21_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386982.html","width":130,"caption":"Ferruginous Hawk Full Length ","height":210});
															thumbnails[5386985] = clik.newPhoto({"id":5386985,"src":"simongriffithssculpture-22_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386985.html","width":130,"caption":"Ferruginous Hawk Head","height":168});
															thumbnails[5386987] = clik.newPhoto({"id":5386987,"src":"simongriffithssculpture-23_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386987.html","width":130,"caption":"Red Kite Full Length","height":174});
															thumbnails[5386992] = clik.newPhoto({"id":5386992,"src":"simongriffithssculpture-24_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386992.html","width":130,"caption":"Red Kite Head","height":174});
															thumbnails[5386994] = clik.newPhoto({"id":5386994,"src":"simongriffithssculpture-25_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386994.html","width":130,"caption":"Grouse Pair","height":174});
															thumbnails[5386998] = clik.newPhoto({"id":5386998,"src":"simongriffithssculpture-26_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5386998.html","width":130,"caption":"Wolf Head","height":174});
															thumbnails[5387001] = clik.newPhoto({"id":5387001,"src":"simongriffithssculpture-27_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387001.html","width":130,"caption":"Barn Owl Roosting","height":174});
															thumbnails[5387013] = clik.newPhoto({"id":5387013,"src":"simongriffithssculpture-28_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387013.html","width":130,"caption":" Five Flying Crows","height":80});
															thumbnails[5387018] = clik.newPhoto({"id":5387018,"src":"simongriffithssculpture-29_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387018.html","width":130,"caption":"Raven","height":97});
															thumbnails[5387024] = clik.newPhoto({"id":5387024,"src":"simongriffithssculpture-30_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387024.html","width":130,"caption":"Boar Head","height":97});
															thumbnails[5387034] = clik.newPhoto({"id":5387034,"src":"simongriffithssculpture-31_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387034.html","width":130,"caption":"Black Grouse Pair","height":97});
															thumbnails[5387039] = clik.newPhoto({"id":5387039,"src":"simongriffithssculpture-32_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387039.html","width":130,"caption":"Little Owl","height":174});
															thumbnails[5387041] = clik.newPhoto({"id":5387041,"src":"simongriffithssculpture-33_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387041.html","width":130,"caption":"Barn Owl Perched","height":174});
															thumbnails[5387042] = clik.newPhoto({"id":5387042,"src":"simongriffithssculpture-34_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387042.html","width":130,"caption":"Little Owl Pair","height":98});
															thumbnails[5387058] = clik.newPhoto({"id":5387058,"src":"simongriffithssculpture-35_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387058.html","width":130,"caption":"Tawny Owl Roosting","height":98});
															thumbnails[5387066] = clik.newPhoto({"id":5387066,"src":"simongriffithssculpture-37_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387066.html","width":130,"caption":"Kestrel Roosting","height":173});
															thumbnails[5387146] = clik.newPhoto({"id":5387146,"src":"simongriffithssculpture-38_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387146.html","width":130,"caption":"Little Owl Round","height":97});
															thumbnails[5387155] = clik.newPhoto({"id":5387155,"src":"simongriffithssculpture-39_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387155.html","width":130,"caption":"Blackbird","height":87});
															thumbnails[5387158] = clik.newPhoto({"id":5387158,"src":"simongriffithssculpture-40_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5387158.html","width":130,"caption":"Puffin","height":174});
															thumbnails[5458632] = clik.newPhoto({"id":5458632,"src":"Birds-1001_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5458632.html","width":130,"caption":"Little owl pair on twisting branch","height":98});
															thumbnails[5458636] = clik.newPhoto({"id":5458636,"src":"Birds-2002_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_5458636.html","width":130,"caption":"Peregrin in flight","height":165});
															thumbnails[7739094] = clik.newPhoto({"id":7739094,"src":"badger_Simon_Griffirths_thumb.jpg","galleries_id":303929,"server_id":5,"link":"photo_7739094.html","width":130,"caption":"Badger","height":90});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[303929] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photo Gallery","link":"gallery.html","maxRecords":0.0,"photoIDs":[5386789.0,5386793.0,5386832.0,5386843.0,5386902.0,5386914.0,5386921.0,5386925.0,5386928.0,5386947.0,5386952.0,5386960.0,5386965.0,5386977.0,5386978.0,5386980.0,5386982.0,5386985.0,5386987.0,5386992.0,5386994.0,5386998.0,5387001.0,5387013.0,5387018.0,5387024.0,5387034.0,5387039.0,5387041.0,5387042.0,5387058.0,5387066.0,5387146.0,5387155.0,5387158.0,5458632.0,5458636.0,7739094.0],"skipIndex":0,"section_code":"gallery","featured_images":"7739094,5458636,5458632,5387158,5387155,5387146,5387066,5387058,5387042,5387041","id":303929,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5386712';
imageSets[3] = '7739094,5458636,5458632,5387158,5387155,5387146,5387066,5387058,5387042,5387041,5387039,5387034,5387024,5387018,5387013,5387001,5386998,5386994,5386992,5386987,5386985,5386982,5386980,5386978,5386977,5386965,5386960,5386952,5386947,5386928,5386925,5386921,5386914,5386902,5386843,5386832,5386793,5386789,5386712';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/simongriffiths/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/simongriffiths/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Simon Griffiths Sculpture Ltd: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> AU$' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		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 += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

