window.thumbnails = new Object();
												thumbnails[3641483] = new thumbnail(3641483,'224846','','Lion_website2_thumb.jpg',130, 95,15,'																			photo_3641483.html');
												thumbnails[3641510] = new thumbnail(3641510,'224846','','Leopard_web18_thumb.jpg',130, 91,15,'																			photo_3641510.html');
												thumbnails[3641513] = new thumbnail(3641513,'224846','','Lion_s_web18_thumb.jpg',130, 93,15,'																			photo_3641513.html');
												thumbnails[3641515] = new thumbnail(3641515,'224846','','Tiger_web18_thumb.jpg',130, 95,15,'																			photo_3641515.html');
												thumbnails[3679660] = new thumbnail(3679660,'221497','','Tigs_web1312_thumb.jpg',130, 168,15,'																			photo_3679660.html');
												thumbnails[3679661] = new thumbnail(3679661,'221497','','sweety_web1312_thumb.jpg',130, 150,15,'																			photo_3679661.html');
												thumbnails[3684097] = new thumbnail(3684097,'225081','','Eiff_T_1_thumb.jpg',130, 197,15,'																			photo_3684097.html');
												thumbnails[3684100] = new thumbnail(3684100,'225081','','Gr_Pyr_Geza_thumb.jpg',130, 189,15,'																			photo_3684100.html');
												thumbnails[3684104] = new thumbnail(3684104,'225081','','Statue_of_Lib2_thumb.jpg',130, 184,15,'																			photo_3684104.html');
												thumbnails[3689464] = new thumbnail(3689464,'224856','','Front_Cover_thumb.jpg',130, 90,15,'																			photo_3689464.html');
												thumbnails[3689468] = new thumbnail(3689468,'224856','','Back_Cover_web18_thumb.jpg',130, 90,15,'																			photo_3689468.html');
												thumbnails[3702334] = new thumbnail(3702334,'226224','','concept3__thumb.jpg',130, 144,15,'																			photo_3702334.html');
												thumbnails[3751764] = new thumbnail(3751764,'221497','','Amber_WEBSITE_17_thumb.jpg',130, 133,15,'																			photo_3751764.html');
												thumbnails[3751767] = new thumbnail(3751767,'221497','','Millie_WEBSITE_17_thumb.jpg',130, 149,15,'																			photo_3751767.html');
												thumbnails[3751768] = new thumbnail(3751768,'221497','','Keira_WEBSITE16_thumb.jpg',130, 179,15,'																			photo_3751768.html');
												thumbnails[3926041] = new thumbnail(3926041,'222552','','TITANIC_thumb.jpg',130, 93,15,'																			photo_3926041.html');
												thumbnails[7314589] = new thumbnail(7314589,'224844','','osa_poster_with_my_ills_thumb.jpg',130, 186,15,'																			photo_7314589.html');
												thumbnails[3677655] = new thumbnail(3677655,'224844','','bed_web18_thumb.jpg',130, 99,15,'																			photo_3677655.html');
												thumbnails[3679212] = new thumbnail(3679212,'222552','','Blimp_web_18_thumb.jpg',130, 92,15,'																			photo_3679212.html');
												thumbnails[7314211] = new thumbnail(7314211,'221497','Bobby','Bobby_300_web_thumb.jpg',130, 160,15,'																			photo_7314211.html');
												thumbnails[7314225] = new thumbnail(7314225,'305047','','Harry_web112_thumb.jpg',130, 93,15,'																			photo_7314225.html');
												thumbnails[7314694] = new thumbnail(7314694,'395669','','petersfield_leaflet_Paying_Rent-2_thumb.jpg',130, 89,15,'																			photo_7314694.html');
												thumbnails[3677676] = new thumbnail(3677676,'224844','','trips2bath_web18_thumb.jpg',130, 126,15,'																			photo_3677676.html');
												thumbnails[5403327] = new thumbnail(5403327,'305047','','Michelle_Edited_web_thumb.jpg',130, 147,15,'																			photo_5403327.html');
												thumbnails[3679349] = new thumbnail(3679349,'222552','','glovebox1_web_18_thumb.jpg',130, 92,15,'																			photo_3679349.html');
												thumbnails[3679679] = new thumbnail(3679679,'224792','','hood_web15_thumb.jpg',130, 184,15,'																			photo_3679679.html');
												thumbnails[5402477] = new thumbnail(5402477,'305047','','E_and_G_Edit_web_thumb.jpg',130, 89,15,'																			photo_5402477.html');
												thumbnails[5941394] = new thumbnail(5941394,'221497','','reg_cat_web_thumb.jpg',130, 178,15,'																			photo_5941394.html');
												thumbnails[7314705] = new thumbnail(7314705,'395669','','petersfield_leaflet_Resident_Involvement-2_thumb.jpg',130, 81,15,'																			photo_7314705.html');
												thumbnails[7314844] = new thumbnail(7314844,'395678','','1_thumb.jpg',130, 171,15,'																			photo_7314844.html');
												thumbnails[3677660] = new thumbnail(3677660,'224844','','irritability_web18_thumb.jpg',130, 88,15,'																			photo_3677660.html');
												thumbnails[3679347] = new thumbnail(3679347,'222552','','fairground-1_web_18_thumb.jpg',130, 92,15,'																			photo_3679347.html');
												thumbnails[7314706] = new thumbnail(7314706,'395669','','petersfield_leaflet_Making_Complaint-2_thumb.jpg',130, 88,15,'																			photo_7314706.html');
												thumbnails[3679350] = new thumbnail(3679350,'222552','','screw1_web_18_thumb.jpg',130, 89,15,'																			photo_3679350.html');
												thumbnails[3679680] = new thumbnail(3679680,'224792','','Man_web15_thumb.jpg',130, 184,15,'																			photo_3679680.html');
												thumbnails[7314698] = new thumbnail(7314698,'395669','','petersfield_leaflet_Repairs-2_thumb.jpg',130, 88,15,'																			photo_7314698.html');
												thumbnails[7314846] = new thumbnail(7314846,'395678','','2_thumb.jpg',130, 92,15,'																			photo_7314846.html');
												thumbnails[3679386] = new thumbnail(3679386,'222552','','fixing_sleigh1_web18_thumb.jpg',130, 92,15,'																			photo_3679386.html');
												thumbnails[7314708] = new thumbnail(7314708,'395669','','petersfield_leaflet_compensation-2_thumb.jpg',130, 93,15,'																			photo_7314708.html');
												thumbnails[3679390] = new thumbnail(3679390,'222552','','Grav_Card_1web18_thumb.jpg',130, 92,15,'																			photo_3679390.html');
												thumbnails[3679682] = new thumbnail(3679682,'224792','','Shadow_web15_thumb.jpg',130, 184,15,'																			photo_3679682.html');
												thumbnails[7314719] = new thumbnail(7314719,'395669','','petersfield_leaflet_ABS-2_thumb.jpg',130, 89,15,'																			photo_7314719.html');
												thumbnails[7314848] = new thumbnail(7314848,'395678','','3_thumb.jpg',130, 94,15,'																			photo_7314848.html');
												thumbnails[3679683] = new thumbnail(3679683,'224792','','Wheelchair_web15_thumb.jpg',130, 185,15,'																			photo_3679683.html');
												thumbnails[7314849] = new thumbnail(7314849,'395678','','4_thumb.jpg',130, 87,15,'																			photo_7314849.html');
												thumbnails[3679681] = new thumbnail(3679681,'224792','','room_web15_thumb.jpg',130, 184,15,'																			photo_3679681.html');
												thumbnails[3679684] = new thumbnail(3679684,'224792','','window_web15_thumb.jpg',130, 184,15,'																			photo_3679684.html');
												thumbnails[3679678] = new thumbnail(3679678,'224792','','Casualty2web15_thumb.jpg',130, 93,15,'																			photo_3679678.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[305047] = new gallery(305047,'7314225,5403327,5402477','Charcoal Portraits','gallery',[7314225,5403327,5402477],0, 0, '', '																																																																																																							gallery_305047.html',0,0);
				  					galleries[224843] = new gallery(224843,'3689464,3684097,3679347,3677676,3641483','Marketing Portfolio','gallery',[],0, 0, '', '																																																																																																							gallery_224843.html',0,0);
				  					galleries[224792] = new gallery(224792,'3679680','Personal Work','gallery',[3679679,3679680,3679682,3679683,3679681,3679684,3679678],0, 0, '', '																																																																																																							gallery_224792.html',0,0);
				  					galleries[221497] = new gallery(221497,'3751764','Pet Portrait','gallery',[3679660,3679661,3751764,3751767,3751768,7314211,5941394],0, 0, '', '																																																																																																							gallery_221497.html',0,0);
				  					galleries[395669] = new gallery(395669,'7314719,7314708,7314706,7314705,7314698,7314694','Petersfield Housing Association ','gallery',[7314694,7314705,7314706,7314698,7314708,7314719],0, 0, '224843', '																																																																																																							gallery_395669.html',0,0);
				  					galleries[222552] = new gallery(222552,'3679347','Gravatom','gallery',[3926041,3679212,3679349,3679347,3679350,3679386,3679390],0, 0, '224843', '																																																																																																							gallery_222552.html',0,0);
				  					galleries[224844] = new gallery(224844,'3677676','Philips - Philips Healthcare','gallery',[7314589,3677655,3677676,3677660],0, 0, '224843', '																																																																																																							gallery_224844.html',0,0);
				  					galleries[224856] = new gallery(224856,'3689464','The Writing Room','gallery',[3689464,3689468],0, 0, '224843', '																																																																																																							gallery_224856.html',0,0);
				  					galleries[395678] = new gallery(395678,'7314849,7314848,7314846,7314844','VT Group','gallery',[7314844,7314846,7314848,7314849],0, 0, '224843', '																																																																																																							gallery_395678.html',0,0);
				  					galleries[224846] = new gallery(224846,'3641483','Glow Marketing','gallery',[3641483,3641510,3641513,3641515],0, 0, '224843', '																																																																																																							gallery_224846.html',0,0);
				  					galleries[226224] = new gallery(226224,'3702334','Pinpoint Success','gallery',[3702334],0, 0, '224843', '																																																																																																							gallery_226224.html',0,0);
				  					galleries[225081] = new gallery(225081,'3684097','FDS','gallery',[3684097,3684100,3684104],0, 0, '224843', '																																																																																																							gallery_225081.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '5402477,3689464,3684097,3679390,3679347,3677676,3641483';
imageSets[2] = '3751764,3689464,3684097,3679680,3679347,3677676,3641483';
imageSets[3] = '7314849,7314848,7314846,7314844,7314719,7314708,7314706,7314705,7314698,7314694,7314589,7314225,7314211,5941394,5403327,5402477,3926041,3751768,3751767,3751764,3702334,3689468,3689464,3684104,3684100,3684097,3679684,3679683,3679682,3679681,3679680,3679679,3679678,3679661,3679660,3679390,3679386,3679350,3679349,3679347,3679212,3677676,3677660,3677655,3641515,3641513,3641510,3641483';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/eddiestubbsy/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/eddiestubbsy/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 = 'Ed Stubbs            Illustration: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:200};	    		options.photoinfoadjacent = true;			      	      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>';
	}
					
	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="EDDIESTUBBSY">';
		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;
	}
}

			

