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");

    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 reloadInput(zielgebiets_kenner){
	var arrCountries = document.bengine.elements["tt_countries"];
		for(var kk=0;kk<arrCountries.length;kk++){
			if( arrCountries[kk].value == zielgebiets_kenner ){
				arrCountries[kk].selected = 'selected';
			}
		}
}
//_______________________________________________________________________________

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 s_liste_tabelle(nurflug)
{
	/*
	
	
	document.write('<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0"><tr>');
                document.write('    <td class="tt_reg_headLeft"><img src="'+pfad_images+'/blue_left_30px.gif" alt="" title="" border="0"></td>');
                document.write('    <td class="tt_reg_headMid1">');
                document.write('        <div class="tt_regtophead tt_font3b">');
document.write('Nous vous proposons également ');

                document.write('        </div>');
                document.write('    </td>');
                document.write('    <td class="tt_reg_headMid2">');
                document.write('        <div class="tt_regtophead2">');
                
                document.write('        </div>');
                document.write('    </td>');
                document.write('    <td class="tt_reg_headRight"><img src="'+pfad_images+'/blue_right_30px.gif" alt="" title="" border="0"></td>');
                document.write('</tr></table>');

	*/
		
    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]==133 || parts_2[1]==155 || parts_2[1]==175 || parts_2[1]==221 || parts_2[1]==208)	

