/**
 *	Die Klasse Earthfave und ihre Methoden
 *
 */
EarthfaveEFHomeBookingProcess = function(object) //Bookmarken von ef ausgehend von efHome klappt mit dem AddWizard nicht
{
	this.id = object.id; // id
	this.lat = object.lat; // latitude	
	this.lng = object.lng; // longitude	
	this.name = object.name; // ef name
	this.internName = object.iName; // ef intern name
	this.overview = object.wO; // neuer name der Spalte in DB
	
	this.comment = ""; // faelt raus wegen neuer DB struktur !!!
	this.suggestions = "";  // faelt raus wegen neuer DB struktur !!!
	
	this.address1 = object.addr1; // addresse 1
	if(object.street){this.address1 = object.street;} // das object kann auch ein place sein und dort heist es street !!!
	
	this.city = object.city; // insel Name
	this.postalCode = object.zip; // plz
	this.countryName = object.couN; // country name
	this.countryId = object.couId; //country id
	this.continentName = object.conN; // continent nam
	
	this.continentId = object.conId; // continent id
	this.admin1Name = object.adm1N; // admin 1 Name
	this.admin1Id = object.adm1Id; // admin 1 id
	this.islandName = object.isN; // insel Name
	this.discovererName = object.diN; // DISC Name
	this.discovererId = object.diId; // DISC id
	this.discovererRank = object.diRank; // der Rank des DISC
	this.discovererMedium = object.diMed; // der Avatar des Disc
	this.discovererWili = object.diWili; // der wili des Disc
	this.levelOfExpertise = object.lOfExp; // der level of expertise des Disc
	
	this.relationship = object.rel; // user erthfave realtionsshiop zb user can bookmark, is owner, or is nothing
	this.catId0 = object.catId0; // die erste Kat0 id
	this.catId1 = object.catId1; // die erste Kat0 id
	this.catId2 = object.catId2; // die erste Kat0 id
	this.catId3 = object.catId3; // die erste Kat0 id
	this.catName0 = object.catName0; // die erste Kat0 id	
	this.catName1 = object.catName1; // die erste Kat0 id
	this.catName2 = object.catName2; // die erste Kat0 id
	this.catName3 = object.catName3; // die erste Kat0 id
		
	this.properties = object.prop; // ein string mit komma getrennten propertys
	this.tags = "";
	this.media = object.media; // das Bild fuer RListe
	this.numberOfBooker = object.nOfB; // die anzahl der booker
	this.numberBookmarkingFriends = object.nofBF; // bookmarker die freunde sind
	this.numberBookmarkingFF = object.nofBFF; // bookmarker die freundes freunde  sind
	this.numberBookmarkingOthers = object.nofBO; // other Booker
	this.status = object.status; // other Booker
	this.clusterId = object.clid;
	//
}
 
/**
 * Konstruktor
 */
Earthfave = function(object){
	this.id = object.id; // id
	this.lat = object.lat; // latitude	
	this.lng = object.lng; // longitude	
	this.name = object.name; // ef name
	this.internName = object.iName; // ef intern name
	this.overview = object.wO; // neuer name der Spalte in DB
		
	this.whyIlikeItArray = new Array() ;
	this.whyIlikeItArray[0] = "" ;
	
	this.address1 = object.addr1; // addresse 1
	if(object.street){this.address1 = object.street;} // das object kann auch ein place sein und dort heist es street !!!
	
	this.city = object.city; // insel Name
	this.postalCode = object.zip; // plz
	this.countryName = object.couN; // country name
	this.countryId = object.couId; //country id
	this.continentName = object.conN; // continent name
	
	this.continentId = object.conId; // continent id
	this.admin1Name = object.adm1N; // admin 1 Name
	this.admin1Id = object.adm1Id; // admin 1 id
	this.islandName = object.isN; // insel Name
	this.discovererName = object.diN; // DISC Name
	this.discovererId = object.diId; // DISC id
	this.discovererRank = object.diRank; // der Rank des DISC
	this.diLIUR = object.diLIUR; // the relationship of the disc and the logged in user
	this.levelOfExpertise = object.lOfExp; // der level of expertise
	
	this.discovererMedium = object.diMed; // der Avatar des Disc
	this.discovererWili = object.diWili; // der wili des Disc
	this.bookerArray = object.boAr; // das Array mit den Bookmarker Infos.
	
	this.relationship = object.rel; // user erthfave realtionsshiop zb user can bookmark, is owner, or is nothing
	this.catId0 = object.catId0; // die erste Kat0 id
	this.catId1 = object.catId1; // die erste Kat0 id
	this.catId2 = object.catId2; // die erste Kat0 id
	this.catId3 = object.catId3; // die erste Kat0 id
	this.catName0 = object.catName0; // die erste Kat0 id	
	this.catName1 = object.catName1; // die erste Kat0 id
	this.catName2 = object.catName2; // die erste Kat0 id
	this.catName3 = object.catName3; // die erste Kat0 id
		
	this.properties = object.prop; // ein string mit komma getrennten propertys
	this.tags = "";
	this.media = object.media; // das Bild fuer RListe
	this.numberOfBooker = object.nofB; // die anzahl der booker
	this.numberBookmarkingFriends = object.nofBF; // bookmarker die freunde sind
	this.numberBookmarkingFF = object.nofBFF; // bookmarker die freundes freunde  sind
	this.numberBookmarkingOthers = object.nofBO; // other Booker
	this.status = object.status; // other Booker
	this.clusterId = object.clid;
	//27

}

/**
 * Erzeugt den HTML-Code f?r den earthfave-Marker auf der Karte
 * Daniel WIRD WOHL NICHT MEHR BENOETIGT
 */
Earthfave.prototype.asMarker = function (markerId){
	var text = '<p><b>' + this.name + '</b></p><br>';

	if (global.userGroup == 1 && global.showAdminInformation == true){
		text += '<b>admininfo:</b><br><font style="font-size:10px;">';
		text +=  ' lat:' + this.lat + ' lng:' + this.lng +  '#id: ' + this.id + '</font>';
	}

	var tableBegin = "<table border=\"0\">";
	var linkToMyEF = "";

	var zoomToEF = "<tr>"+
	"<td align=\"center\" valign=\"middle\"><a href=\"javascript:Map.centerMarker(" + markerId + "); closeFilter();\"><img src=" + zoomCenterImage + " /></a></td>"+
	"<td align=\"left\" valign=\"middle\"><a href=\"javascript:Map.centerMarker(" + markerId + "); closeFilter();\">Zoom & Center</a></td>"+
	"</tr>";

	if (user != 'Guest') {
		if (get.page_id != "access_extern") {
			if (this.hasBookedDisc == 1) {
				linkToMyEF = "<tr>"
				+	"<td align=\"center\" valign=\"middle\"><a href=\"javascript:showBookmarkWizard(" + this.id + ", EFBookmarked);\"><img src=" + addToMyEF + " /></a></td>"
				+	"<td align=\"left\" valign=\"middle\"><a href=\"javascript:showBookmarkWizard(" + this.id + ", EFBookmarked);\">add to my earthfaves</a></td>"
				+	"</tr>";
			}
		}
	}
	else {
		linkToMyEF = "<tr>"
		+	"<td align=\"center\" valign=\"middle\"><img src=" + addToMyEF + " /></td>"
		+	"<td align=\"left\" valign=\"middle\"><a href=\"javascript:showLogin('\login\');\">" + global.resultlistLoginToGeobookmark + "</a></td>"
		+	"</tr>";
	}
	var linkShowDetail = "<tr>";
	if (get.page_id != "access_extern") {
		linkShowDetail += "<td align=\"center\" valign=\"middle\"><a href=\"" + global.URL + "index.php?page_id=efhome&ef_id=" + this.id + "\"><img src=" + showDetailsImage + " /></a></td>"
		+	"<td align=\"left\" valign=\"middle\"><a href=\"" + global.URL +"index.php?page_id=efhome&ef_id=" + this.id + "\">view details</a></td>";
	}
	else {
		linkShowDetail += "<td align=\"center\" valign=\"middle\"><a href=\"" + global.URL +"index.php?page_id=efhome&ef_id=" + this.id + " \" target=\"_blank\">"
		+	"<img src=" + showDetailsImage + " /></a></td>"
		+	"<td align=\"left\" valign=\"middle\"><a href=\"" + global.URL + "index.php?page_id=efhome&ef_id=" + this.id + "\" target=\"_blank\">view details</a></td>";
	}
	linkShowDetail += "</tr>";

	var name_city = this.name + " " + this.city;
	var quickLinks = "<tr>"
		+	"<td colspan=\"2\"><br>"
		+	"<img src=\"" + global.IMG_URL + "icons/earthfaves_icon.jpg\">";

	cse = global.URL + 'index.php?page_id=cse&cref=http%3A%2F%2Fwww.earthfaves.com%2Fcse%2Fcontextefs6.xml&cof=FORID%3A' + global.fordid + '&q=' + name_city;
	quickLinks += '<a id="link1" name="link1" href="javascript:openSearchWindow(\'' + cse + '\');">'
		+	"&nbsp;Find more information"
		+	"</a><br>"
		+	"<img src=\"" + global.IMG_URL + "icons/google_icon.jpg\">"
		+	"<a id=\"link2\" name=\"link2\" href=\"javascript:openSearchWindow(\'http://images.google.com/images?hl=en&q=" + name_city + "\');\">"
		+	"&nbsp;Find images"
		+	"</a><br>"
		+	"</td>"
		+	"</tr>";

	var tableEnd = "</table><br>";
	if (global.externzugriff) {
		quickLinks = "";
	}

	return EF_STYLE + text + tableBegin + linkShowDetail + zoomToEF + linkToMyEF +  quickLinks + tableEnd + EF_STYLE;
}

Earthfave.prototype.asAddWizardResultListEntry = function(i){
	var result = ""; //'<tr> <td colspan="4" align="center" style="margin-bottom:2px; color:#F05A22; font-size:14px; font-weight:bold;">' + global.CHOICE + '</td> </tr>';
	var overviewBegin = this.overview.substr(0, 40) + '...';
	var arrayKatName =  new Array();
	
	arrayKatName["0"] = "no_category";
	arrayKatName["1"] = "hotel";
	arrayKatName["17"] = "restaurant";
	arrayKatName["96"] = "nature";
	arrayKatName["136"] = "culture";
	arrayKatName["185"] = "shopping";
	arrayKatName["257"] = "nightlife";
	arrayKatName["207"] = "sports";	
	var target = "_self";
	
	var efurl = createEarthfaveURL(this);
	var trHg = "#ffffff";
	if(i/2 == Math.round(i/2)) {trHg = "#f2f2f2"};
	//console.log("asAddWizardResultListEntry index: " + i + "HG farbe: "+ trHg);
	//console.log("addWizardEarthfavesLookupCallback ::::: es gibt efs ::::::::::::");
	result += '<tr style="height:55px; background-color:'+ trHg +';">';
	//result += '<td style="width:100px;" align="center"> <img src="img_sort/img-nontext/icons/efToLoveEf.jpg" alt="Earthfave" /> </td>';
	
	result += '<td style="width:50px; text-align:left;"> <a href="' + efurl + '"';
	result += ' target="' + target + '"><img src="' + this.media + '" alt="' + this.name + '" style="height:50px;" /></a> </td>';
	result += '<td> <a href="' + efurl + '" target="' + target + '">' + this.name + '</a><br>';
	result += '<span style="font-size:12px; color:#B0A9A7"> ' + this.countryName + ' > ' + this.city + ' > ' + this.address1 + ' &nbsp;</span> <br/>';
	result += '<span style="font-size:12px; color:#B0A9A7; width:400px;"> ' + overviewBegin + ' </span> </td>';
	result += '<td align="right" style="font-size:12px; margin:0px; padding:0px; width:60px; font-weight:bold; color:#F05A22;">';
	result += (this.numberOfBooker+1) + ' <img src="img_sort/img-nontext/icons/ef_viel_klein.jpg" alt="Faves" style="margin-right:8px; margin-botton:2px;" /><br>';
	result += this.numberBookmarkingFriends + ' <img src="img_sort/img-nontext/icons/result-info-friends-w_klein.jpg" alt="Friends Faves" style="margin-right:4px; margin-botton:2px;"/><br>';
	result += this.numberBookmarkingFF + ' <img src="img_sort/img-nontext/icons/result-info-friends-friends-w_klein.jpg" alt="Friends\' fiends faves" /><br>';
	result += '</td>';
	switch (this.relationship){
	case 1:
		result += '<td style="width:112px; text-align: center;"><img src="img_sort/img-text/en/buttons/fave_it_plus_88_30.png" alt="Add this earthfave to your list" onmouseover="this.style.cursor=\'pointer\'; myTip(\'Add this earthfave to your list\');" onmouseout="this.style.cursor=\'auto\'; UnTip();" onClick="changePageinOverlay(1, 3, \'Index\', ' + this.id + ', \'no\', \'no\', \'ef\');" /> </td>';
		break;
	case 2: // earthfaved
		result += '<td style="width:112px;"> <img src="img_sort/img-nontext/menue_icons/earthfaved-by-me_active.gif" alt="Faved" /> </td>';
		break;
	case 3: // discovered
		result += '<td style="width:112px;"> <img src="img_sort/img-nontext/menue_icons/discovered-by-me_active.gif" alt="Discovered" /> </td>';
		break;
	default:
		result += '<td style="width:112px;"></td>';
	}
	result += '</tr>';
	return result;
}

Earthfave.prototype.asBusinessSignUpResultListEntry = function() {
	var cLog = false;
	if(cLog){console.log("::::::::: earthfave.js Earthfave.prototype.asBusinessSignUpResultListEntry id:" + this.id + " name " + this.name);}
	var result = "";
	var overviewBegin;
	//this.overview = "bla";
		
	if(this.overview!= null){
		if(cLog){console.log("...earthfave.js Earthfave.prototype.asBusinessSignUpResultListEntry id " + this.id + " overview --- " + this.overview);}
		var lang = 55; if(this.overview.length < lang){ lang = this.overview.length; }
		overviewBegin = this.overview.substr(0, lang);
		if(cLog){console.log("...earthfave.js Earthfave.prototype.asBusinessSignUpResultListEntry nach overview");}
	} else { overviewBegin = ""; }
	
	if(typeof(this.overview)!='undefined'){overviewBegin = this.overview.substr(0, 55);} else { overviewBegin = ""; }
	
	//if(cLog){console.log("earthfave.js Earthfave.prototype.asBusinessSignUpResultListEntry id pos 2 ");}
	
	if (this.overview.length > 55) {	overviewBegin += '...';	}
	//if(cLog){console.log("earthfave.js Earthfave.prototype.asBusinessSignUpResultListEntry pos 1");}
	var arrayKatName =  new Array();
	
	arrayKatName["0"] = "no_category";
	arrayKatName["1"] = "hotel";
	arrayKatName["17"] = "restaurant";
	arrayKatName["96"] = "nature";
	arrayKatName["136"] = "culture";
	arrayKatName["185"] = "shopping";
	arrayKatName["257"] = "nightlife";
	arrayKatName["207"] = "sports";	
	var target = "_self";
	if(cLog){console.log("earthfave.js Earthfave.prototype.asBusinessSignUpResultListEntry pos 2");}
	
	var efurl = createEarthfaveURL(this);
	
	if(cLog){console.log("earthfave.js Earthfave.prototype.asBusinessSignUpResultListEntry mitte ...");}
	
	result += '<tr style="height:55px;">';
	result += '<td style="width:50px;" align="center"> <a href="javascript:void(window.open(\''  + efurl + '\'));">';
	result += '<img src="' + this.media + '" alt="' + this.name + '" style="height:50px;" /></a> </td>';
	result += '<td style="width:420px;"> <h3><a href="javascript:void(window.open(\''  + efurl + '\'));">' + this.name + '</a>';
	
	if(cLog){console.log("earthfave.js Earthfave.prototype.asBusinessSignUpResultListEntry ende1 ...");}
	
	result += '<span style="font-size:10px; color:#B0A9A7"> ' + this.countryName + ' > ' + this.city + ' > ' + this.address1 + ' &nbsp;</span> <br/>';
	result += '<span style="font-size:11px; color:#B0A9A7"> ' + overviewBegin + ' </span> </td>';
	result += '<td style="width:30px; align="center"> <input type="radio" name="earthfave_radio" checked="checked" value="'+  this.id +'" /> </td>  ';
	result += '</tr>';
	
	if(cLog){console.log("earthfave.js Earthfave.prototype.asBusinessSignUpResultListEntry ende2 ...");}
	return result;
}

// Daniel: die alte funktion bekam:
// (
//		id, lat, lng, name, overview, continentName, continentId, countryName, countryId, adm1Name, 
//    adm1Id , inselName, city, address1, woLink, discovererInfo, discovererId, hasBookedDisc, counterBookmarker, 
//    catLink, media, allCount,status, i
// )

