/***************************************************************************
* 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('3138722,3138721,2030542,2030540,189996,187577,187572,187568,187362');
	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('3138722,3138721,2030542,2030540,189996,187577,187572,187568,187362');
	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 && !((0) || (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 = 'phil inglis golf photography : ' + 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(2030503,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Karlovy Vary.jpg',600,400,'CZECH REPUBLIC / Karlovy Vary','http://www4.clikpic.com/golfoto/images/Karlovy Vary_thumb.jpg',130, 87,0, 0,'Karlovy Vary GC','20/10/06','phil INGLIS','Karlovy Vary Golf, Czech Republic','','');
photos[1] = new photo(187371,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Bad Lie0078.jpg',400,507,'Bad Lie / Tenerife','http://www4.clikpic.com/golfoto/images/Bad Lie0078_thumb.jpg',130, 165,0, 1,'','','','','','');
photos[2] = new photo(187372,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Caddie0304A4.jpg',400,264,'Caddie / PGA de Catalunya, Spain','http://www4.clikpic.com/golfoto/images/Caddie0304A4_thumb.jpg',130, 86,0, 0,'','','','','','');
photos[3] = new photo(187373,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Deer3439.jpg',400,229,'Reindeer / Copenhagen Golf Club','http://www4.clikpic.com/golfoto/images/Deer3439_thumb.jpg',130, 74,0, 0,'','','','','','');
photos[4] = new photo(187374,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Inglis9231.jpg',400,590,'Brother Mike / Practice','http://www4.clikpic.com/golfoto/images/Inglis9231_thumb.jpg',130, 192,0, 0,'','','','','','');
photos[5] = new photo(187375,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Jump1.jpg',400,480,'Graeme McDowell / The Open Championship 2005','http://www4.clikpic.com/golfoto/images/Jump1_thumb.jpg',130, 156,0, 0,'','','','','','');
photos[6] = new photo(187562,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Ballesteros3003A4.jpg',400,406,'Severiano Ballesteros / Volvo Masters 1994','http://www4.clikpic.com/golfoto/images/Ballesteros3003A4_thumb.jpg',130, 132,0, 0,'','','','','','');
photos[7] = new photo(187565,'17185','','gallery','http://www4.clikpic.com/golfoto/images/chino.jpg',400,261,'Vicente Fernandez / English Open 1992','http://www4.clikpic.com/golfoto/images/chino_thumb.jpg',130, 85,0, 0,'','','','','','');
photos[8] = new photo(187566,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Faldo199684.jpg',400,270,'Nick Faldo / Scottish Open 1995','http://www4.clikpic.com/golfoto/images/Faldo199684_thumb.jpg',130, 88,0, 0,'','','','','','');
photos[9] = new photo(187568,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Harrington8180.jpg',400,257,'Padraig Harrington / Smurfit European Open 2004','http://www4.clikpic.com/golfoto/images/Harrington8180_thumb.jpg',130, 84,1, 0,'','','','','','');
photos[10] = new photo(187570,'17184','','gallery','http://www4.clikpic.com/golfoto/images/IMG_8103.jpg',400,295,'Paul McGinley / Ryder Cup 2002','http://www4.clikpic.com/golfoto/images/IMG_8103_thumb.jpg',130, 96,0, 1,'','','','','','');
photos[11] = new photo(187573,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Player 40010211.jpg',400,265,'Gary Player / The Open Championship 2000','http://www4.clikpic.com/golfoto/images/Player 40010211_thumb.jpg',130, 86,0, 1,'','','','','','');
photos[12] = new photo(187575,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Poulter0472.jpg',400,576,'IAN POULTER / The Open Championship 2004','http://www4.clikpic.com/golfoto/images/Poulter0472_thumb.jpg',130, 187,0, 0,'','','','','','');
photos[13] = new photo(187577,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Rose-Iceland.0002.jpg',400,265,'JUSTIN ROSE / Exhibition Match, Reykjavic, Iceland.','http://www4.clikpic.com/golfoto/images/Rose-Iceland_thumb.0002.jpg',130, 86,1, 0,'','','','','','');
photos[14] = new photo(187611,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Royal St.Davids GC.jpg',400,264,'WALES / Royal St David\'s GC, Harlech','http://www4.clikpic.com/golfoto/images/Royal St_thumb.Davids GC.jpg',130, 86,0, 0,'','','','','','');
photos[15] = new photo(188371,'17178','','gallery','http://www4.clikpic.com/golfoto/images/15RW6909.jpg',400,263,'BARBADOS / Royal Westmoreland','http://www4.clikpic.com/golfoto/images/15RW6909_thumb.jpg',130, 85,0, 1,'','','','','','');
photos[16] = new photo(188393,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Alcadeisa GC.jpg',400,300,'SPAIN/Alcadeisa Links/Nr Gibraltar','http://www4.clikpic.com/golfoto/images/Alcadeisa GC_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[17] = new photo(188475,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Guadalmina GC 2.jpg',400,267,'SPAIN / Guadalmina GC, Estepona','http://www4.clikpic.com/golfoto/images/Guadalmina GC 2_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[18] = new photo(188477,'17178','','gallery','http://www4.clikpic.com/golfoto/images/IMG_0024.JPG',400,267,'SPAIN / PGA de Catalunya, Girona','http://www4.clikpic.com/golfoto/images/IMG_0024_thumb.JPG',130, 87,0, 0,'','','','','','');
photos[19] = new photo(188478,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Hardelot GC. Les Pins011.jpg',400,267,'FRANCE / Hardelot / Les Pins','http://www4.clikpic.com/golfoto/images/Hardelot GC_thumb. Les Pins011.jpg',130, 87,0, 0,'','','','','','');
photos[20] = new photo(189657,'17178','','gallery','http://www4.clikpic.com/golfoto/images/4th hole exec-001.jpg',400,267,'TURKEY<br>\r\nNational Club/Antalya.','http://www4.clikpic.com/golfoto/images/4th hole exec-001_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[21] = new photo(189658,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Aphrodite Hills.jpg',400,267,'CYPRUS<br>\r\nAphrodite Hills/Paphos','http://www4.clikpic.com/golfoto/images/Aphrodite Hills_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[22] = new photo(189659,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Ballyliffin GC, (Glashedy)-1.jpg',400,267,'IRELAND<br>\r\nBallyliffin GC/Glashedy Links/Donegal.','http://www4.clikpic.com/golfoto/images/Ballyliffin GC, (Glashedy)-1_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[23] = new photo(189660,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Brocket Hall GC.jpg',400,267,'ENGLAND<br>\r\nBrocket Hall GC/Hatfield/Hertfordshire.','http://www4.clikpic.com/golfoto/images/Brocket Hall GC_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[24] = new photo(189661,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Golf du Soleil02.jpg',400,267,'MOROCCO<br>\r\nGolf du Soleil/Agadir','http://www4.clikpic.com/golfoto/images/Golf du Soleil02_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[25] = new photo(189662,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Keilir.jpg',400,267,'ICELAND<br>\r\nKeilir Golf/Reykjavic','http://www4.clikpic.com/golfoto/images/Keilir_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[26] = new photo(189663,'17178','','gallery','http://www4.clikpic.com/golfoto/images/machynys .jpg',400,267,'WALES<br>\r\nMachynys Peninsula Golf/Llanelli','http://www4.clikpic.com/golfoto/images/machynys _thumb.jpg',130, 87,0, 0,'','','','','','');
photos[27] = new photo(189664,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Monticello GC.jpg',400,267,'ITALY<br>\r\nMonticello Golf Club/Monticello','http://www4.clikpic.com/golfoto/images/Monticello GC_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[28] = new photo(189665,'17178','','gallery','http://www4.clikpic.com/golfoto/images/ocean course.jpg',400,267,'PORTUGAL<br>\r\nOcean Course/Vale do Lobo/Almansil/Algarve','http://www4.clikpic.com/golfoto/images/ocean course_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[29] = new photo(189666,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Oitavos.jpg',400,267,'PORTUGAL<br>\r\nOitavos Golf/Quinta da Marinha/Cascais/Lisbon','http://www4.clikpic.com/golfoto/images/Oitavos_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[30] = new photo(189667,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Pleneuf Val Andre GC-1.jpg',400,267,'FRANCE<br>\r\nPleneuf Val Andre GC/Brittany','http://www4.clikpic.com/golfoto/images/Pleneuf Val Andre GC-1_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[31] = new photo(189668,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Powerscourt.jpg',400,267,'IRELAND<br>\r\nPowerscourt Golf Club/Wicklow','http://www4.clikpic.com/golfoto/images/Powerscourt_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[32] = new photo(189669,'17178','','gallery','http://www4.clikpic.com/golfoto/images/quinta da cima.jpg',400,267,'PORTUGAL<br>\r\nQuinta da Cima Golf/ Tavira/ Algarve','http://www4.clikpic.com/golfoto/images/quinta da cima_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[33] = new photo(189670,'17178','','gallery','http://www4.clikpic.com/golfoto/images/r.aberdeen.jpg',400,267,'SCOTLAND<br>\r\nRoyal Aberdeen Golf Club/Aberdeen','http://www4.clikpic.com/golfoto/images/r_thumb.aberdeen.jpg',130, 87,0, 0,'','','','','','');
photos[34] = new photo(189671,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Royal Belfast GC.jpg',400,267,'NORTHERN IRELAND<br>\r\nRoyal Belfast Golf Club/ Belfast','http://www4.clikpic.com/golfoto/images/Royal Belfast GC_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[35] = new photo(189672,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Tobago Plantations1.jpg',400,267,'TRINIDAD & TOBAGO<br>\r\nTobago Plantations Golf Club/Scarborough/ Tobago','http://www4.clikpic.com/golfoto/images/Tobago Plantations1_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[36] = new photo(189673,'17178','','gallery','http://www4.clikpic.com/golfoto/images/ullna.jpg',400,267,'SWEDEN<br>\r\nUllna Golf Klub/Stockholm','http://www4.clikpic.com/golfoto/images/ullna_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[37] = new photo(189674,'17178','','gallery','http://www4.clikpic.com/golfoto/images/windsor.jpg',400,267,'KENYA<br>\r\nWindsor Golf & Country Club/Nairobi','http://www4.clikpic.com/golfoto/images/windsor_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[38] = new photo(189993,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Daniel 4089001.jpg',400,267,'Beth Daniel / Solheim Cup 2000','http://www4.clikpic.com/golfoto/images/Daniel 4089001_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[39] = new photo(189995,'17185','','gallery','http://www4.clikpic.com/golfoto/images/FALDO400.jpg',267,400,'Nick Faldo / US Open 2000','http://www4.clikpic.com/golfoto/images/FALDO400_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[40] = new photo(190000,'17185','','gallery','http://www4.clikpic.com/golfoto/images/NICKLAUS.jpg',267,400,'Jack Nicklaus / US Open 2000 / Pebble Beach','http://www4.clikpic.com/golfoto/images/NICKLAUS_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[41] = new photo(190003,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-2.jpg',400,267,'Tom Watson / The Open Championship 1993','http://www4.clikpic.com/golfoto/images/Untitled-2_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[42] = new photo(190004,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-3.jpg',267,400,'Greg Norman & Bernhard Langer/ The Open Championship 1993','http://www4.clikpic.com/golfoto/images/Untitled-3_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[43] = new photo(190005,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-5.jpg',267,400,'Payne Stewart / Bells Scottish Open 1993','http://www4.clikpic.com/golfoto/images/Untitled-5_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[44] = new photo(190006,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-7.jpg',267,400,'Tom Weiskopf','http://www4.clikpic.com/golfoto/images/Untitled-7_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[45] = new photo(190007,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-8.jpg',267,400,'Nick Faldo / The Open Championship 1992/ Muirfield','http://www4.clikpic.com/golfoto/images/Untitled-8_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[46] = new photo(190008,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-9.jpg',400,267,'Nick Faldo / Canon European Masters 1995','http://www4.clikpic.com/golfoto/images/Untitled-9_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[47] = new photo(190010,'17184','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-10.jpg',400,267,'Colin Montgomerie / Ryder Cup 1993','http://www4.clikpic.com/golfoto/images/Untitled-10_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[48] = new photo(190012,'17184','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-11.jpg',400,267,'European Ryder Cup Team 1993 / The Belfry','http://www4.clikpic.com/golfoto/images/Untitled-11_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[49] = new photo(190014,'17184','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-12.jpg',400,267,'Nick Faldo & Colin Montgomerie / Ryder Cup 1993','http://www4.clikpic.com/golfoto/images/Untitled-12_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[50] = new photo(190019,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-13.jpg',267,400,'Severiano Ballesteros/ PGA Championship 1994 / Wentworth','http://www4.clikpic.com/golfoto/images/Untitled-13_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[51] = new photo(190021,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-14.jpg',400,267,'Bernhard Langer / World Matchplay Championship','http://www4.clikpic.com/golfoto/images/Untitled-14_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[52] = new photo(190022,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-16.jpg',267,400,'Sam Torrance / Volvo Masters 1995','http://www4.clikpic.com/golfoto/images/Untitled-16_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[53] = new photo(190023,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-18.jpg',267,400,'Severiano Ballesteros / Volvo Masters 1994','http://www4.clikpic.com/golfoto/images/Untitled-18_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[54] = new photo(190024,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-19.jpg',267,400,'Seve and Caddie / Volvo Masters 1994/ Valderrama','http://www4.clikpic.com/golfoto/images/Untitled-19_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[55] = new photo(190025,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-21.jpg',400,267,'Canon Shoot Out Series / Switzerland','http://www4.clikpic.com/golfoto/images/Untitled-21_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[56] = new photo(190026,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-23.jpg',400,267,'Mr and Mrs Daly at St Andrews','http://www4.clikpic.com/golfoto/images/Untitled-23_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[57] = new photo(190029,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-25.jpg',400,267,'John Daly / The Open Championship 1994 / Turnberry','http://www4.clikpic.com/golfoto/images/Untitled-25_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[58] = new photo(190030,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-26.jpg',267,400,'Christy O\'Connor Jnr in amongst the trees','http://www4.clikpic.com/golfoto/images/Untitled-26_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[59] = new photo(190031,'17184','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-27.jpg',267,400,'Colin Montgomerie / Ryder Cup 1995/ Oak Hill','http://www4.clikpic.com/golfoto/images/Untitled-27_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[60] = new photo(190032,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-29.jpg',400,267,'Jose Rivero in the trees / Portuguese Open 1995','http://www4.clikpic.com/golfoto/images/Untitled-29_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[61] = new photo(190047,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-4.jpg',400,267,'Sign on the 1st tee Bethpage Black / US Open 2002','http://www4.clikpic.com/golfoto/images/Untitled-4_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[62] = new photo(190048,'17183','','gallery','http://www4.clikpic.com/golfoto/images/feherty.jpg',267,400,'David Feherty','http://www4.clikpic.com/golfoto/images/feherty_thumb.jpg',130, 195,0, 0,'','','','','','');
photos[63] = new photo(191685,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-161.jpg',304,400,'','http://www4.clikpic.com/golfoto/images/Untitled-161_thumb.jpg',130, 171,0, 0,'','','','','','');
photos[64] = new photo(191686,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-17.jpg',280,400,'','http://www4.clikpic.com/golfoto/images/Untitled-17_thumb.jpg',130, 186,0, 0,'','','','','','');
photos[65] = new photo(191687,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-191.jpg',280,400,'','http://www4.clikpic.com/golfoto/images/Untitled-191_thumb.jpg',130, 186,0, 0,'','','','','','');
photos[66] = new photo(191702,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-81.jpg',400,552,'','http://www4.clikpic.com/golfoto/images/Untitled-81_thumb.jpg',130, 179,0, 0,'','','','','','');
photos[67] = new photo(191703,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-91.jpg',400,550,'','http://www4.clikpic.com/golfoto/images/Untitled-91_thumb.jpg',130, 179,0, 0,'','','','','','');
photos[68] = new photo(191704,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-101.jpg',400,538,'','http://www4.clikpic.com/golfoto/images/Untitled-101_thumb.jpg',130, 175,0, 0,'','','','','','');
photos[69] = new photo(191705,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-111.jpg',400,545,'','http://www4.clikpic.com/golfoto/images/Untitled-111_thumb.jpg',130, 177,0, 0,'','','','','','');
photos[70] = new photo(191706,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-121.jpg',400,552,'','http://www4.clikpic.com/golfoto/images/Untitled-121_thumb.jpg',130, 179,0, 0,'','','','','','');
photos[71] = new photo(191707,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-131.jpg',400,544,'','http://www4.clikpic.com/golfoto/images/Untitled-131_thumb.jpg',130, 177,0, 0,'','','','','','');
photos[72] = new photo(191708,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-141.jpg',400,565,'','http://www4.clikpic.com/golfoto/images/Untitled-141_thumb.jpg',130, 184,0, 0,'','','','','','');
photos[73] = new photo(191709,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-15.jpg',400,564,'','http://www4.clikpic.com/golfoto/images/Untitled-15_thumb.jpg',130, 183,0, 0,'','','','','','');
photos[74] = new photo(191710,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-212.jpg',400,521,'','http://www4.clikpic.com/golfoto/images/Untitled-212_thumb.jpg',130, 169,0, 0,'','','','','','');
photos[75] = new photo(191720,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-181.jpg',400,581,'','http://www4.clikpic.com/golfoto/images/Untitled-181_thumb.jpg',130, 189,0, 0,'','','','','','');
photos[76] = new photo(192319,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-22.jpg',400,269,'Floodlit golf Dubai Golf & Racing Club','http://www4.clikpic.com/golfoto/images/Untitled-22_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[77] = new photo(192320,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-231.jpg',400,266,'Costantino Rocca / Volvo PGA Championship 1996','http://www4.clikpic.com/golfoto/images/Untitled-231_thumb.jpg',130, 86,0, 0,'','','','','','');
photos[78] = new photo(192322,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-241.jpg',274,400,'Colin Montgomerie','http://www4.clikpic.com/golfoto/images/Untitled-241_thumb.jpg',130, 190,0, 0,'','','','','','');
photos[79] = new photo(192323,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-251.jpg',263,400,'Bernhard Langer / Smurfit European Open 1995','http://www4.clikpic.com/golfoto/images/Untitled-251_thumb.jpg',130, 198,0, 0,'','','','','','');
photos[80] = new photo(192324,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-28.jpg',400,253,'Jesper Parnevik','http://www4.clikpic.com/golfoto/images/Untitled-28_thumb.jpg',130, 82,0, 0,'','','','','','');
photos[81] = new photo(192326,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-33.jpg',400,275,'Past Open Champions at St Andrews','http://www4.clikpic.com/golfoto/images/Untitled-33_thumb.jpg',130, 89,0, 0,'','','','','','');
photos[82] = new photo(192327,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-34.jpg',391,626,'Greg Norman','http://www4.clikpic.com/golfoto/images/Untitled-34_thumb.jpg',130, 208,0, 0,'','','','','','');
photos[83] = new photo(192329,'17184','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-35.jpg',400,302,'Ryder Cup 1997 / Valderrama','http://www4.clikpic.com/golfoto/images/Untitled-35_thumb.jpg',130, 98,0, 0,'','','','','','');
photos[84] = new photo(192332,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-36.jpg',400,290,'Seve during hail strorm','http://www4.clikpic.com/golfoto/images/Untitled-36_thumb.jpg',130, 94,0, 0,'','','','','','');
photos[85] = new photo(192333,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-37.jpg',287,400,'Severiano Ballesteros / World Matchplay 1991','http://www4.clikpic.com/golfoto/images/Untitled-37_thumb.jpg',130, 181,0, 0,'','','','','','');
photos[86] = new photo(192335,'17184','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-41.jpg',400,263,'Howard Clark / Ryder Cup 1995 / Oak Hill, Rochester, New York','http://www4.clikpic.com/golfoto/images/Untitled-41_thumb.jpg',130, 85,0, 0,'','','','','','');
photos[87] = new photo(192336,'17185','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-42.jpg',400,322,'Payne Stewart chips in on the 17th hole/ Bells Scottish Open 1993','http://www4.clikpic.com/golfoto/images/Untitled-42_thumb.jpg',130, 105,0, 0,'','','','','','');
photos[88] = new photo(192337,'17184','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-44.jpg',400,297,'Seve Ballesteros / Ryder Cup 1993','http://www4.clikpic.com/golfoto/images/Untitled-44_thumb.jpg',130, 97,0, 0,'','','','','','');
photos[89] = new photo(192338,'17184','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-45.jpg',300,400,'Davis Love 111 / Ryder Cup 1999, Brookline','http://www4.clikpic.com/golfoto/images/Untitled-45_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[90] = new photo(192339,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-47.jpg',400,274,'Abandoned Play/ 18th green, Aroeira GC /Portuguese Open 1996','http://www4.clikpic.com/golfoto/images/Untitled-47_thumb.jpg',130, 89,0, 0,'','','','','','');
photos[91] = new photo(192340,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-48.jpg',400,283,'Private Jet to Vienna after the Italian Open 1990','http://www4.clikpic.com/golfoto/images/Untitled-48_thumb.jpg',130, 92,0, 0,'','','','','','');
photos[92] = new photo(203678,'17183','','gallery','http://www4.clikpic.com/golfoto/images/Double Dale.jpg',400,186,'Trick Shot King - Jeremy Dale plays left and right handed','http://www4.clikpic.com/golfoto/images/Double Dale_thumb.jpg',130, 60,0, 0,'','','','','','');
photos[93] = new photo(625220,'17178','','gallery','http://www4.clikpic.com/golfoto/images/pi_241106251.jpg',600,402,'MAURITIUS / Le Touessrok GC, Ile aux Cerfs, Mauritius','http://www4.clikpic.com/golfoto/images/pi_241106251_thumb.jpg',130, 87,0, 0,'Le Touessrok Golf Club, Ile aux Cerfs, Mauritius','','Phil INGLIS','Mauritius','','');
photos[94] = new photo(626679,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Nefyn8919.jpg',600,374,'WALES Nefyn Golf Club','http://www4.clikpic.com/golfoto/images/Nefyn8919_thumb.jpg',130, 81,0, 0,'Nefyn Golf Club, Nefyn, North Wales','','Phil INGLIS','Nefyn, North Wales','','');
photos[95] = new photo(626683,'17178','','gallery','http://www4.clikpic.com/golfoto/images/pi_011006026.jpg',600,402,'KAZAKHSTAN Zhiljan Golf Resort, Almaty','http://www4.clikpic.com/golfoto/images/pi_011006026_thumb.jpg',130, 87,0, 0,'Zhiljan Golf Resort, Almaty, Kazakhstan','','Phil INGLIS','Almaty, Kazakhstan','','');
photos[96] = new photo(1878492,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Bunham22.jpg',600,429,'ENGLAND/ Burnham & Berrow GC','http://www4.clikpic.com/golfoto/images/Bunham22_thumb.jpg',130, 93,0, 0,'12th green','','Phil INGLIS','Burnham on Sea, Somerset','','');
photos[97] = new photo(1882605,'17178','','gallery','http://www4.clikpic.com/golfoto/images/web001.JPG',600,400,'IRELAND/ Carton House','http://www4.clikpic.com/golfoto/images/web001_thumb.JPG',130, 87,0, 0,'O\'Meara Course, Carton House','','Phil Inglis','Ireland','','');
photos[98] = new photo(1882626,'17178','','gallery','http://www4.clikpic.com/golfoto/images/web002.JPG',600,400,'IRELAND/ Carton House','http://www4.clikpic.com/golfoto/images/web002_thumb.JPG',130, 87,0, 0,'Montgomerie Course,Carton House','','Phil Inglis','Ireland','','');
photos[99] = new photo(1882637,'17178','','gallery','http://www4.clikpic.com/golfoto/images/web003.JPG',600,398,'TENERIFE/ Abama Golf Resort','http://www4.clikpic.com/golfoto/images/web003_thumb.JPG',130, 86,0, 0,'Abama Golf Resort, Tenerife, Canary Islands, Spain.','','Phil Inglis','Tenerife, Canary Islands','','');
photos[100] = new photo(1882693,'17178','','gallery','http://www4.clikpic.com/golfoto/images/web004.JPG',600,396,'TENERIFE / Adeje Golf','http://www4.clikpic.com/golfoto/images/web004_thumb.JPG',130, 86,0, 0,'','','Phil Inglis','Tenerife, Canary Islands','','');
photos[101] = new photo(1882698,'17178','','gallery','http://www4.clikpic.com/golfoto/images/web005.JPG',600,348,'CZECH REPUBLIC/ Astoria Golf','http://www4.clikpic.com/golfoto/images/web005_thumb.JPG',130, 75,0, 0,'Astoria Golf, Karlovy Vary, Czech Republic','','Phil Inglis','Karlovy Vary, Czech Republic','','');
photos[102] = new photo(1882734,'17178','','gallery','http://www4.clikpic.com/golfoto/images/web006.JPG',600,393,'MAURITIUS / Belle Mare Plage','http://www4.clikpic.com/golfoto/images/web006_thumb.JPG',130, 85,0, 0,'Belle Mare Plage, Mauritius','','Phil INGLIS','Mauritius,Indian Ocean','','');
photos[103] = new photo(2029134,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Batalha11.jpg',600,400,'AZORES / Sao Miguel','http://www4.clikpic.com/golfoto/images/Batalha11_thumb.jpg',130, 87,0, 0,'Batalha Golf Club','','','Sao Miguel, Azores, Portugal','','');
photos[104] = new photo(2029147,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Praia del Rei42.jpg',600,400,'PORTUGAL / Obidos','http://www4.clikpic.com/golfoto/images/Praia del Rei42_thumb.jpg',130, 87,0, 1,'Praia Del Rey Golf Resort & Spa','','Phil Inglis','Praia del Rei Golf Resort and Spa, Obidos, Portugal','','');
photos[105] = new photo(2029185,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Circolo Venice1.jpg',600,400,'ITALY / Venice','http://www4.clikpic.com/golfoto/images/Circolo Venice1_thumb.jpg',130, 87,0, 0,'Circolo Golf Venezia','','Phil Inglis','Venice, Italy','','');
photos[106] = new photo(2029198,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Praia del Rei11.jpg',600,400,'PORTUGAL / Obidos','http://www4.clikpic.com/golfoto/images/Praia del Rei11_thumb.jpg',130, 87,0, 1,'Praia del Rei Golf Resort & Spa','','Phil Inglis','Obidos, Portugal','','');
photos[107] = new photo(2029207,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Estela GC 51.jpg',600,400,'PORTUGAL / Povoa de Varzim','http://www4.clikpic.com/golfoto/images/Estela GC 51_thumb.jpg',130, 87,0, 0,'Estela GC','','Phil Inglis','Povoa de Varzim, Near Oporto, Portugal','','');
photos[108] = new photo(2029241,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Estela GC 11.jpg',600,400,'PORTUGAL / Povoa de Varzim','http://www4.clikpic.com/golfoto/images/Estela GC 11_thumb.jpg',130, 87,0, 0,'3rd hole,Estela Golf Club','','Phil Inglis','Povoa de Varzim, Near Oporto, Portugal','','');
photos[109] = new photo(2030197,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Agra.jpg',600,406,'INDIA / Agra','http://www4.clikpic.com/golfoto/images/Agra_thumb.jpg',130, 88,0, 0,'Agra Golf Course','','phil Inglis','Agra, Uttar Pradesh, India','','');
photos[110] = new photo(2030198,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Monte Rei.jpg',600,400,'PORTUGAL / Tavira','http://www4.clikpic.com/golfoto/images/Monte Rei_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[111] = new photo(2030434,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Al Hamra.jpg',600,353,'UAE / Ras Al Khaimah','http://www4.clikpic.com/golfoto/images/Al Hamra_thumb.jpg',130, 76,0, 0,'Al Hamra Golf Resort','','Phil INGLIS','Al Hamra Resort, Ras Al Khaimah, UAE','','');
photos[112] = new photo(2030502,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Delhi.jpg',600,400,'INDIA / Delhi','http://www4.clikpic.com/golfoto/images/Delhi_thumb.jpg',130, 87,0, 0,'17th tee, Delhi Golf Club','','phil INGLIS','Delhi Golf Club, Delhi, India','','');
photos[113] = new photo(2030540,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Kendleshire.jpg',600,396,'ENGLAND / Gloucestershire','http://www4.clikpic.com/golfoto/images/Kendleshire_thumb.jpg',130, 86,1, 1,'Kendleshire Golf Club','','Phil INGLIS','The Kendleshire Golf, Bristol, England','','');
photos[114] = new photo(2030542,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Monkey.jpg',600,356,'BARBADOS / Holetown','http://www4.clikpic.com/golfoto/images/Monkey_thumb.jpg',130, 77,1, 1,'Green Monkey GC','','phil INGLIS',' Holetown, Barbados, West Indies','','');
photos[115] = new photo(2030545,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Miklagaard.jpg',600,400,'NORWAY / Oslo','http://www4.clikpic.com/golfoto/images/Miklagaard_thumb.jpg',130, 87,0, 0,'Miklagaard GC','','phil INGLIS',' Oslo, Norway','','');
photos[116] = new photo(2030546,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Pecanwood.jpg',600,376,'SOUTH AFRICA / Gauteng','http://www4.clikpic.com/golfoto/images/Pecanwood_thumb.jpg',130, 81,0, 0,'Pecanwood GC','','phil INGLIS','Hartbeespoort Dam, South Africa','','');
photos[117] = new photo(2030584,'17178','','gallery','http://www4.clikpic.com/golfoto/images/PGA National Ire.jpg',600,400,'IRELAND / Co.Kildare','http://www4.clikpic.com/golfoto/images/PGA National Ire_thumb.jpg',130, 87,0, 0,'PGA National','','phil INGLIS','PGA National, Johnstown, Co.Kildare, Ireland','','');
photos[118] = new photo(3117380,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Banksantander.jpg',600,405,'SPAIN/ Bank Santander Golf','http://www4.clikpic.com/golfoto/images/Banksantander_thumb.jpg',130, 88,0, 0,'Bank Santander Golf, Madrid, Spain','','phil INGLIS','Madrid','','');
photos[119] = new photo(3117391,'17178','','gallery','http://www4.clikpic.com/golfoto/images/boavista.jpg',600,405,'PORTUGAL/ Lagos','http://www4.clikpic.com/golfoto/images/boavista_thumb.jpg',130, 88,0, 0,'Boa Vista Golf Resort, Lagos, Algarve, Portugal','','phil INGLIS','Algarve, Portugal','','');
photos[120] = new photo(3117396,'17178','','gallery','http://www4.clikpic.com/golfoto/images/castlecombe.jpg',600,405,'ENGLAND / Wiltshire','http://www4.clikpic.com/golfoto/images/castlecombe_thumb.jpg',130, 88,0, 0,'The Manor House at Castle Combe GC<br>\r\nCastle Combe, Wiltshire.','','phil INGLIS','Castle Combe, Wiltshire','','');
photos[121] = new photo(192348,'17354','','gallery','http://www4.clikpic.com/golfoto/images/Untitled-22c.jpg',400,500,'','http://www4.clikpic.com/golfoto/images/Untitled-22c_thumb.jpg',130, 163,0, 1,'','','','','','');
photos[122] = new photo(3138718,'17178','','gallery','http://www4.clikpic.com/golfoto/images/DawnDoonbeg.jpg',600,361,'IRELAND / Co. Clare','http://www4.clikpic.com/golfoto/images/DawnDoonbeg_thumb.jpg',130, 78,0, 0,'Doonbeg GC, Co.Clare, Ireland','','','','','');
photos[123] = new photo(3138720,'17183','','gallery','http://www4.clikpic.com/golfoto/images/India.jpg',600,439,'Sign outside a Delhi Golf Club','http://www4.clikpic.com/golfoto/images/India_thumb.jpg',130, 95,0, 0,'','','','','','');
photos[124] = new photo(3138721,'','','','http://www4.clikpic.com/golfoto/images/karllssss.jpg',600,359,'Karlsson / Portugal Masters 2008','http://www4.clikpic.com/golfoto/images/karllssss_thumb.jpg',130, 78,1, 1,'','','','','','');
photos[125] = new photo(3138722,'17184','','gallery','http://www4.clikpic.com/golfoto/images/RCwooz.jpg',600,413,'RYDER CUP / Woosie','http://www4.clikpic.com/golfoto/images/RCwooz_thumb.jpg',130, 89,1, 1,'','','','','','');
photos[126] = new photo(3117363,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Al hamr.jpg',600,367,'UAE / Ras Al Kaima','http://www4.clikpic.com/golfoto/images/Al hamr_thumb.jpg',130, 80,0, 0,'Floodlit Golf, Al Hamra, Ras Al Kaima','','','','','');
photos[127] = new photo(3117366,'17178','','gallery','http://www4.clikpic.com/golfoto/images/Birkdale.jpg',600,400,'ENGLAND/ Lancashire','http://www4.clikpic.com/golfoto/images/Birkdale_thumb.jpg',130, 87,0, 0,'Royal Birkdale GC, Lancashire','','','','','');
photos[128] = new photo(187361,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Candy Stripe.jpg',400,480,'Darren Clarke/ The Open Championship 2005','http://www4.clikpic.com/golfoto/images/Candy Stripe_thumb.jpg',130, 156,0, 1,'','','','','','');
photos[129] = new photo(187362,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Tiger1.jpg',400,359,'Tiger Woods / The Open Championship 2005','http://www4.clikpic.com/golfoto/images/Tiger1_thumb.jpg',130, 117,1, 1,'Tiger Woods in action on the 9th tee during the third round of the 2005 Open Championship at St. Andrews, Scotland.','','PHIL INGLIS','St Andrews, Scotland','','');
photos[130] = new photo(187363,'12595','','gallery','http://www4.clikpic.com/golfoto/images/sepia1.jpg',400,480,'Tiger Woods/ The Open Championship 2005','http://www4.clikpic.com/golfoto/images/sepia1_thumb.jpg',130, 156,0, 1,'','','','','','');
photos[131] = new photo(187365,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Woods4003A4.jpg',400,229,'Tiger Woods / US Open 2000','http://www4.clikpic.com/golfoto/images/Woods4003A4_thumb.jpg',130, 74,0, 0,'','','','','','');
photos[132] = new photo(187366,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Woods5661.jpg',400,230,'Tiger Woods / World Golf Championships 2004','http://www4.clikpic.com/golfoto/images/Woods5661_thumb.jpg',130, 75,0, 0,'','','','','','');
photos[133] = new photo(187367,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Woods6035A4.jpg',400,209,'Tiger Woods / World Golf Championships 2002','http://www4.clikpic.com/golfoto/images/Woods6035A4_thumb.jpg',130, 68,0, 0,'','','','','','');
photos[134] = new photo(187368,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Woods6931.jpg',400,532,'Tiger Woods / US Open 2003','http://www4.clikpic.com/golfoto/images/Woods6931_thumb.jpg',130, 173,0, 0,'','','','','','');
photos[135] = new photo(187379,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Nicholas 4089005.jpg',400,231,'Alison Nicholas / Solheim Cup 2000 / Loch Lomond','http://www4.clikpic.com/golfoto/images/Nicholas 4089005_thumb.jpg',130, 75,0, 0,'','','','','','');
photos[136] = new photo(187380,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Player 4001021.jpg',400,265,'Gary Player / The Open Championship 2000','http://www4.clikpic.com/golfoto/images/Player 4001021_thumb.jpg',130, 86,0, 0,'','','','','','');
photos[137] = new photo(187381,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Poulter0782.jpg',400,249,'Ian Poulter / Irish Open 2003','http://www4.clikpic.com/golfoto/images/Poulter0782_thumb.jpg',130, 81,0, 0,'','','','','','');
photos[138] = new photo(187540,'12595','','gallery','http://www4.clikpic.com/golfoto/images/124-2430_IMG.jpg',400,249,'Padraig Harrington / Portuguese Open 2002','http://www4.clikpic.com/golfoto/images/124-2430_IMG_thumb.jpg',130, 81,0, 0,'','','','','','');
photos[139] = new photo(187553,'12595','','gallery','http://www4.clikpic.com/golfoto/images/A91E4647.jpg',362,600,'Ian Poulter / Dubai Desert Classic 2004','http://www4.clikpic.com/golfoto/images/A91E4647_thumb.jpg',130, 215,0, 0,'','','','','','');
photos[140] = new photo(187559,'12595','','gallery','http://www4.clikpic.com/golfoto/images/A91E5151.jpg',400,275,'Tiger Woods / Dubai Desert Classic 2001','http://www4.clikpic.com/golfoto/images/A91E5151_thumb.jpg',130, 89,0, 0,'','','','','','');
photos[141] = new photo(187567,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Garcia0711.jpg',400,255,'SERGIO GARCIA / The Open Championship 2005','http://www4.clikpic.com/golfoto/images/Garcia0711_thumb.jpg',130, 83,0, 0,'','','','','','');
photos[142] = new photo(187571,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Montgomerie010.jpg',400,259,'Colin Montgomerie / Dubai Desert Classic 2004','http://www4.clikpic.com/golfoto/images/Montgomerie010_thumb.jpg',130, 84,0, 0,'','','','','','');
photos[143] = new photo(187572,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Monty0162A41.jpg',400,265,'Colin Montgomerie / Volvo Masters 2002','http://www4.clikpic.com/golfoto/images/Monty0162A41_thumb.jpg',130, 86,1, 0,'','','','','','');
photos[144] = new photo(189992,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Caddie0304A41.jpg',400,267,'Sergio Garcia/ Abu Dhabi Championship 2006','http://www4.clikpic.com/golfoto/images/Caddie0304A41_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[145] = new photo(189996,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Goosen 4103005.jpg',400,267,'Retief Goosen / US Open 2001','http://www4.clikpic.com/golfoto/images/Goosen 4103005_thumb.jpg',130, 87,1, 0,'Retief Goosen misses a short putt to win US Open','','phil INGLIS','Southern Hills CC, Tulsa, Oklahoma','','');
photos[146] = new photo(189998,'12595','','gallery','http://www4.clikpic.com/golfoto/images/Gustafson 4089028.jpg',400,267,'Sofie Gustafson & Caddie / Solheim Cup 2000','http://www4.clikpic.com/golfoto/images/Gustafson 4089028_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[147] = new photo(190001,'12595','','gallery','http://www4.clikpic.com/golfoto/images/pi_06000252.jpg',400,267,'Ian Poulter / Abu Dhabi Championship 2006','http://www4.clikpic.com/golfoto/images/pi_06000252_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[148] = new photo(190002,'12595','','gallery','http://www4.clikpic.com/golfoto/images/pi_06000356.jpg',400,267,'Vijay Singh / Abu Dhabi Championship 2006','http://www4.clikpic.com/golfoto/images/pi_06000356_thumb.jpg',130, 87,0, 0,'','','','','','');
photos[149] = new photo(190034,'12595','','gallery','http://www4.clikpic.com/golfoto/images/WOODS400.jpg',267,400,'Tiger Woods / US Open 2000 / Pebble Beach','http://www4.clikpic.com/golfoto/images/WOODS400_thumb.jpg',130, 195,0, 0,'','','','','','');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
galleries = new Array();
galleries[0] = new gallery(17185,'187573','Old Favourites','gallery');
galleries[1] = new gallery(17183,'187371','Out of Bounds','gallery');
galleries[2] = new gallery(17178,'2030542,2030540,2029198,2029147,188371','Places to play','gallery');
galleries[3] = new gallery(17354,'192348','Print and publications','gallery');
galleries[4] = new gallery(17184,'3138722,187570','Rydermania','gallery');
galleries[5] = new gallery(12595,'187363,187362,187361','Tiger and Co','gallery');

