window.thumbnails = new Object();
												thumbnails[2574558] = new thumbnail(2574558,'153871','','souls past_thumb.jpg',130, 173,15,'photo_2574558.html');
												thumbnails[2574561] = new thumbnail(2574561,'153871','','souls past2_thumb.jpg',130, 95,15,'photo_2574561.html');
												thumbnails[2574608] = new thumbnail(2574608,'153870','','matthew g_thumb.jpg',130, 183,15,'photo_2574608.html');
												thumbnails[4171760] = new thumbnail(4171760,'153870','','sc000099b4_thumb.jpg',130, 85,15,'photo_4171760.html');
												thumbnails[4171784] = new thumbnail(4171784,'153870','','sc00008748_thumb.jpg',130, 194,15,'photo_4171784.html');
												thumbnails[6225985] = new thumbnail(6225985,'153868','','Tam_implied_portrait_thumb.jpg',130, 161,15,'photo_6225985.html');
												thumbnails[6226028] = new thumbnail(6226028,'153868','','8519_261090465143_527615143_8659139_6964668_n_thumb.jpg',130, 161,15,'photo_6226028.html');
												thumbnails[7444030] = new thumbnail(7444030,'153869','','alex_thumb.jpg',130, 151,15,'photo_7444030.html');
												thumbnails[7444037] = new thumbnail(7444037,'153869','','64346_442248204213_774229213_4968329_6462356_n_thumb.jpg',130, 195,15,'photo_7444037.html');
												thumbnails[7444039] = new thumbnail(7444039,'153869','','71715_449681024213_774229213_5098826_6686903_n_thumb.jpg',130, 195,15,'photo_7444039.html');
												thumbnails[7444041] = new thumbnail(7444041,'153868','','77122_1784521731579_1195580852_32129658_6700503_n_thumb.jpg',130, 195,15,'photo_7444041.html');
												thumbnails[7444052] = new thumbnail(7444052,'153869','','Janey_silverscreen_thumb.jpg',130, 195,15,'photo_7444052.html');
												thumbnails[8135087] = new thumbnail(8135087,'153873','','Alex_Ferrari_ad_thumb.jpg',130, 184,15,'photo_8135087.html');
												thumbnails[3374895] = new thumbnail(3374895,'153869','','4904c126e12ec_thumb.jpg',130, 87,15,'photo_3374895.html');
												thumbnails[3375087] = new thumbnail(3375087,'153868','','l_3c409c990ab815aa39aca22e72b7835d_thumb.jpg',130, 196,15,'photo_3375087.html');
												thumbnails[5936161] = new thumbnail(5936161,'153868','','7_thumb.jpg',130, 161,15,'photo_5936161.html');
												thumbnails[6225979] = new thumbnail(6225979,'153869','','Laura_beauty_thumb.jpg',130, 161,15,'photo_6225979.html');
												thumbnails[7859454] = new thumbnail(7859454,'153869','','228776_10150172983363020_84613568019_6944999_1189774_n_thumb.jpg',130, 195,15,'photo_7859454.html');
												thumbnails[8135046] = new thumbnail(8135046,'153873','','george_spring_10_thumb.jpg',130, 82,15,'photo_8135046.html');
												thumbnails[8135091] = new thumbnail(8135091,'153868','','duoclassic_thumb.jpg',130, 173,15,'photo_8135091.html');
												thumbnails[8135096] = new thumbnail(8135096,'153868','','ibex_6ACA8429-1EC9-DFB6-09E3D73E7FEEBAC2_thumb.jpg',130, 195,15,'photo_8135096.html');
												thumbnails[8135106] = new thumbnail(8135106,'153869','','iphone_291_thumb.jpg',130, 195,15,'photo_8135106.html');
												thumbnails[8135109] = new thumbnail(8135109,'153869','','ibex_6AE67039-1EC9-DFB6-090F5C85F21AB66B_thumb.jpg',130, 195,15,'photo_8135109.html');
												thumbnails[8135113] = new thumbnail(8135113,'153869','','ibex2_thumb.jpg',130, 98,15,'photo_8135113.html');
												thumbnails[8135124] = new thumbnail(8135124,'153870','','IMG_1039_thumb.jpg',130, 87,15,'photo_8135124.html');
												thumbnails[3374896] = new thumbnail(3374896,'153869','','102017215_42LWCtls_thumb.jpg',130, 195,15,'photo_3374896.html');
												thumbnails[3375007] = new thumbnail(3375007,'153868','','_03_thumb.jpg',130, 96,15,'photo_3375007.html');
												thumbnails[6225965] = new thumbnail(6225965,'153868','','jade_110a_thumb.jpg',130, 173,15,'photo_6225965.html');
												thumbnails[6225977] = new thumbnail(6225977,'153868','','Acidic_Version2_thumb.jpg',130, 87,15,'photo_6225977.html');
												thumbnails[6225980] = new thumbnail(6225980,'153869','','Samera_beauty1_thumb.jpg',130, 161,15,'photo_6225980.html');
												thumbnails[6225981] = new thumbnail(6225981,'153869','','Samera_beauty_thumb.jpg',130, 161,15,'photo_6225981.html');
												thumbnails[7859459] = new thumbnail(7859459,'153869','','ibex_thumb.jpg',130, 195,15,'photo_7859459.html');
												thumbnails[8135047] = new thumbnail(8135047,'153873','','asda1_thumb.jpg',130, 180,15,'photo_8135047.html');
												thumbnails[8135126] = new thumbnail(8135126,'153870','','IMG_1593_thumb.jpg',130, 195,15,'photo_8135126.html');
												thumbnails[3374900] = new thumbnail(3374900,'153869','','Miki 11_thumb.jpg',130, 195,15,'photo_3374900.html');
												thumbnails[3375157] = new thumbnail(3375157,'153868','','princesspunkatron2_079a_thumb.jpg',130, 173,15,'photo_3375157.html');
												thumbnails[4104430] = new thumbnail(4104430,'153868','','4a1db2ad612de_thumb.jpg',130, 194,15,'photo_4104430.html');
												thumbnails[8135049] = new thumbnail(8135049,'153873','','asda2_thumb.jpg',130, 179,15,'photo_8135049.html');
												thumbnails[8135129] = new thumbnail(8135129,'153870','','IMG_1599_thumb.jpg',130, 195,15,'photo_8135129.html');
												thumbnails[2574503] = new thumbnail(2574503,'153869','','Nhuc 001_thumb.jpg',130, 194,15,'photo_2574503.html');
												thumbnails[2574551] = new thumbnail(2574551,'153868','','movrah1_thumb.jpg',130, 182,15,'photo_2574551.html');
												thumbnails[3375084] = new thumbnail(3375084,'153869','','IMG_6565-Edit (Medium)_thumb.jpg',130, 189,15,'photo_3375084.html');
												thumbnails[6226041] = new thumbnail(6226041,'153868','','_MG_0549_thumb.jpg',130, 89,15,'photo_6226041.html');
												thumbnails[8135051] = new thumbnail(8135051,'153873','','glamour1_thumb.jpg',130, 182,15,'photo_8135051.html');
												thumbnails[3374951] = new thumbnail(3374951,'153869','','Sammi_thumb.jpg',130, 104,15,'photo_3374951.html');
												thumbnails[3375083] = new thumbnail(3375083,'153868','','IMG_6396-Edit (Medium)_thumb.jpg',130, 89,15,'photo_3375083.html');
												thumbnails[8135057] = new thumbnail(8135057,'153873','','glam2_thumb.jpg',130, 179,15,'photo_8135057.html');
												thumbnails[3374954] = new thumbnail(3374954,'153869','','hannahmariska_428a_thumb.jpg',130, 173,15,'photo_3374954.html');
												thumbnails[3375004] = new thumbnail(3375004,'153868','','_02_thumb.jpg',130, 195,15,'photo_3375004.html');
												thumbnails[3375183] = new thumbnail(3375183,'153868','','tam3_034a_thumb.jpg',130, 98,15,'photo_3375183.html');
												thumbnails[8135067] = new thumbnail(8135067,'153873','','glam4_thumb.jpg',130, 174,15,'photo_8135067.html');
												thumbnails[3375130] = new thumbnail(3375130,'153869','','2+_thumb.jpg',130, 130,15,'photo_3375130.html');
												thumbnails[3374899] = new thumbnail(3374899,'153869','','101950422_bU6MappF1_thumb.jpg',130, 87,15,'photo_3374899.html');
												thumbnails[3375062] = new thumbnail(3375062,'153868','','lizzycharlie_132a_thumb.jpg',130, 173,15,'photo_3375062.html');
												thumbnails[3375123] = new thumbnail(3375123,'153868','','Tam+hkirton 033_thumb.jpg',130, 195,15,'photo_3375123.html');
												thumbnails[2574533] = new thumbnail(2574533,'153868','','11_thumb.jpg',130, 194,15,'photo_2574533.html');
												thumbnails[3375078] = new thumbnail(3375078,'153869','','IMG_6117-Edit (Medium)_thumb.jpg',130, 189,15,'photo_3375078.html');
												thumbnails[2573872] = new thumbnail(2573872,'153869','','1_thumb.jpg',130, 195,15,'photo_2573872.html');
												thumbnails[2574611] = new thumbnail(2574611,'153868','','edited1_thumb.jpg',130, 187,15,'photo_2574611.html');
												thumbnails[2573978] = new thumbnail(2573978,'153869','','joja shoot 012_thumb.jpg',130, 121,15,'photo_2573978.html');
												thumbnails[3374959] = new thumbnail(3374959,'153869','','hannahmariska_538a_thumb.jpg',130, 173,15,'photo_3374959.html');
												thumbnails[2573884] = new thumbnail(2573884,'153869','','h_thumb.kirton 017.jpg',130, 195,15,'photo_2573884.html');
												thumbnails[2574549] = new thumbnail(2574549,'153869','','jade_thumb.jpg',130, 181,15,'photo_2574549.html');
												thumbnails[2573911] = new thumbnail(2573911,'153869','','h_thumb.kirton 021.jpg',130, 195,15,'photo_2573911.html');
												thumbnails[2574541] = new thumbnail(2574541,'153868','','joja shoot 128_thumb.jpg',130, 156,15,'photo_2574541.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[153868] = new gallery(153868,'2574551','Fashion','gallery',[6225985,6226028,7444041,3375087,5936161,8135091,8135096,3375007,6225965,6225977,3375157,4104430,2574551,6226041,3375083,3375004,3375183,3375062,3375123,2574533,2574611,2574541],0, 0, '', 'gallery_153868.html',0,0);
				  					galleries[153869] = new gallery(153869,'8135113,3374900','Beauty','gallery',[7444030,7444037,7444039,7444052,3374895,6225979,7859454,8135106,8135109,8135113,3374896,6225980,6225981,7859459,3374900,2574503,3375084,3374951,3374954,3375130,3374899,3375078,2573872,2573978,3374959,2573884,2574549,2573911],0, 0, '', 'gallery_153869.html',0,0);
				  					galleries[153870] = new gallery(153870,'8135126,8135124','Music','gallery',[2574608,4171760,4171784,8135124,8135126,8135129],0, 0, '', 'gallery_153870.html',0,0);
				  					galleries[153871] = new gallery(153871,'2574561,2574558','Film','gallery',[2574558,2574561],0, 0, '', 'gallery_153871.html',0,0);
				  					galleries[153872] = new gallery(153872,'','Wedding','gallery',[],0, 0, '', 'gallery_153872.html',0,0);
				  					galleries[153873] = new gallery(153873,'8135087,8135067,8135057,8135051,8135049,8135047,8135046','Publications','gallery',[8135087,8135046,8135047,8135049,8135051,8135057,8135067],0, 0, '', 'gallery_153873.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '8135113,8135106,7444041,7444030,6226028,6225985,6225980,6225979,3375157,3375087,3375084,3374900,3374896,2574503';
imageSets[2] = '8135126,8135124,8135113,3374900,2574551';
imageSets[3] = '8135129,8135126,8135124,8135113,8135109,8135106,8135096,8135091,8135087,8135067,8135057,8135051,8135049,8135047,8135046,7859459,7859454,7444052,7444041,7444039,7444037,7444030,6226041,6226028,6225985,6225981,6225980,6225979,6225977,6225965,5936161,4171784,4171760,4104430,3375183,3375157,3375130,3375123,3375087,3375084,3375083,3375078,3375062,3375007,3375004,3374959,3374954,3374951,3374900,3374899';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/enviehairmakeup/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/enviehairmakeup/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 = 'Samantha Lyann Hair & Makeup Artist: ' + 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 == undefined) {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = temp + '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
				
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp = temp + '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
		
	if(img){
	      if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
        imageID = imageID[1];
      } else {
			  imageID = randomListVal(galleries[gallery_id].featured_images);
      }
							
			if (imageID != 0) {
				img.src = thumbnails[imageID].src;
				img.width = thumbnails[imageID].width;
				img.height = thumbnails[imageID].height;
				img.alt = galleries[gallery_id].title;
        if (updateLink) {
          $(img).parent().attr({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

