window.thumbnails = new Object();
												thumbnails[3357024] = new thumbnail(3357024,'204044','Prepared for Everything!','DSC_0029_thumb.jpg',130, 86,15,'photo_3357024.html');
												thumbnails[3357039] = new thumbnail(3357039,'205019','Light of Hand','IMG_89511_thumb.JPG',130, 98,15,'photo_3357039.html');
												thumbnails[3358164] = new thumbnail(3358164,'204044','Where Have They Gone?','DSC_0091_thumb.jpg',130, 86,15,'photo_3358164.html');
												thumbnails[3358358] = new thumbnail(3358358,'204044','One Up 6 To Go','DSC_0098_thumb.jpg',130, 41,15,'photo_3358358.html');
												thumbnails[3358398] = new thumbnail(3358398,'204044','Not So Black Middens','DSC_0101_thumb.jpg',130, 86,15,'photo_3358398.html');
												thumbnails[3358406] = new thumbnail(3358406,'204044','Waiting.....','DSC_0102_thumb.jpg',130, 42,15,'photo_3358406.html');
												thumbnails[3358454] = new thumbnail(3358454,'205017','ROCK!','100_1459_thumb.JPG',130, 98,15,'photo_3358454.html');
												thumbnails[3358487] = new thumbnail(3358487,'205017','John Robb - Goldblade','100_2585_thumb.jpg',130, 98,15,'photo_3358487.html');
												thumbnails[3358491] = new thumbnail(3358491,'205017','Dave Vanian - The Damned','100_2659_thumb.jpg',130, 98,15,'photo_3358491.html');
												thumbnails[3358694] = new thumbnail(3358694,'205019','Caught in a Trap','DSC_0001_3_thumb.jpg',130, 86,15,'photo_3358694.html');
												thumbnails[3358730] = new thumbnail(3358730,'205019','On The Beach','DSC_0012_thumb.jpg',130, 86,15,'photo_3358730.html');
												thumbnails[3358758] = new thumbnail(3358758,'205019','Big Hands I Know Your The One','DSC_0016_4_thumb.JPG',130, 353,15,'photo_3358758.html');
												thumbnails[3359966] = new thumbnail(3359966,'205017','Now he stops at traffic lights but only when they\'re green ','IMG_9117_thumb.jpg',130, 98,15,'photo_3359966.html');
												thumbnails[3364150] = new thumbnail(3364150,'204045','Twisted','DSCN03521_thumb.jpg',130, 173,15,'photo_3364150.html');
												thumbnails[3364159] = new thumbnail(3364159,'204045','Shopping Until Dropping Off','IMG_9199_2_thumb.jpg',130, 98,15,'photo_3364159.html');
												thumbnails[3414445] = new thumbnail(3414445,'205019','Erotic Nature','100_2233_thumb.jpg',130, 98,15,'photo_3414445.html');
												thumbnails[3414447] = new thumbnail(3414447,'204044','Dirty Mouth','DSC_0016_thumb.jpg',130, 86,15,'photo_3414447.html');
												thumbnails[3727809] = new thumbnail(3727809,'205019','Pile Up','DSC_0025_2_thumb.jpg',130, 86,15,'photo_3727809.html');
												thumbnails[3732707] = new thumbnail(3732707,'204044','Cloudy Memories','DSC_0036_thumb.jpg',130, 196,15,'photo_3732707.html');
												thumbnails[4191606] = new thumbnail(4191606,'204044','Done For The Day','DSC_0119_thumb.jpg',130, 196,15,'photo_4191606.html');
												thumbnails[4191615] = new thumbnail(4191615,'204044','','DSC_0125_thumb.jpg',130, 86,15,'photo_4191615.html');
												thumbnails[6302787] = new thumbnail(6302787,'204045','The Colour Quarter','DSC_0889_copy_thumb.jpg',130, 86,15,'photo_6302787.html');
												thumbnails[5044144] = new thumbnail(5044144,'285439','','14760_169812320763_678000763_3392859_1021042_n_thumb.jpg',130, 87,15,'photo_5044144.html');
												thumbnails[5044184] = new thumbnail(5044184,'285439','','14760_169812360763_678000763_3392860_8219569_n_thumb.jpg',130, 199,15,'photo_5044184.html');
												thumbnails[5044188] = new thumbnail(5044188,'285439','','14760_169812490763_678000763_3392863_2364700_n_thumb.jpg',130, 85,15,'photo_5044188.html');
												thumbnails[5044190] = new thumbnail(5044190,'285439','','14760_169812515763_678000763_3392864_8348117_n1_thumb.jpg',130, 85,15,'photo_5044190.html');
												thumbnails[5044191] = new thumbnail(5044191,'285439','','14760_169812785763_678000763_3392871_6071731_n_thumb.jpg',130, 87,15,'photo_5044191.html');
												thumbnails[5044769] = new thumbnail(5044769,'285439','','14760_169812990763_678000763_3392876_7492126_n_thumb.jpg',130, 139,15,'photo_5044769.html');
												thumbnails[5044776] = new thumbnail(5044776,'285439','All For One And One For All','14760_169813110763_678000763_3392879_7581380_n_thumb.jpg',130, 116,15,'photo_5044776.html');
												thumbnails[5044794] = new thumbnail(5044794,'285439','','14760_169813305763_678000763_3392884_6083051_n_thumb.jpg',130, 195,15,'photo_5044794.html');
												thumbnails[5044802] = new thumbnail(5044802,'285439','','14760_169813590763_678000763_3392904_4397705_n_thumb.jpg',130, 87,15,'photo_5044802.html');
												thumbnails[5044803] = new thumbnail(5044803,'285439','Reflecting On The Day','14760_169813630763_678000763_3392905_4159346_n_thumb.jpg',130, 121,15,'photo_5044803.html');
												thumbnails[5044810] = new thumbnail(5044810,'285439','The Hot Seats','14760_169813690763_678000763_3392907_5353247_n_thumb.jpg',130, 92,15,'photo_5044810.html');
												thumbnails[5463432] = new thumbnail(5463432,'285439','Crash!','16844_280788140763_678000763_3962221_4070595_n_thumb.jpg',130, 195,15,'photo_5463432.html');
												thumbnails[5463437] = new thumbnail(5463437,'285439','Wave Hello','16844_280788920763_678000763_3962222_4243870_n_thumb.jpg',130, 195,15,'photo_5463437.html');
												thumbnails[7351369] = new thumbnail(7351369,'397830','Mr & Mrs Craig','DSC_0149_thumb.jpg',130, 86,15,'photo_7351369.html');
												thumbnails[7351397] = new thumbnail(7351397,'397830','Mrs Craig','DSC_0272_thumb.jpg',130, 196,15,'photo_7351397.html');
												thumbnails[7351433] = new thumbnail(7351433,'397830','Mr & Mrs C and the Ferrari! ','DSC_0335_thumb.jpg',130, 86,15,'photo_7351433.html');
												thumbnails[7351458] = new thumbnail(7351458,'397830','','DSC_0452_thumb.jpg',130, 53,15,'photo_7351458.html');
												thumbnails[7351466] = new thumbnail(7351466,'397830','Mr & Mrs Lyons','DSC_0176_thumb.jpg',130, 61,15,'photo_7351466.html');
												thumbnails[3612851] = new thumbnail(3612851,'219778','Doha Oilmen\'s Golf Tournament 2009','DSC_0011_thumb.jpg',130, 86,15,'photo_3612851.html');
												thumbnails[3612886] = new thumbnail(3612886,'219778','Doha Oilmen\'s Golf Tournament 2009','DSC_0050_thumb.jpg',130, 196,15,'photo_3612886.html');
												thumbnails[3613003] = new thumbnail(3613003,'219778','Doha Oilmen\'s Golf Tournament 2009','DSC_0124_2_thumb.jpg',130, 86,15,'photo_3613003.html');
												thumbnails[3613006] = new thumbnail(3613006,'219778','Doha Oilmen\'s Golf Tournament 2009','DSC_0077_thumb.jpg',130, 122,15,'photo_3613006.html');
												thumbnails[5045153] = new thumbnail(5045153,'219778','The University of Manchester','DSC_0007_thumb.jpg',130, 183,15,'photo_5045153.html');
												thumbnails[5045156] = new thumbnail(5045156,'219778','The University of Manchester','DSC_0175_thumb.jpg',130, 196,15,'photo_5045156.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[219778] = new gallery(219778,'5045156,5045153,3613006,3613003,3612886,3612851','Doha Oilmens 2009','section270787',[3612851,3612886,3613003,3613006,5045153,5045156],0, 1, '', 'section270787.html',0,1);
				  					galleries[285439] = new gallery(285439,'5463437,5463432,5044810,5044803,5044802,5044794,5044776,5044769,5044191,5044190','Tynemouth Collection','section259048',[5044144,5044184,5044188,5044190,5044191,5044769,5044776,5044794,5044802,5044803,5044810,5463432,5463437],0, 1, '', 'section259048.html',0,1);
				  					galleries[397830] = new gallery(397830,'7351466,7351458,7351433,7351397,7351369','Weddings','section473777',[7351369,7351397,7351433,7351458,7351466],0, 0, '', 'section473777.html',0,1);
				  					galleries[204044] = new gallery(204044,'4191615,4191606,3732707,3414447,3358406,3358398,3358358,3358164,3357024','Aye-Photo: The North East','gallery',[3357024,3358164,3358358,3358398,3358406,3414447,3732707,4191606,4191615],0, 1, '', 'gallery_204044.html',0,0);
				  					galleries[204045] = new gallery(204045,'6302787,3364159,3364150','Aye-Photo: Out and About','gallery',[3364150,3364159,6302787],0, 1, '', 'gallery_204045.html',0,0);
				  					galleries[205019] = new gallery(205019,'3357039','Aye-Photo: Other','gallery',[3357039,3358694,3358730,3358758,3414445,3727809],0, 1, '', 'gallery_205019.html',0,0);
				  					galleries[205017] = new gallery(205017,'3359966,3358491,3358487,3358454','Aye-Photo: Music','gallery',[3358454,3358487,3358491,3359966],0, 1, '', 'gallery_205017.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '6302787,5463437,5463432,5045153,5044810,5044803,5044794,5044776,5044144,4191615,4191606,3732707,3727809,3613003,3612886,3414447,3414445,3364159,3364150,3359966,3358758,3358730,3358694,3358491,3358487,3358454,3358398,3358358,3358164,3357039';
imageSets[2] = '3357039';
imageSets[3] = '7351466,7351458,7351433,7351397,7351369,6302787,5463437,5463432,5045156,5045153,5044810,5044803,5044802,5044794,5044776,5044769,5044191,5044190,5044188,5044184,5044144,4191615,4191606,3732707,3727809,3613006,3613003,3612886,3612851,3414447,3414445,3364159,3364150,3359966,3358758,3358730,3358694,3358491,3358487,3358454,3358406,3358398,3358358,3358164,3357039,3357024';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ayephoto/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ayephoto/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('');
		if (!basic) {
	img.src = photos[imageID].src;
	img.width = photos[imageID].width;
	img.height = photos[imageID].height;
  img.parentNode.title = img.alt = photos[imageID].caption;
	}
	else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
				
	}
			}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}
