window.thumbnails = new Object();
thumbnails[7458798] = new thumbnail(7458798,'','','frames_thumb.jpg',130, 112,31,'#');
thumbnails[7284263] = new thumbnail(7284263,'391636','Lion','Lion_thumb.jpg',130, 195,31,'photo_7284263.html');
thumbnails[7284267] = new thumbnail(7284267,'391636','The Barn That Is No More','TheBarnThatIsNoMore_thumb.jpg',130, 84,31,'photo_7284267.html');
thumbnails[7284270] = new thumbnail(7284270,'391636','The Boat','TheBoat_thumb.jpg',130, 183,31,'photo_7284270.html');
thumbnails[7284278] = new thumbnail(7284278,'391636','The Bridge Across Muddy Waters','TheBridgeAcrossMuddyWaters_thumb.jpg',130, 211,31,'photo_7284278.html');
thumbnails[7284281] = new thumbnail(7284281,'391636','The Dawn','TheDawn2_thumb.jpg',130, 87,31,'photo_7284281.html');
thumbnails[7284283] = new thumbnail(7284283,'391636','The Fence','TheFence_thumb.jpg',130, 87,31,'photo_7284283.html');
thumbnails[7284285] = new thumbnail(7284285,'391636','The Girl In The Scarf','TheGirlInTheScarf_thumb.jpg',130, 87,31,'photo_7284285.html');
thumbnails[7284287] = new thumbnail(7284287,'391636','The Grain Pathway','TheGrainPathway_thumb.jpg',130, 211,31,'photo_7284287.html');
thumbnails[7284289] = new thumbnail(7284289,'391636','The Grain Tower - B&W','TheGrainTowerBW_thumb.jpg',130, 77,31,'photo_7284289.html');
thumbnails[7284303] = new thumbnail(7284303,'391636','The Groynes - Colour','TheGroynesColour_thumb.jpg',130, 195,31,'photo_7284303.html');
thumbnails[7284304] = new thumbnail(7284304,'391636','The Haunting Barn','TheHauntingBarn_thumb.jpg',130, 86,31,'photo_7284304.html');
thumbnails[7284306] = new thumbnail(7284306,'391636','The Jump','TheJump_thumb.jpg',130, 57,31,'photo_7284306.html');
thumbnails[7284308] = new thumbnail(7284308,'391636','The Jetty - Colour','TheJettyColour_thumb.jpg',130, 79,31,'photo_7284308.html');
thumbnails[7284309] = new thumbnail(7284309,'391636','The Kiteboarder - Chocolate','TheKiteboarderChocolate_thumb.jpg',130, 173,31,'photo_7284309.html');
thumbnails[7284312] = new thumbnail(7284312,'391636','The Kiter','TheKiter_thumb.jpg',130, 68,31,'photo_7284312.html');
thumbnails[7284314] = new thumbnail(7284314,'391636','The Lake In Winter','TheLakeInWinter_thumb.jpg',130, 88,31,'photo_7284314.html');
thumbnails[7284315] = new thumbnail(7284315,'391636','The Lion\'s Roar','TheLionsRoar_thumb.jpg',130, 138,31,'photo_7284315.html');
thumbnails[7284316] = new thumbnail(7284316,'391636','The Lion\'s Stare','TheLionsStare_thumb.jpg',130, 192,31,'photo_7284316.html');
thumbnails[7284317] = new thumbnail(7284317,'391636','The Lonely Fisherman','TheLonelyFisherman_thumb.jpg',130, 130,31,'photo_7284317.html');
thumbnails[7284318] = new thumbnail(7284318,'391636','The Lonely Tree','TheLonelyTree_thumb.jpg',130, 87,31,'photo_7284318.html');
thumbnails[7284319] = new thumbnail(7284319,'391636','The Milky Seascape','TheMilkySeascape_thumb.jpg',130, 59,31,'photo_7284319.html');
thumbnails[7284321] = new thumbnail(7284321,'391636','The NY Times','TheNYTimes_thumb.jpg',130, 176,31,'photo_7284321.html');
thumbnails[7284323] = new thumbnail(7284323,'391636','The Padlock','ThePadlock_thumb.jpg',130, 195,31,'photo_7284323.html');
thumbnails[7284338] = new thumbnail(7284338,'391636','The Path','ThePath_thumb.jpg',130, 210,31,'photo_7284338.html');
thumbnails[7284340] = new thumbnail(7284340,'391636','The Rotting Car','TheRottingCar_thumb.jpg',130, 82,31,'photo_7284340.html');
thumbnails[7284341] = new thumbnail(7284341,'391636','The pier - Colour','ThePierColour_thumb.jpg',130, 87,31,'photo_7284341.html');
thumbnails[7284343] = new thumbnail(7284343,'391636','The Seascape','TheSeascape_thumb.jpg',130, 59,31,'photo_7284343.html');
thumbnails[7284344] = new thumbnail(7284344,'391636','The Sepia Boat','TheSepiaBoat_thumb.jpg',130, 139,31,'photo_7284344.html');
thumbnails[7284345] = new thumbnail(7284345,'391636','The Sheep','TheSheep_thumb.jpg',130, 87,31,'photo_7284345.html');
thumbnails[7284346] = new thumbnail(7284346,'391636','The Shipwreck','TheShipwreck_thumb.jpg',130, 87,31,'photo_7284346.html');
thumbnails[7284347] = new thumbnail(7284347,'391636','The Steps','TheSteps_thumb.jpg',130, 202,31,'photo_7284347.html');
thumbnails[7284349] = new thumbnail(7284349,'391636','The Sun In The Trees','TheSunInThe_Trees_thumb.jpg',130, 86,31,'photo_7284349.html');
thumbnails[7284351] = new thumbnail(7284351,'391636','The Sunset','TheSunset_thumb.jpg',130, 123,31,'photo_7284351.html');
thumbnails[7284352] = new thumbnail(7284352,'391636','The Track','TheTrack_thumb.jpg',130, 195,31,'photo_7284352.html');
thumbnails[7284354] = new thumbnail(7284354,'391636','The Tree In The Mist','TheTree_In_The_Mist_thumb.jpg',130, 87,31,'photo_7284354.html');
thumbnails[7284355] = new thumbnail(7284355,'391636','The Tree','TheTree_thumb.jpg',130, 195,31,'photo_7284355.html');
thumbnails[7284356] = new thumbnail(7284356,'391636','The Underneath - Chocolate','TheUnderneathChocolate_thumb.jpg',130, 195,31,'photo_7284356.html');
thumbnails[7284357] = new thumbnail(7284357,'391636','The Windfarm','TheWindfarm_thumb.jpg',130, 87,31,'photo_7284357.html');
thumbnails[7284359] = new thumbnail(7284359,'391636','The Woodland','TheWoodland_thumb.jpg',130, 195,31,'photo_7284359.html');
thumbnails[7342912] = new thumbnail(7342912,'393335','Happy Panda','happypanda_thumb.jpg',130, 195,31,'photo_7342912.html');
thumbnails[7342971] = new thumbnail(7342971,'391637','','loosecanon_thumb.jpg',130, 176,31,'photo_7342971.html');
thumbnails[7342976] = new thumbnail(7342976,'391637','','loosecanon-1_thumb.jpg',130, 195,31,'photo_7342976.html');
thumbnails[7342979] = new thumbnail(7342979,'391637','','loosecanon-2_thumb.jpg',130, 190,31,'photo_7342979.html');
thumbnails[7342980] = new thumbnail(7342980,'391637','','loosecanon-2-2_thumb.jpg',130, 89,31,'photo_7342980.html');
thumbnails[7342981] = new thumbnail(7342981,'391637','','loosecanon-3_thumb.jpg',130, 198,31,'photo_7342981.html');
thumbnails[7342983] = new thumbnail(7342983,'391637','','loosecanon-4_thumb.jpg',130, 87,31,'photo_7342983.html');
thumbnails[7342988] = new thumbnail(7342988,'391637','','loosecanon-5_thumb.jpg',130, 195,31,'photo_7342988.html');
thumbnails[7342989] = new thumbnail(7342989,'391637','','loosecanon-6_thumb.jpg',130, 195,31,'photo_7342989.html');
thumbnails[7342991] = new thumbnail(7342991,'391637','','loosecanon-7_thumb.jpg',130, 190,31,'photo_7342991.html');
thumbnails[7342994] = new thumbnail(7342994,'391637','','loosecanon-8_thumb.jpg',130, 87,31,'photo_7342994.html');
thumbnails[7342995] = new thumbnail(7342995,'391637','','loosecanon-9_thumb.jpg',130, 63,31,'photo_7342995.html');
thumbnails[7342997] = new thumbnail(7342997,'391637','','loosecanon-10_thumb.jpg',130, 173,31,'photo_7342997.html');
thumbnails[7342998] = new thumbnail(7342998,'391637','','loosecanon-11_thumb.jpg',130, 94,31,'photo_7342998.html');
thumbnails[7342999] = new thumbnail(7342999,'391637','','loosecanon-12_thumb.jpg',130, 89,31,'photo_7342999.html');
thumbnails[7343000] = new thumbnail(7343000,'391637','','loosecanon-13_thumb.jpg',130, 185,31,'photo_7343000.html');
thumbnails[7343002] = new thumbnail(7343002,'391637','','loosecanon-14_thumb.jpg',130, 93,31,'photo_7343002.html');
thumbnails[7343004] = new thumbnail(7343004,'391637','','loosecanon-16_thumb.jpg',130, 89,31,'photo_7343004.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
galleries[391636] = new gallery(391636,'7284359,7284357,7284356,7284355,7284354,7284352,7284351,7284349,7284347,7284346','Canuck Photography','section474090',[7284263,7284267,7284270,7284278,7284281,7284283,7284285,7284287,7284289,7284303,7284304,7284306,7284308,7284309,7284312,7284314,7284315,7284316,7284317,7284318,7284319,7284321,7284323,7284338,7284340,7284341,7284343,7284344,7284345,7284346,7284347,7284349,7284351,7284352,7284354,7284355,7284356,7284357,7284359],0, 0, '', 'section474090.html',0,1);
galleries[391637] = new gallery(391637,'7343004,7343002,7343000,7342999,7342998,7342997,7342995,7342994,7342991,7342989','Loose Canon Photography','gallery',[7342971,7342976,7342979,7342980,7342981,7342983,7342988,7342989,7342991,7342994,7342995,7342997,7342998,7342999,7343000,7343002,7343004],0, 0, '', 'gallery_391637.html',0,0);
galleries[393335] = new gallery(393335,'7342912','Fat Dragon Photography','gallery',[7342912],0, 0, '', 'gallery_393335.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[3] = '7284359';
imageSets[1] = '7284359,7284357,7284356,7284355,7284354,7284352,7284351,7284349,7284347,7284346,7284345,7284344,7284343,7284340,7284338,7284323,7284321,7284319,7284318,7284317,7284316,7284315,7284314,7284312,7284306,7284304,7284289,7284287,7284285,7284283,7284281,7284278,7284270,7284267,7284263';
imageSets[240139] = '7458798';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/roscodav/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/roscodav/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/roscodav/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/roscodav/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/roscodav/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/roscodav/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 += 'section474090.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 && 'section474090' != '') {
					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 = 'Ambient Photo Galleries: ' + 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="ROSCODAV">';
		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;
	}
}

		