Earthfave.prototype.asResultListEntry = function (markerId){
	for( var i=0; i< this.bookerArray.length; i++ ){
		console.log("booker " + i + " Name : " + this.bookerArray[i][0] + " Wili: " + this.bookerArray[i][1]);
	}
							
	var def = "";
	var undef = "";
	var r; // Fuer die Rueckgabe des HTML-Codes
	var classname = "";
	var hasBookedDisc = 0;
	
	var li_bookmark = "";
	var bookmarkOnClick = "";
	var bookmarkTitle = "";
	var prozent =  0;
	var geobookmarker = "";
	var stati;
	var target = "_self";
	var catLink = "";
	var efLocation = "";
	var media = "";
	var categoryImage = "";

//	info("Earthfave.prototype.asResultListEntry marker 0");

	for( prop in this ){
		if( prop == "asMarker" ){ break; } 
		if( this[prop] == undefined ){ undef += prop + ' value :' + this[prop]+ ' '; }
		else{ def += prop + ' value :' + this[prop]+ ' ';}
	}
//	if( undef != "" ){ info(undef); }
	//info("earthfaves.js Earthfave.prototype.asResultListEntry -- prop " + def);	

	//info("earthfaves.js Earthfave.prototype.asResultListEntry -- erzeuge Listeneintrag");	
//	info(this.name);

	var arrayKat =  new Array()
	arrayKat["0"] = "";// gibt es nicht !!!
	arrayKat["1"] = "hotels-gray-large.gif";
	arrayKat["17"] = "restaurants-gray-large.gif";
	arrayKat["96"] = "nature-gray-large.gif";
	arrayKat["136"] = "culture-gray-large.gif";
	arrayKat["185"] = "shopping-gray-large.gif";
	arrayKat["257"] = "nightlife-gray-large.gif";
	arrayKat["207"] = "sports-gray-large.gif";

	var arrayKatName =  new Array();
	arrayKatName["0"] = "no_category";
	arrayKatName["1"] = "hotel";
	arrayKatName["17"] = "restaurant";
	arrayKatName["96"] = "nature";
	arrayKatName["136"] = "culture";
	arrayKatName["185"] = "shopping";
	arrayKatName["257"] = "nightlife";
	arrayKatName["207"] = "sports";


	// Daniel: If the Map is a external Map the Link to the efHome is not relativ and the target should be "_blank"
//	info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 1");	
	if (get.page_id == "access_extern"){
		/*
		target = "_blank";
		inAnker1 = woLink.substr((woLink.indexOf("<a") + 2),(woLink.indexOf("</") - (woLink.indexOf("<a") + 2)));
		nachAnker1 = woLink.substr(woLink.indexOf("</") + 4);

		inAnker2 = nachAnker1.substr((nachAnker1.indexOf("<a") + 2),( nachAnker1.indexOf("</") - (nachAnker1.indexOf("<a") + 2)));

		woLink = '<a target="' + target + '"' +  inAnker1 + '</a>&nbsp;><a target="' + target + '"' +  inAnker2 + '</a>';
	 */
	} 
	else {
//		efLocation = this.continentName + ' > ' + this.countryName ;
		efLocation = this.countryName ;
		//if ( this.admin1Name != "" ) {  efLocation += ' > ' + this.admin1Name; }
		if ( this.city != "" ) { efLocation += ' > ' + this.city; }
	}

	//info("earthfaves.js Earthfave.prototype.asResultListEntry -- my relationship:" + this.relationship );	
	switch (this.relationship)
	{
		case 0: //user is not loged in
			if (get.page_id == "extern_map"){
				bookmarkOnClick = 'openPopupSpreader2(' + this.id + ');';
			}
			else
			{
				bookmarkOnClick = 'showLogin(\'login\');';
			}
				bookmarkTitle = 'Log in to add this earthfave to your list';
				li_bookmark = '<li onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();" class="action-label-add" title="' + bookmarkTitle + '" onclick="' + bookmarkOnClick + '"></li>';
				break;
				
		case 1: //user is loged in
			//info("earthfaves.js Earthfave.prototype.asResultListEntry -- my relationship case 1 ");	
			if (get.page_id != "extern_map"){
				bookmarkOnClick = 'showAddEarthFaveOverlay(' + this.id + ', \'no\', \'no\',false,\'egal\'); jumpAnchor()';
				bookmarkTitle = 'Add this earthfave to your list';
				li_bookmark = '<li onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();" class="action-label-add" title="' + bookmarkTitle + '" onclick="' + bookmarkOnClick + '"></li>';
				global.action = "";
			}
			else
			{
				bookmarkOnClick = 'openPopupSpreader2(' + this.id + ');';
				bookmarkTitle = 'Add this earthfave to your list';
				li_bookmark = '<li onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();" class="action-label-add" title="' + bookmarkTitle + '" onclick="' + bookmarkOnClick + '"></li>';
				global.action = "";
			}
			
			break;
		case 2:
			classname = "bookmarked";
			break; //user us booker
		case 3:
			classname = "discovered";
			break; // user ist nur DISC
		case 4:
			classname = "owner";
			break; // nur owner
		case 5:
			classname = "discovered";
			break; // user ist DISC and Owner
		case 7:
			classname = "discovered";
			break; // nur DISC und es gibt booker
		case 8:
			classname = "discovered";
			break;  // Owner und DISC und es gibt booker
	
	}
	// info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 3");	

	var statiText = 'Discovered by';
	stati = '(' + this.status + ')';
	stati = '';

	// Show a Cat-Icon if the categorie is defined
	if (this.catId0) {categoryImage =  '<img onmouseover="myTip(\'' + arrayKatName[this.catId0] + '\');" onmouseout="UnTip();" style="width:20px; height:auto;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId0] + '"/>';	}
	if (this.catId1) {categoryImage += '<img onmouseover="myTip(\'' + arrayKatName[this.catId1] + '\');" onmouseout="UnTip();" style="width:20px; height:auto;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId1] + '"/>';	}
	if (this.catId2) {categoryImage += '<img onmouseover="myTip(\'' + arrayKatName[this.catId2] + '\');" onmouseout="UnTip();" style="width:20px; height:auto;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId2] + '"/>';	}
	if (this.catId3) {categoryImage += '<img onmouseover="myTip(\'' + arrayKatName[this.catId3] + '\');" onmouseout="UnTip();" style="width:20px; height:auto;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId3] + '"/>';	}


	var liShowEf = '<li onmouseover="myTip(\'Go to the earthfave page to get more details\');" onmouseout="UnTip();" class="action-label-details" title="Go to the earthfave page to get more details"';
	
	var efurl = createEarthfaveURL(this);
	
	if (get.page_id == "extern_map") {
		
		liShowEf += ' onclick="window.open(\'' + efurl + '\');">';
	}
	else { // the normal view on the earthfave page

		
		liShowEf += ' onclick="document.location.href=\''
			//+ global.URL + this.catName + '/'	+ this.city	+ '/' + this.id	+ '/' + this.name
			+ efurl
			+ '\'; addHistoryBack(\''
			+ global.URL
			+ 'page/earthfaves/\');" />';
	}

	var liCenterMap = '<li onmouseover="myTip(\'show this earthfave centered on the map\');" onmouseout="UnTip();" class="action-label-show-map" title="Show this earthfave centered on the map"';
		  liCenterMap +=' onclick="Map.show(); Map.centerMarker(' + this.lat + ', ' + this.lng + '); markDiv(' + markerId + '); closeFilter();" />';
	
	var trStart =	'<tr class="result-list-entry" id="trRLE_' + this.id + '">';
	
	var efName = this.name;
	if(efName.length > 42){
		efName = efName.substring(0,42) + "...";
	}
	
	var myTip = this.name;
	var found = myTip.indexOf("'");
	if(found != -1){
		myTip = myTip.substring(0,found) + "`" + myTip.substring(found + 1); //Oli, schnelle L�sung f�r das myTip Problem mit dem Sonderzeichen '
	}
	
	if (get.page_id == "extern_map")
	{
	
		var tdImage = '<td rowspan="2" class="image">'
		+		'<img onmouseover="myTip(\'Go to ' + myTip + '\');" onmouseout="UnTip();" onclick="window.open(\'' + efurl + '\');" class="keine"  style="width:50px; height:50px; overflow: hidden; cursor: pointer; padding-top: 15px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
		+		'</td>';
	}
	
	else
	{
		var tdImage = '<td rowspan="2" class="image">'
		+		'<a onmouseover="myTip(\'Go to ' + myTip + '\');" onmouseout="UnTip();" href="' + efurl +'" target="' + target + '">'
		+		'<img class="keine" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
		+		'</a>'
		+		'</td>';
	}
	//var tdDescText= '<td class="description-text"></td>';
	var tdCatIcon = '<td rowspan="2" class="category-icon">&nbsp;' + categoryImage	+ '</td>';
	
	if (get.page_id == "extern_map")
	{
		
		var tdDesc =	  '<td class="description">'
			+		'<h1 style="color:#4E80C7; cursor: pointer; padding-top: 15px;" onmouseover="myTip(\'Go to ' + myTip + '\');" onmouseout="UnTip();" onclick="window.open(\'' + efurl + '\');">'
			+			efName
			+ 			'<span class="no-of-bookmarkers" style="font-size:10px;">' + geobookmarker + '</span>'
			+ 		'</h1>'
			+		'<p class="path">' + efLocation  + '</p>'
			+		'<p class="short-text">' + this.overview + '</p>'
			+	'</td>';		
	}
	
	else
	{
		var tdDesc =	  '<td class="description">'
			+		'<h1>'
			+			'<a onmouseover="myTip(\'Go to ' + myTip + '\');" onmouseout="UnTip();"  href="' + efurl + '" target="' + target + '">' + efName + '</a>'
			+ 			'<span class="no-of-bookmarkers" style="font-size:10px;">' + geobookmarker + '</span>'
			+ 		'</h1>'
			+		'<p class="path">' + efLocation  + '</p>'
			+		'<p class="short-text">' + this.overview + '</p>'
			+	'</td>';
	}
  		
	// info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 4");		
  var liDeleteOrDiscover = "";
		if(get.page_id != "extern_map"){
			if(this.relationship == 2 ){//der bookmarker kann den Bookmark loeschen
				//info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 5");
				liDeleteOrDiscover = '<li onmouseover="myTip(\'Remove this earthfave from your list?\');"';
				liDeleteOrDiscover +='onmouseout="UnTip();" class="action-label-deleteBookmark" title="Remove this earthfave from your list?" onclick="showDeleteEfForm(' + global.user_id + ' , ' + this.id + ',\'book\');"></li>';
			}
			else if(this.relationship == 3 || this.relationship == 5  || this.relationship == 7 || this.relationship == 8)
			{	
			//	info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 5");		
				var 	recommender = "";
				
				if( this.numberOfBooker > 0 ){ recommender =' (' + this.numberOfBooker + ' recommender)'; }
				liDeleteOrDiscover += '<li onmouseover="myTip(\'Remove this earthfave from your list?\');" onmouseout="UnTip();"';
				liDeleteOrDiscover += ' class="action-label-deleteBookmark" title="Remove this earthfave from your list?' + recommender + '" onclick="showDeleteEfForm(' + global.user_id + ' , ' + this.id + ',\'disc\');"></li>';
			}
		}
		
	if (get.page_id == "extern_map")
	{
		var tdAction = '<td class="actions" rowspan="2">'
  		+ '<ul>'
  		+	liShowEf 			
			+	liCenterMap
			+ liDeleteOrDiscover
			+	li_bookmark
 			+ '</ul>'
			+	'</td>';
	}
	
	else
	{
		var tdAction = '<td class="actions">'
  		+ '<ul>'
  		+	liShowEf 			
			+	liCenterMap
			+ liDeleteOrDiscover
			+	li_bookmark
 			+ '</ul>'
			+	'</td>';
	}

		//info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 7");	
	if (get.page_id == "extern_map")
	{
		var trFooter = '<tr><td colspan="2">';
		var divFooter = '<div class="result-status" id="divRS_' + this.id + '">';
	}
	
	else
	{
		var trFooter = '<tr><td colspan="2" style="height:30px;">';
		var divFooter = '<div style="height:20px;" class="result-status" id="divRS_' + this.id + '">';
	}
		//info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 7.0");	
		var discName = this.discovererName;
		if(discName.length > 12){
			discName = discName.substring(0,12) + "...";
		}
		
		if (get.page_id != "extern_map")
		{
			divFooter += ' <div class="discovered-by-result"><a style="color:#4F81CF;" onmouseOver="myTip(\'' + discName + ' Rank: ' + this.discovererRank + '\');"';
			divFooter += ' onmouseout="UnTip();" href="' + global.URL + 'user/' + this.discovererName + '/" target="' + target + '">' +  discName + ' (' + this.levelOfExpertise + ')</a>';
			divFooter += '</div>';
		}
		
		var total = this.numberBookmarkingFriends + this.numberBookmarkingOthers + this.numberBookmarkingFF + 1 ;

		//	info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 7.1");	
			if( this.relationship != 0 && get.page_id != "extern_map"){
			
				var allLove = 1 + parseInt(this.numberBookmarkingFriends) + parseInt(this.numberBookmarkingFF) + parseInt(this.numberBookmarkingOthers);
				if(allLove > 0 || this.relationship == 3 || this.relationship == 2){
				
//					divFooter += '<div class="loved-result-start">Loved by</div>';
					//divFooter += '<div class="loved-result-start"></div>';
				}
					//info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 7.2");	
				if( this.relationship == 3 ||  this.relationship == 5  ||  this.relationship == 7 ||  this.relationship == 8 ||  this.relationship == 2){
						
					divFooter += '<div class="loved-result-my" style="">'; // you
					if(allLove > 0){	
					//komma oder kein Komma
					divFooter += '';
					//divFooter += ',';
					} 
					divFooter += '</div>';
				}
				pluralS = 's';
				
				//info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 8");	
				if( this.numberBookmarkingFriends == 1 ){ pluralS = ''; }
				if( this.numberBookmarkingFriends > 0  ){
					if(global.user_name == "Rick" || global.user_id == "42"|| global.user_id == "889"){ //travelmaster
						divFooter += '<div class="loved-result-friends" onmouseover="myTip(\'click to show the friends\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();"';
						divFooter += ' onClick="global.overlayNetwork = true; lookupPeople(\'task:showBookmarkerFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');">'; // showForm2(\'friendsRListe\',\'divRS_' + this.id + '\',\'modal\')
					}
					else{
						divFooter += '<div class="loved-result-friends"';
						divFooter += ' onmouseout="global.overlayNetwork = false; hideForm(\'friendsRListe\');" onmouseover="global.overlayNetwork = true; showForm3(\'friendsRListe\');lookupPeople(\'task:showBookmarkerFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');">'; // showForm2(\'friendsRListe\',\'divRS_' + this.id + '\',\'modal\')
					}
					
					divFooter += this.numberBookmarkingFriends;// + ' friend' + pluralS + 
					divFooter += '</div>';
					}
				//info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 8.1");		
				if( this.numberBookmarkingFF > 0 ) {
						if(global.user_name == "Rick" || global.user_id == "42"){
							divFooter += '<div class="loved-result-friends-friends" onmouseover="showMouseHand(); myTip(\'click to show the friends friends\');" onmouseout="hideMouseHand();UnTip();" ';
							divFooter += 'onClick=';
							divFooter += '"global.overlayNetwork = true; lookupPeople(\'task:showBookmarkerFriendsFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');"';
						}
						else {
							divFooter += '<div class="loved-result-friends-friends" onmouseout="global.overlayNetwork = false; hideForm(\'friendsRListe\');" ';
							divFooter += 'onmouseover=';
							divFooter += '"showForm3(\'friendsRListe\'); global.overlayNetwork = true; lookupPeople(\'task:showBookmarkerFriendsFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');"';
						}
						
					divFooter += '>';
					divFooter += this.numberBookmarkingFF;//  + ' friends\' friends
					divFooter +='</div>';
				}
			//	info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 8.2");		
				if( this.numberBookmarkingOthers > 0 ){ 
					 divFooter += '<div class="loved-result-others">' +  this.numberBookmarkingOthers + '</div>';
				}
				//r+='<a href="#">' + userFriendsLove + ' friends</a>,<a href="#">' + userFriendsFriendsLove + ' friends\' friends</a>and<a href="">120 others</a>';
		}
		else {
			
			if (get.page_id == "extern_map")
			{
				divFooter += '<div class="loved-result-others" >' +  total + ' people love this place</div>';	
			}
			else
			{
			//if( this.numberBookmarkingOthers > 0 ){ 
				 divFooter += '<div class="loved-result-others" >' +  ( this.numberBookmarkingOthers + 1 ) + ' people love this place</div>';
			}
			//}
		}
		//info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 9");	
		divFooter +='</div>';
		//r+='</div>';
		//alert("divFooter" + divFooter);
		trFooter += divFooter;
		trFooter += '</td></tr>';
		
	r  = trStart;
	r += tdImage;
	//r += tdDescText;
	r += tdCatIcon;
	r += tdDesc;
	r += tdAction
	r += '</tr>';
	r += trFooter;
	
	if (get.page_id == "extern_map")
	{
		r += '<tr><td colspan="3" style="height:15px; border-style: none none solid; border-width: 1px; border-color: rgb(78, 128, 199);"></td></tr>';
	}else{
		r += '<tr colspan="3"><td style="height:6px;"></td></tr>';
	}
	
	//info("earthfave.js asResultListEntry = " + r);
	
	return r;
}
Earthfave.prototype.getDiLiur = function (diLIUR){
	//console.log('Earthfave.prototype.getDiLiur efid '+ this.id + '  diLIU ' + diLIUR);
	relImg  = ''
	if(global.user_id > 1){
		relImg = global.IMG_URL_NONTEXT + "icons_RListe/otherUserWeiss_13_16.png"; //icons/otherUser_11_14.png
		switch(diLIUR){
			case 1:
				relImg = global.IMG_URL_NONTEXT + "icons_RListe/myEfsWeiss_14_16.png  "; //icons/myEfs_21_24.png
				break;
			case 2:
				relImg = global.IMG_URL_NONTEXT + "icons_RListe/friendsEfsWeiss_19_16.png"; // icons/result-info-friends-w.gif
			break;
			case 3:
				relImg = global.IMG_URL_NONTEXT + "icons_RListe/ffEfsWeiss_21_16.png";  // icons/result-info-friends-friends-w.gif";
			break;
		}
	}
	return relImg;
}

