window.thumbnails = new Object();
												thumbnails[6007608] = new thumbnail(6007608,'338229','The Fishermans Secret','The-Fishermans-Secret-_thumb.jpg',130, 81,5,'							photo_6007608.html');
												thumbnails[6007642] = new thumbnail(6007642,'338229','Pretty Wrecked','Pretty-Wrecked-_thumb.jpg',130, 74,5,'							photo_6007642.html');
												thumbnails[6007648] = new thumbnail(6007648,'338229','Painted Sunset','DSC_0087-paint-pallette_thumb.jpg',130, 86,5,'							photo_6007648.html');
												thumbnails[6007671] = new thumbnail(6007671,'338229','Hades Landing','Hades-Landing_thumb.jpg',130, 92,5,'							photo_6007671.html');
												thumbnails[6007674] = new thumbnail(6007674,'338229','One Fell Over','One_Fell_Over_thumb.jpg',130, 89,5,'							photo_6007674.html');
												thumbnails[6007678] = new thumbnail(6007678,'338229','Waiting for Summer','Waiting-For-Summer_thumb.jpg',130, 87,5,'							photo_6007678.html');
												thumbnails[6007682] = new thumbnail(6007682,'338229','The Wishing Stone','The-Wishing-Stone-_thumb.jpg',130, 83,5,'							photo_6007682.html');
												thumbnails[6007683] = new thumbnail(6007683,'338229','Pen-Ole-Y-Wern','Pen-Ole-y-Wern-_thumb.jpg',130, 83,5,'							photo_6007683.html');
												thumbnails[6007721] = new thumbnail(6007721,'338229','Wind Power','Sun-Tower-_thumb.jpg',130, 217,5,'							photo_6007721.html');
												thumbnails[6007744] = new thumbnail(6007744,'338230','Pier Head','DSC_0046-FS-Pier-Head-2-_thumb.jpg',130, 94,5,'							photo_6007744.html');
												thumbnails[6007746] = new thumbnail(6007746,'338230','Dark Ages','Dark-Age-B--W_thumb.jpg',130, 86,5,'							photo_6007746.html');
												thumbnails[6009476] = new thumbnail(6009476,'338229','Derwent with a twist','Dewent---View-With-a-Twist-_thumb.jpg',130, 131,5,'							photo_6009476.html');
												thumbnails[6079239] = new thumbnail(6079239,'338230','New Brighton Rock','New-Brighton-Rock_thumb.jpg',130, 86,5,'							photo_6079239.html');
												thumbnails[7233164] = new thumbnail(7233164,'338229','Time To Reflect ','Time-To-Reflect--_thumb.jpg',160, 104,5,'							photo_7233164.html');
												thumbnails[7233169] = new thumbnail(7233169,'338229','Ice Ripples','Ice-Ripples_thumb.jpg',160, 97,5,'							photo_7233169.html');
												thumbnails[7233171] = new thumbnail(7233171,'338229','The Icing On The Cake ','The-Icing-On-The-Cake_thumb.jpg',160, 98,5,'							photo_7233171.html');
												thumbnails[7233177] = new thumbnail(7233177,'338229','Life On Mars ','Life-On-Mars_thumb.jpg',160, 106,5,'							photo_7233177.html');
												thumbnails[7233186] = new thumbnail(7233186,'338229','Loch Sheil Longing','Loch-Sheil-Longing-FS_thumb.jpg',160, 107,5,'							photo_7233186.html');
												thumbnails[7233307] = new thumbnail(7233307,'338229','Mersey Lights','11_thumb.05-pm-at-The-Three-Grace1.jpg',160, 91,19,'							photo_7233307.html');
												thumbnails[7233309] = new thumbnail(7233309,'338229','Black Rock Cottage ','Big-Storm-At-Black-Rock_thumb.jpg',160, 106,5,'							photo_7233309.html');
												thumbnails[7233310] = new thumbnail(7233310,'338229','Talacre Dusk','Distant-Light-_thumb.jpg',160, 106,5,'							photo_7233310.html');
												thumbnails[7233311] = new thumbnail(7233311,'338230','','DSC_0029pp-Grit_thumb.jpg',160, 106,5,'							photo_7233311.html');
												thumbnails[7233312] = new thumbnail(7233312,'338229','Evening Dippers','Evening-Dippers_thumb.jpg',160, 107,5,'							photo_7233312.html');
												thumbnails[7233316] = new thumbnail(7233316,'338229','Halo','Halo_thumb.jpg',160, 102,5,'							photo_7233316.html');
												thumbnails[7233317] = new thumbnail(7233317,'338229','Incoming ','Incoming_thumb.jpg',160, 106,5,'							photo_7233317.html');
												thumbnails[7233319] = new thumbnail(7233319,'338229','Jigsaw','JIgsaw_thumb.jpg',160, 98,5,'							photo_7233319.html');
												thumbnails[7233321] = new thumbnail(7233321,'338229','Just out of the Blue ','Just-out-of-the-blue-_thumb.jpg',160, 240,5,'							photo_7233321.html');
												thumbnails[7233323] = new thumbnail(7233323,'338229','Waiting For The Hangman ','Waiting-for-the-Hangman-__thumb.jpg',160, 249,5,'							photo_7233323.html');
												thumbnails[7233325] = new thumbnail(7233325,'338230','Mersey Tides ','Mersey-Tide-B--W-version_thumb.jpg',160, 106,5,'							photo_7233325.html');
												thumbnails[7233326] = new thumbnail(7233326,'338229','Mersey Tides Colour ','Mersey-Tides-Colour-Version_thumb.jpg',160, 106,5,'							photo_7233326.html');
												thumbnails[7233329] = new thumbnail(7233329,'338229','Mystery of The Sunken Forest ','Mystery-_thumb.jpg',160, 106,5,'							photo_7233329.html');
												thumbnails[7233331] = new thumbnail(7233331,'338229','Old Colwyn Pier 1','Old-Colwyn-Pier_thumb.jpg',160, 106,5,'							photo_7233331.html');
												thumbnails[7233336] = new thumbnail(7233336,'338229','Old Colwyn Pier 2','Other-Side--Pier_thumb.jpg',160, 106,5,'							photo_7233336.html');
												thumbnails[7233337] = new thumbnail(7233337,'338229','Old Red and the Lighthouse','Old-Red-and-the-Lighthouse_thumb.jpg',160, 109,5,'							photo_7233337.html');
												thumbnails[7233361] = new thumbnail(7233361,'338229','Perch Rock Pools ','Perch-Rock-Pools_thumb.jpg',160, 108,5,'							photo_7233361.html');
												thumbnails[7233421] = new thumbnail(7233421,'338229','Loch Sheil ','Prince-of-the-Mist-FS_thumb.jpg',160, 107,5,'							photo_7233421.html');
												thumbnails[7233423] = new thumbnail(7233423,'338229','Pure as the driven Snow','Pure-As-The-Driven-Snow_thumb.jpg',160, 106,5,'							photo_7233423.html');
												thumbnails[7233425] = new thumbnail(7233425,'338229','Sailing Home from the Sun','Sailing_Home_from_the_Sun_thumb.jpg',160, 106,5,'							photo_7233425.html');
												thumbnails[7233428] = new thumbnail(7233428,'338229','Sean The Sheep ','Sean-The-Sheep-_thumb.jpg',160, 116,5,'							photo_7233428.html');
												thumbnails[7233429] = new thumbnail(7233429,'338229','Port Sunlight Houses','Soap-Village_thumb.jpg',160, 108,5,'							photo_7233429.html');
												thumbnails[7233434] = new thumbnail(7233434,'338229','Sticks n Stones','Sticks-n-Stones_thumb.jpg',160, 103,5,'							photo_7233434.html');
												thumbnails[7233438] = new thumbnail(7233438,'338229','Whitby Harbour','Stoney-Broke_thumb.jpg',160, 103,5,'							photo_7233438.html');
												thumbnails[7233446] = new thumbnail(7233446,'338229','Stretton Water Mill','Stretton-Water-Mill_thumb.jpg',160, 104,5,'							photo_7233446.html');
												thumbnails[7233454] = new thumbnail(7233454,'338229','The Monks Pool ','The-Monks-Pool-_thumb.jpg',160, 146,5,'							photo_7233454.html');
												thumbnails[7233458] = new thumbnail(7233458,'338229','The Other Photographer ','The-Other-Photographer-PN_thumb.jpg',160, 106,5,'							photo_7233458.html');
												thumbnails[7233462] = new thumbnail(7233462,'338229','Vera and Marina ','Vera__Marina_thumb.jpg',160, 210,5,'							photo_7233462.html');
												thumbnails[7233480] = new thumbnail(7233480,'338229','All At Sea','DSC_0131-x-680-All-at-sea_thumb.jpg',160, 98,5,'							photo_7233480.html');
												thumbnails[7233495] = new thumbnail(7233495,'338229','Docklands and Derricks ','Docklands--Derricks-_thumb.jpg',160, 97,5,'							photo_7233495.html');
												thumbnails[7233500] = new thumbnail(7233500,'338229','To the moon and back ','To-The-Moon-and-Back_thumb.jpg',160, 241,5,'							photo_7233500.html');
												thumbnails[7233540] = new thumbnail(7233540,'338229','Rossett Mill ','A-Millers-Tale-_thumb.jpg',160, 107,5,'							photo_7233540.html');
												thumbnails[7233546] = new thumbnail(7233546,'338229','Angel Fish Sunset ','Angel-Fish-Sunset_thumb.jpg',160, 106,5,'							photo_7233546.html');
												thumbnails[7233553] = new thumbnail(7233553,'338229','Bending Light ','Bending-Light-_thumb.jpg',160, 105,5,'							photo_7233553.html');
												thumbnails[7233587] = new thumbnail(7233587,'338229','Whitby Dawn ','Whitby--Dawn-2_thumb.jpg',160, 106,5,'							photo_7233587.html');
												thumbnails[7234397] = new thumbnail(7234397,'338229','Arctic Dunes','Arctic-Dunes_thumb.jpg',160, 106,5,'							photo_7234397.html');
												thumbnails[7234401] = new thumbnail(7234401,'338229','Chilled','Arctic-Dunes-Chilled_thumb.jpg',160, 103,5,'							photo_7234401.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[338229] = new gallery(338229,'7234401,7234397,7233587,7233553,7233546,7233540,7233500,7233495,7233480,7233462','Landscapes','gallery',[6007608,6007642,6007648,6007671,6007674,6007678,6007682,6007683,6007721,6009476,7233164,7233169,7233171,7233177,7233186,7233307,7233309,7233310,7233312,7233316,7233317,7233319,7233321,7233323,7233326,7233329,7233331,7233336,7233337,7233361,7233421,7233423,7233425,7233428,7233429,7233434,7233438,7233446,7233454,7233458,7233462,7233480,7233495,7233500,7233540,7233546,7233553,7233587,7234397,7234401],0, 0, '', '																																																																																																							gallery_338229.html',0,0);
				  					galleries[338230] = new gallery(338230,'7233325,7233311,6079239,6007746,6007744','Black & White ','gallery',[6007744,6007746,6079239,7233311,7233325],0, 0, '', '																																																																																																							gallery_338230.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7234401,7234397,7233587,7233553,7233546,7233540,7233500,7233495,7233480,7233462,7233458,7233454,7233446,7233438,7233434,7233429,7233428,7233425,7233423,7233421,7233361,7233337,7233336,7233331,7233329,7233326,7233325,7233323,7233321,7233319,7233317,7233316,7233312,7233311,7233310,7233309,7233307,7233186,7233177,7233171,7233169,7233164,6079239,6009476,6007746,6007744,6007721,6007683,6007682,6007678';
imageSets[3] = '7234401,7234397,7233587,7233553,7233546,7233540,7233500,7233495,7233480,7233462,7233458,7233454,7233446,7233438,7233434,7233429,7233428,7233425,7233423,7233421,7233361,7233337,7233336,7233331,7233329,7233326,7233325,7233323,7233321,7233319,7233317,7233316,7233312,7233311,7233310,7233309,7233307,7233186,7233177,7233171,7233169,7233164,6079239,6009476,6007746,6007744,6007721,6007683,6007682,6007678';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://www.clikchurch.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/AlfBailey/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/AlfBailey/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));		}, 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 = 'Alf Bailey Photography : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));    }        
    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;
	}
}

		