/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
  var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
		if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
    
  updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
  var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
      op = $.extend({},defaults,options),
      html = '', temp = '',
      photoId = op.nextPhoto.id,
      photoCaption = op.nextPhoto.caption,
      photoSrc = op.nextPhoto.src;
		
		if (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    if (op.$photo.length > 0) {
      html = $('<img/>',{
        'class': 'mainphoto photo',
        src: photoSrc,
        id: 'mainPic',
        name: 'mainPic',
        width: op.nextPhoto.width,
        height: op.nextPhoto.height,
        alt: photoCaption,
        css: op.css || {}
      });
      if (op.href) {
      	if (op.href.match(/<a/)) {
      	  html = $(op.href).append(html);
      	} else {
		  html = $('<a/>', {
			href: op.href,
			title: photoCaption
		  }).append(html);
	    }
      } else {
      	html = $('<a/>', {
			title: photoCaption
		  }).append(html);
      }
      if (op.speed == 0) {        op.$photo.html(html);        if (op.onBefore) {          op.onBefore.apply(op.$photo);        }        if (op.onAfter) {          op.onAfter.apply(op.$photo);        }      } else {        op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){            if (op.onAfter) {		    op.onAfter.apply(this);          }		  clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'ayephoto: ' + 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));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
				
		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 + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
	temp = temp + '	<input type="hidden" name="item_option" value="' + item_option + '">';
	temp = temp + '	<input type="hidden" name="site" value="AYEPHOTO">';
		temp = temp + '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp = temp + '	<input type="hidden" name="quantity" value="1">';
								temp = temp + '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
			temp = temp + '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
	temp = temp + '</form>';
		temp = temp + '<div class="clearing">&nbsp;</div>';
	temp = temp + '<div id="confirmContainer">';
	temp = temp + '<div id="paymentConfirm">Item added to cart</div>';
	temp = temp + '</div>';
			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;
	}
}

			