Earthfave.prototype.asNewResultListEntry = function (markerId)
{ // die wili of the friends
	//console.group();
	var cLog = false;
	if (cLog){ console.log("============= asNewResultListEntry id:" + markerId + " efid " + this.id);}
	
	var arrayKat =  new Array();
	arrayKat["0"] = "";// gibt es nicht !!!
	arrayKat["1"] = "category_1_klein_other.png";
	arrayKat["17"] = "category_17_klein_other.png";
	arrayKat["96"] = "category_96_klein_other.png";
	arrayKat["136"] = "category_136_klein_other.png";
	arrayKat["185"] = "category_185_klein_other.png";
	arrayKat["257"] = "category_257_klein_other.png";
	arrayKat["207"] = "category_207_klein_other.png";

	var arrayKatName =  new Array();var efLocation = "";	var efLocation2 = "";
	arrayKatName["0"] = "no_category" ;
	arrayKatName["1"] = "hotel";
	arrayKatName["17"] = "restaurant";
	arrayKatName["96"] = "nature";
	arrayKatName["136"] = "culture";
	arrayKatName["185"] = "shopping";
	arrayKatName["257"] = "nightlife";
	arrayKatName["207"] = "sports";
	
	var efName;
	if(this.name){efName = this.name;} //JSON problem with umlaute in DB
	if(efName.length > 42){	efName = efName.substring(0,42) + "...";}
	
	var target = "_self"; var bookmarkOnClick,bookmarkTitle,actionImage;
	var efurl = createEarthfaveURL(this);
	var discUrl = createUserUrl(this.discovererId,this.discovererName);
	if (cLog){console.log("Earthfave.prototype.asNewResultListEntry Pos 0");}
	
	var imgSizeAction = 'width="23" height="23"';
	var mainAction = '<img style="" '; 
	if(this.relationship == 0){
				bookmarkOnClick = 'showLogin(\'login\');';
				bookmarkTitle = 'Log in to add this earthfave to your list';
				actionImage = global.IMG_URL_NONTEXT + 'icons/add_ef_to_my_list_23_23.png';
	}
	else if(this.relationship == 1){
				bookmarkOnClick = 'jumpAnker(\'#topMarker\');showAddEarthFaveOverlay(' + this.id + ', \'no\', \'no\',false,\'egal\')';
				bookmarkTitle = 'Add this earthfave to your list';
				actionImage = global.IMG_URL_NONTEXT + 'icons/add_ef_to_my_list_23_23.png';
	}
	else if (this.relationship == 2){
			//liDeleteOrDiscover +='onmouseout="UnTip();" class="action-label-deleteBookmark" title="Remove this earthfave from your list?" onclick="showDeleteEfForm(' + global.user_id + ' , ' + this.id + ',\'book\');"></li>';
			bookmarkOnClick = 'showDeleteEfForm(' + global.user_id + ' , ' + this.id + ',\'book\')';
			bookmarkTitle = 'Remove this earthfave from your list?';
			actionImage = global.IMG_URL_NONTEXT + 'icons/remove_ef_23_23.png';
	}
	else if(this.relationship == 3 || this.relationship == 5  || this.relationship == 7 || this.relationship == 8){
		var 	recommender = "";
		
		if( this.numberOfBooker > 0 ){ recommender =' (' + this.numberOfBooker + ' recommender)'; }
		bookmarkOnClick = 'showDeleteEfForm(' + global.user_id + ' , ' + this.id + ',\'disc\');';
		bookmarkTitle = 'Remove this earthfave from your list?';
		actionImage = global.IMG_URL_NONTEXT + 'icons/remove_ef_23_23.png';
	}
	
	if (cLog){console.log("Earthfave.prototype.asNewResultListEntry Pos 1");}
	
	//mainAction += 'onMouseOver="myTip(' + bookmarkTitle  + ');" onmouseout="UnTip();"  src="' + actionImage + '"';
	mainAction += 'onMouseOver="myTip(\'' + bookmarkTitle  + '\');" onmouseout="UnTip();"  src="' + actionImage + '" '+ imgSizeAction;
	mainAction += ' onClick="' + bookmarkOnClick + '"';
	mainAction += '  />';
	var myTip = efName;//	var found = myTip.indexOf("'");	if(found != -1){	myTip = myTip.substring(0,found) + "`" + myTip.substring(found + 1); }
	if(global.user_id == "42"){ myTip +="<br>" + this.overview;}
	if (cLog){console.log("Earthfave.prototype.asNewResultListEntry Pos 1.1");}
	
	// Show a Cat-Icon if the categorie is defined
	var categoryImage = '';
	if (this.catId0) {categoryImage =  '<img class="imgCatRList" onmouseover="myTip(\'' + arrayKatName[this.catId0] + '\');" onmouseout="UnTip();"  src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId0] + '"/>';	}
	if (this.catId1) {categoryImage += '<img class="imgCatRList" onmouseover="myTip(\'' + arrayKatName[this.catId1] + '\');" onmouseout="UnTip();"  src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId1] + '"/>';	}
	if (this.catId2) {categoryImage += '<img class="imgCatRList" onmouseover="myTip(\'' + arrayKatName[this.catId2] + '\');" onmouseout="UnTip();"  src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId2] + '"/>';	}
	if (this.catId3) {categoryImage += '<img class="imgCatRList" onmouseover="myTip(\'' + arrayKatName[this.catId3] + '\');" onmouseout="UnTip();"  src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId3] + '"/>';	}
	
	if (cLog){console.log("Earthfave.prototype.asNewResultListEntry Pos 1.2");}

	if(typeof(this.address1)!='undefined' && this.address1!="" && this.address1!="null"){efLocation2 = this.address1;}
	if (cLog){console.log("Earthfave.prototype.asNewResultListEntry Pos 1.3 efLocation2 " + efLocation2);}
	
	if(typeof(this.city)!='undefined' && this.city!=""){ efLocation = this.city + ', ';}
	if (cLog){console.log("Earthfave.prototype.asNewResultListEntry Pos 1.4 efLocation " + efLocation);}
	
	efLocation += this.countryName ;
	if (cLog){console.log("Earthfave.prototype.asNewResultListEntry Pos 1.5");}
/*	efLocation = this.countryName ;
	if ( this.city != "" ) { efLocation += ' > ' + this.city; } */
	
	var discNameFull = this.discovererName;
	var discName = discNameFull;
	if(discName.length > 12){	discName = discName.substring(0,12) + "...";}

	var wili,bUrl;
	var prop;
	var boName;
	var lenBoName;
	var boWili;
	var tooltipp;
	var maxBoWili = 90;//wieviel zeichen bei den Wilis der Booker
	var maxDiWili = 90;//wieviel zeichen bei den Wilis des Disc
	var propArray = this.properties.split('\|');
	propArray = propArray.unique(); // siehe helper.js. entfernt doppelte aus dem array
  //propArray = "hallo";
	
	var total = this.numberOfBooker + 1; //this.numberBookmarkingFriends + this.numberBookmarkingOthers + this.numberBookmarkingFF + 1 ;
	if (cLog){console.log("baue zeile zusammen");}
	
	var row = "";
	 
	row +=	'<div class="mainDivRListe" id="idEf_' + this.id + '">';
	if(global.user_id == 42){	row +=  '<div>' + markerId + '</div>'	}
	row +=  '  <div style="float:left; width:100px; min-height:140px; background-color:#fff; margin: 0 8px 0 0;">';
	row +=  '			<a onmouseover="myTip(\'Go to ' + myTip + '\');" onmouseout="UnTip();" href="' + efurl +'" target="' + target + '">';
	row +=	'					<img width="100" height="100" class="keine" name="efBild_' + this.id + '" alt="'+ efName + '" src="' + this.media + '"/>';
	row +=	'			</a>';

	row +=	'  		<div class="ef_icons" style="padding-left:5px;">';
	row +=  '			<img width="23" height="23"  onmouseover="myTip(\'Go to the earthfave page to get more details\');" onmouseout="UnTip();"';
	row +=  '			onclick="document.location.href=\''	+ efurl	+ '\';" src="' + global.IMG_URL_NONTEXT + 'icons/show_details_23_23.png" />';

	row +=  '			<img width="16" height="23" onmouseover="myTip(\'show this earthfave centered on the map\');" onmouseout="UnTip();"';
	row +=  '			onclick="Map.show(); Map.centerMarker(' + this.lat + ', ' + this.lng + '); markDiv(' + markerId + ');';
	row +=  '			closeFilter();" src="' + global.IMG_URL_NONTEXT + 'icons/zoom_ef_on_map_16_23.png" />';

	row +=  			mainAction;			
	row +=	'  		</div>';
	
	row +=	'	</div>';
	if(cLog){console.log("asNewResultListEntry pos 1");}
		
	row +=	'	<div style="float:left; width:300px; min-height:140px; background-color:#fff; padding-bottom:4px;">';
	row +=	'		<h1>';
	row +=	'			<a onmouseover="myTip(\'Go to ' + myTip + '\');" onmouseout="UnTip();"  href="' + efurl + '" target="' + target + '">' + efName + '</a>';
	row += 	'		</h1>';

	if(cLog){console.log("asNewResultListEntry pos 2");}
	//console.log("earthfaves.js -> asNewResultListEntry propArray: " + propArray);
	//daniel 2010.08.19 Platz sparen. Nur erstellen, wenn Prps da sind.

	row += 	' 	<span class="RListText">' +	efLocation2 + '</span>';
	row += 	' 	<br><span onmouseover="this.style.cursor=\'pointer\';" onmouseout="this.style.cursor=\'auto\';"';
	row +=  '   onClick="submitSearch(\'earthfaves\',\'\',\'' + efLocation + '\', 0);" class="RListText">' +	efLocation + '</span>';
	if(cLog){console.log("asNewResultListEntry pos 2.0");}
	if(propArray != ""){row += 	' 	<br><span class="RListText">' +	propArray + '&nbsp;</span>';}
	row += 	'	<br>' + categoryImage;
	if(cLog){console.log("asNewResultListEntry pos 2.1");}
	
	row += 	' 	<h1>first faved by</h1>';
	row +=	'	<div style="background-color:#EDEEF0; width:290px; min-height:40px; padding-right:5px;" id="first_faver">';
	row +=	'		<a href="' + discUrl + '" target="_self">';
	row +=	' 			<img class="imgSmallRList" style="float:left;" onmouseOver="myTip(\'' + discNameFull + ' Rank: ' + this.discovererRank + '\');" onmouseout="UnTip();" ';
	row +=	'	  		src="' + this.discovererMedium + '">';
	row +=	' 		</a>';
	
	relImg = this.getDiLiur(this.diLIUR);

	if(cLog){console.log("asNewResultListEntry pos 3 this.diLIUR " + this.diLIUR + " bild " + relImg);}
	row +=  '		<img style="float:left; padding: 1px 2px 0 0;"	src="' + relImg + '">';	
	row += 	'		<div style="float:left; width: 222px;">';	
	row += 	' 			<a class="userLink" onmouseOver="myTip(\'' + discName + ' Rank: ' + this.discovererRank + '\');"';
	row +=	' 			onmouseout="UnTip();" href="' + discUrl + '" target="_self">' +  discName + '</a>';
	row +=	'			<span style="font-size:11px; font-weight:bold;">&nbsp;loves this place because: </span>'; 
	if (cLog){console.log("Earthfave.prototype.asNewResultListEntry Pos 3");}
	//console.log("asNewResultListEntry pos 3.0");
	if( this.discovererWili ){ wili = this.discovererWili; }
	else { wili = ""; }
	
	var langWili = wili.length;
	if (cLog){console.log("asNewResultListEntry pos 3.0.0 wili "  + wili + " this.discovererName " + this.discovererName);}
	
	//if( this.discovererName ) {diName = this.discovererName; }
	//var langDiNick = diName.length; //anna: es wird aber kurzen discName benutz!
	var langDiskName = discName.length;
	
	if (cLog){console.log("asNewResultListEntry pos 3.0.1 " + this.levelOfExpertise);}
	if(!this.levelOfExpertise){this.levelOfExpertise = Languages.EXPERTIESE_WANT_TO_GO;}
	var langLoE = this.levelOfExpertise.length;
	if (cLog){console.log("asNewResultListEntry pos 3.1");}
	
	if( langWili > (maxDiWili - ( langDiskName + langLoE ) ) ){ wili = wili.substr(0,(maxDiWili - ( langDiskName + langLoE ))) + "..."; } 
//	if( langWili > (maxDiWili - ( langDiNick + langLoE ) ) ){ wili = wili.substr(0,(maxDiWili - ( langDiNick + langLoE ))) + "..."; } 
	row +=	'			<span class="RListText" onmouseOver="myTip(\'' + this.discovererWili + '\');" 	onmouseout="UnTip();" >"' + wili + '"</span>'; //(' + this.levelOfExpertise + ') 
	row += 	' 		</div><div style="clear:both;"></div>';
	row += 	' </div></div>';
	
	row += 	' <div style="float:left; width:292px; min-height:140px; background-color:#fff;">';
	row +=	' 	<div style="height:35px; padding: 0 5px 5px 5px;">';
	row +=	' 		<div style="height:17px;">';
	row +=	' 			<span class="RListText" style="float:left;"><b>' + total + '</b> ' + Languages.RLISTE_PEOPLE_LOVE_THIS_PLACE + '</span>';
	
	if (cLog){console.log("asNewResultListEntry pos 4");}
	
	if( this.numberBookmarkingFriends  > 0 ){
	row +=	'				<span class="RListText" style="float:left; font-weight:bold;">, ' + this.numberBookmarkingFriends + '</span>';
	row +=	'				<img style="float:left; width:19px; height:16px;" onmouseover="myTip(\'click to show the friends\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();"';
	row +=	'				onClick="global.overlayNetwork = true; lookupPeople(\'task:showBookmarkerFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,999,\'byName\');"';
	row +=	'				src="' + global.IMG_URL_NONTEXT + 'icons_RListe/friendsEfsWeiss_19_16.png">';
	row +=	'				<span class="RListText">' + Languages.RLISTE_FRIENDS + '</span>';
	} 
	row +=	' 		</div>';
	if (cLog){console.log("asNewResultListEntry pos 5");}
	
	if( this.numberBookmarkingFF > 0) {
	row +=	'		<div style="height:17px;">';
	row +=	'			<span class="RListText" style="float:left; font-weight:bold;"> ';
	if( this.numberBookmarkingFriends  > 0 ){row +=	'and ';}
	row +=	this.numberBookmarkingFF  + '</span>';
	row +=	'			<img style="float:left; width:21px; height:16px;" onmouseover="myTip(\'click to show the friends&acute; friends\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();"';
	row +=	'			onClick="global.overlayNetwork = true; lookupPeople(\'task:showBookmarkerFriendsFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,999,\'byName\');"';
	row +=	'			src="' + global.IMG_URL_NONTEXT + 'icons_RListe/ffEfsWeiss_21_16.png">';
	row +=	'			<span class="RListText">' + Languages.RLISTE_FRIENDSFRIENDS;
	row +=	'		</div>';	
	
	}
	
	row +=	'	</div>';
	if(cLog){console.log("asNewResultListEntry pos 6");}

	if(this.bookerArray){
				//console.log("asNewResultListEntry pos 6.0");
				if(this.bookerArray.length > 0){
							//console.log("asNewResultListEntry pos 6.1");
							tooltipp =  Languages.RLISTE_GO_TO_PROFILE_FROM + '&nbsp;';
							relImg = this.getDiLiur(this.bookerArray[0][4]);
							
							//console.log("asNewResultListEntry pos 6.1");
							//console.log("asNewResultListEntry pos 6.2");
							bUrl = createUserUrl(this.bookerArray[0][0],this.bookerArray[0][1]);
							row +=	'	 <div  style="background-color:#edeef0; border-top:solid 1px #dedee0; padding:3px 3px 5px 5px; min-height:32px; overflow:hidden;">'; // bitte style nicht aendern!
							row += 	'   	<a  href="' + bUrl + '" target="_self"><img class="imgSmallRList" style="float:left; margin: 2px 5px 0 0;"';
							row +=	'			onmouseover="myTip(\'' + tooltipp +  this.bookerArray[0][1] + '\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();"'
							row +=  '			src="' + this.bookerArray[0][3] + '"></a>';
							//console.log("asNewResultListEntry pos 6.3");
							boName = this.bookerArray[0][1];
							lenBoName =  boName.length;
							if(lenBoName > 15 ){ boName  = boName .substr(0,13) + "..."; lenBoName = boName.length;;}
							boWili = this.bookerArray[0][2];
							//if(cLog){console.log("asNewResultListEntry boWili : " + this.bookerArray[0][1]);}
							if(!boWili){boWili = Languages.RLISTE_I_JUST_LOVE_IT;}
							if( boWili.length > (maxBoWili - lenBoName) ){ boWili  = boWili.substr(0,(maxBoWili - lenBoName)) + "..."; }
							
							if (cLog){console.log("asNewResultListEntry pos 6.5");}
							bUrl = global.URL + 'user/' + this.bookerArray[0][0] + '/' +  this.bookerArray[0][1] + '/';
							
							row +=  '	    <img style="float:left; padding: 1px 2px 0 0;"	src="' + relImg + '">';	
							row +=  '		<div style="float:left; width:226px;">';							
							row +=  '			<a  class="rListeBooker" href="' + bUrl + '" target="_self"';
							row +=  '			>' + boName + '</a><span style="font-size:11px; font-weight:bold;">&nbsp;loves this place because: </span>';
							//console.log("asNewResultListEntry pos 6.6");
							row +=  '	 		<span class="RListText" onmouseover="myTip(\'' + this.bookerArray[0][2] + '\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();" >"';
							row +=  			boWili + '"</span>';
							row +=  '		</div><div style="clear:both;"></div>';									
							row +=  '	</div>';
				}
	 			if(cLog){console.log("asNewResultListEntry pos 7");}
	
				if(this.bookerArray.length > 1){
						tooltipp =  Languages.RLISTE_GO_TO_PROFILE_FROM + "&nbsp;"; //other
						relImg = this.getDiLiur(this.bookerArray[1][4]);
						bUrl = createUserUrl(this.bookerArray[0][0],this.bookerArray[0][1]);
						row +=	'	 <div  style="background-color:#fff; border-top:solid 1px #dedee0; padding:3px 3px 5px 5px; min-height:32px; overflow:hidden;">'; // bitte style nicht aendern!
						row += 	'   	<a href="' + bUrl + '" target="_self"><img class="imgSmallRList" style="float:left; margin: 2px 5px 0 0;"';
						row +=	'			onmouseover="myTip(\'' + tooltipp + this.bookerArray[1][1] + '\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();"'
						row +=  '			src="' + this.bookerArray[1][3] + '"></a>';
						boName = this.bookerArray[1][1];
						lenBoName =  boName.length;
						if(lenBoName > 15 ){ boName  = boName .substr(0,13) + "..."; lenBoName =  boName.length;}
						boWili = this.bookerArray[1][2];
						if(!boWili){boWili = Languages.RLISTE_I_JUST_LOVE_IT;}
						if( boWili.length > (maxBoWili - lenBoName) ){ boWili  = boWili.substr(0,(maxBoWili - lenBoName)) + "..."; }
						bUrl = createUserUrl(this.bookerArray[1][0],this.bookerArray[1][1]);
						row +=  '	    <img style="float:left; padding: 1px 2px 0 0;"	src="' + relImg + '">';	
						row +=  '		<div style="float:left;width:226px;">';						
						row +=  '			<a  class="rListeBooker" href="' + bUrl + '" target="_self"';
						row +=  '			>' + boName + '</a><span style="font-size:11px; font-weight:bold;">&nbsp;loves this place because: </span>';
						row +=  '	 		<span class="RListText" onmouseover="myTip(\'' + this.bookerArray[1][2] + '\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();" >"';
						row +=  			boWili + '"</span>';
						row +=  '		</div><div style="clear:both;"></div>';						
						row +=  '	</div>';
				
				}
	} //if(bookerArray){
	
	row += 	' </div>';
	row += 	'</div>';
	
	if (cLog){console.log("zeile fertig");}
	//console.groupEnd();
	return row;
}

Earthfave.prototype.asNewResultListEntryExt = function (markerId){
	// die wili of the friends
	var cLog = false;
	if(cLog){console.log("asNewResultListEntry id:" + markerId);}
	
	var arrayKat =  new Array();
	arrayKat["0"] = "";// gibt es nicht !!!
	arrayKat["1"] = "category_1_klein_other.png";
	arrayKat["17"] = "category_17_klein_other.png";
	arrayKat["96"] = "category_96_klein_other.png";
	arrayKat["136"] = "category_136_klein_other.png";
	arrayKat["185"] = "category_185_klein_other.png";
	arrayKat["257"] = "category_257_klein_other.png";
	arrayKat["207"] = "category_207_klein_other.png";

	var arrayKatName =  new Array();
	arrayKatName["0"] = "no_category";
	arrayKatName["1"] = "hotel";
	arrayKatName["17"] = "restaurant";
	arrayKatName["96"] = "nature";
	arrayKatName["136"] = "culture";
	arrayKatName["185"] = "shopping";
	arrayKatName["257"] = "nightlife";
	arrayKatName["207"] = "sports";
	
	
	var efName = this.name; 	if(efName.length > 42){	efName = efName.substring(0,42) + "...";}
	var target = "_blank"; var bookmarkTitle; var bookmarkOnClick; var actionImage;
	var efurl = createEarthfaveURL(this);
	
	var mainAction = '<img style="width:22px; height:22px;" '; 
	if(this.relationship == 0){
				bookmarkOnClick = 'openPopupSpreader2(' + this.id + ');';
				bookmarkTitle = 'Log in to add this earthfave to your list';
				actionImage = global.IMG_URL_NONTEXT + 'buttons/addEarthfave.png';
	}
	if(this.relationship == 1){
				bookmarkOnClick = 'openPopupSpreader2(' + this.id + ');';
				bookmarkTitle = 'Add this earthfave to your list';
				actionImage = global.IMG_URL_NONTEXT + 'buttons/addEarthfave.png';
	}	

	mainAction += 'onMouseOver="myTip(\'' + bookmarkTitle  + '\');" onmouseout="UnTip();"  src="' + actionImage + '"';
	mainAction += 'onClick="' + bookmarkOnClick + '"';
	mainAction += '  />';
	if(cLog){console.log("asNewResultListEntryExt pos 0.1.1");}
	var myTip = this.name;//	var found = myTip.indexOf("'");	if(found != -1){	myTip = myTip.substring(0,found) + "`" + myTip.substring(found + 1); }
	if(global.user_id == "42"){ myTip +="<br>" + this.overview;}
	if(cLog){console.log("asNewResultListEntryExt pos 0.2");}
	// Show a Cat-Icon if the categorie is defined
	var categoryImage = '';
	if (this.catId0) {categoryImage =  '<img class="imgCatRList" onmouseover="myTip(\'' + arrayKatName[this.catId0] + '\');" onmouseout="UnTip();"  src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId0] + '"/>';	}
	if (this.catId1) {categoryImage += '<img class="imgCatRList" onmouseover="myTip(\'' + arrayKatName[this.catId1] + '\');" onmouseout="UnTip();"  src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId1] + '"/>';	}
	if (this.catId2) {categoryImage += '<img class="imgCatRList" onmouseover="myTip(\'' + arrayKatName[this.catId2] + '\');" onmouseout="UnTip();"  src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId2] + '"/>';	}
	if (this.catId3) {categoryImage += '<img class="imgCatRList" onmouseover="myTip(\'' + arrayKatName[this.catId3] + '\');" onmouseout="UnTip();"  src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId3] + '"/>';	}
	
	efLocation = this.countryName ;
	if ( this.city != "" ) { efLocation += ' > ' + this.city; }
	
	var discName = this.discovererName;
	if(discName.length > 12){	discName = discName.substring(0,12) + "...";}
	if(cLog){console.log("asNewResultListEntryExt pos 0.3");}
	var wili;
	var prop;
	var boName;
	var lenBoName;
	var boWili;
	var tooltipp;
	var maxBoWili = 70;//wieviel zeichen bei den Wilis der Booker
	var maxDiWili = 78;//wieviel zeichen bei den Wilis des Disc
	propArray = this.properties.split('\|');

	var total = this.numberBookmarkingFriends + this.numberBookmarkingOthers + this.numberBookmarkingFF + 1 ;
	
	var row = "";
	 
	row +=	'<div class="mainDivRListe">';
	row +=  '  <div style="float:left; width:100px; min-height:140px; background-color:#fff; margin: 0 8px 0 0;">';
	row +=  '			<a onmouseover="myTip(\'Go to ' + myTip + '\');" onmouseout="UnTip();" href="' + efurl +'" target="' + target + '">';
	row +=	'					<img class="keine" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>';
	row +=	'			</a>';
	row +=  			mainAction;			

 	row +=  '			<a href="' + efurl + '" target="_blank"><img onmouseover="myTip(\'Go to the earthfave page to get more details\');" onmouseout="UnTip();"';
	row +=  '			onclick="document.location.href=\''	+ efurl	+ '\';" src="' + global.IMG_URL_NONTEXT + 'icons/show-details.gif" /></a>';
	
	row +=	'	</div>';
		
	row +=	'	<div style="float:left; width:300px; min-height:140px; background-color:#fff; padding-bottom:4px;">';
    row +=	'		<h1>';
	row +=	'			<a onmouseover="myTip(\'Go to ' + myTip + '\');" onmouseout="UnTip();"  href="' + efurl + '" target="' + target + '">' + efName + '</a>';
	row += 	'		</h1>';
	row += 			categoryImage;

	
	row += 	' 	<br><span class="RListText">' +	propArray + '&nbsp;</span>';

	row += 	' 	<br><span class="RListText">' +	efLocation + '</span>';
	row += 	' 	<h1>first faved by</h1>';
	row +=	'		<a href="' + global.URL + 'user/' + this.discovererId +'/'+ this.discovererName + '/" target="_blank">';
	row +=	' 		<img class="imgSmallRList" style="float:left;" onmouseOver="myTip(\'' + discName + ' Rank: ' + this.discovererRank + '\');" onmouseout="UnTip();" ';
	row +=	'	  	src="' + this.discovererMedium + '">';
	row +=	' 		</a>';
	
	
	row += 	' 	<a class="userLink" onmouseOver="myTip(\'' + discName + ' Rank: ' + this.discovererRank + '\');"';
	row +=	' 	onmouseout="UnTip();" href="' + global.URL + 'user/'+ this.discovererId +'/' + this.discovererName + '/" target="_blank">' +  discName + '</a>';
 
	
	//console.log("asNewResultListEntry pos 3.0");
	if( this.discovererWili ){ wili = this.discovererWili; }
	else { wili = ""; }
	
	var langWili = wili.length;

	var langDiNick = this.discovererName.length;
	//console.log("asNewResultListEntry pos 3.0.0");
	var langLoE = this.levelOfExpertise.length;
	
	if( langWili > (maxDiWili - ( langDiNick + langLoE ) ) ){ wili = wili.substr(0,(maxDiWili - ( langDiNick + langLoE ))) + "..."; }
	row +=	'		<span class="RListText" onmouseOver="myTip(\'' + this.discovererWili + '\');" 	onmouseout="UnTip();" >(' + this.levelOfExpertise + ')' + wili + '"</span>';
	row += 	' </div>';

	
	row += 	' <div style="float:left; width:292px; min-height:140px; background-color:#fff;">';
	row +=	' 	<div style="height:35px; padding: 0 5px 5px 5px;">';
	row +=	' 		<div style="height:17px;">';
	row +=	' 			<span class="RListText" style="float:left;">' + total + ' ' + LanguagesExt.RLISTE_PEOPLE_LOVE_THIS_PLACE + '</span>';
	row +=	' 		</div>';
	row +=	'	</div>';
	

	if(this.bookerArray){
		//console.log("asNewResultListEntry pos 6.0");
		if(this.bookerArray.length > 0){
			//console.log("asNewResultListEntry pos 6.1");
			tooltipp = LanguagesExt.RLISTE_GO_TO_PROFILE_FROM + "&nbsp;";
		//console.log("asNewResultListEntry pos 6.2");
		
		row +=	'	 	<div  style="background-color:#edeef0; border-top:solid 1px #dedee0; padding:5px;height:30px;">'; // bitte style nicht aendern!
		row += 	'   	<a  href="' + global.URL + 'user/' +this.bookerArray[0][0] +'/'+this.bookerArray[0][1] + '/" target="_blank"><img class="imgSmallRList" style="float:left;"';
		row +=	'			onmouseover="myTip(\'' + tooltipp +  this.bookerArray[0][1] + '\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();"'
		row +=  '			src="' + this.bookerArray[0][3] + '"></a>';
		
		boName = this.bookerArray[0][1];
		lenBoName =  boName.length;
		if(lenBoName > 15 ){ boName  = boName .substr(0,13) + "..."; lenBoName =  boName.length;}
		boWili = this.bookerArray[0][2];
	
		if( boWili.length > (maxBoWili - lenBoName) ){ boWili  = boWili.substr(0,(maxBoWili - lenBoName)) + "..."; }
		row +=  '			<a  class="rListeBooker" href="' + global.URL + 'user/' + this.bookerArray[0][0] + '/'+ this.bookerArray[0][1] + '/" target="_blank"';
		row +=  '			>' + boName + ':</a>';
		row +=  '	 		<span class="RListText" onmouseover="myTip(\'' + this.bookerArray[0][2] + '\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();" >"';
		row +=  			boWili + '"</span>';
		row +=  '		</div>';
		}
	
		if(this.bookerArray.length > 1){
			
		tooltipp = LanguagesExt.RLISTE_GO_TO_PROFILE_FROM + "&nbsp;";
		
		row +=	'	 	<div  style="background-color:#edeef0; border-top:solid 1px #dedee0; padding:5px; height:30px;">'; // bitte style nicht aendern!
		row += 	'   	<a href="' + global.URL + 'user/' +this.bookerArray[1][0] +'/' +  this.bookerArray[1][1] + '/" target="_blank"><img class="imgSmallRList" style="float:left;"';
		row +=	'			onmouseover="myTip(\'' + tooltipp + this.bookerArray[1][0] + '\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();"'
		row +=  '			src="' + this.bookerArray[1][3] + '"></a>';
		boName = this.bookerArray[1][1];
		lenBoName =  boName.length;
		if(lenBoName > 15 ){ boName  = boName .substr(0,13) + "..."; lenBoName =  boName.length;}
		boWili = this.bookerArray[1][2];
		if( boWili.length > (maxBoWili - lenBoName) ){ boWili  = boWili.substr(0,(maxBoWili - lenBoName)) + "..."; }
		row +=  '			<a  class="rListeBooker" href="' + global.URL + 'user/'+ this.bookerArray[1][0] +'/'+ this.bookerArray[1][1] + '/" target="_blank"';
		row +=  '			>' + boName + ':</a>';
		row +=  '	 		<span class="RListText" onmouseover="myTip(\'' + this.bookerArray[1][2] + '\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();" >"';
		row +=  			boWili + '"</span>';
		row +=  '		</div>';
		
		}
	} //if(bookerArray){
	
	row += 	' </div>';
	row += 	'</div>';
	
	if(cLog){console.log("rlist ext zeile fertig");}

	return row;
}

/**
 * Gibt den Typ zur?ck, wird z.B. f?r Namenskonvention bei den Icon auf der Karte verwendet
 */
Earthfave.prototype.getType = function (){
	return "ef";
}

Earthfave.prototype.discover = function(user_id, listOfCategories, listOfProperties){
	info("Trage earthfave f?r Entdecker mit ID = " + user_id + " ein");
	Ajax.send(global.AJAX_URL + 'discoverRequest.php', 
			'userId=' + user_id
			+ '&id=' + this.id 
			+ '&latitude=' + this.lat 
			+ '&longitude=' + this.lng 
			+ '&name=' + this.name 
			+ '&countryId=' + this.countryId
			+ '&city=' + this.city 
			+ '&address1=' + this.address1
			+ '&continentId=' + this.continentId
			+ '&overview=' + this.overview 
			+ '&comment=' + this.comment 
			+ '&suggestions=' + this.suggestions 
			+ '&internName=' + this.internalName
			+ '&relationship=' + this.relationship 
			+ '&categories=' + listOfCategories 
			+ '&properties=' + listOfProperties 
			+ '&tags=' + this.tags 
			+ '&visitMonth=' + this.visitMonth 
			+ '&visitYear=' + this.visitYear, 
			discoverCallback,
			null, 
			null,
			global.EARTHFAVES_TIMEOUT); 

}

function discoverCallback (response){
	info ("earthfave entdeckt: " + response);
}

Earthfave.prototype.bookmark = function(user_id){
	info("Bookmarke earthfave fuer Benutzer mit ID = " + user_id);
	info("Bookmarkedaten.. id:" + this.id + " overview " + this.overview + " comment " + this.comment + " rel " + this.relationship);
	Ajax.send(global.AJAX_URL + 'bookmarkRequest.php', 
			'userId=' + user_id
			+ '&id=' + this.id 
			+ '&overview=' + this.overview 
			+ '&comment=' + this.comment 
			+ '&suggestions=' + this.suggestions 
			+ '&relationship=' + this.relationship 
			//+ '&tags=' + this.tags 
			+ '&visitMonth=' + this.visitMonth 
			+ '&experience=' + this.levelOfExpertise 
			+ '&visitYear=' + this.visitYear, 
			bookmarkCallback,
			null, 
			null,
			global.EARTHFAVES_TIMEOUT); 
	
	if(document.getElementById("page3")){
		var doc = document.getElementById("page3");
		var str = '<div class="progress-white" style="height:400px;">	</div>';
		doc.style.textAlign = "center";
		doc.style.marginTop = "20%";
		doc.style.backgroundColor = "#ffffff";
		doc.innerHTML = str;
	}
}

function bookmarkCallback (response){
	var data = response.split ( '\|' );
	var task = data[0];
	var id = data[1];
	var url = data[2];
	
	info ("earthfave gebookmarked: " + response);
		if(global.user_id == "42"){
			//travelamaster
			if(document.getElementById("page3")){
				var str = '<a href"#" onmousedown="location.reload();"/>chancel</a><br><br>';
				str += '<a href="' + url +'" >goto earthave page</a>';
				document.getElementById("page3").innerHTML = str;
			}
		} else {
			
			document.location.href = url;
		}
}

//Arno Anfang===============================
Earthfave.prototype.asPopupEntry = function (markerId, task){
	//console.log("Ich bin in Fonction asPopupEntry" + get.page_id);
	//console.log("Earthfave.prototype.asPopupEntry: " + markerId  + " lat lng " + this.lat + " " + this.lng);
	var def = "";
	var undef = "";
	var z; // Fuer die Rueckgabe des HTML-Codes
	var classname = "";
	var hasBookedDisc = 0;
	
	var li_bookmark = "";
	var bookmarkOnClick = "";
	var bookmarkTitle = "";
	var prozent =  0;
	var geobookmarker = "";
	var stati;
	var target = "_self";
	var catLink = "";
	var efLocation = "";
	var media = "";
	var categoryImage = "";

//	info("Earthfave.prototype.asResultListEntry marker 0");

	for( prop in this ){
		if( prop == "asMarker" ){ break; } 
		if( this[prop] == undefined ){ undef += prop + ' value :' + this[prop]+ ' '; }
		else{ def += prop + ' value :' + this[prop]+ ' ';}
	}

	var arrayKat =  new Array()
	arrayKat["0"] = "";// gibt es nicht !!!
	arrayKat["1"] = "hotels-gray-large.gif";
	arrayKat["17"] = "restaurants-gray-large.gif";
	arrayKat["96"] = "nature-gray-large.gif";
	arrayKat["136"] = "culture-gray-large.gif";
	arrayKat["185"] = "shopping-gray-large.gif";
	arrayKat["257"] = "nightlife-gray-large.gif";
	arrayKat["207"] = "sports-gray-large.gif";

	var arrayKatName =  new Array();
	arrayKatName["0"] = "no_category";
	arrayKatName["1"] = "hotel";
	arrayKatName["17"] = "restaurant";
	arrayKatName["96"] = "nature";
	arrayKatName["136"] = "culture";
	arrayKatName["185"] = "shopping";
	arrayKatName["257"] = "nightlife";
	arrayKatName["207"] = "sports";


	efLocation = this.countryName ;
	if ( this.city != "" ) { efLocation += ' > ' + this.city; }
	if ( this.address1 != "" && this.address1 != "undefined") { efLocation += ' > ' + this.address1; }	
	//console.log("Ich bin in Fonction asPopupEntry 1" + get.page_id);
	
	li_bookmark = "" ;
	
	if (task != "pagination")
	{
	
		switch (this.relationship)
		{
			case 0: //user is not loged in
			
				bookmarkOnClick = '' ;
			
				if (get.page_id == "extern_map"){
					bookmarkOnClick = 'openPopupSpreader2(' + this.id + ');';
				}
				else{
					bookmarkOnClick = 'showLogin(\'login\');';
				}
				bookmarkTitle = 'Log in to add this earthfave to your list';
				li_bookmark = '<li id="li-labAdd2" style="" onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();" title="' + bookmarkTitle + '" onclick= "setEarthfaveOverlayVisible(false); setEarthfaveOverlayInvisibleTimer(); ' + bookmarkOnClick + '"></li>';
//				li_bookmark = '<li id="li-labAdd2" style="height:24px; width:24px; padding-top:5px; magin:0px;" onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();" title="' + bookmarkTitle + '" onclick= "setEarthfaveOverlayVisible(false); setEarthfaveOverlayInvisibleTimer(); ' + bookmarkOnClick + '"></li>';				
				break;
			case 1: //user is loged in
				
				bookmarkOnClick = '' ;
				console.log("looooooooooooooooool");
				if (get.page_id == "extern_map"){
					console.log("looooooooooooooooool");
					bookmarkOnClick = 'openPopupSpreader2(' + this.id + ');';
				}
				else
				{
					console.log("loooooooooooooooooooooool-not-extern");
					bookmarkOnClick = 'showAddEarthFaveOverlay(' + this.id + ', \'no\', \'no\',false,\'egal\')';
				}
				bookmarkTitle = 'Add this earthfave to your list';
				li_bookmark = '<li id="li-labAdd2" style=""onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();"  title="' + bookmarkTitle + '" onclick= "' + bookmarkOnClick + '"></li>';
//				li_bookmark = '<li id="li-labAdd2" style="height:24px; width:24px; padding-top:5px; margin:0px;"onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();"  title="' + bookmarkTitle + '" onclick= "' + bookmarkOnClick + '"></li>';				
				global.action = "";
				
				break;
			case 2:
				classname = "bookmarked";
				break; //user us booker
			case 3:
				classname = "discovered";
				break; // user ist nur DISC
			case 4:
				classname = "owner";
				break; // nur owner
			case 5:
				classname = "discovered";
				break; // user ist DISC and Owner
			case 7:
				classname = "discovered";
				break; // nur DISC und es gibt booker
			case 8:
				classname = "discovered";
				break;  // Owner und DISC und es gibt booker
		
		}
	}
	
	console.log(li_bookmark);
	
	//console.log("Ich bin in Fonction asPopupEntry 2" + get.page_id);
	
	var statiText = 'Discovered by';
	stati = '(' + this.status + ')';
	stati = '';

	// Show a Cat-Icon if the categorie is defined
	if (this.catId0) {categoryImage =  '<img style="padding-top:10px; height:25px; width:25px;" onmouseover="myTip(\'' + arrayKatName[this.catId0] + '\');" onmouseout="UnTip();" style="width:20px; height:20px;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId0] + '"/>';	}
	if (this.catId1) {categoryImage += '<img style="padding-top:10px; height:25px; width:25px;" onmouseover="myTip(\'' + arrayKatName[this.catId1] + '\');" onmouseout="UnTip();" style="width:20px; height:20px;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId1] + '"/>';	}
	if (this.catId2) {categoryImage += '<img style="padding-top:10px; height:25px; width:25px;" onmouseover="myTip(\'' + arrayKatName[this.catId2] + '\');" onmouseout="UnTip();" style="width:20px; height:20px;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId2] + '"/>';	}
	if (this.catId3) {categoryImage += '<img style="padding-top:10px; height:25px; width:25px;" onmouseover="myTip(\'' + arrayKatName[this.catId3] + '\');" onmouseout="UnTip();" style="width:20px; height:20px;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId3] + '"/>';	}
	
	var efurl = createEarthfaveURL(this);
	
	//console.log("Ich bin in Fonction asPopupEntry 3" + get.page_id);

	var liShowEf = '<li id="li-details"; style="" onmouseover="myTip(\'Go to the earthfave page to get more details\');" onmouseout="UnTip();" title="Go to the earthfave page to get more details"';
//	var liShowEf = '<li id="li-details"; style="height:20px; width:20px; padding-top:5px;" onmouseover="myTip(\'Go to the earthfave page to get more details\');" onmouseout="UnTip();" title="Go to the earthfave page to get more details"';	
	if (get.page_id == "extern_map") {
		liShowEf += 'onclick="window.open(\'' + efurl + '\');">';
	}
	else { // the normal view on the earthfave page
		liShowEf += ' onclick="document.location.href=\''
			//+ global.URL + this.catName + '/'	+ this.city	+ '/' + this.id	+ '/' + this.name
			+ global.URL + this.catName0 + '_'	+ this.city	+ '/' + this.id	+ '/' + this.name
			+ '\'; addHistoryBack(\''
			+ global.URL
			+ 'page/earthfaves/\');" />';
	}
	
	//console.log("Ich bin in Fonction asPopupEntry 4" + get.page_id);
	
	var liCenterMap = '<li id="li-centerMap"; style="" onmouseover="myTip(\'Show this earthfave centered on the map\');"'+markerId+' '+this.id+');" onmouseout="UnTip();"  title="Show this earthfave centered on the map"';
//	var liCenterMap = '<li id="li-centerMap"; style="height:20px; width:20px; magin:0px; padding-top:5px;" onmouseover="myTip(\'Show this earthfave centered on the map\');"'+markerId+' '+this.id+');" onmouseout="UnTip();"  title="Show this earthfave centered on the map"';		  
		  liCenterMap +=' onclick="setEarthfaveOverlayVisible(false); setEarthfaveOverlayInvisibleTimer(); Map.show(); Map.centerMarker(' + this.lat + ', ' + this.lng+'); markDiv(' + markerId + '); closeFilter(); " />';
		  
	var trStart =	'<tr id="trRLE_' + this.id + '">';
	
	var efName = this.name;
	if(efName.length > 42){
		efName = efName.substring(0,42) + "...";
	}
	
	//console.log("Ich bin in Fonction asPopupEntry 5" + get.page_id);
	
	var myTip = this.name;


	if (get.page_id == "extern_map") 
	{
		var tdImage = '<td rowspan=4 style="height:130px; width:80px; vertical-align:top;">'
					+		'<a onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();" href="' + efurl + '" target="_blank">'
			+		'<img style="height:80px; width:80px; padding-top:0px; margin:0px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
			+		'</a>'
			+		'</td>';

	}
	
	else
	{
		var tdImage = '<td style="height:80px; overflow:hidden; width:80px; padding:0px; magin:0px;">'
					+		'<a onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();" href="' + global.URL + this.city + '/' +  this.id + '/' + this.name +'\'" target="' + target + '">'
			+		'<img style="height:80px; width:80px; padding-top:0px; margin:0px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
			+		'</a>'
			+		'</td>';
	}
	
	//console.log("Ich bin in Fonction asPopupEntry 6" + get.page_id);
	//var tdDescText= '<td class="description-text"></td>';
	var tdCatIcon = '<td rowspan="2" style="height:100px; width:20px; magin:0px;">&nbsp;' + categoryImage	+ '</td>';
	
	if (get.page_id == "extern_map")
	{
		console.log("description");
		var tdDesc =	 '<td colspan=3 style="height:30px; width:250px; vertical-align:top;"'
		+		'<h1 style="margin:0px; position:top; overflow:hidden; height:18px;">'
		+			'<a style="padding-top:2px; color: #F15B26; font-size: 14px; height:30px; width:205px;" onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"  href="' + efurl + '" target="_blank">' + efName + '</a>'
		+ 			'<span  style="padding-bottom:40px; font-size:10px;">' + geobookmarker + '</span>'
		+ 		'</h1>'
		+ 	'<p class="path" style="font-size:10px;">' + efLocation  + '</p>'
	}
	
	else
	{
		var tdDesc =	  '<td >'
		+		'<h1 style="margin:0px; position:top;">'
		+			'<a style="padding-top:2px; color: #F15B26;text-decoration: none; text-underline: none; font-size: 14px; height:30px; width:205px;" onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"  href="' + global.URL + this.catName0 + '_' + this.city + '/' +  this.id + '/' + this.name + '" target="' + target + '">' + efName + '</a>'
		+ 			'<span  style="padding-bottom:40px; font-size:10px;">' + geobookmarker + '</span>'
		+ 		'</h1>'
		+		'<p  style="width:205px;">' + efLocation  + '</p>'
		+		'<p style="height:30px; width:205px;">' + this.overview + '</p>'
		+	'</td>';
	}
	
	//console.log("Ich bin in Fonction asPopupEntry 7" + get.page_id);


	// info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 4");		
  var liDeleteOrDiscover = "";
		if(get.page_id != "extern_map"){
			if(this.relationship == 2 ){//der bookmarker kann den Bookmark loeschen
				liDeleteOrDiscover = '<li id="li-delBookmark"; style="" onmouseover="myTip(\'Remove this earthfave from your list?\');"';
//				liDeleteOrDiscover = '<li id="li-delBookmark"; style="height:20px; width:20px; magin:0px; padding-top:5px;" onmouseover="myTip(\'Remove this earthfave from your list?\');"';				
				liDeleteOrDiscover +='onmouseout="UnTip();" title="Remove this earthfave from your list?" onclick="showDeleteEfForm(' + global.user_id + ' , ' + this.id + ',\'book\');"></li>';
			}
			else if(this.relationship == 3 || this.relationship == 5  || this.relationship == 7 || this.relationship == 8)
			{	
			//	info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 5");		
				var 	recommender = "";
				if( this.numberOfBooker > 0 ){ recommender =' (' + this.numberOfBooker + ' recommender)'; }
				liDeleteOrDiscover += '<li id="li-delBookmark2"; style="" onmouseover="myTip(\'Remove this earthfave from your list?\');" onmouseout="UnTip();"';
				liDeleteOrDiscover += ' title="Remove this earthfave from your list?' + recommender + '" onclick="showDeleteEfForm(' + global.user_id + ' , ' + this.id + ',\'disc\');"></li>';
			}
		}
		
	//console.log("Ich bin in Fonction asPopupEntry 8" + get.page_id);


	var tdAction = '<td style="width: 0px; height:140px;">'
  	+ '<ul>'
  	+	liShowEf 			
		+	liCenterMap
		+ liDeleteOrDiscover
		+	li_bookmark
 		+ '</ul>'
		+	'</td>';

		var trFooter = '<tr><td colspan="4" style="height:20px;">';

		var divFooter = '<div style="width: 245px; height: 20px;"  id="divRS_' + this.id + '">';
		
		var total = this.numberBookmarkingFriends +  this.numberBookmarkingFF + this.numberBookmarkingOthers + 1 ;
			
		var discName = this.discovererName;
		if(discName.length > 12){
			discName = discName.substring(0,12) + "...";
		}
		
		if (get.page_id == "extern_map")
		{
			divFooter += ' <div><a style="height:20px;" class="userLink" onmouseOver="myTip(\'' + discName + ' Rank: ' + this.discovererRank + '\');"';
			divFooter += ' onmouseout="UnTip();" href="' + global.URL + 'user/' + this.discovererName + '/" target="_blank">' +  discName + ' (' + this.levelOfExpertise + ')</a>';
			divFooter += '</div>';
		}
		
		else
		{
			divFooter += ' <div><a style="height:20px;" class="userLink" onmouseOver="myTip(\'' + discName + ' Rank: ' + this.discovererRank + '\');"';
			divFooter += ' onmouseout="UnTip();" href="' + global.URL + 'user/' + this.discovererName + '/" target="' + target + '">' +  discName + ' (' + this.levelOfExpertise + ')</a>';
			divFooter += '</div>';
		}

			if( this.relationship != 0 && (get.page_id != "extern_map")){
			
				var allLove = 1+ parseInt(this.numberBookmarkingFriends) + parseInt(this.numberBookmarkingFF) + parseInt(this.numberBookmarkingOthers);
				if(allLove > 0 || this.relationship == 3 || this.relationship == 2){
				}

				if( this.relationship == 3 ||  this.relationship == 5  ||  this.relationship == 7 ||  this.relationship == 8 ||  this.relationship == 2){
						
					divFooter += '<div class="loved-result-my" style="">'; // you
					if(allLove > 0){	
					//komma oder kein Komma
					divFooter += '';
					//divFooter += ',';
					} 
					divFooter += 'you </div>';
				}
				pluralS = 's';
				
				if( this.numberBookmarkingFriends == 1 ){ pluralS = ''; }
				if( this.numberBookmarkingFriends > 0  ){
					if(global.user_name == "Rick" || global.user_id == "42" || global.user_id == "889"){ // travelmaster
						divFooter += '<div  class="loved-result-friends" onmouseover="myTip(\'click to show the friends\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();"';
						divFooter += ' onClick="lookupPeople(\'task:showBookmarkerFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');">'; // showForm2(\'friendsRListe\',\'divRS_' + this.id + '\',\'modal\')
					}
					else{
						divFooter += '<div class="loved-result-friends"';
						divFooter += ' onmouseout="hideForm(\'friendsRListe\');" onmouseover="showForm(\'friendsRListe\');lookupPeople(\'task:showBookmarkerFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');">'; // showForm2(\'friendsRListe\',\'divRS_' + this.id + '\',\'modal\')
					}
					
					divFooter += this.numberBookmarkingFriends;// + ' friend' + pluralS + 
					divFooter += '</div>';
					}	
				if( this.numberBookmarkingFF > 0 ) {
						if(global.user_name == "Rick" || global.user_id == "42" || global.user_id == "889"){ //travelmaster
							divFooter += '<div class="loved-result-friends-friends" onmouseover="showMouseHand(); myTip(\'click to show the friends friends\');" onmouseout="hideMouseHand();UnTip();" ';
							divFooter += 'onClick=';
							divFooter += '"lookupPeople(\'task:showBookmarkerFriendsFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');"';
						}
						else {
							divFooter += '<div class="loved-result-friends-friends" onmouseout="hideForm(\'friendsRListe\');" ';
							divFooter += 'onmouseover=';
							divFooter += '"showForm(\'friendsRListe\'); lookupPeople(\'task:showBookmarkerFriendsFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');"';
						}
						
					divFooter += '>';
					divFooter += this.numberBookmarkingFF;//  + ' friends\' friends
					divFooter +='</div>';
				}
				if( this.numberBookmarkingOthers > 0 ){ 
					 divFooter += '<div class="loved-result-others">' +  this.numberBookmarkingOthers + '</div>';
				}
		}
		
		else
		{
			if (get.page_id == "extern_map")
			{
				divFooter += '<div class="loved-result-others" >' +  total + ' people love this place</div>';	
			}
		}
			
		divFooter +='</div>';

		trFooter += divFooter;		
		trFooter += '</td></tr>';
	
	//console.log("Ich bin in Fonction asPopupEntry 9" + get.page_id);
	
	if (get.page_id == "extern_map")
	{
		r =	"<tr>"
		+		'<td rowspan=4 style="height:130px; width:80px; vertical-align:top;" >'
		+		'<a onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"  href="' + efurl + '" target="_blank">'
		+		'<img style="height:80px; width:80px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
		+		'</a>'
		+ categoryImage
		+	'</td>'
		+	"</tr>"
		+	"<tr>"
		+		'<td colspan=3 style="height:30px; width:250px; vertical-align:top;"'
		+		'<h1 style="margin:0px; position:top; overflow:hidden; height:18px;">'
		+			'<a style="padding-top:2px; color: #F15B26;text-decoration: none; text-underline: none; font-size: 14px; height:30px; width:205px;" onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"   href="' + efurl + '" target="_blank">' + efName + '</a>'
		+ 			'<span  style="padding-bottom:40px; font-size:10px;">' + geobookmarker + '</span>'
		+ 		'</h1>'
		+ '<p class="path" style="font-size:10px;">' + efLocation  + '</p>'
		+	"</td>"
		+		'<td rowspan=3 style="height:130px; width:20px; vertical-align:top;">'
			+ '<ul>'
		+	liShowEf 			
			+	liCenterMap
			+ liDeleteOrDiscover
			+	li_bookmark
			+ '</ul>'
		+'</td>'
		+	"</tr>"
		+	"<tr>"
		+		'<td style="height:70px; overflow:hidden;">'
		+ '<p class="short-text">' + this.overview + '</p>'
		+'</td>'
		+	"</tr>"
		+	"<tr>"
		+		'<td rowspan=4 style="width:245px; height: 50px; margin-bottom: 2px; font-size:11px; color: #F15B26;text-decoration: none; text-underline: none;">'+divFooter+'</td>'
		+	"</tr>";
	}
		
		
	else
	{
			r =	"<tr>"
		+		'<td rowspan=4 style="height:130px; width:80px; vertical-align:top;" >'
		+		'<a onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();" href="' + global.URL + this.city + '/' +  this.id + '/' + this.name +'\'" target="' + target + '">'
		+		'<img style="height:80px; width:80px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
		+		'</a>'
		+ categoryImage
		+	'</td>'
		+	"</tr>"
		+	"<tr>"
		+		'<td colspan=3 style="height:30px; width:250px; vertical-align:top;"'
		+		'<h1 style="margin:0px; position:top; overflow:hidden; height:18px;">'
		+			'<a style="padding-top:2px; color: #F15B26;text-decoration: none; text-underline: none; font-size: 14px; height:30px; width:205px;" onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"  href="' + global.URL + this.catName0 + '_' + this.city + '/' +  this.id + '/' + this.name + '" target="' + target + '">' + efName + '</a>'
		+ 			'<span  style="padding-bottom:40px; font-size:10px;">' + geobookmarker + '</span>'
		+ 		'</h1>'
		+ '<p class="path" style="font-size:10px;">' + efLocation  + '</p>'
		+	"</td>"
		+		'<td rowspan=3 style="height:130px; width:20px; vertical-align:top;">'
			+ '<ul>'
		+	liShowEf 			
			+	liCenterMap
			+ liDeleteOrDiscover
			+	li_bookmark
			+ '</ul>'
		+'</td>'
		+	"</tr>"
		+	"<tr>"
		+		'<td style="height:70px; overflow:hidden;">'
		+ '<p class="short-text">' + this.overview + '</p>'
		+'</td>'
		+	"</tr>"
		+	"<tr>"
		+		'<td rowspan=4 style="width:245px; height: 50px; margin-bottom: 2px; font-size:11px; color: #F15B26;text-decoration: none; text-underline: none;">'+divFooter+'</td>'
		+	"</tr>";
	
	}
	//console.log("Ich bin in Fonction asPopupEntry 10" + get.page_id);
	
	return r;
}
//Arno ENDE===============================mija

Earthfave.prototype.createMapBubble = function (markerId, task){
	console.log("earthfave.js Earthfave.prototype.createMapBubble markerId " + markerId  + " task " + task);
	
	var def = "";
	var undef = "";
	var z; // Fuer die Rueckgabe des HTML-Codes
	var classname = "";
	var hasBookedDisc = 0;
	
	var li_bookmark = "";
	var bookmarkOnClick = "";
	var bookmarkTitle = "";
	var prozent =  0;
	var geobookmarker = "";
	var stati;
	var target = "_self";
	var catLink = "";
	var efLocation = "";
	var media = "";
	var categoryImage = "";

	var arrayKat =  new Array()
	arrayKat["0"] = "";// gibt es nicht !!!
	arrayKat["1"] = "hotels-gray-large.gif";
	arrayKat["17"] = "restaurants-gray-large.gif";
	arrayKat["96"] = "nature-gray-large.gif";
	arrayKat["136"] = "culture-gray-large.gif";
	arrayKat["185"] = "shopping-gray-large.gif";
	arrayKat["257"] = "nightlife-gray-large.gif";
	arrayKat["207"] = "sports-gray-large.gif";

	var arrayKatName =  new Array();
	arrayKatName["0"] = "no_category";
	arrayKatName["1"] = "hotel";
	arrayKatName["17"] = "restaurant";
	arrayKatName["96"] = "nature";
	arrayKatName["136"] = "culture";
	arrayKatName["185"] = "shopping";
	arrayKatName["257"] = "nightlife";
	arrayKatName["207"] = "sports";

 	efLocation = this.countryName ;
	if ( this.city != "" ) { efLocation += ' > ' + this.city; }
	if ( this.address1 != "" && this.address1 != "undefined") { efLocation += ' > ' + this.address1; }
	//console.log("Ich bin in Fonction asPopupEntry 1" + get.page_id);
	li_bookmark = "" ;
	
	if (task != "pagination"){
		switch (this.relationship){
			case 0: //user is not loged in
				bookmarkOnClick = '' ;	
				if (get.page_id == "exte rn_map"){
					bookmarkOnClick = 'openPopupSpreader2(' + this.id + ');';
				}else{
					bookmarkOnClick = 'showLogin(\'login\');';
				}
				bookmarkTitle = 'Log in to add this earthfave to your list';
				li_bookmark = '<div id="li-labAdd2" style="" onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();" title="' + bookmarkTitle + '" onclick= "setEarthfaveOverlayVisible(false); setEarthfaveOverlayInvisibleTimer(); ' + bookmarkOnClick + '"></div>';
				//li_bookmark = '<div id="li-labAdd2" style="height:24px; width:25px;float:left; padding-top:5px; magin:0px;" onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();" title="' + bookmarkTitle + '" onclick= "setEarthfaveOverlayVisible(false); setEarthfaveOverlayInvisibleTimer(); ' + bookmarkOnClick + '"></div>';				
				break;
			case 1: //user is loged in
				bookmarkOnClick = '' ;
				if (get.page_id == "extern_map"){
					bookmarkOnClick = 'openPopupSpreader2(' + this.id + ');';
				}else{
					bookmarkOnClick = 'showAddEarthFaveOverlay(' + this.id + ', \'no\', \'no\',false,\'egal\')';
				}
				bookmarkTitle = 'Add this earthfave to your list';
				li_bookmark = '<div id="li-labAdd2" style="" onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();"  title="' + bookmarkTitle + '" onclick= "' + bookmarkOnClick + '"></div>';
				//li_bookmark = '<div id="li-labAdd2" style="height:24px; width:25px;float:left; padding-top:5px; margin:0px;"onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();"  title="' + bookmarkTitle + '" onclick= "' + bookmarkOnClick + '"></div>';				
				global.action = "";
				
				break;
			case 2:
				classname = "bookmarked";
				break; //user us booker
			case 3:
				classname = "discovered";
				break; // user ist nur DISC
			case 4:
				classname = "owner";
				break; // nur owner
			case 5:
				classname = "discovered";
				break; // user ist DISC and Owner
			case 7:
				classname = "discovered";
				break; // nur DISC und es gibt booker
			case 8:
				classname = "discovered";
				break;  // Owner und DISC und es gibt booker
		
		}
	}
	
	//console.log("Ich bin in Fonction asPopupEntry 2" + get.page_id);
	
	var statiText = 'Discovered by';
	stati = '(' + this.status + ')';
	stati = '';

	// Show a Cat-Icon if the categorie is defined
	if (this.catId0) {categoryImage =  '<img style="padding-top:0px; height:25px; width:25px;" onmouseover="myTip(\'' + arrayKatName[this.catId0] + '\');" onmouseout="UnTip();" style="width:20px; height:20px;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId0] + '"/>';	}
	if (this.catId1) {categoryImage += '<img style="padding-top:0px; height:25px; width:25px;" onmouseover="myTip(\'' + arrayKatName[this.catId1] + '\');" onmouseout="UnTip();" style="width:20px; height:20px;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId1] + '"/>';	}
	if (this.catId2) {categoryImage += '<img style="padding-top:0px; height:25px; width:25px;" onmouseover="myTip(\'' + arrayKatName[this.catId2] + '\');" onmouseout="UnTip();" style="width:20px; height:20px;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId2] + '"/>';	}
	if (this.catId3) {categoryImage += '<img style="padding-top:0px; height:25px; width:25px;" onmouseover="myTip(\'' + arrayKatName[this.catId3] + '\');" onmouseout="UnTip();" style="width:20px; height:20px;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId3] + '"/>';	}
	
	var efurl = createEarthfaveURL(this);
	
	//console.log("Ich bin in Fonction asPopupEntry 3" + get.page_id);
	//console.log("pos5");
	var liShowEf = '<div id="li-details"; style="" onmouseover="myTip(\'Go to the earthfave page to get more details\');" onmouseout="UnTip();" title="Go to the earthfave page to get more details"';
	//	var liShowEf = '<div id="li-details"; style="height:20px;float:left; width:25px; padding-top:5px;" onmouseover="myTip(\'Go to the earthfave page to get more details\');" onmouseout="UnTip();" title="Go to the earthfave page to get more details"';	
	if (get.page_id == "extern_map") {
		liShowEf += 'onclick="window.open(\'' + efurl + '\');">';
	}else{ // the normal view on the earthfave page
		liShowEf += ' onclick="document.location.href=\'' + efurl + '\';">&nbsp;</div>';
		//+ global.URL + this.catName + '/'	+ this.city	+ '/' + this.id	+ '/' + this.name
	}
	
	//console.log("Ich bin in Fonction asPopupEntry 4" + get.page_id);
	
	var liCenterMap = '<div id="li-centerMap"; style="" onmouseover="myTip(\'Show this earthfave centered on the map\');"'+markerId+' '+this.id+');" onmouseout="UnTip();"  title="Show this earthfave centered on the map"';
	//	var liCenterMap = '<div id="li-centerMap"; style="height:20px;float:left; width:25px; magin:0px; padding-top:5px;margin-left:3px;" onmouseover="myTip(\'Show this earthfave centered on the map\');"'+markerId+' '+this.id+');" onmouseout="UnTip();"  title="Show this earthfave centered on the map"';		  
		liCenterMap +=' onclick="setEarthfaveOverlayVisible(false); setEarthfaveOverlayInvisibleTimer(); Map.show(); Map.centerMarker(' + this.lat + ', ' + this.lng+'); markDiv(' + markerId + '); closeFilter(); ">&nbsp;</div>';
		  
	//	var trStart =	'<tr id="trRLE_' + this.id + '">';
	
	var efName = this.name;
	if(efName.length > 42){
		efName = efName.substring(0,42) + "...";
	}
	//console.log("pos6");
	//console.log("Ich bin in Fonction asPopupEntry 5" + get.page_id);
	
	var myTip = this.name;
/* anna: table ist nicht mehr da	
	if (get.page_id == "extern_map") 
	{
		var tdImage = '<td rowspan=4 style="height:130px; width:80px; vertical-align:top;">'
			+		'<a onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();" href="' + efurl + '" target="_blank">'
			+		'<img style="height:80px; width:80px; padding-top:0px; margin:0px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
			+		'</a>'
			+		'</td>';

	}
	
	else
	{
		var tdImage = '<td style="height:80px; overflow:hidden; width:80px; padding:0px; magin:0px;">'
					+		'<a onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();" href="' + global.URL + this.city + '/' +  this.id + '/' + this.name +'\'" target="' + target + '">'
			+		'<img style="height:80px; width:80px; padding-top:0px; margin:0px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
			+		'</a>'
			+		'</td>';
	}
*/	
	//console.log("Ich bin in Fonction asPopupEntry 6" + get.page_id);
	//var tdDescText= '<td class="description-text"></td>';
/* anna: keine table mehr	
	var tdCatIcon = '<td rowspan="2" style="height:100px; width:20px; magin:0px;">&nbsp;' + categoryImage	+ '</td>';
	//console.log("pos7");
	if (get.page_id == "extern_map")
	{
		//console.log("description");
		var tdDesc =	 '<td colspan=3 style="height:30px; width:250px; vertical-align:top;"'
		+		'<h1 style="margin:0px; position:top; overflow:hidden; height:18px;">'
		+			'<a style="padding-top:2px; color: #F15B26;text-decoration: none; text-underline: none; font-size: 14px; height:30px; width:205px;" onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"  href="' + efurl + '" target="_blank">' + efName + '</a>'
		+ 			'<span  style="padding-bottom:40px; font-size:10px;">' + geobookmarker + '</span>'
		+ 		'</h1>'
		+ 	'<p class="path" style="font-size:10px;">' + efLocation  + '</p>'
	}
	
	else
	{
		var tdDesc =	  '<td >'
		+		'<h1 style="margin:0px; position:top;">'
		+			'<a style="padding-top:2px; color: #F15B26;text-decoration: none; text-underline: none; font-size: 14px; height:30px; width:205px;" onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"  href="' + global.URL + this.catName0 + '_' + this.city + '/' +  this.id + '/' + this.name + '" target="' + target + '">' + efName + '</a>'
		+ 			'<span  style="padding-bottom:40px; font-size:10px;">' + geobookmarker + '</span>'
		+ 		'</h1>'
		+		'<p  style="width:205px;">' + efLocation  + '</p>'
		+		'<p style="height:30px; width:205px;">' + this.overview + '</p>'
		+	'</td>';
	}
*/	
	//console.log("Ich bin in Fonction asPopupEntry 7" + get.page_id);
  		
	// info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 4");		
  var liDeleteOrDiscover = "";
		if(get.page_id != "extern_map"){
			if(this.relationship == 2 ){//der bookmarker kann den Bookmark loeschen
				liDeleteOrDiscover = '<div id="li-delBookmark"; style="" onmouseover="myTip(\'Remove this earthfave from your list?\');"';
//				liDeleteOrDiscover = '<div id="li-delBookmark"; style="height:20px;float:left; width:20px; magin:0px; padding-top:5px;" onmouseover="myTip(\'Remove this earthfave from your list?\');"';				
				liDeleteOrDiscover +='onmouseout="UnTip();" title="Remove this earthfave from your list?" onclick="showDeleteEfForm(' + global.user_id + ' , ' + this.id + ',\'book\');"></div>';
			}
			else if(this.relationship == 3 || this.relationship == 5  || this.relationship == 7 || this.relationship == 8)
			{	
			//	info("earthfaves.js Earthfave.prototype.asResultListEntry -- marker 5");		
				var 	recommender = "";

				if( this.numberOfBooker > 0 ){ recommender =' (' + this.numberOfBooker + ' recommender)'; }
				liDeleteOrDiscover += '<div id="li-delBookmark2"; style="" onmouseover="myTip(\'Remove this earthfave from your list?\');" onmouseout="UnTip();"';
				liDeleteOrDiscover += ' title="Remove this earthfave from your list?' + recommender + '" onclick="showDeleteEfForm(' + global.user_id + ' , ' + this.id + ',\'disc\');"></div>';
			}
		}
		
	//console.log("Ich bin in Fonction asPopupEntry 8" + get.page_id);
	//console.log("pos8");
/* anna: table ist weg	
	var tdAction = '<td style="width: 0px; height:140px;">'
  	+ '<ul>'
  	+	liShowEf 			
		+	liCenterMap
		+ liDeleteOrDiscover
		+	li_bookmark
 		+ '</ul>'
		+	'</td>';
*/
//		var trFooter = '<tr><td colspan="4" style="height:20px;">';
		
		var divFooter = '<div style="height: 30px; margin-top:5px;"  id="divRS_' + this.id + '">';
		var total = this.numberBookmarkingFriends +  this.numberBookmarkingFF + this.numberBookmarkingOthers + 1 ;
			
		var discName = this.discovererName;
		if(discName.length > 12){	discName = discName.substring(0,12) + "...";}
		//console.log("pos8_1");
		
		if (get.page_id == "extern_map"){ //anna: bleibt es hier?
			divFooter += ' <div><a style="height:20px;" class="userLink" onmouseOver="myTip(\'' + discName + ' Rank: ' + this.discovererRank + '\');"';
			divFooter += ' onmouseout="UnTip();" href="' + global.URL + 'user/' + this.discovererName + '/" target="_blank">' +  discName + ' (' + this.levelOfExpertise + ')</a>';
			divFooter += '</div>';
		}
		else{ //mija
			divFooter += '<div  style="float:right;"> <input  class="submitbuttons_login2 login_close_button"  type="submit" value="Cancel" onclick="hideForm(\'earthfaveInformation\');">';
			divFooter += '</div>';
//			divFooter += '<div style="float:right; margin:7px 10px 0 0;"><a style="height:20px; float:right; font-weight:bold;" onmouseOver="myTip(\''+'Go to Earthfave page'+ '\');"';
//			divFooter += ' onmouseout="UnTip();" href="' + efurl +'"> more...</a>';
//			divFooter += '</div>';
		}
		
// anna: verschoben		
/*		
		if( this.relationship != 0 && (get.page_id != "extern_map")){
			var allLove = parseInt(this.numberBookmarkingFriends) + parseInt(this.numberBookmarkingFF) + parseInt(this.numberBookmarkingOthers);
			//if(allLove > 0 || this.relationship == 3 || this.relationship == 2){}

			if( this.relationship == 3 ||  this.relationship == 5  ||  this.relationship == 7 ||  this.relationship == 8 ||  this.relationship == 2){
					
				divFooter += '<div class="loved-result-my" style="">'; // you
				if(allLove > 0){	
				//komma oder kein Komma
				divFooter += '';
				//divFooter += ',';
				} 
				divFooter += 'you </div>';
			}
			pluralS = 's';
			//console.log("pos8_2");
			if( this.numberBookmarkingFriends == 1 ){ pluralS = ''; }
			if( this.numberBookmarkingFriends > 0  ){
				//if(global.user_name == "Rick" || global.user_id == "42"){ // travelmaster
					divFooter += '<div  class="loved-result-friends" onmouseover="myTip(\'click to show the friends\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();"';
					divFooter += ' onClick="lookupPeople(\'task:showBookmarkerFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');">'; // showForm2(\'friendsRListe\',\'divRS_' + this.id + '\',\'modal\')
				//}
				//else{
				//	divFooter += '<div class="loved-result-friends"';
				//	divFooter += ' onmouseout="hideForm(\'friendsRListe\');" onmouseover="showForm(\'friendsRListe\');lookupPeople(\'task:showBookmarkerFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');">'; // showForm2(\'friendsRListe\',\'divRS_' + this.id + '\',\'modal\')
				//}
				
				divFooter += this.numberBookmarkingFriends + Languages.RLISTE_FRIENDS;
				divFooter += '</div>';
				}	
			//console.log("pos8_3");
			if( this.numberBookmarkingFF > 0 ) {
					//if(global.user_name == "Rick" || global.user_id == "42"){ //travelmaster
						divFooter += '<div class="loved-result-friends-friends" onmouseover="showMouseHand(); myTip(\'click to show the friends friends\');" onmouseout="hideMouseHand();UnTip();" ';
						divFooter += 'onClick=';
						divFooter += '"lookupPeople(\'task:showBookmarkerFriendsFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');"';
					//}
					//else {
					//	divFooter += '<div  class="loved-result-friends-friends" onmouseout="hideForm(\'friendsRListe\');" ';
					//	divFooter += 'onmouseover=';
					//	divFooter += '"showForm(\'friendsRListe\'); lookupPeople(\'task:showBookmarkerFriendsFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');"';
					//}
					
				divFooter += '>';
				divFooter += this.numberBookmarkingFF + Languages.RLISTE_FRIENDSFRIENDS;
				divFooter +='</div>';
			}
			if( this.numberBookmarkingOthers > 0 ){ divFooter += '<div class="loved-result-others">' +  this.numberBookmarkingOthers + '</div>';}
		}
		else{
			if (get.page_id == "extern_map"){divFooter += '<div class="loved-result-others" >' +  total + ' people love this place</div>';	}
		}
*/
// anna: verschoben ende
		
		
		divFooter += '</div>';
		//console.log("pos8_5");
// Anna: geandert
		divLoveThisPlace = '';
		if( this.relationship != 0 && (get.page_id != "extern_map")){
			var allLove = 1 + parseInt(this.numberBookmarkingFriends) + parseInt(this.numberBookmarkingFF) + parseInt(this.numberBookmarkingOthers);
			//if(allLove > 0 || this.relationship == 3 || this.relationship == 2){}

			if( this.relationship == 3 ||  this.relationship == 5  ||  this.relationship == 7 ||  this.relationship == 8 ||  this.relationship == 2){
					
				divLoveThisPlace += '<div class="loved-result-my" style="">'; // you
				if(allLove > 0){	
				//komma oder kein Komma
				divLoveThisPlace += '';
				} 
				divLoveThisPlace += 'you </div>';
			}
			pluralS = 's';
			//console.log("pos8_2");
			if( this.numberBookmarkingFriends == 1 ){ pluralS = ''; }
			if( this.numberBookmarkingFriends > 0  ){
				//if(global.user_name == "Rick" || global.user_id == "42"){ // travelmaster
					divLoveThisPlace += '<div  class="loved-result-friends" onmouseover="myTip(\'click to show the friends\'); showMouseHand();" onmouseout="UnTip(); hideMouseHand();"';
					divLoveThisPlace += ' onClick="lookupPeople(\'task:showBookmarkerFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');">'; // showForm2(\'friendsRListe\',\'divRS_' + this.id + '\',\'modal\')
				//}
				//else{
				//	divFooter += '<div class="loved-result-friends"';
				//	divFooter += ' onmouseout="hideForm(\'friendsRListe\');" onmouseover="showForm(\'friendsRListe\');lookupPeople(\'task:showBookmarkerFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');">'; // showForm2(\'friendsRListe\',\'divRS_' + this.id + '\',\'modal\')
				//}
				
				divLoveThisPlace += this.numberBookmarkingFriends + Languages.RLISTE_FRIENDS;
				divLoveThisPlace += '</div>';
				}	
			//console.log("pos8_3");
			if( this.numberBookmarkingFF > 0 ) {
					//if(global.user_name == "Rick" || global.user_id == "42"){ //travelmaster
						divLoveThisPlace += '<div class="loved-result-friends-friends" onmouseover="showMouseHand(); myTip(\'click to show the friends friends\');" onmouseout="hideMouseHand();UnTip();" ';
						divLoveThisPlace += 'onClick=';
						divLoveThisPlace += '"lookupPeople(\'task:showBookmarkerFriendsFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');"';
					//}
					//else {
					//	divLoveThisPlace += '<div  class="loved-result-friends-friends" onmouseout="hideForm(\'friendsRListe\');" ';
					//	divLoveThisPlace += 'onmouseover=';
					//	divLoveThisPlace += '"showForm(\'friendsRListe\'); lookupPeople(\'task:showBookmarkerFriendsFriendsPopup---farbe:blue---ef_id:' +  this.id + '---\',\'\',\'\',1,10,10,\'byName\');"';
					//}
					
				divLoveThisPlace += '>';
				divLoveThisPlace += this.numberBookmarkingFF + Languages.RLISTE_FRIENDSFRIENDS;
				divLoveThisPlace +='</div>';
			}
			if( this.numberBookmarkingOthers > 0 ){ divLoveThisPlace += '<div class="loved-result-others">' +  this.numberBookmarkingOthers + '</div>';}
		}
		else{
			if (get.page_id == "extern_map"){divLoveThisPlace += '<div class="loved-result-others" >' +  total + ' people love this place</div>';	} //anna: muss es hier bleiben???
		}
		divLoveThisPlace += '<div style="clear:both; height:3px;"></div>';
//Anna: ende
	
	if (task != "pagination"){
		 	
		var bookerName,bookerId,bookerWili,bookerImg;
		if(this.bookerArray){
			var bookerlength = this.bookerArray.length;
			if ( bookerlength > 0 ){
				bookerId = this.bookerArray[bookerlength-1][0];
				bookerName = this.bookerArray[bookerlength-1][1];
				bookerWili = this.bookerArray[bookerlength-1][2];
				bookerImg = this.bookerArray[bookerlength-1][3];
				
				var bw; //Wili faver
				if(!bookerWili){bookerWili = Languages.RLISTE_I_JUST_LOVE_IT;}
				if(bookerName.length + Languages.LOVES_IT_BECAUSE + ': '+ bookerWili.length>110){bw=bookerWili.substr(0,107)+'...';	}else{bw=bookerWili;}
			}
		}
	
		var ov; //Wili first faver  
		if(!this.discovererWili){this.discovererWili = Languages.RLISTE_I_JUST_LOVE_IT; }
		if (this.discovererName + Languages.LOVES_IT_BECAUSE + ': ' + this.discovererWili.length>110){ov=this.discovererWili.substr(0,107)+'...';}else{ov=this.discovererWili;}
	}
	
	if (get.page_id == "extern_map")
	{
/*		
		r =	"<tr>"
		+		'<td rowspan=4 style="height:130px; width:80px; vertical-align:top;" >'
		+		'<a onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"  href="' + efurl + '" target="_blank">'
		+		'<img style="height:80px; width:80px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
		+		'</a>'
		+ categoryImage
		+	'</td>'
		+	"</tr>"
		+	"<tr>"
		+		'<td colspan=3 style="height:30px; width:250px; vertical-align:top;"'
		+		'<h1 style="margin:0px; position:top; overflow:hidden; height:18px;">'
		+			'<a style="padding-top:2px; color: #F15B26;text-decoration: none; text-underline: none; font-size: 14px; height:30px; width:205px;" onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"   href="' + efurl + '" target="_blank">' + efName + '</a>'
		+ 			'<span  style="padding-bottom:40px; font-size:10px;">' + geobookmarker + '</span>'
		+ 		'</h1>'
		+ '<p class="path" style="font-size:10px;">' + efLocation  + '</p>'
		+	"</td>"
		+		'<td rowspan=3 style="height:130px; width:20px; vertical-align:top;">'
			+ '<ul>'
		+	liShowEf 			
			+	liCenterMap
			+ liDeleteOrDiscover
			+	li_bookmark
			+ '</ul>'
		+'</td>'
		+	"</tr>"
		+	"<tr>"
		+		'<td style="height:70px; overflow:hidden;">'
		+ '<p class="short-text">' + this.overview + '</p>'
		+'</td>'
		+	"</tr>"
		+	"<tr>"
		+		'<td rowspan=4 style="width:245px; height: 50px; margin-bottom: 2px; font-size:11px; color: #F15B26;text-decoration: none; text-underline: none;">'+divFooter+'</td>'
		+	"</tr>";
*/		
		var discUrl = global.URL + 'user/' + this.discovererId + '/' + this.discovererName + '/';
		var boUrl =  global.URL + 'user/' + bookerId + '/' + bookerName + '/';
		r =	'<div style="height:80px; width:90px;float:left;" >'
		+		'<a onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();" href="' + global.URL + this.city + '/' +  this.id + '/' + this.name +'\'" target="_blank">'
		+		'<img style="height:80px; width:80px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
		+		'</a>'		
		+	"</div>"
		+	'<div style="height:80px; min-width:245px;" >'
		+	'<h1 style="margin:0px; position:top; overflow:hidden; height:18px;">'
		+			'<a style="padding-top:2px; font-size: 14px; height:14px; width:205px;" onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"  href="' + global.URL + this.catName0 + '_' + this.city + '/' +  this.id + '/' + this.name + '" target="_blank">' + efName + '</a>'
		+ 			'<span  style="padding-bottom:0px; font-size:10px;">' + geobookmarker + '</span>'
		+ 		'</h1>'
		+ '<p class="path" style="font-size:10px; height:12px; overflow:hidden;">' + efLocation  + '</p>'		
		+ categoryImage
		+	"</div>"
		+	'<div class="ef2_icons"  style="height: 30px; width:245px;">' //  style="height:30px; width:245px; margin-left:4px;margin-top:3px;">'
		+		liShowEf 			
		+		liCenterMap
		+ 		liDeleteOrDiscover
		+		li_bookmark
		+	"</div>"
		+	'<div style="height:auto; overflow:hidden;">'
		+ 		'<div style="height:12px; width:200px; padding:3px 0 5px; color:#676767;font-weight: bold;"> first faved by: </div>'
		+ 		'<a href="' + discUrl + '"><img style="height:40px; width:40px;float:left;" name="userBild_' + this.id + '" alt="'+ this.name + '" src="' + this.discovererMedium + '"/>'+'</a>'
		+		'<div class="short-text" style="height:40px; background-color:#EDEEF0;padding-left:45px;">' //<span class="userLink" style="font-weight: bold;">' +this.discovererName+'</span> : '
		+		'<a class="userLink" onmouseOver="myTip(\'' + discName + ' Rank: ' + this.discovererRank + '\');"'
		+ 		'onmouseout="UnTip();" href="' + discUrl + '" target="_self">' + this.discovererName + '</a>'			
		+ 	': '+ov
		+ 	'</div>'
		+	 	'<div style="height:12px; width:200px; padding-top:5px; color:#676767;font-weight: bold;"><span>' +this.numberOfBooker+'</span> people love this place: </div>'
		+	 divLoveThisPlace;
		+ 		'<a href="' + boUrl + '"><img style="height:40px; width:40px;float:left;" name="userBild_' + bookerName + '" alt="'+ bookerName + '" src="' + bookerImg + '"/>' +'</a>'
		+		'<div class="short-text" style="height:40px; background-color:#EDEEF0;padding-left:45px;">' //<span class="userLink" style="font-weight: bold;">' +bookerName+'</span> : '
		+		'<a class="userLink" href="' + boUrl + '" target="_self">' +  bookerName + '</a>'
		+ 	': '+bw
		+ 	'</div>'
		+	'</div>'
		+ divFooter;
		
		
	}
	else{ //intern
		var discUrl = global.URL + 'user/' + this.discovererId + '/' + this.discovererName + '/';
		var boUrl =  global.URL + 'user/' + bookerId + '/' + bookerName + '/';
		
			r =	'<div style="height:80px; width:90px;float:left;" >'
		+		'<a onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();" href="' + efurl +'" target="' + target + '">'
		+		'<img style="height:80px; width:80px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
		+		'</a>'		
		+	"</div>"
		+	'<div style="height:80px; min-width:245px;" >'
		+	'<h1 style="margin:0px; position:top; overflow:hidden; height:18px;">'
		+			'<a style="padding-top:2px; font-size: 14px; height:14px; width:205px;" onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"  href="' + efurl + '" target="' + target + '">' + efName + '</a>'
		+ 			'<span  style="padding-bottom:0px; font-size:10px;">' + geobookmarker + '</span>'
		+ 		'</h1>'
		+ '<p class="path" style="font-size:10px; height:12px; overflow:hidden;">' + efLocation  + '</p>'		
		+ categoryImage
		+	"</div>"
		+	'<div class="ef2_icons"  style="height: 30px; width:245px;">' //  style="height:30px; width:245px; margin-left:4px;margin-top:3px;">'
		+		liShowEf 			
		+		liCenterMap
		+ 		liDeleteOrDiscover
		+		li_bookmark
		+	"</div>"
		+	'<div style="height:auto; overflow:hidden;">'
		
		if (task != "pagination"){
			r+= 	'<div style="height:12px; width:200px; padding:3px 0 5px; color:#676767;font-weight: bold;"> First faved by: </div>'
			+ 		'<a href="' + discUrl + '"><img style="height:40px; width:40px;float:left;" name="userBild_' + this.id + '" alt="'+ this.name + '" src="' + this.discovererMedium + '"/>'+'</a>'
			+		'<div class="short-text" style="height:40px; background-color:#EDEEF0;padding-left:45px;">'
			+			'<a class="userLink" onmouseOver="myTip(\'' + discName + ' Rank: ' + this.discovererRank + '\');"'
			+ 			'onmouseout="UnTip();" href="' + discUrl + '" target="_self">' +  this.discovererName + '</a>'			
			+ 			'<span style="font-weight:bold; font-size:11px;"> ' + Languages.LOVES_IT_BECAUSE + ': </span>'+ov
			+ 		'</div>';
			
			if( this.numberOfBooker>0 ){ 
				r +='<div style="height:12px; width:200px; padding-top:5px; color:#676767;font-weight: bold;">'
				+ 	'<span>' + this.numberOfBooker + '</span> people love this place: </div>' + divLoveThisPlace;
			}
			if(this.numberOfBooker!=0){
				r+='<a href="' + boUrl + '"><img style="height:40px; width:40px;float:left;" name="userBild_' + bookerName + '" alt="'+ bookerName + '" src="' + bookerImg + '"/>' +'</a>'
				+	'<div class="short-text" style="height:40px; background-color:#EDEEF0;padding-left:45px;">'
				+		'<a class="userLink" href="' + boUrl + '" target="_self">' +  bookerName + '</a>'
				+ 		'<span style="font-weight:bold; font-size:11px;"> ' + Languages.LOVES_IT_BECAUSE + ': </span>'+bw
				+ '	</div>';
			}
		}else{
				r+='<div style="height:12px; width:200px; padding:3px 0 5px; color:#676767;font-weight: bold;"> What it is: </div>'
				r+='<div class="short-text" style="height:40px; background-color:#EDEEF0;padding-left:5px;">'+this.overview + '</div>';
		}
		
		r+=	'</div>'
		+ divFooter;
	}

	return r;
}


Earthfave.prototype.createMapBubbleExt = function (markerId, task, size)
{
	//console.log("Ich bin in Fonction asPopupEntry" + get.page_id);
	//console.log("Earthfave.prototype.asPopupEntry: " + markerId  + " lat lng " + this.lat + " " + this.lng);
	var def = "";
	var undef = "";
	var z; // Fuer die Rueckgabe des HTML-Codes
	var classname = "";
	var hasBookedDisc = 0;
	
	var li_bookmark = "";
	var bookmarkOnClick = "";
	var bookmarkTitle = "";
	var prozent =  0;
	var geobookmarker = "";
	var stati;
	var target = "_self";
	var catLink = "";
	var efLocation = "";
	var media = "";
	var categoryImage = "";

//	info("Earthfave.prototype.asResultListEntry marker 0");

	for( prop in this ){
		if( prop == "asMarker" ){ break; } 
		if( this[prop] == undefined ){ undef += prop + ' value :' + this[prop]+ ' '; }
		else{ def += prop + ' value :' + this[prop]+ ' ';}
	}

	var arrayKat =  new Array()
	arrayKat["0"] = "";// gibt es nicht !!!
	arrayKat["1"] = "hotels-gray-large.gif";
	arrayKat["17"] = "restaurants-gray-large.gif";
	arrayKat["96"] = "nature-gray-large.gif";
	arrayKat["136"] = "culture-gray-large.gif";
	arrayKat["185"] = "shopping-gray-large.gif";
	arrayKat["257"] = "nightlife-gray-large.gif";
	arrayKat["207"] = "sports-gray-large.gif";

	var arrayKatName =  new Array();
	arrayKatName["0"] = "no_category";
	arrayKatName["1"] = "hotel";
	arrayKatName["17"] = "restaurant";
	arrayKatName["96"] = "nature";
	arrayKatName["136"] = "culture";
	arrayKatName["185"] = "shopping";
	arrayKatName["257"] = "nightlife";
	arrayKatName["207"] = "sports";

 	efLocation = this.countryName ;
	if ( this.city != "" ) { efLocation += ' > ' + this.city; }
	if ( this.address1 != "" && this.address1 != "undefined") { efLocation += ' > ' + this.address1; }	

	
	//console.log("Ich bin in Fonction asPopupEntry 1" + get.page_id);
	
	li_bookmark = "" ;
	
	if (task != "pagination")
	{
	console.log('Keine Pagination');
		switch (this.relationship)
		{
			case 0: //user is not loged in
				console.log('User is not logged in');
				bookmarkOnClick = '' ;
				
				bookmarkOnClick = 'openPopupSpreader2(' + this.id + ');';
		
				bookmarkTitle = 'Log in to add this earthfave to your list';
				li_bookmark = '<div id="li-labAdd2" style="" onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();" title="' + bookmarkTitle + '" onclick= "setEarthfaveOverlayVisible(false); setEarthfaveOverlayInvisibleTimer(); ' + bookmarkOnClick + '"></div>';
//				li_bookmark = '<div id="li-labAdd2" style="height:24px; width:25px;float:left; padding-top:5px; magin:0px;" onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();" title="' + bookmarkTitle + '" onclick= "setEarthfaveOverlayVisible(false); setEarthfaveOverlayInvisibleTimer(); ' + bookmarkOnClick + '"></div>';				
				break;
				
			case 1: //user is loged in
				
				console.log('user is logged in');
				bookmarkOnClick = '' ;
				
				bookmarkOnClick = 'openPopupSpreader2(' + this.id + ');';
			
				bookmarkTitle = 'Add this earthfave to your list';
				li_bookmark = '<div id="li-labAdd2" style="" onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();"  title="' + bookmarkTitle + '" onclick= "' + bookmarkOnClick + '"></div>';
//				li_bookmark = '<div id="li-labAdd2" style="height:24px; width:25px;float:left; padding-top:5px; margin:0px;"onmouseover="myTip(\'' + bookmarkTitle + '\');" onmouseout="UnTip();"  title="' + bookmarkTitle + '" onclick= "' + bookmarkOnClick + '"></div>';				
				global.action = "";
				
				break;
				
			case 2:
				console.log('bookmarked');
				classname = "bookmarked";
				break; //user us booker
			case 3:
				console.log('discovered3');
				classname = "discovered";
				break; // user ist nur DISC
			case 4:
				console.log('owner');
				classname = "owner";
				break; // nur owner
			case 5:
				console.log('discovered5');
				classname = "discovered";
				break; // user ist DISC and Owner
			case 7:
				console.log('discovered7');
				classname = "discovered";
				break; // nur DISC und es gibt booker
			case 8:
				console.log('discovered8');
				classname = "discovered";
				break;  // Owner und DISC und es gibt booker
		
		}
	}
	console.log(li_bookmark);
	
	//console.log("Ich bin in Fonction asPopupEntry 2" + get.page_id);
	
	var statiText = 'Discovered by';
	stati = '(' + this.status + ')';
	stati = '';

	// Show a Cat-Icon if the categorie is defined
	if (this.catId0) {categoryImage =  '<img style="padding-top:0px; height:25px; width:25px;" onmouseover="myTip(\'' + arrayKatName[this.catId0] + '\');" onmouseout="UnTip();" style="width:20px; height:20px;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId0] + '"/>';	}
	if (this.catId1) {categoryImage += '<img style="padding-top:0px; height:25px; width:25px;" onmouseover="myTip(\'' + arrayKatName[this.catId1] + '\');" onmouseout="UnTip();" style="width:20px; height:20px;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId1] + '"/>';	}
	if (this.catId2) {categoryImage += '<img style="padding-top:0px; height:25px; width:25px;" onmouseover="myTip(\'' + arrayKatName[this.catId2] + '\');" onmouseout="UnTip();" style="width:20px; height:20px;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId2] + '"/>';	}
	if (this.catId3) {categoryImage += '<img style="padding-top:0px; height:25px; width:25px;" onmouseover="myTip(\'' + arrayKatName[this.catId3] + '\');" onmouseout="UnTip();" style="width:20px; height:20px;" src="' + global.IMG_URL_NONTEXT + 'icons/' + arrayKat[this.catId3] + '"/>';	}
	
	var efurl = createEarthfaveURL(this);
	
	//console.log("Ich bin in Fonction asPopupEntry 3" + get.page_id);

	var liShowEf = '<div id="li-details"; style="" onmouseover="myTip(\'Go to the earthfave page to get more details\');" onmouseout="UnTip();" title="Go to the earthfave page to get more details"';
//	var liShowEf = '<div id="li-details"; style="height:20px;float:left; width:25px; padding-top:5px;" onmouseover="myTip(\'Go to the earthfave page to get more details\');" onmouseout="UnTip();" title="Go to the earthfave page to get more details"';		
		liShowEf += 'onclick="window.open(\'' + efurl + '\');">&nbsp;</div>';
		
	//console.log("Ich bin in Fonction asPopupEntry 4" + get.page_id);
	
	var liCenterMap = '<div id="li-centerMap"; style="" onmouseover="myTip(\'Show this earthfave centered on the map\');"'+markerId+' '+this.id+');" onmouseout="UnTip();"  title="Show this earthfave centered on the map"';
//	var liCenterMap = '<div id="li-centerMap"; style="height:20px;float:left; width:25px; magin:0px; padding-top:5px;margin-left:3px;" onmouseover="myTip(\'Show this earthfave centered on the map\');"'+markerId+' '+this.id+');" onmouseout="UnTip();"  title="Show this earthfave centered on the map"';		
		liCenterMap +=' onclick="setEarthfaveOverlayVisible(false); setEarthfaveOverlayInvisibleTimer(); Map.show(); Map.centerMarker(' + this.lat + ', ' + this.lng+'); markDiv(' + markerId + '); closeFilter(); ">&nbsp;</div>';
		  
//	var trStart =	'<tr id="trRLE_' + this.id + '">';
	
	var efName = this.name;
	if(efName.length > 42){
		efName = efName.substring(0,42) + "...";
	}
	
	//console.log("Ich bin in Fonction asPopupEntry 5" + get.page_id);
	
	var myTip = this.name;
/*	anna: table gibt es nicht mehr
	var tdImage = '<td rowspan=4 style="height:130px; width:80px; vertical-align:top;">'
		+		'<a onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();" href="' + efurl + '" target="_blank">'
		+		'<img style="height:80px; width:80px; padding-top:0px; margin:0px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
		+		'</a>'
		+		'</td>';
	
	var tdCatIcon = '<td rowspan="2" style="height:100px; width:20px; magin:0px;">&nbsp;' + categoryImage	+ '</td>';
	
	console.log("description");
	
	var tdDesc =	 '<td colspan=3 style="height:30px; width:250px; vertical-align:top;"'
		+		'<h1 style="margin:0px; position:top; overflow:hidden; height:18px;">'
		+			'<a style="padding-top:2px; color: #F15B26;text-decoration: none; text-underline: none; font-size: 14px; height:30px; width:205px;" onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"  href="' + efurl + '" target="_blank">' + efName + '</a>'
		+ 			'<span  style="padding-bottom:40px; font-size:10px;">' + geobookmarker + '</span>'
		+ 		'</h1>'
		+ 	'<p class="ext_path">' + efLocation  + '</p>'
*/	
	
	var liDeleteOrDiscover = "";
		
	//console.log("Ich bin in Fonction asPopupEntry 8" + get.page_id);

	//var trFooter = '<tr><td colspan="4" style="height:20px;">';




		var divFooter = '<div style="height: 30px; margin-top:5px;"  id="divRS_' + this.id + '">';
		var total = this.numberBookmarkingFriends +  this.numberBookmarkingFF + this.numberBookmarkingOthers + 1 ;
			
		var discName = this.discovererName;
		if(discName.length > 12){	discName = discName.substring(0,12) + "...";}

		divFooter += 		'<div  style="float:right;"> <input  class="submitbuttons_login2 login_close_button"  type="submit" value="Cancel" onclick="hideForm(\'earthfaveInformation\');">';
		divFooter += 		'</div>';
		divFooter += 	'</div>';
		//divLoveThisPlace = '<div class="loved-result-others" >' +  total + ' people love this place</div>'; // anna: auskommentiert - kommt sonst 2 mal derselbe Text
		//divLoveThisPlace += '<div style="clear:both; height:3px;"></div>';
/*
	var divFooter = '<div style="width: 300px; height: 30px; margin-top:5px;"  id="divRS_' + this.id + '">';
	var total = this.numberBookmarkingFriends +  this.numberBookmarkingFF + this.numberBookmarkingOthers + 1 ;
	var discName = this.discovererName;
	if(discName.length > 12){
		discName = discName.substring(0,12) + "...";
	}
	divFooter += '<div class="loved-result-others" >' +  total + ' people love this place</div>';	
	divFooter +='</div>';
*/



	var ov;
	
	if (this.discovererWili.length>130){
		 ov=this.discovererWili.substr(0,130)+'...';
	}else{
		ov=this.discovererWili;
	} 
	
	var bookerlength=this.bookerArray.length;
	if (bookerlength > 0 ){
	var bookerId=this.bookerArray[bookerlength-1][0];
	var bookerName=this.bookerArray[bookerlength-1][1];
	var bookerWili=this.bookerArray[bookerlength-1][2];
	var bookerImg=this.bookerArray[bookerlength-1][3];
	console.log('-_-_-_0 ' + this.bookerArray[bookerlength-1][0]+ ' 1 '+ this.bookerArray[bookerlength-1][1]+' 2 '+this.bookerArray[bookerlength-1][2] +' 3 '+this.bookerArray[bookerlength-1][3] +' 4 ' + this.bookerArray[bookerlength-1][4]); 
	var bw;
	
	if (bookerWili.length>130){
		 bw=bookerWili.substr(0,130)+'...';
	}else{
		bw=bookerWili;
	} 
	}
	var discUrl = global.URL + 'user/' + this.discovererId + '/' + this.discovererName + '/';
	var boUrl =  global.URL + 'user/' + bookerId + '/' + bookerName + './';

	if (size == "gross") {	//Gross bubble fur grosse Karten	
		r =	'<div style="height:80px; width:90px;float:left;" >'
			+		'<a onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();" href="' + efurl /*global.URL + this.city + '/' +  this.id + '/' + this.name */+'"target="_blank">'
			+		'<img style="height:80px; width:80px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
			+		'</a>'		
			+	"</div>"
			+	'<div style="height:80px; min-width:245px;" >'
			+	'<h1 style="margin:0px; position:top; overflow:hidden; height:18px;">'
			+			'<a style="padding-top:2px; font-size: 14px; height:14px; width:205px;" target="_blank" onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"  href="' +efurl  /*global.URL + this.catName0 + '_' + this.city + '/' +  this.id + '/' + this.name */+ '" target="_blank">' + efName + '</a>'
			+ 			'<span  style="padding-bottom:0px; font-size:10px;">' + geobookmarker + '</span>'
			+ 		'</h1>'
			+ '<p class="ext_path">' + efLocation  + '</p>'		
			+ categoryImage
			+	"</div>"
			+	'<div style="height: 30px; width:245px;">' 
			+	liShowEf 			
			+	liCenterMap
			//+ 	liDeleteOrDiscover // anna: fur extern map gibt es nicht
			+	li_bookmark
			+	"</div>"
			+	'<div style="height:auto; overflow:hidden;">'
			+ 		'<div style="width:200px; padding:3px 0; font-weight: bold;"> first faved by: </div>'
			+ 		'<a href="' + discUrl + '" target="_blank"><img style="height:40px; width:40px;float:left;" name="userBild_'+ this.id + '" alt="'+ this.name + '" src="' + this.discovererMedium + '"/>'+'</a>'
			+		'<div class="short-text" style="height:40px; background-color:#EDEEF0;padding-left:45px;">' //<span class="userLink" style="font-weight: bold;">' +this.discovererName+'</span> : '
			+			'<a class="userLink" onmouseOver="myTip(\'' + discName + ' Rank: ' + this.discovererRank + '\');"'
			+ 			'onmouseout="UnTip();" href="' + global.URL + 'user/'  + this.discovererId + '/' + this.discovererName + '/" target="_blank">' +  discName + ': </a>'			
			+ 			ov
			+   	'</div>';
			
			
			if( this.numberOfBooker>0 ){ 
				r +='<div style="width:200px; padding:3px 0; font-weight: bold;">'
				+ 	'<span>' + this.numberOfBooker + '</span> people love this place: </div>' //+ divLoveThisPlace;
			}
			if(this.numberOfBooker!=0){
				r+=	'<a href="' + boUrl + '" target="_blank"><img style="height:40px; width:40px;float:left;" name="userBild_' + bookerName + '" alt="'+ bookerName + '" src="' + bookerImg + '"/>' +'</a>'
				+	'<div class="short-text" style="height:40px; background-color:#EDEEF0;padding-left:45px;">' //<span class="userLink" style="font-weight: bold;">' +bookerName+'</span> : '
				+		'<a class="userLink" href="' + boUrl + '" target="_blank">' +  bookerName + '</a>'
				+ 		': '+bw
				+ 	'</div>';
			}			
			
			
/* anna: alter Kode auskommentirt	
			if (bookerlength >0) {
				r += '<div style="height:12px; width:200px; padding-bottom:5px;padding-top:5px; color:#676767;font-weight: bold;"><span style="font-weight: bold;">' + total +'</span> people loves this place: </div>'
				+ 	'<a href="' + global.URL + 'user/'+ bookerId+ '/' + bookerName + '.html" target="_blank"><img style="height:40px; width:40px;float:left;" name="userBild_' + bookerName + '" alt="'+ bookerName + '" src="' + bookerImg + '"/>' +'</a>'
				+	'<div class="short-text" style="height:40px; background-color:#EDEEF0;padding-left:45px;"><span class="userLink" style="font-weight: bold;">' + '<a class="userLink" onmouseOver="myTip(\'' + bookerName + '\');"'
				+ 	'onmouseout="UnTip();" href="' + global.URL + 'user/'  + bookerId + '/' + bookerName + '.html" target="_blank">' +  bookerName + '</a>'	+'</span> : '
				+ bw
				+ '</div>';
			}
*/			
			
			r +='</div>'
			+ divFooter; 
		}
		else if ( size == "klein" ){ //Klein bubble fur kleine Kartent
			var efName_small = efName;
			if (efName.length>30){
				 efName_small=efName.substr(0,30)+'...';
			}else{
				efName_small=efName;
			} 

		r =	'	<div style="height:40px; width:50px;float:left;" >'
			+		'<a onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();" href="' + efurl /*global.URL + this.city + '/' +  this.id + '/' + this.name */+'"target="_blank">'
			+		'<img style="height:40px; width:40px;" name="efBild_' + this.id + '" alt="'+ this.name + '" src="' + this.media + '"/>'
			+		'</a>'		
			+	'</div>'
			+	'<div style="float:left;" >'
			+		'<div style="overflow:hidden; width:150px;">'
			+			'<a style="font-weight:bold;" target="_blank" onmouseover="myTip(\'' + myTip + '\');" onmouseout="UnTip();"  href="' + efurl + '" target="_blank">' + efName_small + '</a>'
			//+ 			'<span  style="padding-bottom:0px; font-size:10px;">' + geobookmarker + '</span>' //anna: ist immer leer?
			+ 		'</div>'
			//+ 	'<p class="ext_path">' + efLocation  + '</p>'		
			+ 		categoryImage
			+	'</div>'
			+	'<div style="clear:both;"></div>'


			+	'<div style="height:auto; overflow:hidden; width:200px; padding: 3px 0 0 0;">'
			+ 		'<div style="font-weight: bold; font-size:11px;"> first faved by '
			+ 			'<a href="' + discUrl + '" target="_blank">' +  discName + '</a>'
			+ 		'</div>';
			//+		'<div class="short-text" style="height:40px; background-color:#EDEEF0;padding-left:45px;">' //<span class="userLink" style="font-weight: bold;">' +this.discovererName+'</span> : '
			//+			'<a class="userLink" onmouseOver="myTip(\'' + discName + ' Rank: ' + this.discovererRank + '\');"'
			//+ 			'onmouseout="UnTip();" href="' + global.URL + 'user/'  + this.discovererId + '/' + this.discovererName + '.html" target="_blank">' +  this.discovererName + ': </a>'			
			//+ 			ov
			//+   	'</div>';
			
			
			if( this.numberOfBooker>0 ){ 
				r +='<div style="padding:0 0 3px 0; font-weight: bold; font-size:11px;">'
				+ 	'<span>' + this.numberOfBooker + '</span> people love this place: </div>' //+ divLoveThisPlace;
			}
			if(this.numberOfBooker!=0){
				r+=	'<a href="' + boUrl + '" target="_blank"><img style="height:40px; width:40px;float:left;" name="userBild_' + bookerName + '" alt="'+ bookerName + '" src="' + bookerImg + '"/>' +'</a>'
				+	'<div class="short-text" style="height:40px; background-color:#EDEEF0;padding-left:45px; font-size:11px;">' //<span class="userLink" style="font-weight: bold;">' +bookerName+'</span> : '
				+		'<a class="userLink" href="' + boUrl + '" target="_blank">' +  bookerName + '</a>'
				+ 		': '+bw
				+ 	'</div>';
			}		

			r +='</div>';			
			//+ divFooter; 			
		
		}

	//console.log("Ich bin in Function asPopupEntry 10" + get.page_id);
	console.log(r);
	return r;
}
