function s_hliste(zk,udfreg,kenner_name, tt_countrycode){
    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 tt_nb_title=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);

  tt_nb_title = tt_nb_title.replace("'", " ");
	var desccountry = tt_nb_title;
  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+'&bInput='+desccountry +'&tt_countries='+tt_countrycode;
}

//_______________________________________________________________________________

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, regionen_2)
{
	var str = s_liste_compute_tabelle(nurflug, regionen_2);
	document.write(str);
}

function s_liste_compute_tabelle(nurflug, regionen_2)
{
    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 countrycode ="";
	var filldoc = '';

	// Header for roundtrips and cruises
	if (formule_label.length > 0)
	{
		filldoc += '<table class="tt_regAreaInhead" cellpadding="0" cellspacing="0" border="0"><tr>';
        filldoc += '    <td class="tt_reg_headLeft"><img src="'+pfad_images+'/blue_left_30px.gif" alt="" title="" border="0"></td>';
        filldoc += '    <td class="tt_reg_headMid1"><div class="tt_regtophead tt_font3b" title="'+formule_label+'">'+formule_label+'</div></td>';
		filldoc += '    <td class="tt_reg_headMid2"><div class="tt_regtophead2"></div></td>';
        filldoc += '    <td class="tt_reg_headRight"><img src="'+pfad_images+'/blue_right_30px.gif" alt="" title="" border="0"></td>';
        filldoc += '</tr></table>';
        linienchecker ++;
	}

    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="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;
        }
        // Display only top offers - Display alternates if no top offer has been found
        if(parts_2[6]==0 || n_ctop==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);
				countrycode = parts_2[1];
                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_ausg_tmp_reg = tmp_reg;
                if (linienchecker > 0){
                    filldoc += '</table>';
                    filldoc += '<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0">';
                    filldoc += '<tr><td class="tt_regLastRow" valign="top"><img src="'+pfad_images+'/box_grey_end_760px.gif" alt="" border="0"></td></tr>';
                    filldoc += '</table>';
                }

                filldoc += '<table class="tt_regAreaInhead" cellpadding="0" cellspacing="0" border="0"><tr>';
                filldoc += '    <td class="tt_reg_headLeft"><img src="'+pfad_images+'/blue_left_30px.gif" alt="" title="" border="0"></td>';
                filldoc += '    <td class="tt_reg_headMid1">';
                filldoc += '        <div class="tt_regtophead tt_font3b" title="'+parts_2[0]+'">';
                if(parts_2[1] < 40000 && nurflug!=1){

                    filldoc += '<a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+', \''+this_udfRegionen+'\',\''+showRegionName+'\',\''+countrycode+'\');return false;" class="tt_aufrufregion" '+str_glhotelTitel+'>'+tt_ausg_tmp_reg+'</a>';
                }
                else{
                    filldoc += tt_ausg_tmp_reg;
                }
                filldoc += '        </div>';
                filldoc += '    </td>';
                filldoc += '    <td class="tt_reg_headMid2">';
                filldoc += '        <div class="tt_regtophead2">';
                filldoc += '        </div>';
                filldoc += '    </td>';
                filldoc += '    <td class="tt_reg_headRight"><img src="'+pfad_images+'/blue_right_30px.gif" alt="" title="" border="0"></td>';
                filldoc += '</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];
                }

                filldoc += '<table class="tt_regAreaIn tt_regAreaInBack" cellpadding="0" cellspacing="0" border="0"><tr>';
                filldoc += '    <td class="tt_padright2 '+rowTopPad+' tt_padbot" style="padding-left:13px;" valign="top">';

                filldoc += '    <table class="tt_reg_ZielBg" cellpadding="0" cellspacing="0" border="0"><tr>';
                filldoc += '        <td class="tt_reg_colAa">';
                var dfr=parts_2[5];
                filldoc += '            <div>';
				filldoc += '                <div class="tt_regLine"><img src="/kunden_parameter/'+ordner_name+'/ibe_v2/images/dataimg/'+dfr+'.jpg" width="75" height="55" border="0" alt=""></div>';
                filldoc += '            </div>';
                filldoc += '        </td>';
                filldoc += '        <td class="tt_reg_colA">';
                filldoc += '            <div class="tt_padleft2">';
                filldoc += '                <div class="tt_regLine" title="'+parts_2[0]+'"><a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+',\'\',\''+showRegionName+' - '+showZielName+'\',\''+countrycode+'\');return false;" class="tt_aufrufziel" '+str_glhotelTitel+'>'+tmp_Ziel+'</a></div>';
				/*
                if(parts_2[3]!=999){
                    filldoc += '                <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\');return false;" class="tt_aufrufziel3" '+str_glhotelTitel+'>En savoir plus sur '+tmp_Ziel+'</a></div>';
                }
                else{
                    filldoc += '<div class="tt_regLine">&nbsp;</div>';
                }
				*/
				filldoc += '<div class="tt_regLine"></div>';
                filldoc += '            </div>';
                filldoc += '        </td>';
                filldoc += '        <td class="tt_reg_colB">';
                filldoc += '            <div class="tt_padleft2">';
                filldoc += '            <table cellspacing="0" cellpadding="0" border="0"><tr><td nowrap align="left">';
                if(parts_2[7]!=""){
                    filldoc += '            <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]!=""){
                    filldoc += '            <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>';
                }
                filldoc += '            </td></tr></table>';
                filldoc += '            </div>';
                filldoc += '        </td>';
                filldoc += '        <td class="tt_reg_colC">';
                if(nurflug!=1){
                filldoc += '            <div class="tt_padleft2">';
                var showHotelNr = ' hôtels';
                if(parts_2[2]=="1"){
                    showHotelNr = ' hôtel';
                }
                filldoc += '                <div class="tt_regLine"><a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+',\'\',\''+showRegionName+' - '+showZielName+'\',\''+countrycode+'\');return false;" class="tt_aufrufziel2">'+parts_2[2]+showHotelNr+'</a></div>';
                filldoc += '                <div class="tt_regLine"><a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+',\'\',\''+showRegionName+' - '+showZielName+'\',\''+countrycode+'\');return false;" class="tt_aufrufziel3">voir la sélection</a></div>';
                filldoc += '            </div>';
                }
                else{
                filldoc += '            <div class="tt_padleft2">&nbsp;';
                filldoc += '            </div>';
                }
                filldoc += '        </td>';
                filldoc += '        <td class="tt_reg_colD">';
                filldoc += '            <div class="tt_padright2" onClick="s_hliste('+parts_2[1]+',\'\',\''+showRegionName+' - '+showZielName+'\',\''+countrycode+'\');return false;" style="cursor:pointer;text-align:right;">';
                filldoc += '                <table cellpadding="0" cellspacing="0" border="0" align="right"><tr>';
                filldoc += '                    <td valign="bottom"><div class="tt_font7">à partir de</div><a href="javascript:void(0);" onClick="s_hliste('+parts_2[1]+',\'\',\''+showRegionName+' - '+showZielName+'\',\''+countrycode+'\');return false;" class="tt_reglpreis">'+parts_2[4]+'</a></td>';
                filldoc += '                    <td valign="bottom"><span class="tt_font11b">&euro;</span>&nbsp;<span class="tt_font14">TTC</span></td>';
                filldoc += '                </tr>';
                filldoc += '                <tr><td colspan="2" ><div class="tt_font7">par personne</div></td></tr>';
                filldoc += '                </table>';
                filldoc += '            </div>';
                filldoc += '        </td>';
                filldoc += '    </tr></table>';

                filldoc += '    </td>';
                filldoc += '</tr>';
                irt=0;
            }
        }//top treffer ausgabe
    }//for

	// No offer at all - No top, no alternate
    if(n_ctop==0 && n_calt==0) {
        filldoc += '<table class="tt_regAreaInhead" cellpadding="0" cellspacing="0" border="0"><tr>';
        filldoc += '    <td class="tt_reg_headLeft"><img src="'+pfad_images+'/blue_left_30px.gif" alt="" title="" border="0"></td>';
        filldoc += '    <td class="tt_reg_headMid"><img src="'+pfad_images+'/spacer.gif" alt="" border="0" width="730" height="30"></td>';
        filldoc += '    <td class="tt_reg_headRight"><img src="'+pfad_images+'/blue_right_30px.gif" alt="" title="" border="0"></td>';
        filldoc += '</tr></table>';
        filldoc += '<table class="tt_regAreaIn tt_regAreaInBack" cellpadding="0" cellspacing="0" border="0"><tr>';
        filldoc += '    <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>';
        filldoc += '</tr></table>';
        filldoc += '<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0">';
        filldoc += '<tr><td class="tt_regLastRow" valign="top"><img src="'+pfad_images+'/box_grey_end_760px.gif" alt="" border="0"></td></tr>';
        filldoc += '</table>';
    }
    else {
        filldoc += '</table>';
        filldoc += '<table class="tt_regAreaIn" cellpadding="0" cellspacing="0" border="0">';
        filldoc += '<tr><td class="tt_regLastRow" valign="top"><img src="'+pfad_images+'/box_grey_end_760px.gif" alt="" border="0"></td></tr>';
        filldoc += '</table>';
    }
	return filldoc;
}

/* 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+'/');
            }
    }

}