/***************************************************************************
* Create a photo object                                                    *
***************************************************************************/
function photo(id, galleries_id, photo_ref, section_code, src, width, height, caption, thumbnail, thumbnail_width, thumbnail_height, home, gallery, description, takendate, photographer, location, item_price, purchase_instruction) {
	this.id = id;
	this.galleries_id = galleries_id;
	this.photo_ref = photo_ref;
	this.section_code = section_code;
	this.src = src;
	this.width = width;
	this.height = height;
	this.caption = caption;
	this.thumbnail = thumbnail;
	this.thumbnail_width = thumbnail_width;
	this.thumbnail_height = thumbnail_height;
	this.home = home;
	this.gallery = gallery;
	this.description = description;
	this.takendate = takendate;
	this.photographer = photographer;
	this.location = location;
	this.item_price = item_price;
	this.purchase_instruction = purchase_instruction;
}
/***************************************************************************
* Create a gallery object                                                  *
***************************************************************************/

function gallery(id,featured_images,title,section_code) {
	this.id = id;
	this.featured_images = featured_images;
	this.title = title;
	this.section_code = section_code;}

/***************************************************************************
* Select a random value from a comma separated list                        *
***************************************************************************/
function randomListVal(list) {
	arrayVals = list.split(',');
	pos = Math.round(Math.random() * (arrayVals.length - 1));
	debug('Returning ' + arrayVals[pos] + ' as random image');
	return arrayVals[pos];
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('3582048,3581999,3581991,3581782,3581763,3581577,3581568,3581548,3581541,3581515,2429586,2429526,2429485,2429471,2429405,2429382,2429315,1463828,757814,581913');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if (!basic) {
			img.src = photos[j].src;
			img.width = photos[j].width;
			img.height = photos[j].height;
			}
			else {
				newImage = new Image(photos[j].width,photos[j].height);
				newImage.src = photos[j].src;
				document.images[img.name] = newImage;
				debug(newImage.src);
			}
			break;
		}
	}
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline() {
	
	imageID = randomListVal('3582048,3581999,3581991,3581782,3581763,3581577,3581568,3581548,3581541,3581515,2429586,2429526,2429485,2429471,2429405,2429382,2429315,1463828,757814,581913');
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			if ('gallery' != '') {
						if (photos[j].galleries_id != '') {
						document.write('<a href="' + photos[j].section_code + '_' + photos[j].galleries_id + '.html">');
						}
						else {
						document.write('<a href="gallery.html">');
						}
			}
			document.write('<img src="' + photos[j].src + '" width="' + photos[j].width + '" height="' + photos[j].height + '" class="mainhomepageimage" id="mainSample" name="mainSample" alt="' + photos[j].caption  + '" border="0">');
			if ('gallery' != '') {
				document.write('</a>');
			}
			break;
		}
	}
	
}

