window.thumbnails = {};
															thumbnails[5524725] = clik.newPhoto({"id":5524725,"src":"Autumn__Sangomore_screenprint_thumb.jpg","galleries_id":312596,"server_id":5,"link":"photo_5524725.html","width":130,"caption":"Autumn- Sangomore","height":167});
															thumbnails[5524745] = clik.newPhoto({"id":5524745,"src":"Blue_moon_and_Yellow_Gorse_thumb.jpg","galleries_id":312596,"server_id":5,"link":"photo_5524745.html","width":130,"caption":"Blue Moon and Yellow Gorse","height":264});
															thumbnails[5524764] = clik.newPhoto({"id":5524764,"src":"Trout__in__the__Shallows_thumb.jpg","galleries_id":312596,"server_id":5,"link":"photo_5524764.html","width":130,"caption":"Trout in the Shallows","height":131});
															thumbnails[5528255] = clik.newPhoto({"id":5528255,"src":"Wild__Irises2_thumb.jpg","galleries_id":312596,"server_id":5,"link":"photo_5528255.html","width":130,"caption":"Wild Irises2","height":205});
															thumbnails[6693551] = clik.newPhoto({"id":6693551,"src":"Cattle_on_2nd_beach_thumb.jpg","galleries_id":312015,"server_id":5,"link":"photo_6693551.html","width":130,"caption":"Balnakeil Cattle on the Second Beach.","height":95});
															thumbnails[7536126] = clik.newPhoto({"id":7536126,"src":"T._Ducks_on_Lake_thumb.jpg","galleries_id":312016,"server_id":5,"link":"photo_7536126.html","width":130,"caption":"Ducks on Lake Ellidvatn.","height":148});
															thumbnails[7755344] = clik.newPhoto({"id":7755344,"src":"Three_curlews_thumb.jpg","galleries_id":312015,"server_id":5,"link":"photo_7755344.html","width":130,"caption":"Three Curlews","height":131});
															thumbnails[8323487] = clik.newPhoto({"id":8323487,"src":"Blue_Green_Waterfall_thumb.jpg","galleries_id":441537,"server_id":5,"link":"photo_8323487.html","width":130,"caption":"Blue Green Waterfall","height":225});
															thumbnails[8323491] = clik.newPhoto({"id":8323491,"src":"Golden_Waterfall_thumb.jpg","galleries_id":441537,"server_id":5,"link":"photo_8323491.html","width":130,"caption":"Golden Waterfall","height":72});
															thumbnails[8323492] = clik.newPhoto({"id":8323492,"src":"Icelandic_Waterfall_thumb.jpg","galleries_id":441537,"server_id":5,"link":"photo_8323492.html","width":130,"caption":"Icelandic Waterfall","height":348});
															thumbnails[8323500] = clik.newPhoto({"id":8323500,"src":"Icelandic_Waterfall2_thumb.jpg","galleries_id":441537,"server_id":5,"link":"photo_8323500.html","width":130,"caption":"Icelandic Waterfall 2","height":422});
															thumbnails[8323523] = clik.newPhoto({"id":8323523,"src":"Sutherland_Waterfall_thumb.jpg","galleries_id":441537,"server_id":5,"link":"photo_8323523.html","width":130,"caption":"Sutherland Waterfall","height":231});
															thumbnails[8383323] = clik.newPhoto({"id":8383323,"src":"100_0751_thumb.jpg","galleries_id":312015,"server_id":5,"link":"photo_8383323.html","width":130,"caption":"Oystercatchers at Low Tide","height":72});
															thumbnails[8383396] = clik.newPhoto({"id":8383396,"src":"Lupins_at_Lake_Ellivatn_thumb.jpg","galleries_id":312016,"server_id":5,"link":"photo_8383396.html","width":130,"caption":"Lupins at Lake Ellidvatn","height":98});
															thumbnails[8392417] = clik.newPhoto({"id":8392417,"src":"100_0756_thumb.jpg","galleries_id":312016,"server_id":5,"link":"photo_8392417.html","width":130,"caption":"Winter Garden Window","height":168});
															thumbnails[8668302] = clik.newPhoto({"id":8668302,"src":"100_0849_thumb.JPG","galleries_id":312016,"server_id":5,"link":"photo_8668302.html","width":130,"caption":"Swans on a Moonlit Lake","height":98});
															thumbnails[8668305] = clik.newPhoto({"id":8668305,"src":"100_0650_thumb.jpg","galleries_id":312015,"server_id":5,"link":"photo_8668305.html","width":130,"caption":"Foxglove Summer","height":168});
															thumbnails[8697453] = clik.newPhoto({"id":8697453,"src":"Coldcrestcompr._thumb.JPG","galleries_id":312015,"server_id":5,"link":"photo_8697453.html","width":130,"caption":"Goldcrest","height":98});
															thumbnails[9037090] = clik.newPhoto({"id":9037090,"src":"100_0930_thumb.JPG","galleries_id":312015,"server_id":5,"link":"photo_9037090.html","width":130,"caption":"\"Through the Beallach\"","height":104});
															thumbnails[9090523] = clik.newPhoto({"id":9090523,"src":"100_1092_thumb1_1.JPG","galleries_id":312016,"server_id":5,"link":"photo_9090523.html","width":130,"caption":"Winter Garden","height":93});
															thumbnails[9153640] = clik.newPhoto({"id":9153640,"src":"100_1122_thumb.JPG","galleries_id":312016,"server_id":5,"link":"photo_9153640.html","width":130,"caption":"Last of the Snow","height":98});
															thumbnails[9153686] = clik.newPhoto({"id":9153686,"src":"100_1120_thumb.JPG","galleries_id":312015,"server_id":5,"link":"photo_9153686.html","width":130,"caption":"Boats in the Noust","height":127});
															thumbnails[9173252] = clik.newPhoto({"id":9173252,"src":"Bal._Cattle.Web_1_thumb.JPG","galleries_id":312015,"server_id":5,"link":"photo_9173252.html","width":130,"caption":"Balnakeil Church and Cattle 2","height":175});
															thumbnails[9173429] = clik.newPhoto({"id":9173429,"src":"N._Lights1_1_thumb.JPG","galleries_id":484535,"server_id":5,"link":"photo_9173429.html","width":130,"caption":"Northern Lights 1","height":149});
															thumbnails[9173448] = clik.newPhoto({"id":9173448,"src":"N._Lights2_1_thumb.JPG","galleries_id":484535,"server_id":5,"link":"photo_9173448.html","width":130,"caption":"Northern Lights 2","height":102});
															thumbnails[9173452] = clik.newPhoto({"id":9173452,"src":"N._Lights_4_thumb.JPG","galleries_id":484535,"server_id":5,"link":"photo_9173452.html","width":130,"caption":"Northern Lights 3","height":159});
															thumbnails[9173476] = clik.newPhoto({"id":9173476,"src":"Almost_Home_1_thumb.JPG","galleries_id":484535,"server_id":5,"link":"photo_9173476.html","width":130,"caption":"Almost Home","height":98});
															thumbnails[9173488] = clik.newPhoto({"id":9173488,"src":"Frozen_Lake-Northern_Lights_1_thumb.JPG","galleries_id":484535,"server_id":5,"link":"photo_9173488.html","width":130,"caption":"Frozen Lake- Northern Lights","height":100});
															thumbnails[9176066] = clik.newPhoto({"id":9176066,"src":"Frozen_Lake_-Northern_Lights_3_thumb.JPG","galleries_id":484535,"server_id":5,"link":"photo_9176066.html","width":130,"caption":"Frozen Lake- Northern Lights 2","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[484535] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Northern Lights","link":"gallery_484535.html","maxRecords":0.0,"photoIDs":[9173429.0,9173448.0,9173452.0,9173476.0,9173488.0,9176066.0],"skipIndex":0,"section_code":"gallery","featured_images":"9176066,9173488,9173476,9173452,9173448,9173429","id":484535,"singleSection":false});				  						galleries[441537] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Waterfalls","link":"gallery_441537.html","maxRecords":0.0,"photoIDs":[8323487.0,8323491.0,8323492.0,8323500.0,8323523.0],"skipIndex":0,"section_code":"gallery","featured_images":"8323523,8323500,8323492,8323491,8323487","id":441537,"singleSection":false});				  						galleries[312015] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sutherland","link":"gallery_312015.html","maxRecords":0.0,"photoIDs":[6693551.0,7755344.0,8383323.0,8668305.0,8697453.0,9037090.0,9153686.0,9173252.0],"skipIndex":0,"section_code":"gallery","featured_images":"9173252,9153686,9037090,8697453,8668305,8383323,7755344,6693551","id":312015,"singleSection":false});				  						galleries[312016] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Iceland","link":"gallery_312016.html","maxRecords":0.0,"photoIDs":[7536126.0,8383396.0,8392417.0,8668302.0,9090523.0,9153640.0],"skipIndex":0,"section_code":"gallery","featured_images":"9153640,9090523,8668302,8392417,8383396,7536126","id":312016,"singleSection":false});				  						galleries[312596] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Handmade Prints","link":"gallery_312596.html","maxRecords":0.0,"photoIDs":[5524725.0,5524745.0,5524764.0,5528255.0],"skipIndex":0,"section_code":"gallery","featured_images":"5528255,5524764,5524745,5524725","id":312596,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9176066,9173488,9173476,9173452,9173448,9173429,9173252,9153686,9153640,9090523,9037090,8697453,8668305,8668302,8392417,8383396,8383323,8323523,8323500,8323492,8323491,8323487,7755344,7536126,6693551,5528255,5524764,5524745,5524725';
imageSets[3] = '9176066,9173488,9173476,9173452,9173448,9173429,9173252,9153686,9153640,9090523,9037090,8697453,8668305,8668302,8392417,8383396,8383323,8323523,8323500,8323492,8323491,8323487,7755344,7536126,6693551,5528255,5524764,5524745,5524725';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Ishmac/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Ishmac/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 = 'Ishbel Macdonald Paintings and Prints: ' + 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> &pound;' + (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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="ishbelmacdonald@yahoo.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="ishbelmacdonald@yahoo.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