//if((parts_2[1]==133 || parts_2[1]==17 || parts_2[1]==175 || parts_2[1]==221 || parts_2[1]==208 || parts_2[1]==10006) || nurflug == 1)
if((parts_2[1]==133 || parts_2[1]==17 || parts_2[1]==175 || parts_2[1]==221 || parts_2[1]==208) || nurflug == 1)
{		
	
		if(parts_2[1] >= 10000) {
            str_glhotelTitel = "";
        }
        if(parts_2[1] == 10032){
            str_glhotelTitel = 'title="Le nom de l\'hôtel est communiqué dès l\'arrivée sur place"';
        }

        //---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--;
            }
            //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 tmp_reg="";
                var count_regionLength = parts_2[0].length;
                if (count_regionLength > 33){

                    showRegionName = editSpecialChars(parts_2[0].substr(0, 30));
                    showRegionName += "...";
                    tmp_reg=parts_2[0].substr(0, 30)+"...";
                }
                else{
                    showRegionName = editSpecialChars(parts_2[0]);
                    tmp_reg=parts_2[0];
                }
                var tt_find = tmp_reg.search(/Circuits/);
                var tt_find2 = tmp_reg.search(/Croisières/);
                if(tt_find!="-1"){
                    var tt_ausg_tmp_reg = "Circuits";
                }
                else if(tt_find2!="-1"){
                    var tt_ausg_tmp_reg = "Croisières";
                }
                else{
                    var tt_ausg_tmp_reg = tmp_reg;
                }

                if (linienchecker > 0){
												
                    document.write('</table>');
                    document.write('<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0">');
                    document.write('<tr><td class="tt_regLastRow" valign="top"><img src="'+pfad_images+'/box_grey_end_695px.gif" alt="" border="0"></td></tr>');
                    document.write('</table>');
                }
               /* document.write('<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0"><tr>');
                document.write('    <td class="tt_reg_headLeft"><img src="'+pfad_images+'/blue_left_30px.gif" alt="" title="" border="0"></td>');
                document.write('    <td class="tt_reg_headMid1">');
                document.write('        <div class="tt_regtophead tt_font3b" title="'+parts_2[0]+'">');
                if(parts_2[1] < 40000 && nurflug!=1){
                    document.write('<a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+', \''+this_udfRegionen+'\',\''+showRegionName+'\');return false;" class="tt_aufrufregion" '+str_glhotelTitel+'>'+tt_ausg_tmp_reg+'</a>');
                }
                else{
                    document.write(tt_ausg_tmp_reg);
                }
                document.write('        </div>');
                document.write('    </td>');
                document.write('    <td class="tt_reg_headMid2">');
                document.write('        <div class="tt_regtophead2">');
                if(nurflug!=1){
                    if(tt_find!="-1"){
                        document.write('<a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+', \''+this_udfRegionen+'\',\''+showRegionName+'\');return false;" class="tt_aufrufregion2" '+str_glhotelTitel+'>Voir tous les '+tt_ausg_tmp_reg+'</a>');
                    }
                    else if(tt_find2!="-1"){
                        document.write('<a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+', \''+this_udfRegionen+'\',\''+showRegionName+'\');return false;" class="tt_aufrufregion2" '+str_glhotelTitel+'>Voir toutes les '+tt_ausg_tmp_reg+'</a>');
                    }
                    else{
                        document.write('<a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+', \''+this_udfRegionen+'\',\''+showRegionName+'\');return false;" class="tt_aufrufregion2" '+str_glhotelTitel+'>Voir tous les Hôtels '+tmp_reg+'</a>');
                    }
                }
                document.write('        </div>');
                document.write('    </td>');
                document.write('    <td class="tt_reg_headRight"><img src="'+pfad_images+'/blue_right_30px.gif" alt="" title="" border="0"></td>');
                document.write('</tr></table>');
				*/
                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 tmp_Ziel = "";
                var count_zielLength = parts_2[0].length;
                if (count_zielLength > 25){
                    showZielName = editSpecialChars(parts_2[0].substr(0, 25));
                    showZielName += "...";
                    tmp_Ziel=parts_2[0].substr(0, 25)+"...";
                }
                else{
                    showZielName = editSpecialChars(parts_2[0]);
                    tmp_Ziel=parts_2[0];
                }
				
				
				
				
				
				
				
				
                document.write('<table class="tt_regAreaIn tt_regAreaInBack" cellpadding="0" cellspacing="0" border="0"><tr>');
                document.write('    <td class="tt_padright2 '+rowTopPad+' tt_padbot" style="padding-left:13px;" valign="top">');

                document.write('    <table class="tt_reg_ZielBg" cellpadding="0" cellspacing="0" border="0"><tr>');
                //document.write('        <td class="tt_reg_colAa">');
                //alert(parts_2[3]);
                var dfr=parts_2[5];
               //document.write('            <div>');
                // _amah_191208_  TCF changes the images via typo3 - document.write('                <div class="tt_regLine"><img src="'+pfad_images+'/maroc-fez/'+dfr+'.jpg" width="75" height="55" border="0" alt=""></div>');
				//document.write('                <div class="tt_regLine"><img src="'+t3url+'fileadmin/dataimg/'+dfr+'.jpg" width="75" height="55" border="0" alt=""></div>');
               //document.write('            </div>');
                /*
                var dfr=i%2;
                document.write('            <div>');
                document.write('                <div class="tt_regLine"><img src="'+pfad_images+'/destination_foto_'+dfr+'.jpg" width="75" height="55" border="0" alt=""></div>');
                document.write('            </div>');
                */
                //document.write('        </td>');
                document.write('        <td class="tt_reg_colA">');
                document.write('            <div class="tt_padleft2">');
                document.write('                <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+'>'+tmp_Ziel+'</a></div>');
                if(parts_2[3]!=999){
												
                    document.write('                <div class="tt_regLine"><a href="javascript:void(0);" onClick="setGoogleTrackParamsReg(\''+name_this_countrie+'\', \''+name_this_region+'\'); oHIBregion(\'\',\''+parts_2[3]+'\',\''+parts_2[3]+'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'region\');return false;" class="tt_aufrufziel3" '+str_glhotelTitel+'>En savoir plus sur '+tmp_Ziel+'</a></div>');
                }
                else{
                    document.write('<div class="tt_regLine">&nbsp;</div>');
                }
                document.write('            </div>');
                document.write('        </td>');
                document.write('        <td class="tt_reg_colB">');
                document.write('            <div class="tt_padleft2">');
                document.write('            <table cellspacing="0" cellpadding="0" border="0"><tr><td nowrap align="left">');
                if(parts_2[7]!=""){
                    document.write('            <div class="tt_font2" title="température de l\'air"><img src="'+pfad_images+'/sun.gif" alt="température de l\'air" border="0" align="absmiddle" style="margin-right:3px;">'+parts_2[7]+'&deg;C</div>');
                }
                if(parts_2[8]!=""){
                    document.write('            <div class="tt_font2" title="température de l\'eau"><img src="'+pfad_images+'/water.gif" alt="température de l\'eau" border="0" align="absmiddle" style="margin-right:3px;">'+parts_2[8]+'&deg;C</div>');
                }
                document.write('            </td></tr></table>');
                document.write('            </div>');
                document.write('        </td>');
                document.write('        <td class="tt_reg_colC">');
                if(nurflug!=1){
                document.write('            <div class="tt_padleft2">');
                var showHotelNr = ' hôtels';
                if(parts_2[2]=="1"){
                    showHotelNr = ' hôtel';
                }
                document.write('                <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>');
                document.write('                <div class="tt_regLine"><a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+',\'\',\''+showRegionName+' - '+showZielName+'\');return false;" class="tt_aufrufziel3">voir la sélection</a></div>');
                document.write('            </div>');
                }
                else{
                document.write('            <div class="tt_padleft2">&nbsp;');
                document.write('            </div>');
                }
                document.write('        </td>');
                document.write('        <td class="tt_reg_colD">');
                document.write('            <div class="tt_padright2" onClick="s_hliste('+parts_2[1]+',\'\',\''+showRegionName+' - '+showZielName+'\');return false;" style="cursor:pointer;text-align:right;">');
                document.write('                <table cellpadding="0" cellspacing="0" border="0" align="right"><tr>');
                document.write('                    <td valign="bottom"><div class="tt_font7">à partir de</div><a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+',\'\',\''+showRegionName+' - '+showZielName+'\');return false;" class="tt_terho">'+parts_2[4]+'</a></td>');
                document.write('                    <td valign="bottom"><span class="tt_terho_euro">&euro;</span>&nbsp;<span class="tt_font14">TTC</span></td>');
                document.write('                </tr>');
                document.write('                <tr><td colspan="2" ><div class="tt_font7">par personne</div></td></tr>');
                document.write('                </table>');
                document.write('            </div>');
                document.write('        </td>');
                document.write('    </tr></table>');

                document.write('    </td>');
                document.write('</tr>');
                irt=0;
            }

        }//top treffer ausgabe

}
    }//for

    if(n_ctop==0){

        document.write('<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0"><tr>');
        document.write('    <td class="tt_reg_headLeft"><img src="'+pfad_images+'/blue_left_30px.gif" alt="" title="" border="0"></td>');
        document.write('    <td class="tt_reg_headMid"><img src="'+pfad_images+'/spacer.gif" alt="" border="0" width="665px" height="30"></td>');
        document.write('    <td class="tt_reg_headRight"><img src="'+pfad_images+'/blue_right_30px.gif" alt="" title="" border="0"></td>');
        document.write('</tr></table>');
        document.write('<table class="tt_regAreaIn tt_regAreaInBack" cellpadding="0" cellspacing="0" border="0"><tr>');
        document.write('    <td><div class="tt_font2b tt_padright2 tt_padbot2 tt_padtop2 tt_padleft3">Aucune offre qui correspond à 100 % à vos souhaits n\'a pu être trouvée.</div></td>');
        document.write('</tr></table>');
        document.write('<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0">');
        document.write('<tr><td class="tt_regLastRow" valign="top"><img src="'+pfad_images+'/box_grey_end_695px.gif" alt="" border="0"></td></tr>');
        document.write('</table>');
    }
    else{

        document.write('</table>');
        document.write('<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0">');
        document.write('<tr><td class="tt_regLastRow" valign="top"><img src="'+pfad_images+'/box_grey_end_695px.gif" alt="" border="0"></td></tr>');
        document.write('</table>');
    }



    //-------------------wenn es alternative treffer gibt------------------------
    /*if(n_calt>0){

        document.write('<p style="clear:both;margin:0px;">&nbsp;</p>');

        document.write('<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0"><tr>');
        document.write('    <td class="tt_contLeft tt_colBgLow tt_colBorL tt_colBorR tt_colBorT" valign="top">');
        document.write('    <div class="tt_tabtophead tt_font2b">Alternative Reiseangebote, die Ihren Wünschen nahe kommen</div>');
        document.write('    </td>');
        document.write('    <td class="tt_shadowRi" width="3" valign="top"><img src="'+pfad_images+'/white_sch.gif" alt="" border="0" width="3" height="3"></td>');
        document.write('</tr></table>');

        document.write('<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0"><tr>');
        document.write('    <td class="tt_reg_colA tt_colBgLow tt_colBorL tt_colBorB" valign="top">');
        document.write('    <div class="tt_reg_col_header tt_font1 tt_padleft">Reiseziel</div>');
        document.write('    </td>');
        document.write('    <td class="tt_reg_colB tt_colBgLow tt_colBorB" valign="top">');
        document.write('    <div class="tt_reg_col_header tt_font1" align="center">Regionsinfo</div>');
        document.write('    </td>');
        document.write('    <td class="tt_reg_colC tt_colBgLow tt_colBorB" valign="top">');
        document.write('    <div class="tt_reg_col_header tt_font1" align="center" title="Temperaturen sind Durchschnittswerte des jeweiligen Reisemonats">Wetter *</div>');
        document.write('    </td>');
        document.write('    <td class="tt_reg_colD tt_colBgLow tt_colBorB tt_colBorR" valign="top">');
        document.write('    <div class="tt_reg_col_header tt_font1 tt_padright" align="right">Preis pro Person</div>');
        document.write('    </td>');
        document.write('    <td class="tt_shadowRi" width="3">');
        document.write('    <img src="'+pfad_images+'/spacer.gif" alt="" border="0" width="3" height="1">');
        document.write('    </td>');
        document.write('</tr></table>');

        var tr=0;


        for(i=0;i<regionen_alt.length;i++)
        {
            parts_2=regionen_alt[i].split("#");

            if(parts_2[1] >= 10000) {
                str_glhotelTitel = "";
            }
            if(parts_2[1] == 10032){
                str_glhotelTitel = 'title="Der Hotelname wird Ihnen nach Ankunft im Zielgebiet mitgeteilt"';
            }

            //---Region
            if(parts_2[3]==''){
                var tmpzg = new Array(regionen_alt[i]);
                co=1;
            }
            //---Ausgabe der alertnativen
            if(parts_2[6]==1){
                if(co==1){
                    tmp=String(tmpzg);
                    parts_2=tmp.split("#") ;
                    co=0;
                    i--;
                }
                //Ausgabe der Region
                if(parts_2[3]==''){
                    tr=1;



                    document.write('<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0"><tr>');
                    document.write('    <td class="tt_reg_tab_regionLi tt_colBorL">');
                    document.write('        <div class="tt_regtophead tt_font2b tt_padleft">');
                    if(nurflug!=1 && parts_2[1] < 40000){
                        document.write('<a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+');return false;" class="tt_aufrufregionALT" '+str_glhotelTitel+'>'+parts_2[0]+' - alle Angebote</a>');
                    }
                    else{
                        document.write(parts_2[0]);
                    }
                    document.write('        </div>');
                    document.write('    </td>');
                    document.write('    <td class="tt_reg_colD tt_colBgHigh tt_colBorR">&nbsp;</td>');
                    document.write('    <td class="tt_shadowRi" width="3"><img src="'+pfad_images+'/spacer.gif" alt="" border="0" width="3" height="1"></td>');
                    document.write('</tr></table>');


                    //linienchecker ++;

                }
                //Ausgabe der Zielgebiete in der Region
                else{
                    document.write('<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0"><tr>');
                    document.write('    <td class="tt_reg_colA tt_colBorL" valign="top">');
                    document.write('        <div class="tt_regLine tt_padleft4">');
                    document.write('        <a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+');return false;" class="tt_aufrufzielALT" '+str_glhotelTitel+'>'+parts_2[0]+'</a>');
                    document.write('        </div>');
                    document.write('    </td>');
                    document.write('    <td class="tt_reg_colB" valign="top">');
                    document.write('        <div align="center" style="padding-top:3px;">');
                    document.write('        <a href="javascript:void(0);" onClick="oHIB(\'\',\''+parts_2[3]+'\',\''+parts_2[3]+'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'region\');return false;"><img src="'+pfad_images+'/info.gif" alt="Regioninfos" title="Regioninfos" border="0"></a>');
                    document.write('        </div>');
                    document.write('    </td>');
                    document.write('    <td class="tt_reg_colC" valign="top">');
                    document.write('        <div class="tt_font1 tt_regLine" align="center" style="padding-top:3px;">');
                    document.write('        <table cellspacing="0" cellpadding="0" border="0" width="100"><tr><td nowrap align="left" class="tt_font1">');
                    if(parts_2[7]!=""){
                        document.write('        <img src="'+pfad_images+'/sun.gif" alt="Lufttemperatur" title="Lufttemperatur" border="0" align="absmiddle" hspace="2">'+parts_2[7]+'&deg;C&nbsp;');
                    }
                    if(parts_2[8]!=""){
                        document.write('        <img src="'+pfad_images+'/wasser.gif" alt="Wassertemperatur" title="Wassertemperatur" border="0" align="absmiddle" hspace="2">'+parts_2[8]+'&deg;C');
                    }
                    document.write('        </td></tr></table>');
                    document.write('        </div>');
                    document.write('    </td>');
                    document.write('    <td class="tt_reg_colD tt_colBgHigh tt_colBorR" valign="top">');
                    document.write('        <div align="right" class="tt_padright tt_regLine">');
                    document.write('        <a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+');return false;" class="tt_reglpreis">ab '+parts_2[4]+',-&euro;</a></td>');
                    document.write('        </div>');
                    document.write('    </td>');
                    document.write('    <td class="tt_shadowRi" width="3"><img src="'+pfad_images+'/spacer.gif" alt="" border="0" width="3" height="1"></td>');
                    document.write('</tr></table>');
                }
            }//alternativen ausgabe

        }//for

        document.write('<div class="tt_lastBorAll">');
        document.write('    <div class="tt_lastBorLe"><img src="'+pfad_images+'/spacer.gif" alt="" border="0" width="1" height="1"></div>');
        document.write('    <div class="tt_lastBorRi"><img src="'+pfad_images+'/schatten_rechts.gif" alt="" border="0" width="3" height="1"></div>');
        document.write('</div>');
        document.write('<table class="tt_shadRowBot" cellpadding="0" cellspacing="0" border="0"><tr>');
        document.write('    <td class="tt_shadowBo" height="3"><img src="'+pfad_images+'/white_sch.gif" alt="" border="0" width="3" height="3"></td>');
        document.write('</tr></table>');

    }//keine altnativen vorhanden
    */


}

/* 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+'/');
            }
    }

}
