	function zur_suche(){
        var showQ = document.forms.bengine.showQuick2.value;
        if(ibe_online == 1){
            window.location.href = 'http://www.ferienwelt.de/'+ts_id+uebergabe.replace(/index.php\?/, "&")+'&showQuick2='+showQ+'&showresult=2';
        }
        else{
            window.location.href=uebergabe+'&showresult=2&showQuick2='+showQ;
        }
    }

    //___________________________________________________________________________________
    
    function zurueck_suche(showresult){
        window.location.href=uebergabe_zursuche+'&showresult='+showresult;
    }
    
    //___________________________________________________________________________________
    
    function zum_zielgebiet(){
        var showQ = document.forms.bengine.showQuick2.value;
        window.location.href=uebergabe+'&showQuick2='+showQ+'&detail=zielgebiet&showresult=1';
    }
    
    //___________________________________________________________________________________
    
    function s_termine(kenner_id){
        var showQ = document.forms.bengine.showQuick2.value;
		window.location.href=uebergabe+'&IFF='+regionen_2[kenner_id].IFF_e+'&showQuick2='+showQ+'&zielgebiets_kenner='+regionen_2[kenner_id].zielgebiets_kenner+'&detail=termine&showresult='+regionen_2[kenner_id].showresult+'&startposition_hotel='+regionen_2[kenner_id].startposition;
    }
    
	function getTeminLink(kenner_id) {
		var showQ = document.forms.bengine.showQuick2.value;
		return uebergabeHib+'&IFF='+regionen_2[kenner_id].IFF_e+'&showQuick2='+showQ+'&zielgebiets_kenner='+regionen_2[kenner_id].zielgebiets_kenner+'&detail=termine&showresult='+regionen_2[kenner_id].showresult+'&startposition_hotel='+regionen_2[kenner_id].startposition
	}
    //___________________________________________________________________________________
    
    function skippen(zaehler,sortierung){
        var showQ = document.forms.bengine.showQuick2.value;
        window.location.href=uebergabe+'&sortierung='+sortierung+'&showQuick2='+showQ+'&detail=hotel&startposition='+zaehler+'&zielgebiets_kenner='+regionen_2[0].zielgebiets_kenner+'&showresult='+regionen_2[0].showresult;
    }    
    
    //___________________________________________________________________________________
    
    function ortsucher(ort,sortierung){
        var showQ = document.forms.bengine.showQuick2.value;
        window.location.href=uebergabe+'&sortierung='+sortierung+'&showQuick2='+showQ+'&detail=hotel&startposition=0&zielgebiets_kenner='+regionen_2[0].zielgebiets_kenner+'&showresult='+regionen_2[0].showresult+'&s_ort='+escape(ort);
    }    
    
    //___________________________________________________________________________________
    
    function horder(sortierung){
        var showQ = document.forms.bengine.showQuick2.value;
        window.location.href=uebergabe+'&sortierung='+sortierung+'&showQuick2='+showQ+'&detail=hotel&startposition=0&zielgebiets_kenner='+regionen_2[0].zielgebiets_kenner+'&showresult='+regionen_2[0].showresult;
    } 
    
    //___________________________________________________________________________________
    
    function handleHBWIno(i, show){
        if(i < 8){
            if(document.getElementById('showhbwinfo'+(i+1)))
                document.getElementById('showhbwinfo'+(i+1)).style.display = show == 1 ? 'none' : 'block';
            if(document.getElementById('showhbwinfo'+(i+2)))
                document.getElementById('showhbwinfo'+(i+2)).style.display = show == 1 ? 'none' : 'block';    
        }
    }
    
    //___________________________________________________________________________________
     
    function MakeStars(nStars,pfad_images){
        var strStars="";
        while(nStars>0){
            strStars+='<img src="'+pfad_images+'/'+((nStars>5)?'1stern':'stern_halb')+'.gif" border="0">';
            nStars-=10;
        }
        return strStars;
    }    
    
    //___________________________________________________________________________________
    
    image_array = new Array();
    image_array[0] = new Image();
    image_array[0].src = '/kunden_parameter/ferienwelt2/ibe_v2/images/preis_big.gif';
    image_array[1] = new Image();
    image_array[1].src = '/kunden_parameter/ferienwelt2/ibe_v2/images/preis_big_over.gif';
    
	// Pool für die Hoteldaten für die Infobox
    var hibDataPool = [];
	var hibGeneralData;
	
    function s_hotel_tabelle(pfad_images,nuralt){
       var n_AltFlag=0;
       var n_TopFlag=0;
       if(regionen_2.length <= 0) {}
       else{
            var ibeItem = regionen_2[0];
			hibGeneralData = {
				kenner_nav: '1|1|1|1|1|0|0|0|1|0|0|1|1',
				callingPage: 'hotel'
			}
            for(i=0;i<regionen_2.length;i++){
				// Hoteldaten für die Infobox sammeln
				var deeplink = getTeminLink(i);
				var ibeItem = regionen_2[i];
	            var hibItem = {
	                price: ibeItem.preis_e,
	                iff: ibeItem.IFF_e,
					termin: ibeItem.Termin_e,
                    laenderRefId: ibeItem.Laender_Ref_ID_e,
                    zgk: ibeItem.zielgebiets_kenner,
					deeplink: deeplink
	            };
	            hibDataPool[i] = hibItem;
				
                if(regionen_2[i].alternativ_hotel_e==0){
                    if(n_TopFlag==0){
                        n_TopFlag=1;
                    }
                }
                else{
                    if(n_AltFlag==0){
                        if(nuralt!=1){
                            document.write('<tr>');
                            document.write('    <td class="hottabheadALT" colspan="4">Alternative Angebote, die Ihren Urlaubswünschen nahe kommen</td>');
                            document.write('</tr>');
                            document.write('<tr>');
                            document.write('    <td colspan="4" class="hottdtrenner"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
                            document.write('</tr>');
                            n_AltFlag=1;
                        }                        
                    }
                }
    
                if(i==0){
                    if(nuralt==1){
                        document.write('<tr>');
                        document.write('    <td class="hottabheadALT" colspan="4">Alternative Angebote, die Ihren Urlaubswünschen nahe kommen</td>');
                        document.write('</tr>');
                        document.write('<tr>');
                        document.write('    <td colspan="4" class="hottdtrenner"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
                        document.write('</tr>');
                        n_AltFlag=1;
                    }
                }
                document.write('<tr id="bgo_'+i+'" class="hottrsub" onmouseover="this.style.backgroundColor=\'#F0F7FE\';if(document.getElementById(\'bgu_'+i+'\')) document.getElementById(\'bgu_'+i+'\').style.backgroundColor=\'#F0F7FE\';" onmouseout="this.style.backgroundColor=\'#ffffff\';if(document.getElementById(\'bgu_'+i+'\')) document.getElementById(\'bgu_'+i+'\').style.backgroundColor=\'#ffffff\';">');
                //--- Thumbnail ---------------------------
                document.write('    <td '+(regionen_2[i].hotelattribut & 1 || regionen_2[i].hotelattribut & 2 || regionen_2[i].hotelattribut & 4 || regionen_2[i].hotelattribut & 8 ? 'rowspan="2"' : '')+' class="hottdUL"><a href="javascript:openPixellBox(' + i + ',this);" title="Hotel - und Leistungs - Beschreibungen aufrufen">')
                np=String(parseInt(regionen_2[i].IFF_e/5000)*5000);
                while(np.length<5)np="0"+np;
                document.write('<img src="'+imgservPfad+'/images/content/booking_thumbs/'+np+'/THB_999_H'+regionen_2[i].IFF_e+'.jpg" height="65" width="100" alt="Hotel - und Leistungs - Beschreibungen aufrufen" border="0">');
                document.write('</a></td>');    
                //--- Name, Sterne, Ort, Image ------------
                document.write('    <td class="hottdUM">');
                document.write('<span class="hottdhotelname"><a class="reglziel" href="javascript:openPixellBox(' + i + ',this);" title="Hotel - und Leistungs - Beschreibungen aufrufen">'+regionen_2[i].Hotel_Name_e+'</a></span>');
                document.write('<br>');
                nSterne=Math.floor(regionen_2[i].stern_e*10);
                document.write(MakeStars(nSterne,pfad_images));
                document.write('<br>'+regionen_2[i].ort_e + (regionen_2[i].ausgabe_reisezielplus != null ? regionen_2[i].ausgabe_reisezielplus : ''));
                document.write('    </td>');                
                document.write('    <td class="hottdUM2">');
                //--- Hotelbewertungen --------------------
                if(showHbw==1){
                    document.write('<img src="'+imgPfad+'/hotelinfo.gif" width="16" height="16" alt="" border="0" style="vertical-align:middle;margin-right:6px;">');
                    document.write('<a class="merkzttl" href="javascript:void(0);" onClick="javascript:openPixellBox(' + i + ',this);" title="Hotel - und Leistungs - Beschreibungen aufrufen">Hotelinfos &amp; Beschreibung</a>');
                    if(regionen_2[i].hbw_e!=''){
                        hbw_details=regionen_2[i].hbw_e.split("_");
                        if(hbw_details[0]>1){
                            str_hbw_txt='Hotelbewertungen der G&auml;ste.';
                        }
                        else{
                            str_hbw_txt='Hotelbewertung des Gastes.';
                        }
                        document.write('<br /><span class="hbwAnzahl">'+hbw_details[0]+'</span> '+str_hbw_txt+' <a class="hothbwlesen" href="javascript:void(0);" onClick="javascript:openPixellBox(' + i + ',this);" selectedtabindex="3" selectedtabindex="3" title="Hotelbewertungen anzeigen">Jetzt lesen</a><br>');
                        document.write('<img src="'+pfad_images+'/hbw/scale_small/small_scale_'+hbw_details[2]+'.gif" border="0" alt="Gesamtbewertung" title="Gesamtbewertung '+hbw_details[2].substring(0,1)+'.'+hbw_details[2].substring(1,2)+' von 6" style="vertical-align:middle;margin:1px 6px 1px 0;"><span class="hbwScaletxt">'+hbw_details[2].substring(0,1)+'.'+hbw_details[2].substring(1,2)+'</span>');
                        if(hbw_details[0]>1){
                            document.write('&nbsp; | &nbsp;Weiterempfehlung <span class="hbwEmpfehlung">'+hbw_details[1]/10+'%</span>');
                        }
                    }
                    else{
                        //document.write('<br />Es liegt noch keine<br />Hotelbewertung der G&auml;ste vor.<a href="javascript:void(0);" onmouseover="Tip(hbwTt_infotext,BGIMG,hbwTt_BGIMG,BGCOLOR,hbwTt_BGCOLOR,BORDERWIDTH,hbwTt_BORDERWIDTH,WIDTH,hbwTt_WIDTH,PADDING,hbwTt_PADDING,FONTSIZE,hbwTt_FONTSIZE,FONTFACE,hbwTt_FONTFACE,FONTCOLOR,hbwTt_FONTCOLOR);"><img src="'+pfad_images+'/hbw/info_hotelbewertung.gif" style="vertical-align:middle;margin:0;" alt="" border="0"></a></a>');
                        document.write('<div>Es liegt noch keine Hotelbewertung</div><div style="float:left;">der G&auml;ste vor.&nbsp;&nbsp;</div>');
                        document.write('<div style=" position: relative; float: left; width: 14px; margin: 1px 0 0 0;">');
                        if(i == 8 || i == 9){
                            document.write('<div id="tt_qs_hbwinfo_bubble'+i+'" style="position: absolute; top: -200px; left: -36px; width: 326px; height: 200px; background-image: url(\'/kunden_parameter/ferienwelt2/ibe_v2/images/bubble/ganz_text_hbw.png\'); display: none; z-index: '+((4+i)*2)+'" class="iepngfix"></div><div id="showhbwinfo'+i+'"><img src="'+imgPfad+'/info_kl.gif" style="vertical-align: middle;" alt="" border="0" onmouseover="javascript:this.src=\''+imgPfad+'/info_kl_over.gif\';document.getElementById(\'tt_qs_hbwinfo_bubble'+i+'\').style.display=\'block\';handleHBWIno('+i+', 1);" onmouseout="javascript:this.src=\''+pfad_images+'/info_kl.gif\';document.getElementById(\'tt_qs_hbwinfo_bubble'+i+'\').style.display=\'none\';handleHBWIno('+i+', 0);"></div></div>');
                        }
                        else{
                            document.write('<div id="tt_qs_hbwinfo_bubble'+i+'" style="position: absolute; top: 18px; left: -36px; width: 326px; height: 200px; background-image: url(\'/kunden_parameter/ferienwelt2/ibe_v2/images/bubble/ganz_text_hbw_topdown.png\'); display: none; z-index: '+((4+i)*2)+'" class="iepngfix"></div><div id="showhbwinfo'+i+'"><img src="'+imgPfad+'/info_kl.gif" style="vertical-align: middle;" alt="" border="0" onmouseover="javascript:this.src=\''+imgPfad+'/info_kl_over.gif\';document.getElementById(\'tt_qs_hbwinfo_bubble'+i+'\').style.display=\'block\';handleHBWIno('+i+', 1);" onmouseout="javascript:this.src=\''+pfad_images+'/info_kl.gif\';document.getElementById(\'tt_qs_hbwinfo_bubble'+i+'\').style.display=\'none\';handleHBWIno('+i+', 0);"></div></div>');
                        }
                        document.write('<div class="clearboth"><img src="/images/spacer.gif" alt="" border="0" width="0" height="0"></div>');
                    }
                }
                else{
                    document.write('&nbsp;');
                }
                document.write('    </td>');
                //--- Preis, Fruehbucher/Kinderermaessigung
                document.write('    <td class="hottabpreis">');
                document.write('<div class="div_hottabpreis" onclick="javascript:s_termine('+i+');" onmouseover="this.style.cursor = \'pointer\';this.style.backgroundPosition=\'0 0\'" onmouseout="this.style.cursor = \'default\';this.style.backgroundPosition=\'0 -41px\'">');
                document.write('<div class="div_hottabpreisleft">ab &euro;</div>');
                document.write('<div class="div_hottabpreisright"><a href="javascript:s_termine('+i+');" class="hotlpreis">'+regionen_2[i].preis_e+',-</a></div>');
                document.write('<div class="div_hottabpreispfeil"><a href="javascript:s_termine('+i+');" class="hotlpreis"><img src="/images/spacer.gif" alt="" border="0" width="24" height="24" style="margin: 8px 0 0 3px;"></a></div>');
                document.write('</div>');
                document.write('<div class="clearboth"><img src="/images/spacer.gif" alt="" border="0" width="0" height="0"></div>');
                if(regionen_2[i].hotelattribut & 131072 || regionen_2[i].hotelattribut & 65536){
                    document.write('<div class="fruehtx">');
                if(regionen_2[i].hotelattribut & 131072)
                    document.write('Fr&uuml;hbucherrabatt'+(regionen_2[i].hotelattribut & 65536 ? '<br />' : ''));
                if(regionen_2[i].hotelattribut & 65536)
                    document.write('Kindererm&auml;&szlig;igung');
                    document.write('</div>');
                }
                document.write('    </td>');
                document.write('</tr>');
                //--- Attribute ---------------------------
                if(regionen_2[i].hotelattribut & 1 || regionen_2[i].hotelattribut & 2 || regionen_2[i].hotelattribut & 4 || regionen_2[i].hotelattribut & 8){
                    document.write('<tr id="bgu_'+i+'" class="hottrsub"  onmouseover="this.style.backgroundColor=\'#F0F7FE\';if(document.getElementById(\'bgo_'+i+'\')) document.getElementById(\'bgo_'+i+'\').style.backgroundColor=\'#F0F7FE\';" onmouseout="this.style.backgroundColor=\'#ffffff\';if(document.getElementById(\'bgo_'+i+'\')) document.getElementById(\'bgo_'+i+'\').style.backgroundColor=\'#ffffff\';">');
                    document.write('    <td colspan="3" class="hottdAT">');
                    var str_Hattbut="";
                    if(regionen_2[i].hotelattribut & 1)
                        str_Hattbut="Familienfreundlich"+(regionen_2[i].hotelattribut & 2 || regionen_2[i].hotelattribut & 4 || regionen_2[i].hotelattribut & 8 ? ', ' : '');
                    if(regionen_2[i].hotelattribut & 2)
                        str_Hattbut+="Direkte Strandlage"+(regionen_2[i].hotelattribut & 4 || regionen_2[i].hotelattribut & 8 ? ', ' : '');
                    if(regionen_2[i].hotelattribut & 4)
                        str_Hattbut+="Großes Sportangebot"+(regionen_2[i].hotelattribut & 8 ? ', ' : '');
                    if(regionen_2[i].hotelattribut & 8)
                        str_Hattbut+="Wellness-Fitness";
                    document.write('Angebots-Details: '+str_Hattbut);
                    document.write('    </td>');
                    document.write('</tr>');                        
                }
                if(i < regionen_2.length - 1){
                    document.write('<tr>');
                    document.write('    <td colspan="4" class="hottdtrenner"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>');
                    document.write('</tr>');
                }
            }
        }
    }    
    
    //___________________________________________________________________________________
    
    function pageSkip(seiten,apage,sortierung){
        for (t=1;t<=seiten;t++){
            zaehler=(t-1)*10;
            if(t!=apage)
               document.write('<td width="32"><div class="pageinaktive" onmouseover="this.style.cursor = \'pointer\';this.style.backgroundColor = \'#fff\';document.getElementById(\'hotl_'+t+'\').style.color = \'#1a6fff\';this.style.border = \'1px solid #1a6fff\'" onmouseout="this.style.cursor = \'default\';this.style.backgroundColor = \'#EDEDEF\';document.getElementById(\'hotl_'+t+'\').style.color = \'#52A8FE\';this.style.border = \'1px solid #52A8FE\'" onclick="javascript:skippen('+zaehler+',\''+sortierung+'\');"><a id="hotl_'+t+'" class="pageskipl" href="javascript:skippen('+zaehler+',\''+sortierung+'\');" title="Angebote der Seite '+t+' aufrufen">'+t+'</a></div></td>');
            else
                document.write('<td width="32"><div class="pageaktive">'+t+'</div></td>');
        }
    }    
    
    //___________________________________________________________________________________
    
    function fillOrte(s_ort){
        for (t=0;t<anzahl_treffer_orte;t++){
            if(s_ort!=escape(Orte[t]))
                document.write('<option value="'+Orte[t]+'">'+Orte[t]+'</option>');
            else
                document.write('<option value="'+Orte[t]+'" SELECTED>'+Orte[t]+'</option>');
        }
    }
