function Photo(options){
	this.index=options.index;
	this.photoid=options.photoid;
	this.lat=options.lat;
	this.lon=options.lon;
	this.point=options.point;
	this.datetime=options.datetime;
	this.normal=options.normal;
	this.thumbnail=options.thumbnail;
	this.large=options.large;
	this.title=options.title;
	this.eventid=options.eventid;	
	this.summary=options.summary;	
	this.icon=options.icon;	
	this.html=options.html;		
}	


Photo.prototype.create_marker = function() {
	this.marker = new GMarker(this.point,this.icon);
	GEvent.bind(this.marker, "click", this, this.openInfoWindow);	
	map.addOverlay(this.marker);
}

Photo.prototype.openInfoWindow = function() {
	this.marker.openInfoWindowHtml(this.html);	
	this.in_photo();	
	this.scroll_photo_bar();
}

Photo.prototype.create_marker2 = function() {
	this.marker = new GMarker(this.point,this.icon);
	GEvent.bind(this.marker, "click", this, this.openInfoWindow);	
	//map.addOverlay(this.marker);
}

Photo.prototype.in_photo = function() {
	if (_globals['last_photo']){
		var p = document.getElementById(_globals['last_photo']);
		p.style.border = '0px';
	}
	
	var p = document.getElementById(this.photoid);
	p.style.border = '3px solid #FFFF00';
	//p.style.backgroundColor = '#fedadb'; 	
	_globals['last_photo']=this.photoid;
	//p.style.MozOpacity=1;		
}

Photo.prototype.out_photo = function() {

	var p = document.getElementById(this.photoid);
	p.style.border = '0px';

}
Photo.prototype.scroll_photo_bar = function() {
	var col = parseInt(this.index/5);
	var photo_bar = document.getElementById('flickr_windows');
	photo_bar.scrollTop = 85*col + col*3;
}


