window.thumbnails = {};
															thumbnails[2151851] = clik.newPhoto({"id":2151851,"src":"IMG_2940_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Handkerchief Tree","height":173});
															thumbnails[1915020] = clik.newPhoto({"id":1915020,"src":"baby,don't cry Millie reclining smaller_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Millie Dollar","height":195});
															thumbnails[2041911] = clik.newPhoto({"id":2041911,"src":"baby,don't cry Millie 551 muted and cropped_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Millie Dollar","height":102});
															thumbnails[7060166] = clik.newPhoto({"id":7060166,"src":"silk_hankies_036_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":136});
															thumbnails[6787080] = clik.newPhoto({"id":6787080,"src":"gone_fishing_resized_thumb.jpg","galleries_id":369190,"server_id":1,"link":"photo_6787080.html","width":130,"caption":"","height":97});
															thumbnails[6787085] = clik.newPhoto({"id":6787085,"src":"gone_fishing_thumbnail_2_thumb.JPG","galleries_id":369190,"server_id":1,"link":"photo_6787085.html","width":130,"caption":"","height":97});
															thumbnails[4783639] = clik.newPhoto({"id":4783639,"src":"turtle_doves_thumbnail_copy_thumb.jpg","galleries_id":273795,"server_id":1,"link":"photo_4783639.html","width":130,"caption":"Turtle Doves","height":152});
															thumbnails[1061736] = clik.newPhoto({"id":1061736,"src":"babythmb_thumb.jpg","galleries_id":367429,"server_id":1,"link":"photo_1061736.html","width":130,"caption":"Baby, B Mine","height":97});
															thumbnails[1061763] = clik.newPhoto({"id":1061763,"src":"Daisy Daisy thumbnail_thumb.jpg","galleries_id":78785,"server_id":1,"link":"photo_1061763.html","width":130,"caption":"Daisy Daisy","height":97});
															thumbnails[1061775] = clik.newPhoto({"id":1061775,"src":"FMN thumbnail_thumb.jpg","galleries_id":78781,"server_id":1,"link":"photo_1061775.html","width":130,"caption":"Forget Me Not","height":97});
															thumbnails[1061783] = clik.newPhoto({"id":1061783,"src":"LnP thumbnail1_thumb.jpg","galleries_id":78786,"server_id":1,"link":"photo_1061783.html","width":130,"caption":"Love and Pride","height":97});
															thumbnails[1061786] = clik.newPhoto({"id":1061786,"src":"OIAMthumb_thumb.jpg","galleries_id":78784,"server_id":1,"link":"photo_1061786.html","width":130,"caption":"One in a Million","height":97});
															thumbnails[1068376] = clik.newPhoto({"id":1068376,"src":"confetti thumb_thumb.JPG","galleries_id":78782,"server_id":1,"link":"photo_1068376.html","width":130,"caption":"Confetti","height":97});
															thumbnails[1126666] = clik.newPhoto({"id":1126666,"src":"best of luck thumbnail_thumb.JPG","galleries_id":79792,"server_id":1,"link":"photo_1126666.html","width":130,"caption":"Best of Luck","height":97});
															thumbnails[1266072] = clik.newPhoto({"id":1266072,"src":"MOS thumb_thumb.JPG","galleries_id":79794,"server_id":1,"link":"photo_1266072.html","width":130,"caption":"","height":97});
															thumbnails[1068385] = clik.newPhoto({"id":1068385,"src":"bluspot thumbn_thumb.JPG","galleries_id":78842,"server_id":1,"link":"photo_1068385.html","width":130,"caption":"Gentleman's Hank","height":97});
															thumbnails[1126669] = clik.newPhoto({"id":1126669,"src":"social butterfly_thumb.jpg","galleries_id":79795,"server_id":1,"link":"photo_1126669.html","width":130,"caption":"Social Butterfly","height":97});
															thumbnails[1062390] = clik.newPhoto({"id":1062390,"src":"gentleman's hank red_thumb.jpg","galleries_id":78842,"server_id":1,"link":"photo_1062390.html","width":130,"caption":"Gentlemen's Hank","height":97});
															thumbnails[2045257] = clik.newPhoto({"id":2045257,"src":"new boxes retouched1_thumb.jpg","galleries_id":136679,"server_id":1,"link":"photo_2045257.html","width":130,"caption":"NEW gift boxes!","height":97});
															thumbnails[7408666] = clik.newPhoto({"id":7408666,"src":"clip_image002_thumb.jpg","galleries_id":367422,"server_id":1,"link":"photo_7408666.html","width":130,"caption":"","height":97});
															thumbnails[4783626] = clik.newPhoto({"id":4783626,"src":"chloe_watermark_copy_thumb.jpg","galleries_id":367423,"server_id":1,"link":"photo_4783626.html","width":130,"caption":"Turtle Doves","height":97});
															thumbnails[1060636] = clik.newPhoto({"id":1060636,"src":"too sharp_thumb.JPG","galleries_id":367423,"server_id":1,"link":"photo_1060636.html","width":130,"caption":"Daisy Daisy","height":97});
															thumbnails[1060637] = clik.newPhoto({"id":1060637,"src":"babybmine_thumb.jpg","galleries_id":367423,"server_id":1,"link":"photo_1060637.html","width":130,"caption":"Baby, B Mine","height":97});
															thumbnails[1060639] = clik.newPhoto({"id":1060639,"src":"doorwayFNMsmall_thumb.jpg","galleries_id":367423,"server_id":1,"link":"photo_1060639.html","width":130,"caption":"Forget Me Not","height":97});
															thumbnails[1060640] = clik.newPhoto({"id":1060640,"src":"silkhankiesconfetti_thumb.jpg","galleries_id":367423,"server_id":1,"link":"photo_1060640.html","width":130,"caption":"Confetti","height":97});
															thumbnails[1060661] = clik.newPhoto({"id":1060661,"src":"silkhankiesloveandpride_thumb.jpg","galleries_id":367423,"server_id":1,"link":"photo_1060661.html","width":130,"caption":"Love and Pride","height":97});
															thumbnails[1060662] = clik.newPhoto({"id":1060662,"src":"silkhankiesinamil_thumb.jpg","galleries_id":367423,"server_id":1,"link":"photo_1060662.html","width":130,"caption":"One in a Million","height":97});
															thumbnails[1061734] = clik.newPhoto({"id":1061734,"src":"silkhankiesforgetmenot_thumb.jpg","galleries_id":367423,"server_id":1,"link":"photo_1061734.html","width":130,"caption":"Forget Me Not","height":97});
															thumbnails[1078995] = clik.newPhoto({"id":1078995,"src":"best of luck_thumb.jpg","galleries_id":367423,"server_id":1,"link":"photo_1078995.html","width":130,"caption":"Best of Luck","height":97});
															thumbnails[1234246] = clik.newPhoto({"id":1234246,"src":"my only sunshine_thumb.JPG","galleries_id":367423,"server_id":1,"link":"photo_1234246.html","width":130,"caption":"My Only Sunshine","height":73});
															thumbnails[1234247] = clik.newPhoto({"id":1234247,"src":"IMG_1229_thumb.JPG","galleries_id":367423,"server_id":1,"link":"photo_1234247.html","width":130,"caption":"","height":73});
															thumbnails[1234248] = clik.newPhoto({"id":1234248,"src":"IMG_1236_thumb.JPG","galleries_id":367423,"server_id":1,"link":"photo_1234248.html","width":130,"caption":"","height":73});
															thumbnails[1234249] = clik.newPhoto({"id":1234249,"src":"IMG_1230_thumb.JPG","galleries_id":367423,"server_id":1,"link":"photo_1234249.html","width":130,"caption":"","height":73});
															thumbnails[1234250] = clik.newPhoto({"id":1234250,"src":"IMG_1231_thumb.JPG","galleries_id":367423,"server_id":1,"link":"photo_1234250.html","width":130,"caption":"","height":73});
															thumbnails[1126677] = clik.newPhoto({"id":1126677,"src":"Social Butterfly1_thumb.JPG","galleries_id":367423,"server_id":1,"link":"photo_1126677.html","width":130,"caption":"Social Butterfly","height":97});
															thumbnails[1077711] = clik.newPhoto({"id":1077711,"src":"sholto gentleman's hank red_thumb.JPG","galleries_id":367423,"server_id":1,"link":"photo_1077711.html","width":130,"caption":"Gentleman's Hank","height":173});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[367422] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"15 mins of fame","link":"section437669.html","maxRecords":0.0,"photoIDs":[7408666.0],"skipIndex":0,"section_code":"section437669","featured_images":7408666.0,"id":367422,"singleSection":true});				  						galleries[367429] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Baby B Mine","link":"gallery_367429.html","maxRecords":0.0,"photoIDs":[1061736.0],"skipIndex":0,"section_code":"gallery","featured_images":1061736.0,"id":367429,"singleSection":false});				  						galleries[79792] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Best of Luck","link":"gallery_79792.html","maxRecords":0.0,"photoIDs":[1126666.0],"skipIndex":0,"section_code":"gallery","featured_images":1126666.0,"id":79792,"singleSection":false});				  						galleries[78782] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Confetti","link":"gallery_78782.html","maxRecords":0.0,"photoIDs":[1068376.0],"skipIndex":0,"section_code":"gallery","featured_images":1068376.0,"id":78782,"singleSection":false});				  						galleries[78785] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Daisy Daisy","link":"gallery_78785.html","maxRecords":0.0,"photoIDs":[1061763.0],"skipIndex":0,"section_code":"gallery","featured_images":1061763.0,"id":78785,"singleSection":false});				  						galleries[78781] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Forget me Not","link":"gallery_78781.html","maxRecords":0.0,"photoIDs":[1061775.0],"skipIndex":0,"section_code":"gallery","featured_images":1061775.0,"id":78781,"singleSection":false});				  						galleries[78842] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gentleman's Hank","link":"gallery_78842.html","maxRecords":0.0,"photoIDs":[1068385.0,1062390.0],"skipIndex":0,"section_code":"gallery","featured_images":"1068385,1062390","id":78842,"singleSection":false});				  						galleries[136679] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gift Boxes NEW!","link":"section110334.html","maxRecords":0.0,"photoIDs":[2045257.0],"skipIndex":0,"section_code":"section110334","featured_images":2045257.0,"id":136679,"singleSection":true});				  						galleries[369190] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gone Fishing","link":"gallery_369190.html","maxRecords":0.0,"photoIDs":[6787080.0,6787085.0],"skipIndex":0,"section_code":"gallery","featured_images":"6787085,6787080","id":369190,"singleSection":false});				  						galleries[78786] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Love and Pride","link":"gallery_78786.html","maxRecords":0.0,"photoIDs":[1061783.0],"skipIndex":0,"section_code":"gallery","featured_images":1061783.0,"id":78786,"singleSection":false});				  						galleries[79794] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"My Only Sunshine","link":"gallery_79794.html","maxRecords":0.0,"photoIDs":[1266072.0],"skipIndex":0,"section_code":"gallery","featured_images":1266072.0,"id":79794,"singleSection":false});				  						galleries[78784] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"One in a Million","link":"gallery_78784.html","maxRecords":0.0,"photoIDs":[1061786.0],"skipIndex":0,"section_code":"gallery","featured_images":1061786.0,"id":78784,"singleSection":false});				  						galleries[367423] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SilkHankies Stars","link":"section437670.html","maxRecords":0.0,"photoIDs":[4783626.0,1060636.0,1060637.0,1060639.0,1060640.0,1060661.0,1060662.0,1061734.0,1078995.0,1234246.0,1234247.0,1234248.0,1234249.0,1234250.0,1126677.0,1077711.0],"skipIndex":0,"section_code":"section437670","featured_images":"4783626,1234246,1126677,1078995,1061734,1060662,1060661,1060640,1060637,1060636","id":367423,"singleSection":true});				  						galleries[79795] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Social Butterfly","link":"gallery_79795.html","maxRecords":0.0,"photoIDs":[1126669.0],"skipIndex":0,"section_code":"gallery","featured_images":1126669.0,"id":79795,"singleSection":false});				  						galleries[273795] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Turtle Doves","link":"gallery_273795.html","maxRecords":0.0,"photoIDs":[4783639.0],"skipIndex":0,"section_code":"gallery","featured_images":4783639.0,"id":273795,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2151851,2041911,1915020';
imageSets[2] = '4783626,1078995,1061736,1061734,1060662,1060661,1060640,1060637,1060636,1234246,1126677';
imageSets[3] = '7408666,7060166,6787085,6787080,4783639,4783626,2151851,2045257,2041911,1915020,1266072,1234250,1234249,1234248,1234247,1234246,1126677,1126669,1126666,1078995,1077711,1068385,1068376,1062390,1061786,1061783,1061775,1061763,1061736,1061734,1060662,1060661,1060640,1060639,1060637,1060636';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/georgiab/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/georgiab/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/georgiab/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/georgiab/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/georgiab/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/georgiab/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/georgiab/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/georgiab/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Baby, Don\'t Cry - Silkhankies: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this Hankie!</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="GEORGIAB">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							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 += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

