function s_hliste(zk,udfreg,kenner_name){
    var thisUdfReg = '';
    part=kenner_name.split(' - ');
    if(typeof(part[1]) != 'undefined' && part[1]!='') {
         var tt_nb_title=part[0].replace("&", "%26")+'0tt0'+part[1].replace("&", "%26");
         var tmp_title = part[1].replace("&", "%26");
    }
    else{
         var tt_nb_title=part[0].replace("&", "%26");
         var tmp_title = '';
    }     

    if ( typeof(udfreg) != 'undefined' && udfreg!= '')
        thisUdfReg = '&udfregionen='+escape(udfreg);
    window.location.href=t3url+uebergabe_hotel+'&zielgebiets_kenner='+zk+'&detail=hotel&showresult=1'+thisUdfReg+'&tt_nb_title='+tt_nb_title+'&temp_title_hotel='+tmp_title;
}

//_______________________________________________________________________________

function zur_suche(showresult){
    if (uebergabe_suchestart) {
        window.location.href=t3url+uebergabe_suchestart+'&showresult='+showresult;
    }
    else {
        window.location.href=t3url+uebergabe_hotel+'&showresult='+showresult;
    }
}


function editSpecialChars(theText) {



    theText = theText.replace(/[???]/g,"a");

    theText = theText.replace(/[???]/g,"A");

    theText = theText.replace(/[???]/g,"e");

    theText = theText.replace(/[???]/g,"E");

    theText = theText.replace(/[???]/g,"i");

    theText = theText.replace(/[???]/g,"I");

    theText = theText.replace(/[???]/g,"o");

    theText = theText.replace(/[???]/g,"O");

    theText = theText.replace(/[???]/g,"u");

    theText = theText.replace(/[???]/g,"U");

    theText = theText.replace(/[\.]/g,"");

    theText = theText.replace(/\</g,"max");

    //theText = theText.replace(/[^a-zA-Z0-9\s]/g, "_") ;
    theText = theText.replace(/\'/g,"\\'");



    return theText;



}
//_______________________________________________________________________________

function s_liste_tabelle(nurflug)
{
    var thisdetail=(nurflug==1)?'termine':'hotel';
    var linienchecker = 0; //zähler für zwischenlinien
    var regionen_alt = new Array();
    var co=0;
    var str_glhotelTitel = "";
    var name_this_countrie = "";

    var irt=0;
    for(i=0;i<regionen_2.length;i++)
    {
        parts_2=regionen_2[i].split("#");

        if(parts_2[1] >= 10000) {
            str_glhotelTitel = "";
        }
        if(parts_2[1] == 10032){
            str_glhotelTitel = 'title="De hotelnaam wordt u meegedeeld na aankomst op uw bestemming"';
        }

        //---array fuer alternativen anlegen
        if((parts_2[6]==1 || parts_2[6]==2) && n_calt!=0){
            var tmp = new Array(regionen_2[i]);
            regionen_alt = regionen_alt.concat(tmp);
        }

        //---Region fuer top treffer sichern
        if(parts_2[3]==''){
            var tmpzg = new Array(regionen_2[i]);
            co=1;
        }

        //---Ausgabe der top treffer
        if(parts_2[6]==0){
            if(co==1){
                tmp=String(tmpzg);
                parts_2=tmp.split("#") ;
                co=0;
                i--;
            }
            var strAusgabe = "";

            //Ausgabe der Region
            if(parts_2[3]==''){
                irt=1;
                name_this_countrie = parts_2[0];
                name_this_countrie = editSpecialChars(name_this_countrie);

                var showRegionName = "";
                var count_regionLength = parts_2[0].length;
                if (count_regionLength > 33){
                    showRegionName = editSpecialChars(parts_2[0].substr(0, 30));
                    showRegionName += "...";
                }
                else{
                    showRegionName = editSpecialChars(parts_2[0]);
                }
				if (parts_2[0]== 'Kruisvaarte'){
				    parts_2[0] = parts_2[0].replace(parts_2[0],'Cruises');
                }
                if (linienchecker > 0){
                    strAusgabe += '</table>';
                    strAusgabe += '<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0">';
                    strAusgabe += '<tr><td class="tt_regLastRow" valign="top"><img src="'+pfad_images+'/background/box_grey_end_760px.gif" alt="" border="0" width="760" height="13"></td></tr>';
                    strAusgabe += '</table>';
                }
              
                strAusgabe += '<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0"><tr>';
                strAusgabe += '    <td class="tt_reg_headLeft"><img src="'+pfad_images+'/background/blue_left_30px.gif" alt="" title="" border="0"></td>';
                strAusgabe += '    <td class="tt_reg_headMid1">';
                strAusgabe += '        <div class="tt_regtophead tt_font3b" title="'+parts_2[0]+'">';
                if(parts_2[0].length > 41){
                   var tt_parts_2_0=parts_2[0].substr(0, 25) + '...';
                   var tt_parts_2_lang=parts_2[0].substr(0, 41) + '...';
                } else { 
                   var tt_parts_2_0=parts_2[0];    
                   var tt_parts_2_lang=parts_2[0];
                }   
                    
                if(nurflug!=1){
                    strAusgabe += '<a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+', \''+this_udfRegionen+'\',\''+showRegionName+'\');return false;" class="tt_aufrufregion" '+str_glhotelTitel+'>'+tt_parts_2_lang+'</a>';
                } else {
                    strAusgabe += '<span class="tt_aufrufgregionCharter">'+tt_parts_2_lang+'</span>';
                }
                strAusgabe += '        </div>';
                strAusgabe += '    </td>';
                strAusgabe += '    <td class="tt_reg_headMid2">';
                strAusgabe += '        <div class="tt_regtophead2">';
                if(nurflug!=1){
                    strAusgabe += '<a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+', \''+this_udfRegionen+'\',\''+showRegionName+'\');return false;" class="tt_aufrufregion2" '+str_glhotelTitel+'>Alle Hotels in '+tt_parts_2_0+'</a>';
                } else {
                    strAusgabe += '&nbsp;';
                    //strAusgabe += '<a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+', \''+this_udfRegionen+'\',\''+showRegionName+'\');return false;" class="tt_aufrufregion2" '+str_glhotelTitel+'>'+parts_2[0]+'</a>';
                }
                strAusgabe += '        </div>';
                strAusgabe += '    </td>';
                strAusgabe += '    <td class="tt_reg_headRight"><img src="'+pfad_images+'/background/blue_right_30px.gif" alt="" title="" border="0"></td>';
                strAusgabe += '</tr></table>';

                //alert(strAusgabe);
                document.write(strAusgabe);
                linienchecker ++;
            }
            //Ausgabe der Zielgebiete in der Region
            else{
                if(irt==1){
                    var rowTopPad = "tt_padtop2";
                }
                else{
                    var rowTopPad = "tt_padtop";
                }
                var name_this_region = parts_2[0];
                name_this_region = editSpecialChars(name_this_region);
                var showZielName = "";
                var count_zielLength = parts_2[0].length;
                if (count_zielLength > 31){
                    showZielName = editSpecialChars(parts_2[0].substr(0, 27));
                    showZielName += "...";
                }
                else{
                    showZielName = editSpecialChars(parts_2[0]);
                }
 				
                strAusgabe += '<table class="tt_regAreaIn tt_regAreaInBack" cellpadding="0" cellspacing="0" border="0"><tr>';
                strAusgabe += '    <td class="tt_padright2 '+rowTopPad+' tt_padbot" style="padding-left:13px;" valign="top">';
                strAusgabe += '    <table class="tt_reg_ZielBg" cellpadding="0" cellspacing="0" border="0"><tr>';
                strAusgabe += '        <td class="tt_reg_colA">';
                strAusgabe += '            <div class="tt_padleft2">';
                strAusgabe += '                <div class="tt_regLine" title="'+parts_2[0]+'"><a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+',\'\',\''+showRegionName+' - '+showZielName+'\');return false;" class="tt_aufrufziel" '+str_glhotelTitel+'>'+parts_2[0]+'</a></div>';
                //strAusgabe += '                <div class="tt_regLine"><a href="javascript:void(0);" onClick="setGoogleTrackParamsReg(\''+name_this_countrie+'\', \''+name_this_region+'\'); oHIB(\'\',\''+parts_2[3]+'\',\''+parts_2[3]+'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'region\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\''+OMNICHANNEL+'\');return false;" title="Landeninformatie voor deze Regio oproepen" alt="Landeninformatie voor deze Regio oproepen" class="tt_aufrufziel3" '+str_glhotelTitel+'>Landinformatie</a></div>';
                if(parts_2[3]!=999){
                strAusgabe += '                <div class="tt_regLine"><a href="javascript:void(0);" onClick="oHIB(\'\',\''+parts_2[3]+'\',\''+parts_2[3]+'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'region\');return false;" class="tt_aufrufziel3" '+str_glhotelTitel+'>Landinformatie</a></div>';
                }
                strAusgabe += '            </div>';
                strAusgabe += '        </td>';
                strAusgabe += '        <td class="tt_reg_colB">';
                strAusgabe += '            <div class="tt_padleft2">';
                strAusgabe += '            <table cellspacing="0" cellpadding="0" border="0"><tr><td nowrap align="left">';
                if(parts_2[7]!=""){
                    strAusgabe += '            <div class="tt_font2" title="luchttemperatuur"><img src="'+pfad_images+'/sun.gif" alt="luchttemperatuur" border="0" align="middle" style="margin-right:3px;"><span class="tt_font7">'+parts_2[7]+'&deg;C</span></div>';
                }
                if(parts_2[8]!=""){
                    strAusgabe += '            <div class="tt_font2" title="watertemperatuur"><img src="'+pfad_images+'/water.gif" alt="watertemperatuur" border="0" align="middle" style="margin-right:3px;"><span class="tt_font7">'+parts_2[8]+'&deg;C</span></div>';
                }
                strAusgabe += '            </td></tr></table>';
                strAusgabe += '            </div>';
                strAusgabe += '        </td>';
                strAusgabe += '        <td class="tt_reg_colC">';
                strAusgabe += '            <div class="tt_padleft2">';
                var showHotelNr = ' Hotels';
                if(parts_2[2]=="1"){
                    showHotelNr = ' Hotel';
                }
                if(nurflug!=1){
                    strAusgabe += '                <div class="tt_regLine"><a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+',\'\',\''+showRegionName+' - '+showZielName+'\');return false;" class="tt_aufrufziel2">'+parts_2[2]+showHotelNr+'</a></div>';
                }
                strAusgabe += '            </div>';
                strAusgabe += '        </td>';
                strAusgabe += '        <td class="tt_reg_colD">';
                strAusgabe += '            <div class="tt_padright2" onClick="s_hliste('+parts_2[1]+',\'\',\''+showRegionName+' - '+showZielName+'\');return false;" style="cursor:pointer;text-align:right;">';
                strAusgabe += '                <table cellpadding="0" cellspacing="0" border="0" align="right"><tr>';
                strAusgabe += '                    <td valign="bottom" align="right"><div class="tt_font7">vanaf</div><span class="tt_font11b">&euro;</span>&nbsp;<a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+',\'\',\''+showRegionName+' - '+showZielName+'\');return false;" class="tt_reglpreis">'+parts_2[4]+'</a></td>';
                strAusgabe += '                </tr>';
                strAusgabe += '                <tr><td colspan="2" valign="top" align="right"><div class="tt_font7">p.p.</div></td></tr>';
                strAusgabe += '                </table>';
                strAusgabe += '            </div>';
                strAusgabe += '        </td>';
                strAusgabe += '    </tr></table>';
                strAusgabe += '    </td>';
                strAusgabe += '</tr>';
                irt=0;
                document.write(strAusgabe);
            }
        }//top treffer ausgabe
    }//for

    var tt_strAusgabe='';
    if(n_ctop==0){
        tt_strAusgabe+='<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0"><tr>';
        tt_strAusgabe+='    <td class="tt_reg_headLeft"><img src="'+pfad_images+'/background/blue_left_30px.gif" alt="" title="" border="0"></td>';
        tt_strAusgabe+='    <td class="tt_reg_headMid"><img src="'+pfad_images+'/spacer.gif" alt="" border="0" width="730" height="30"></td>';
        tt_strAusgabe+='    <td class="tt_reg_headRight"><img src="'+pfad_images+'/background/blue_right_30px.gif" alt="" title="" border="0"></td>';
        tt_strAusgabe+='</tr></table>';
        tt_strAusgabe+='<table class="tt_regAreaIn tt_regAreaInBack" cellpadding="0" cellspacing="0" border="0"><tr>';
        tt_strAusgabe+='    <td><div class="tt_font2b tt_padright2 tt_padbot2 tt_padtop2 tt_padleft3">Helaas verhinderen eerder ingevoerde gegevens (bijv. over de gewenste reisperiode), dat er een aanbieding voor het gewenste hotel wordt weergegeven. Als u uw zoekcriteria minder beperkt kan er een aanbieding worden weergegeven.</div></td>';
        tt_strAusgabe+='</tr></table>';
        tt_strAusgabe+='<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0">';
        tt_strAusgabe+='<tr><td class="tt_regLastRow" valign="top"><img src="'+pfad_images+'/background/box_grey_end_760px.gif" alt="" border="0" width="760" height="13"></td></tr>';
        tt_strAusgabe+='</table>';
    }
    else{
        tt_strAusgabe+='</table>';
        tt_strAusgabe+='<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0">';
        tt_strAusgabe+='<tr><td class="tt_regLastRow" valign="top"><img src="'+pfad_images+'/background/box_grey_end_760px.gif" alt="" border="0" width="760" height="13"></td></tr>';
        tt_strAusgabe+='</table>';
    }
    document.write(tt_strAusgabe);

}

/* Werte für google track setzen */
function setGoogleTrackParamsReg(this_go_countrie, this_go_region){

    if (typeof(tt_go_tt_countries) != 'undefined' && typeof(tt_go_tt_region) != 'undefined'){
        if (this_go_countrie != '' && this_go_region != '')
            if(typeof(urchinTracker) != 'undefined'){
                urchinTracker('/guide/'+this_go_countrie+'/'+this_go_region+'/');
            }
    }

}
