function Photo(pNum, pTitle, pDesc)
{
	this.num = pNum;
	this.title = pTitle;
	this.description = pDesc;
	this.orientaion = 0;
	this.ratio = 1.0;
	this.types = new Array();
	this.types[0] = 0;
}

function photo_addTypes(types)
{
	for(var i = 0; i < types.length; i++)
	{
		this.types[this.types.length] = types[i];
	}
}

function photo_getOrientation()
{
	return (this.orientation == 0 ? "Portrait" : "Landscape");
}

function photo_toString()
{
	return this.num + " " + this.title;
}

Photo.ALL = 0;
Photo.ABSTRACT = 1;
Photo.ANIMALS = 2;
Photo.BLACK_WHITE = 3;
Photo.BUILDINGS_CITISCAPES = 4;
Photo.DIGITAL_ART = 5;
Photo.EVENTS = 6
Photo.FLOWERS_PLANTS = 7;
Photo.GHOST_TOWNS = 8;
Photo.LANDSCAPES = 9;
Photo.MISC = 10;
Photo.NATIONAL_PARK = 11;
Photo.PANORAMAS = 12;
Photo.PEOPLE_WORK = 13;
Photo.PLACES_TRAVEL = 14;
Photo.SAN_DIEGO = 15;
Photo.SHIPS = 16
Photo.SUNSETS = 17;
Photo.TREES = 18;
Photo.WATERSCAPES = 19;

Photo.PORTRAIT = 0;
Photo.LANDSCAPE = 1;

Photo.prototype.addTypes = photo_addTypes;
Photo.prototype.getOrientation = photo_getOrientation;
Photo.prototype.toString = photo_toString;