window.thumbnails = {};
thumbnails[7395061] = clik.newPhoto({"link":"#","caption":"","height":92,"id":7395061,"server_id":31,"src":"_Blue_dish_1_thumb.jpg","galleries_id":"","width":130});
thumbnails[7395036] = clik.newPhoto({"link":"#","caption":"","height":92,"id":7395036,"server_id":31,"src":"Blue_dish_detail_2_thumb.jpg","galleries_id":"","width":130});
thumbnails[7395026] = clik.newPhoto({"link":"#","caption":"","height":93,"id":7395026,"server_id":31,"src":"blue_dish_thumb.jpg","galleries_id":"","width":130});
thumbnails[7542681] = clik.newPhoto({"link":"photo_7542681.html","caption":"","height":98,"id":7542681,"server_id":31,"src":"SDC10129_thumb.JPG","galleries_id":408943,"width":130});
thumbnails[7542688] = clik.newPhoto({"link":"photo_7542688.html","caption":"","height":101,"id":7542688,"server_id":31,"src":"SDC10131_thumb.JPG","galleries_id":408943,"width":130});
thumbnails[8776402] = clik.newPhoto({"link":"photo_8776402.html","caption":"","height":72,"id":8776402,"server_id":31,"src":"Acid_logo_for_gallery_section_of_website_thumb.jpg","galleries_id":462105,"width":130});
thumbnails[7398662] = clik.newPhoto({"link":"photo_7398662.html","caption":"","height":101,"id":7398662,"server_id":31,"src":"Large_daisy_curve_thumb.jpg","galleries_id":400629,"width":130});
thumbnails[7398796] = clik.newPhoto({"link":"photo_7398796.html","caption":"","height":104,"id":7398796,"server_id":31,"src":"40cm_Wave_platter_thumb.jpg","galleries_id":398524,"width":130});
thumbnails[7399092] = clik.newPhoto({"link":"photo_7399092.html","caption":"","height":98,"id":7399092,"server_id":31,"src":"The_stillness_of_west_stow_thumb.jpg","galleries_id":398525,"width":130});
thumbnails[7399262] = clik.newPhoto({"link":"photo_7399262.html","caption":"","height":92,"id":7399262,"server_id":31,"src":"30cm_Platter_thumb.jpg","galleries_id":400675,"width":130});
thumbnails[7542598] = clik.newPhoto({"link":"photo_7542598.html","caption":"","height":74,"id":7542598,"server_id":31,"src":"SDC10107_thumb.JPG","galleries_id":408943,"width":130});
thumbnails[7398681] = clik.newPhoto({"link":"photo_7398681.html","caption":"","height":98,"id":7398681,"server_id":31,"src":"Daisy_detail_thumb.jpg","galleries_id":400629,"width":130});
thumbnails[7398792] = clik.newPhoto({"link":"photo_7398792.html","caption":"","height":259,"id":7398792,"server_id":31,"src":"Nautical_detail_thumb.jpg","galleries_id":398524,"width":130});
thumbnails[7399009] = clik.newPhoto({"link":"photo_7399009.html","caption":"","height":90,"id":7399009,"server_id":31,"src":"SDC10109_thumb.JPG","galleries_id":408943,"width":130});
thumbnails[7399082] = clik.newPhoto({"link":"photo_7399082.html","caption":"","height":98,"id":7399082,"server_id":31,"src":"The_stillness_of_west_stow_2_thumb.jpg","galleries_id":398525,"width":130});
thumbnails[7399267] = clik.newPhoto({"link":"photo_7399267.html","caption":"","height":92,"id":7399267,"server_id":31,"src":"Rectangular_Dish_thumb.jpg","galleries_id":400675,"width":130});
thumbnails[7398690] = clik.newPhoto({"link":"photo_7398690.html","caption":"","height":99,"id":7398690,"server_id":31,"src":"40cm_daisy_plate_thumb.jpg","galleries_id":400629,"width":130});
thumbnails[7398819] = clik.newPhoto({"link":"photo_7398819.html","caption":"","height":151,"id":7398819,"server_id":31,"src":"SDC10087_thumb.JPG","galleries_id":408943,"width":130});
thumbnails[7398823] = clik.newPhoto({"link":"photo_7398823.html","caption":"","height":98,"id":7398823,"server_id":31,"src":"In_the_mist_1_thumb.jpg","galleries_id":398525,"width":130});
thumbnails[7399272] = clik.newPhoto({"link":"photo_7399272.html","caption":"","height":92,"id":7399272,"server_id":31,"src":"Various_Designs_thumb.jpg","galleries_id":400675,"width":130});
thumbnails[7398802] = clik.newPhoto({"link":"photo_7398802.html","caption":"","height":181,"id":7398802,"server_id":31,"src":"Wall_plaques_thumb.jpg","galleries_id":398524,"width":130});
thumbnails[7542846] = clik.newPhoto({"link":"photo_7542846.html","caption":"","height":68,"id":7542846,"server_id":31,"src":"SDC10141_thumb.JPG","galleries_id":408943,"width":130});
thumbnails[7398725] = clik.newPhoto({"link":"photo_7398725.html","caption":"","height":98,"id":7398725,"server_id":31,"src":"34cm_Spiral_leaf_bowl_thumb.jpg","galleries_id":408943,"width":130});
thumbnails[7398733] = clik.newPhoto({"link":"photo_7398733.html","caption":"","height":88,"id":7398733,"server_id":31,"src":"40cm_floral_platter_thumb.jpg","galleries_id":400629,"width":130});
thumbnails[7398740] = clik.newPhoto({"link":"photo_7398740.html","caption":"","height":98,"id":7398740,"server_id":31,"src":"25cm_tulip_plate_thumb.jpg","galleries_id":400629,"width":130});
thumbnails[7399046] = clik.newPhoto({"link":"photo_7399046.html","caption":"","height":253,"id":7399046,"server_id":31,"src":"Sunrise_thumb.jpg","galleries_id":398525,"width":130});
thumbnails[7399290] = clik.newPhoto({"link":"photo_7399290.html","caption":"","height":98,"id":7399290,"server_id":31,"src":"20cm_rose_plate_and_9cm_coasters_thumb.jpg","galleries_id":400675,"width":130});
thumbnails[7399292] = clik.newPhoto({"link":"photo_7399292.html","caption":"","height":98,"id":7399292,"server_id":31,"src":"20cm_plate_and_9cm_coasters_thumb.jpg","galleries_id":408943,"width":130});
thumbnails[7398756] = clik.newPhoto({"link":"photo_7398756.html","caption":"","height":98,"id":7398756,"server_id":31,"src":"195cm_x_45cm_Triptych_thumb.jpg","galleries_id":400629,"width":130});
thumbnails[7398799] = clik.newPhoto({"link":"photo_7398799.html","caption":"","height":98,"id":7398799,"server_id":31,"src":"Curve_thumb.jpg","galleries_id":408943,"width":130});
thumbnails[7399060] = clik.newPhoto({"link":"photo_7399060.html","caption":"","height":173,"id":7399060,"server_id":31,"src":"Abstraction_thumb.jpg","galleries_id":398525,"width":130});
thumbnails[7398743] = clik.newPhoto({"link":"photo_7398743.html","caption":"","height":98,"id":7398743,"server_id":31,"src":"detail_thumb.jpg","galleries_id":400629,"width":130});
thumbnails[7399050] = clik.newPhoto({"link":"photo_7399050.html","caption":"","height":146,"id":7399050,"server_id":31,"src":"Portal_thumb.jpg","galleries_id":398525,"width":130});
thumbnails[7398765] = clik.newPhoto({"link":"photo_7398765.html","caption":"","height":98,"id":7398765,"server_id":31,"src":"Table_top_sections_thumb.jpg","galleries_id":400629,"width":130});
thumbnails[7398759] = clik.newPhoto({"link":"photo_7398759.html","caption":"","height":98,"id":7398759,"server_id":31,"src":"Table_top_detail_thumb.jpg","galleries_id":400629,"width":130});
thumbnails[7399280] = clik.newPhoto({"link":"photo_7399280.html","caption":"","height":123,"id":7399280,"server_id":31,"src":"SDC10121_thumb.JPG","galleries_id":408943,"width":130});
thumbnails[7399314] = clik.newPhoto({"link":"photo_7399314.html","caption":"","height":129,"id":7399314,"server_id":31,"src":"SDC10120_thumb.JPG","galleries_id":408943,"width":130});
thumbnails[7399311] = clik.newPhoto({"link":"photo_7399311.html","caption":"","height":127,"id":7399311,"server_id":31,"src":"SDC10118_thumb.JPG","galleries_id":408943,"width":130});
thumbnails[7399317] = clik.newPhoto({"link":"photo_7399317.html","caption":"","height":132,"id":7399317,"server_id":31,"src":"SDC10119_thumb.JPG","galleries_id":408943,"width":130});
thumbnails[7399308] = clik.newPhoto({"link":"photo_7399308.html","caption":"","height":173,"id":7399308,"server_id":31,"src":"9cm_tulip_coasters_thumb.jpg","galleries_id":408943,"width":130});
thumbnails[7542677] = clik.newPhoto({"link":"photo_7542677.html","caption":"","height":98,"id":7542677,"server_id":31,"src":"SDC10126_thumb.JPG","galleries_id":408943,"width":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
galleries[462105] = clik.newGallery({"photoIDs":[8776402],"link":"gallery_462105.html","skipIndex":0,"section_code":"gallery","id":462105,"parentGallery":"","featured_images":8776402,"maxRecords":0,"usePopups":false,"singleSection":false,"title":"acid logo"});galleries[400629] = clik.newGallery({"photoIDs":[7398662,7398681,7398690,7398733,7398740,7398756,7398743,7398765,7398759],"link":"gallery_400629.html","skipIndex":0,"section_code":"gallery","id":400629,"parentGallery":"","featured_images":7398662,"maxRecords":0,"usePopups":false,"singleSection":false,"title":"Gallery 1 Botanical "});galleries[400675] = clik.newGallery({"photoIDs":[7399262,7399267,7399272,7399290],"link":"gallery_400675.html","skipIndex":0,"section_code":"gallery","id":400675,"parentGallery":"","featured_images":"7399290,7399272,7399267,7399262","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Gallery 2 Bowls, platters, coasters"});galleries[398524] = clik.newGallery({"photoIDs":[7398796,7398792,7398802],"link":"gallery_398524.html","skipIndex":0,"section_code":"gallery","id":398524,"parentGallery":"","featured_images":"7398802,7398796,7398792","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Gallery 3 Nautical"});galleries[398525] = clik.newGallery({"photoIDs":[7399092,7399082,7398823,7399046,7399060,7399050],"link":"gallery_398525.html","skipIndex":0,"section_code":"gallery","id":398525,"parentGallery":"","featured_images":"7399092,7399082,7399060,7399050,7399046,7398823","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Gallery 4 woodlands and Landscapes"});galleries[408943] = clik.newGallery({"photoIDs":[7542681,7542688,7542598,7399009,7398819,7542846,7398725,7399292,7398799,7399280,7399314,7399311,7399317,7399308,7542677],"link":"gallery_408943.html","skipIndex":0,"section_code":"gallery","id":408943,"parentGallery":"","featured_images":"7542846,7542688,7542681,7542677,7542598,7399317,7399314,7399311,7399308,7399292","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Available work"});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[3] = '8776402,7542846,7542688,7542681,7542677,7542598,7399317,7399314,7399311,7399308,7399292,7399290,7399280,7399272,7399267,7399262,7399092,7399082,7399060,7399050,7399046,7399009,7398823,7398819,7398802,7398799,7398796,7398792,7398765,7398759,7398756,7398743,7398740,7398733,7398725,7398690,7398681,7398662,7395061,7395036,7395026';
imageSets[2] = '7398662';
imageSets[1] = '7395061,7395036,7395026';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ginny03/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ginny03/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ginny03/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ginny03/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ginny03/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/ginny03/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/ginny03/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ginny03/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 = 'virginia wright: ' + 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> ' + (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 += '<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;
	}
}

		

