function photoItem()
{
	this.selected = false;
	this.PH = this.control.content.findName(this.name);
    this.photoText = this.control.content.findName("photo_item_text_CM"+this.id);
    this.photoBackground = this.control.content.findName("photo_item_background_CM"+this.id);
    this.photoThumb = this.control.content.findName("photo_item_thumb_CM"+this.id);
	//Functions
    this.photo_Select_Press = photo_Select_Press;
    
    //Set Cursor
	this.PH.cursor = "Hand";
    
	this.PH.addEventListener("mouseLeftButtonDown", preserveScope(this, photo_Select_Press));
	
	//Set Thumb Source
	this.photoUrl = getPhotoUrl(this.params, SeasonCards.cardItems.FlickrPhotoArray);
	this.photoTitle = getPhotoTitle(this.params, SeasonCards.cardItems.FlickrPhotoArray);
	//alert(this.photoUrl);
	this.photoThumb.source = this.photoUrl;
	this.photoText.text = this.photoTitle;
}



function photo_Select_Press()
{
    var photoUrl = getPhotoUrl(this.params, SeasonCards.cardItems.FlickrPhotoArray);
	addPhoto(photoUrl);

}