
function customize_config_parameters()
{
CONF_LAT=50.52;
CONF_LNG=8.64;
CONF_ZOOM=11;
CONF_ZOOM_LUFTBILD=15;
CONF_COLOR="#447fbb"; 
CONF_GROUP_COLOR="#ccccff"; 
CONF_EXPO_TARGET="_blank";
CONF_FIRST_OBJSOURCE="ff-aktiv"; 
}
function customer_init()
{}
function create_legende(permanent)
{
if (permanent == -1)
document.getElementById('legende').innerHTML="<div class=\"txt\">Das sind unsere aktuellen Objekte<br/>Vielleicht finden Sie hier schon etwas passendes.</div><a href=\"#\"><a href=\"#\" onclick=\"return hs.htmlExpand(this, { width: 400, creditsPosition: 'bottom left', height: null, headingText: 'Wir finden Ihre Immobilie!', wrapperClassName: 'titlebar' } )\"><img alt=\"\" src=\"http://www.navipedia.de/puth/pic/i.png\"/></a><div class=\"highslide-maincontent\">\	<h3>Die effektivste Vorgehensweise ist ein Anruf bei uns.</h3>Sie sprechen mit uns &uuml;ber ihr Anforderungsprofil. Dann k&ouml;nnen wir ihnen im Normalfall 3, manchmal auch mehr f&uuml;r Sie passende Immobilien anbieten. 3 von 4 Anfragern kaufen oder mieten von uns. Durchwahl 06441 38 188 - 38. Email <a href =\"mailto:robert.puth@puth-wz.com\">robert.puth@puth-wz.com</a></div>";
else
document.getElementById('legende').innerHTML="<div class=\"txt\">Das sind einige Beispiele unserer Arbeit<br/>Vielleicht suchen Sie aktuell etwas &auml;hnliches?</div><a href=\"#\"><a href=\"#\" onclick=\"return hs.htmlExpand(this, { width: 400, creditsPosition: 'bottom left', height: null, headingText: 'Wir finden Ihre Immobilie!', wrapperClassName: 'titlebar' } )\"><img alt=\"\" src=\"http://www.navipedia.de/puth/pic/i.png\"/></a><div class=\"highslide-maincontent\">\	<h3>Die effektivste Vorgehensweise ist ein Anruf bei uns.</h3>Sie sprechen mit uns &uuml;ber ihr Anforderungsprofil. Dann k&ouml;nnen wir ihnen im Normalfall 3, manchmal auch mehr f&uuml;r Sie passende Immobilien anbieten. 3 von 4 Anfragern kaufen oder mieten von uns. Durchwahl 06441 38 188 - 38. Email <a href =\"mailto:robert.puth@puth-wz.com\">robert.puth@puth-wz.com</a></div>";
}
function qm_range_selected(id)
{
var	qm_min = new Array(0,0,25,50,100,250,0,250,500,1000,5000,10000);
var	qm_max = new Array(9999999999,25,50,100,250,9999999999,250,500,1000,5000,10000,9999999999);
curr_sel.qm=qm_min[id];
curr_sel.qm_max=qm_max[id];
if (!a_f_locked) apply_filter();
}
function price_range_selected(id)
{
var	ppqm_min = new Array(0,0,10,15,20,0,2000,3000,5000);
var	ppqm_max = new Array(9999999999,10,15,20,9999999999,2000,3000,5000,9999999999);
curr_sel.ppqm=ppqm_min[id];
curr_sel.ppqm_max=ppqm_max[id];
if (!a_f_locked) apply_filter();
}
function marketingtype_selected2(marketingtype)
{
curr_sel.marketingtype=marketingtype;
if (!a_f_locked) apply_filter();
}
function immotype_selected2(immotype)
{
curr_sel.immotype=immotype;
if (!a_f_locked) apply_filter();
}
function create_filter_selector()
{
document.getElementById('filter_selector').innerHTML = "<form name=\"filter_form\" action=\"\" onSubmit=\"return uuid_selected(document.filter_form.sel_uuid.value)\">\
<p><span id=\"txt_reset\"><a href=\"javascript:reset_filter();\"><img alt=\"Filter l&ouml;schen\" title=\"Filterwerte l&ouml;schen\" src=\"./pic/discard.png\"/></a></span><span id=\"txt_uuid\">"+CONF_FILTER_OBJNR+"\
<input name=\"sel_uuid\" id=\"sel_uuid\" type=\"text\" size=\"8\" maxlength=\"10\">\
<input type=\"submit\" name=\"submit_uuid\" id=\"submit_uuid\" value=\">\"></span>\
\
<span id=\"txt_district\">"+CONF_FILTER_DISTRICT+"\
<select id=\"sel_district\" name=\"DistrictType\" onchange=\"district_selected(value)\">"+CONF_DISTRICT_MENU+"</select></span>\
\
<span id=\"txt_quelle\">"+CONF_FILTER_QUELLE+"\
<select id=\"sel_quelle\" name=\"SourceType\" onchange=\"source_selected(value)\">\
<option " + ((CONF_FIRST_OBJSOURCE=="ff-aktiv") ? "selected=\"selected\"" : "") + "value=\"ff-aktiv\"> Aktuelle Objekte </option>\
<option " + ((CONF_FIRST_OBJSOURCE=="ff-referenz") ? "selected=\"selected\"" : "") + "value=\"ff-referenz\"> Referenz-Objekte </option>\
<option " + ((CONF_FIRST_OBJSOURCE=="ff-gesuch") ? "selected=\"selected\"" : "") + "value=\"ff-gesuch\"> Objekt-Gesuche </option>\
<option " + ((CONF_FIRST_OBJSOURCE=="ff-alt") ? "selected=\"selected\"" : "") + "value=\"ff-alt\"> fr&uuml;her aktiv </option>\
<option " + ((CONF_FIRST_OBJSOURCE=="ff-plan") ? "selected=\"selected\"" : "") + "value=\"ff-plan\"> noch nie aktiv </option>\
</select></span>\
\
<span id=\"txt_zweck\">"+CONF_FILTER_PURPOSE+"\
<select id=\"zweck\" name=\"PurposeType\" onchange=\"purpose_selected(value)\">\
<option " + ((CONF_FIRST_PURPOSE=="Alle") ? "selected=\"selected\"" : "") + "value=\"Alle\"> Alle </option>\
<option " + ((CONF_FIRST_PURPOSE=="Wohnen") ? "selected=\"selected\"" : "") + "value=\"Wohnen\"> Wohnen </option>\
<option " + ((CONF_FIRST_PURPOSE=="Gewerbe") ? "selected=\"selected\"" : "") + "value=\"Gewerbe\"> Gewerbe </option>\
</select></span>\
\
<span id=\"txt_wohntypen\">"+CONF_FILTER_USAGE+"\
<select id=\"sel_wohntypen\" name=\"LivingType\" onchange=\"immotype_selected(value)\">\
<option selected=\"selected\" value=\"Alle\"> Alle </option>\
<option value=\"Appartment\"> Wohnung </option>\
<option value=\"House\"> Haus </option>\
</select></span>\
\
<span id=\"txt_gewerbetypen\">"+CONF_FILTER_USAGE+"\
<select id=\"sel_gewerbetypen\" name=\"TradeType\" onchange=\"immotype_selected(value)\">\
<option " + ((CONF_FIRST_IMMOTYPE=="Alle") ? "selected=\"selected\"" : "") + "value=\"Alle\"> Alle </option>\
<option " + ((CONF_FIRST_IMMOTYPE=="Office") ? "selected=\"selected\"" : "") + "value=\"Office\"> B&uuml;ro/ Praxis </option>\
<option " + ((CONF_FIRST_IMMOTYPE=="Industry") ? "selected=\"selected\"" : "") + "value=\"Industry\"> Halle/ Produktion </option>\
<option value=\"Store\"> Einzelhandel </option>\
</select></span>\
\
<span id=\"txt_immotypen\">"+CONF_FILTER_USAGE+"\
<select id=\"sel_immotypen\" name=\"ImmoType\" onchange=\"immotype_selected(value)\">\
<option " + ((CONF_FIRST_IMMOTYPE=="Alle") ? "selected=\"selected\"" : "") + "value=\"Alle\"> Alle </option>\
<option " + ((CONF_FIRST_IMMOTYPE=="Office") ? "selected=\"selected\"" : "") + "value=\"Office\"> B&uuml;ro/ Praxis </option>\
<option " + ((CONF_FIRST_IMMOTYPE=="Industry") ? "selected=\"selected\"" : "") + "value=\"Industry\"> Halle/ Produktion </option>\
<option value=\"Store\"> Einzelhandel </option>\
</select></span>\
\
<span id=\"txt_marketingtypen\">"+CONF_FILTER_MARKETING+"\
<select id=\"sel_marketingtypen\" name=\"MarketingType\" onchange=\"marketingtype_selected(value)\">\
<option " + ((CONF_FIRST_MARKETINGTYPE=="Alle") ? "selected=\"selected\"" : "") + "value=\"Alle\"> Alle </option>\
<option " + ((CONF_FIRST_MARKETINGTYPE=="Miete") ? "selected=\"selected\"" : "") + "value=\"Miete\"> Miete </option>\
<option " + ((CONF_FIRST_MARKETINGTYPE=="Kauf") ? "selected=\"selected\"" : "") + "value=\"Kauf\"> Kauf </option>\
</select></span>\
\
<span id=\"txt_qm\">"+CONF_FILTER_QM+"\
<select id=\"gewerbe_sel_qm\" name=\"qm\" onchange=\"qm_range_selected(value)\">\
<option selected=\"selected\" value=\"0\"> Alle </option>\
<option value=\"6\"> bis 250 m&sup2;</option>\
<option value=\"7\"> 250 bis 500 m&sup2;</option>\
<option value=\"8\"> 500 bis 1.000 m&sup2;</option>\
<option value=\"9\"> 1.000 bis 5.000 m&sup2;</option>\
<option value=\"10\"> 5.000 bis 10.000 m&sup2;</option>\
<option value=\"11\"> &uuml;ber 10.000 m&sup2;</option>\
</select>\
\
<select id=\"wohn_sel_qm\" name=\"qm\" onchange=\"qm_selected(value)\">\
<option selected=\"selected\" value=\"0\"> egal </option>\
</select>\
\
<select id=\"sel_qm\" name=\"qm\" onchange=\"qm_range_selected(value)\">\
<option selected=\"selected\" value=\"0\"> Alle </option>\
<option value=\"6\"> bis 250 m&sup2;</option>\
<option value=\"7\"> 250 bis 500 m&sup2;</option>\
<option value=\"8\"> 500 bis 1.000 m&sup2;</option>\
<option value=\"9\"> 1.000 bis 5.000 m&sup2;</option>\
<option value=\"10\"> 5.000 bis 10.000 m&sup2;</option>\
<option value=\"11\"> &uuml;ber 10.000 m&sup2;</option>\
</select></span>\
\
<span id=\"txt_zimmer\">"+CONF_FILTER_ZIMMER+"\
<select id=\"sel_zimmer\" name=\"room\" onchange=\"rooms_selected(value)\">\
<option selected=\"selected\" value=\"0\"> egal </option>\
</select></span>\
\
<span id=\"txt_mietpreis\">"+CONF_FILTER_PREIS+"\
<select id=\"sel_mietpreis\" name=\"MietPreis\" onchange=\"price_selected(value)\">\
<option selected=\"selected\" value=\"9999999999\"> egal </option>\
</select></span>\
\
<span id=\"txt_kaufpreis\">"+CONF_FILTER_PREIS+"\
<select id=\"sel_kaufpreis\" name=\"KaufPreis\" onchange=\"price_selected(value)\">\
<option selected=\"selected\" value=\"9999999999\"> egal </option>\
</select></span>\
</p>\
</form>";
switch (CONF_FIRST_MARKETINGTYPE) {
case "Miete":
document.getElementById("txt_mietpreis").style.display = "inline";  
document.getElementById("sel_mietpreis").style.display = "inline"; 
break;
case "Kauf":
document.getElementById("txt_kaufpreis").style.display = "inline";  
document.getElementById("sel_kaufpreis").style.display = "inline"; 
break;
}
}
function create_list_navigation(target)
{
document.getElementById(target).innerHTML ="<img id=\"back\" alt=\"Navigation1\" src=\"./pic/zurueck.gif\" align=\"left\" style=\"margin:0 1px 1px 1px;\" usemap=\"#ListNavi1\"/>\
<map name=\"ListNavi1\">\
<area shape=\"rect\" coords=\"0,0,17,15\"\
href=\"#\" onclick=\"show_list_first_clicked()\" alt=\"Anfang\" title=\"Anfang\">\
<area shape=\"rect\" coords=\"18,0,35,15\"\
href=\"#\" onclick=\"show_list_previous_clicked()\" alt=\"zurueck\" title=\"zurueck\"></map>" +
((target=="list_navi")? "<div id='list_info'></div>" : "Ansammlung") +
"<img id=\"forward\" alt=\"Navigation2\" src=\"./pic/vor.gif\" align=\"right\" style=\"margin:0 1px 1px 1px;\" usemap=\"#ListNavi2\"/>\
<map name=\"ListNavi2\">\
<area shape=\"rect\" coords=\"0,0,17,15\"\
href=\"#\" onclick=\"show_list_next_clicked()\" alt=\"vor\" title=\"vor\">\
<area shape=\"rect\" coords=\"18,0,35,15\"\
href=\"#\" onclick=\"show_list_last_clicked()\" alt=\"Ende\" title=\"Ende\"></map>";
}
function build_infobox(k)
{
var	empty= " ";
return empty;
}
function show_cluster_popup(i)
{
if ((global_map_height < 200) || (global_map_width < 300)) {
return; 
}
var node=document.getElementById('clusterPopup');
document.getElementById('num').innerHTML = global_grid[i].num;
document.getElementById('arrows').innerHTML = "<img alt=\"Navigation11\" src=\"./pic/zurueck.gif\" align=\"left\" usemap=\"#ListNavi11\"/>\
<map name=\"ListNavi11\"><area shape=\"rect\" coords=\"0,0,17,15\"	href=\"#\" onclick=\"show_first_cluster_element("+i+")\" alt=\"Anfang\" title=\"Anfang\"><area shape=\"rect\"\ coords=\"18,0,35,15\" href=\"#\" onclick=\"show_previous_cluster_element("+i+")\" alt=\"zurueck\" title=\"zurueck\"></map>\
<img alt=\"Navigation12\" src=\"./pic/vor.gif\" align=\"right\" usemap=\"#ListNavi12\"/>\
<map name=\"ListNavi12\"><area shape=\"rect\" coords=\"0,0,17,15\"	href=\"#\" onclick=\"show_next_cluster_element("+i+")\" alt=\"vor\" title=\"vor\"> <area shape=\"rect\"\ coords=\"18,0,35,15\"\
href=\"#\" onclick=\"show_last_cluster_element("+i+")\" alt=\"Ende\" title=\"Ende\"></map>";
document.getElementById('anglink').innerHTML = "<a href=javascript:set_clusterview("+i+");>Zoom</a>";
document.getElementById('frm').innerHTML = "<form name=\"Clusterform\" action=\"\"><input type=\"checkbox\" name=\"Art\" value=\"Sammlung\"\ onclick=\"checked_mod("+i+");\"\ checked=\"checked\"/><label for=\"Art\" style=\"padding:0 0 0 3px\">"+CONF_CLUSTER_POPUP_OPTIONTEXT+"</label></form>";
node.style.visibility = "visible";
var cluster_pos=new VELatLong(global_grid[i].lat,global_grid[i].long);
var pixel = map.LatLongToPixel(cluster_pos, map.GetZoomLevel());
if (pixel.y > 200) { 
node.style.top = pixel.y - 200 + "px"; 
}	else if (pixel.y < global_map_height - 200) { 
node.style.top = pixel.y + "px"; 
} else { 
node.style.top = global_map_height - 200 + "px"; 
}
if (pixel.x < global_map_width - 205 - 15) { 
node.style.left = pixel.x + 15 + "px"; 
} else if (pixel.x > 205 + 15) { 
node.style.left = pixel.x - 205 - 15 + "px"; 
} else {		
node.style.left = global_map_width - 205 + "px"; 
}
if ((document.Clusterform.Art.checked == false) || (MAXLIST < global_grid[i].num)) {
document.getElementById('arrows').style.visibility="visible"; 
}
else {
document.getElementById('arrows').style.visibility="hidden"; 
}
}
function create_cluster_popup()
{
document.getElementById('clusterPopup').innerHTML = "<img src=\"./pic/clpo.png\" /><div id='close'> <a href=\"#\" onclick=\"hide_popup(1)\"><img id='x' alt=\"Schliessen\" src=\"pic/close.jpg\"/></a></div>\
<p><span id='num'></span>"+CONF_CLUSTER_POPUP_HEADERTEXT+"</p>\
<div id='arrows'></div>\
<div id='frm'></div>\
<div id='anglink'></div>";
}
function write_list (i,append)
{
var qmtext = (a[i].qm>0) ? ("Fl&auml;che: " + a[i].qm + " m&sup2;") : ""; 
var preistext = (a[i].price) ? ("Preis: " + trenner(a[i].price) + a[i].currency) : "Preis auf Anfrage"; 
var nachkommastellen = (a[i].marketingtype=="Miete") ? 2 : 0; 
var miet_beginntext = (a[i].miet_beginn!="") ? ("Bezug: " + a[i].miet_beginn) : ""; 
var strassetext = (a[i].strasse!="") ? d_a(a[i].strasse) : "Adresse auf Anfrage";
var adresstext = "Standort: " + d_a(a[i].plz) + " " + d_a(a[i].stadt) + ", " + strassetext; 
var expose_linktext = (a[i].expose_link!="") ? (" | <a href=" + a[i].expose_link + " target=\"" + CONF_EXPO_TARGET + "\" onclick='expose_popup(" + a[i].uuid + ");'>"+CONF_LINKTEXT_TO_EXPOSE+"</a>") : "";
var foto_text = (a[i].foto!="") ? ("src=\"" + "http://www.navipedia.de/np_common_files/puth/exp_data/" + a[i].foto + "\"") : ("src=\"./pic/expose_no_picture.gif\"");
var widthtext = "";
var left_col_width = 0; 
var right_col_width = 0; 
if (CONF_PIC_WIDTH_RATIO) {
left_col_width = Math.round(PIC_HGT*CONF_PIC_WIDTH_RATIO) + global_picture_padding + 2;
right_col_width = document.getElementById("listen_spalte").offsetWidth - left_col_width - 2;
widthtext = "width:"+Math.round(PIC_HGT*CONF_PIC_WIDTH_RATIO)+"px";
}
var pictext = (a[i].expose_link!="" && a[i].objsource=="ff-aktiv") ? ("<a href=" + a[i].expose_link + " target=\"" + CONF_EXPO_TARGET + "\" onclick='expose_popup(" + a[i].uuid + ");'>" + "<img class='thumb' " + foto_text + " alt='Details' style=\"margin:"+global_picture_padding+"px;padding:2px; height:"+PIC_HGT+"px;"+widthtext+"\"></a>") : ("<img class='thumb'" + foto_text + " alt='' style=\"margin:"+global_picture_padding+"px;padding:2px;height:"+PIC_HGT+"px;"+widthtext+"\"/>");
var headertext = "";
var descrtext="";
switch (a[i].objsource) {
case "ff-aktiv":
if (adresstext!="") descrtext = "<br/>" + adresstext;
if (qmtext!="") descrtext += "<br/>" + qmtext;
if (preistext!="") descrtext += "<br/>" + preistext;
if (miet_beginntext!="") descrtext += "<br/>" + miet_beginntext;
headertext = a[i].heading;
break;		
default:
descrtext = a[i].heading; 
headertext = d_a(a[i].stadt); 
}
var neuer_eintrag = "<div id='content_top"+i+"'></div><table class='list_entry' OnMouseOver='set_focus("+i+")' OnMouseOut='drop_focus("+i+")'><tr><td class='left'" +
((left_col_width>0)? (" width='"+left_col_width+"'") : "") + ">" +
pictext + "</td><td class='right'"+((right_col_width>0)? (" width='"+right_col_width+"'>") : ">")+ "<div style='position:relative'>" +
"<div id='image-"+i+"' style='visibility:hidden; position:absolute; right:3px; bottom:3px;'><img src='./pic/Achtung.png'/></div>" +
"<span class='data'>" +
"<p class='title'>" + headertext + "</p>" +
"<span class='description'>" + descrtext + 
"<br><br><span id='referer-"+i+"' style='padding:2px;visibility:hidden'>" + ((a[i].objsource=="ff-aktiv") ? ("<a href=javascript:expose_popdown();set_birdview(" + d_c(a[i].lat) +
"," + d_c(a[i].long) + ");>"+CONF_LINKTEXT_TO_BIRDVIEW+"</a> " + expose_linktext) : "") + 
"</span>" +
"</span></span></div></td></tr></table><div id='content_bottom"+i+"'></div>";
if (append==1) {
document.getElementById('listen_spalte').innerHTML += neuer_eintrag;
}
else {
document.getElementById('listen_spalte').innerHTML = neuer_eintrag + document.getElementById('listen_spalte').innerHTML;
}
return getHeight(i);
}