/***************************************************************************
* Show the next image in a gallery.  field = hidden field containing       *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function next(field,img) {

	debug('IN next');
	imageID = field.value;
	
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k= j + 1;
	while (nextImg < 0) {
		for (; k < photos.length; k++) {
			debug('testing image ' + k + ': gallery = ' + photos[k].galleries_id + '(existing: ' + photos[j].galleries_id + ')');
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				debug('setting  nextImg = ' + k);
				break;
			}
		}
		if (nextImg == -1) {
			k = 0;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);
	}


}


/***************************************************************************
* Set a new image on the gallery detail page given its array position      *
***************************************************************************/
function updateImage (nextImg, field,img) {
	debug('Updating image');
	if (!basic && !((1) || (0))) {
		debug('In updateImage');
		debug('setting  img src = ' + photos[nextImg].src);
		
					
			document.getElementById('imagePhoto').innerHTML = '<img class="mainphoto" src="' + photos[nextImg].src + ' " id="mainPic" name="mainPic" width="' + photos[nextImg].width + '" height="' + photos[nextImg].height + '" alt="' + photos[nextImg].caption + '">';
						field.value = photos[nextImg].id;
			document.getElementById('imageTitle').innerHTML = photos[nextImg].caption;
									document.title = 'Photography by Sabrina Willekens: ' + photos[nextImg].caption;
										/* apply 'blank' classname to element where */			if ( photos[nextImg].caption == '') {
				document.getElementById('imageTitle').style.className = 'blank';
			}
			else {
				document.getElementById('imageTitle').style.className = 'normal';
			}
						temp = '';
			if (photos[nextImg].description != '') {
				temp = temp +  '<p id="imageDescription">' + photos[nextImg].description + '</p>';
			}
						if (photos[nextImg].photo_ref != '') {
				temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + photos[nextImg].photo_ref + '</p>';
			}
						if (photos[nextImg].takendate != '') {
				debug('Resetting taken date');
				temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + photos[nextImg].takendate + '</p>';
			}
			
			if (photos[nextImg].location != '') {
				debug('Resetting location');
				temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  photos[nextImg].location + '</p>';
			}
			
			if (photos[nextImg].photographer != '') {
				debug('Resetting photographer');
				temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + photos[nextImg].photographer + '</p>';
			}
			if (temp != '') {				temp = temp + '<div class="spacer"></div>';			}					if (temp == '') {
			document.getElementById('imageDetails').style.display = 'none';
		}
		else {
			document.getElementById('imageDetails').style.display = 'block';
		}
		document.getElementById('imageDetails').innerHTML =temp;	
		
	}
	else {
		debug('Redirecting to id ' + photos[nextImg].id);
		window.location = 'photo_' + photos[nextImg].id + '.html';
	}
}

/***************************************************************************
* Show the previous image for a gallery. field = hidden field containing   *
* image_id                                                                 *
*  img = reference to image object in which to show image                  *
***************************************************************************/
function previous(field,img) {


	imageID = field.value;
	for (j = 0; j < photos.length; j++) {
		if (photos[j].id == imageID) {
			break;
		}
	}
	debug('image is ' + j);
	nextImg = -1;
	k = j -1;
	while (nextImg < 0) {
		for (; k >= 0; k--) {
			if (photos[k].galleries_id == photos[j].galleries_id) {
				nextImg = k;
				break;
			}
		}
		if (nextImg == -1) {
			k = photos.length -1;
		}
	}
	if (nextImg != -1) {
		updateImage(nextImg, field,img);	
	}
}

