function jsonFlickrApi(rsp) { 
	//****************************************************************************************************
	if (rsp.stat != "ok"){
		// If this executes, something broke!  
		return; 
	} 
	//****************************************************************************************************
	var s = "";  
	var Found=false;
	var Current = new Array();
	var MaxValue= rsp.photoset.photo.length;
	var NumUnique=2; 
	var Count=0;
	var Current = new Array(NumUnique);
	//****************************************************************************************************	
	GetUnique();
	//****************************************************************************************************	
	function GetUnique(){
		for (i=0;Count<NumUnique;Count++){
			Found=false;
			var rndValue = get_random();
			var j=0;
			for (j=0;j<Current.length;j++){
				if (Current[j] == rndValue){
					Found=true;
					break;
				}
			}
			if (Found){
				Count--;
			}
			else{
				Current[Count]=rndValue;
				getPhoto(Current[Count]);
			}
		}
		document.writeln(s);
	}
	//****************************************************************************************************	
	function get_random(){
		var ranNum= Math.round(Math.random()*MaxValue);
		return ranNum;
	}
	//****************************************************************************************************	
	function getPhoto(number){
		photo = rsp.photoset.photo[number];    
		t_url = 'http://farm' + photo.farm + '.static.flickr.com/' + photo.server + '/' + photo.id + '_' + photo.secret + '_' + 's.jpg';      
		p_url = "http://www.flickr.com/photos/stadgent/" + photo.id + "/in/set-" + rsp.photoset.id + "/";
		s +=  "<a href='" + p_url + "'>" + "<img alt='"+ photo.title + "'src='" + t_url + "'/>" + "</a>"; 
	}
	//****************************************************************************************************	
}