/***************************************************************************
* 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) {
	debug('Gallery = ' + gallery_id);
	for (i = 0; i < galleries.length; i++) {
		if (galleries[i].id == gallery_id) {
			imageID = randomListVal(galleries[i].featured_images);
				for (j = 0; j < photos.length; j++) {
					if (photos[j].id == imageID) {
						
						img.src = photos[j].thumbnail;
						img.width = photos[j].thumbnail_width;
						img.height = photos[j].thumbnail_height;
						
						break;
					}
				}
			break;
		}
	} 
	}

/***************************************************************************
* If we have dynamic HTML                                                  *
*  replace the galleries link with a list that                             *
* doesn't include the current gallery                                      *
***************************************************************************/
function showGalleries(gallery_id) {
	debug('Showing links for gallery ' + gallery_id);
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
			debug('Testing gallery ' + galleries[i].id);
			
			if (galleries[i].id != gallery_id) {
				debug('Adding link');
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="gallery_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}
/***************************************************************************
* Create the array of Photo objects                                        *
***************************************************************************/
photos = new Array();
photos[0] = new photo(581912,'44814','','gallery','http://www3.clikpic.com/seileasdar/images/perth railway bidge.jpg',400,590,'misty river tay','http://www3.clikpic.com/seileasdar/images/perth railway bidge_thumb.jpg',130, 192,0, 0,'2/20','','Sabrina Willekens','','','');
photos[1] = new photo(581913,'44814','','gallery','http://www3.clikpic.com/seileasdar/images/barriers 11.jpg',400,268,'versteh\' ich nicht','http://www3.clikpic.com/seileasdar/images/barriers 11_thumb.jpg',130, 87,1, 0,'2/20 <br>\r\n(sold at Barriers exhibition)','','Sabrina Willekens','','','');
photos[2] = new photo(581915,'44814','','gallery','http://www3.clikpic.com/seileasdar/images/no a101.jpg',400,533,'Berliner Funkturm','http://www3.clikpic.com/seileasdar/images/no a101_thumb.jpg',130, 173,0, 1,'1/20','','','','','');
photos[3] = new photo(581917,'44814','','gallery','http://www3.clikpic.com/seileasdar/images/floating past.jpg',400,605,'floating past','http://www3.clikpic.com/seileasdar/images/floating past_thumb.jpg',130, 197,0, 0,'1/20<br>\r\nThis picture has also recently won the first prize in a club competition and has been awarded with the Grant Cup of the Perthshire Photographic Society.','','Sabrina Willekens','','','');
photos[4] = new photo(757789,'44814','','gallery','http://www3.clikpic.com/seileasdar/images/frosty rose.jpg',300,400,'frosty rose','http://www3.clikpic.com/seileasdar/images/frosty rose_thumb.jpg',130, 173,0, 1,'1/20','','Sabrina Willekens','','','');
photos[5] = new photo(757813,'44814','','gallery','http://www3.clikpic.com/seileasdar/images/floodings.jpg',450,600,'floodings','http://www3.clikpic.com/seileasdar/images/floodings_thumb.jpg',130, 173,0, 0,'1/20','','Sabrina Willekens','','','');
photos[6] = new photo(2429315,'8476','','gallery','http://www3.clikpic.com/seileasdar/images/staircase elcho castle.jpg',600,450,'Staircase in Elcho Castle','http://www3.clikpic.com/seileasdar/images/staircase elcho castle_thumb.jpg',130, 98,1, 1,'This Historic Scotland property is a fount of amazing pictures, and I am going back for more soon!','','Sabrina Willekens','','','');
photos[7] = new photo(2429354,'8476','','gallery','http://www3.clikpic.com/seileasdar/images/warning.jpg',600,416,'Warning','http://www3.clikpic.com/seileasdar/images/warning_thumb.jpg',130, 90,0, 0,'Traffic lights','','Sabrina Willekens','','','');
photos[8] = new photo(3581626,'8476','','gallery','http://www3.clikpic.com/seileasdar/images/120477_upwardsonwards_scaled.jpg',500,667,'upwards and onwards','http://www3.clikpic.com/seileasdar/images/120477_upwardsonwards_scaled_thumb.jpg',130, 173,0, 0,'','','Sabrina Willekens','','','');
photos[9] = new photo(3581670,'8476','','gallery','http://www3.clikpic.com/seileasdar/images/img_2081_scaled.jpg',600,400,'sunshine in orange','http://www3.clikpic.com/seileasdar/images/img_2081_scaled_thumb.jpg',130, 87,0, 1,'The blinds on the Jaarbeurs in Utrecht were all drawn to prevent the rooms from catching too much sun. Of course they would be orange, the royal colour in Holland.','','Sabrina Willekens','','','');
photos[10] = new photo(757814,'8482','','gallery','http://www3.clikpic.com/seileasdar/images/lost in thought.jpg',533,400,'lost in thought','http://www3.clikpic.com/seileasdar/images/lost in thought_thumb.jpg',130, 98,1, 1,'The current exhibition about glass art was rather mesmerising.','','Sabrina Willekens','','','');
photos[11] = new photo(3581777,'8482','','gallery','http://www3.clikpic.com/seileasdar/images/img_0174_scaled.jpg',600,400,'relief','http://www3.clikpic.com/seileasdar/images/img_0174_scaled_thumb.jpg',130, 87,0, 0,'again, my favourite angel in the local cemetery','','','','','');
photos[12] = new photo(3581782,'8482','','gallery','http://www3.clikpic.com/seileasdar/images/img_1398_scaled.jpg',500,750,'waiting game','http://www3.clikpic.com/seileasdar/images/img_1398_scaled_thumb.jpg',130, 195,1, 1,'A hefty flash into a gloomy setting resulted in this exposure','','Sabrina Willekens','','','');
photos[13] = new photo(3581823,'8482','','gallery','http://www3.clikpic.com/seileasdar/images/no_38.jpg',600,450,'as relaxed as possible','http://www3.clikpic.com/seileasdar/images/no_38_thumb.jpg',130, 98,0, 0,'You cannot really be more relaxed than this big cat in Berlin Zoo.','','Sabrina Willekens','','','');
photos[14] = new photo(3581923,'8482','','gallery','http://www3.clikpic.com/seileasdar/images/Perth_03.jpg',600,407,'lost in time','http://www3.clikpic.com/seileasdar/images/Perth_03_thumb.jpg',130, 88,0, 1,'The thick mist hanging over Perth gave the scenery an unbelievingly unworldliness.','','Sabrina Willekens','','','');
photos[15] = new photo(3581986,'8482','','gallery','http://www3.clikpic.com/seileasdar/images/sunshine_032_scaled.jpg',500,667,'brittle warmth','http://www3.clikpic.com/seileasdar/images/sunshine_032_scaled_thumb.jpg',130, 173,0, 1,'This shot was taken in the very early spring where the sun turns stronger and no leaves were on the trees yet.','','Sabrina Willekens','','','');
photos[16] = new photo(1463828,'8484','','gallery','http://www3.clikpic.com/seileasdar/images/lily.jpg',500,667,'daring to intrude','http://www3.clikpic.com/seileasdar/images/lily_thumb.jpg',130, 173,1, 1,'Lilies taken as you would a model on a catwalk, from below, with lots of flash, to enhance the graceful beauty.','','Sabrina Willekens','','','');
photos[17] = new photo(2429468,'8484','','gallery','http://www3.clikpic.com/seileasdar/images/spider circle.jpg',600,450,'Circling spider','http://www3.clikpic.com/seileasdar/images/spider circle_thumb.jpg',130, 98,0, 0,'A shot that could equally be filed under \"rhythm and pattern\"','','Sabrina Willekens','','','');
photos[18] = new photo(3581541,'8484','','gallery','http://www3.clikpic.com/seileasdar/images/060177_woods_scaled.jpg',500,667,'into the woods','http://www3.clikpic.com/seileasdar/images/060177_woods_scaled_thumb.jpg',130, 173,1, 1,'','','','','','');
photos[19] = new photo(3581548,'8484','','gallery','http://www3.clikpic.com/seileasdar/images/img_1853_manip_scaled.jpg',600,400,'frozen in hope','http://www3.clikpic.com/seileasdar/images/img_1853_manip_scaled_thumb.jpg',130, 87,1, 1,'The frost on the Müggelsee had been a few days old and had been through sun and refrosting, so there were fascinating icicles forming above the surface.','','Sabrina Willekens','','','');
photos[20] = new photo(3581549,'8484','','gallery','http://www3.clikpic.com/seileasdar/images/raindrops_scaled.jpg',600,450,'after the rain','http://www3.clikpic.com/seileasdar/images/raindrops_scaled_thumb.jpg',130, 98,0, 0,'taken right after the shower had stopped','','Sabrina Willekens','','','');
photos[21] = new photo(2429382,'8488','','gallery','http://www3.clikpic.com/seileasdar/images/calm sea.jpg',600,451,'Calm Sea','http://www3.clikpic.com/seileasdar/images/calm sea_thumb.jpg',130, 98,1, 1,'a winter\'s afternoon at the sea side','','Sabrina Willekens','','','');
photos[22] = new photo(2429578,'8488','','gallery','http://www3.clikpic.com/seileasdar/images/nichtsdestoweniger bw.jpg',600,450,'Train of thoughts','http://www3.clikpic.com/seileasdar/images/nichtsdestoweniger bw_thumb.jpg',130, 98,0, 1,'In language, conjunctions are small pauses in the gestus of syntax, they let patterns settle and open up new aspects. A train of conjunctions can result in a flowing stagnation that can then only be broken by striding through the congestion.','','Sabrina Willekens','','','');
photos[23] = new photo(2429586,'8488','','gallery','http://www3.clikpic.com/seileasdar/images/speedy grey.jpg',600,381,'speedy transition','http://www3.clikpic.com/seileasdar/images/speedy grey_thumb.jpg',130, 83,1, 0,'Transition frozen in eternity','','Sabrina Willekens','','','');
photos[24] = new photo(3581512,'8488','','gallery','http://www3.clikpic.com/seileasdar/images/img_1338_scaled.jpg',600,450,'mirror mirror','http://www3.clikpic.com/seileasdar/images/img_1338_scaled_thumb.jpg',130, 98,0, 0,'strange contorting lenses add imminent fake photoshop effects to the exposure and save quite a lot of computer work in the process','','Sabrina Willekens','','','');
photos[25] = new photo(3581515,'8488','','gallery','http://www3.clikpic.com/seileasdar/images/img_1769_manip_scaled.jpg',600,497,'fireworks and good fortune','http://www3.clikpic.com/seileasdar/images/img_1769_manip_scaled_thumb.jpg',130, 108,1, 0,'good luck and fortune captured and saturated in colour','','','','','');
photos[26] = new photo(3581535,'8488','','gallery','http://www3.clikpic.com/seileasdar/images/retail_cathedral_scaled.jpg',600,235,'retail cathedral','http://www3.clikpic.com/seileasdar/images/retail_cathedral_scaled_thumb.jpg',130, 51,0, 0,'This sight of illuminating a shopping mall in Utrecht in Holland has not been manipulated very much, the colours are almost as they were on the night.','','','','','');
photos[27] = new photo(2429471,'8487','','gallery','http://www3.clikpic.com/seileasdar/images/img_0081 manip.jpg',600,178,'Evening sky over Berlin','http://www3.clikpic.com/seileasdar/images/img_0081 manip_thumb.jpg',130, 39,1, 0,'Despite being so big and high rise, Berlin has so much sky!','','Sabrina Willekens','','','');
photos[28] = new photo(2429485,'8487','','gallery','http://www3.clikpic.com/seileasdar/images/img_0158.jpg',600,450,'Before the concert','http://www3.clikpic.com/seileasdar/images/img_0158_thumb.jpg',130, 98,1, 0,'The Philharmonie in Berlin is always busy before a major concert.','','Sabrina Willekens','','','');
photos[29] = new photo(3581672,'8487','','gallery','http://www3.clikpic.com/seileasdar/images/ossenhaas_scaled.jpg',600,294,'Cute bunny','http://www3.clikpic.com/seileasdar/images/ossenhaas_scaled_thumb.jpg',130, 64,0, 1,'This oversized bunny was probably awaiting the arrival of Easter festivities - as it was still the middle of January, he was in for a long wait indeed and looks fittingly glum','','Sabrina Willekens','','','');
photos[30] = new photo(3581719,'8487','','gallery','http://www3.clikpic.com/seileasdar/images/img_0770_scaled.jpg',600,400,'Ronnie Nae Mates','http://www3.clikpic.com/seileasdar/images/img_0770_scaled_thumb.jpg',130, 87,0, 1,'pity, really...','','Sabrina Willekens','','','');
photos[31] = new photo(3581763,'8487','','gallery','http://www3.clikpic.com/seileasdar/images/img_1687_manip_scaled.jpg',600,153,'the gap','http://www3.clikpic.com/seileasdar/images/img_1687_manip_scaled_thumb.jpg',130, 33,1, 0,'This is the space where the famous Palast der Republik stood. Nothing much left after its destruction in the end of 2008.','','Sabrina Willekens','','','');
photos[32] = new photo(2429405,'218937','','gallery','http://www3.clikpic.com/seileasdar/images/stecker.jpg',600,339,'Leaking plug','http://www3.clikpic.com/seileasdar/images/stecker_thumb.jpg',130, 73,1, 1,'I love the reflection in the water on this shot.','','Sabrina Willekens','','','');
photos[33] = new photo(2429526,'218937','','gallery','http://www3.clikpic.com/seileasdar/images/img_0055 manip.jpg',500,708,'knackered','http://www3.clikpic.com/seileasdar/images/img_0055 manip_thumb.jpg',130, 184,1, 0,'There is a distinctive serenity in old battered street furniture.','','Sabrina Willekens','','','');
photos[34] = new photo(3581991,'218937','','gallery','http://www3.clikpic.com/seileasdar/images/ikea_your_life_scaled.jpg',600,331,'ikea your life','http://www3.clikpic.com/seileasdar/images/ikea_your_life_scaled_thumb.jpg',130, 72,1, 1,'','','Sabrina Willekens','','','');
photos[35] = new photo(3581994,'218937','','gallery','http://www3.clikpic.com/seileasdar/images/img_0774_scaled.jpg',600,400,'rags','http://www3.clikpic.com/seileasdar/images/img_0774_scaled_thumb.jpg',130, 87,0, 1,'','','Sabrina Willekens','','','');
photos[36] = new photo(3581999,'218937','','gallery','http://www3.clikpic.com/seileasdar/images/img_0778_scaled.jpg',500,750,'torn and forgotten','http://www3.clikpic.com/seileasdar/images/img_0778_scaled_thumb.jpg',130, 195,1, 0,'','','Sabrina Willekens','','','');
photos[37] = new photo(3582043,'218937','','gallery','http://www3.clikpic.com/seileasdar/images/img_1430_scaled.jpg',500,750,'finished and rejected','http://www3.clikpic.com/seileasdar/images/img_1430_scaled_thumb.jpg',130, 195,0, 1,'','','Sabrina Willekens','','','');
photos[38] = new photo(3582048,'218937','','gallery','http://www3.clikpic.com/seileasdar/images/img_1587_scaled.jpg',600,404,'twisted','http://www3.clikpic.com/seileasdar/images/img_1587_scaled_thumb.jpg',130, 88,1, 1,'','','Sabrina Willekens','','','');
photos[39] = new photo(3581560,'218948','','gallery','http://www3.clikpic.com/seileasdar/images/img_0338_scaled.jpg',500,750,'Enchanted Forest','http://www3.clikpic.com/seileasdar/images/img_0338_scaled_thumb.jpg',130, 195,0, 0,'The staged light and sound show \"Enchanted Forest\" of October 2008 in Pitlochry was fascinating and gave me a first field opportunity to try out my wonderful new camera -  and I was rather pleased with the results, indeed.','','Sabrina Willekens','','','');
photos[40] = new photo(3581568,'218948','','gallery','http://www3.clikpic.com/seileasdar/images/img_0564_manip2_scaled.jpg',600,238,'Guy Fawkes Night in Perth','http://www3.clikpic.com/seileasdar/images/img_0564_manip2_scaled_thumb.jpg',130, 52,1, 1,'Just before the fireworks kicked off, this shot was taken with the disguise of the bonfire in full blast against the horison.','','Sabrina Willekens','','','');
photos[41] = new photo(3581574,'218948','','gallery','http://www3.clikpic.com/seileasdar/images/img_1162_manip_scaled.jpg',600,199,'yellow and cold','http://www3.clikpic.com/seileasdar/images/img_1162_manip_scaled_thumb.jpg',130, 43,0, 0,'I doubt that this establishment drew a lot of business that night.','','Sabrina Willekens','','','');
photos[42] = new photo(3581577,'218948','','gallery','http://www3.clikpic.com/seileasdar/images/img_1201_scaled.jpg',600,400,'down by the riverside','http://www3.clikpic.com/seileasdar/images/img_1201_scaled_thumb.jpg',130, 87,1, 0,'It was almost pitch dark when taking this shot with an exposure of around 6 seconds, I was fascinated by the colours that resulted.','','Sabrina Willekens','','','');
photos[43] = new photo(3581580,'218948','','gallery','http://www3.clikpic.com/seileasdar/images/img_2216_scaled.jpg',600,400,'coffee and news','http://www3.clikpic.com/seileasdar/images/img_2216_scaled_thumb.jpg',130, 87,0, 0,'Still life in my kitchen in the middle of the night','','Sabrina Willekens','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(44814,'757789,581915','sold items','gallery');
galleries[1] = new gallery(8476,'3581670,2429315','rhythm and pattern','gallery');
galleries[2] = new gallery(8482,'3581986,3581923,3581782,757814','tranquillity','gallery');
galleries[3] = new gallery(8484,'3581548,3581541,1463828','nature','gallery');
galleries[4] = new gallery(8488,'2429578,2429382','creative photography','gallery');
galleries[5] = new gallery(8487,'3581719,3581672','sights','gallery');
galleries[6] = new gallery(218937,'3582048,3582043,3581994,3581991,2429405','urban','gallery');
galleries[7] = new gallery(218948,'3581568','night time','gallery');

