    //dom funktion
    function $(id){    
        return document.getElementById(id) || null;
    }

    //________________________________________________________________

    function zur_suche(){
        window.location.href=uebergabe+'&showresult=2';
    }

    //________________________________________________________________

    function zum_zielgebiet(){
        window.location.href=uebergabe+'&detail=zielgebiet&showresult=1';
    }

    //________________________________________________________________

    function s_termine(kenner_id){
        if(document.bengine.refresh.value=='1'){
            var errStr="Sie haben Ihre Suchparameter geändert.\nBitte klicken Sie auf 'aktualisieren' zum Aktualisieren der Ergebnisliste!"
            alert(errStr);
            return;
        }
        
        part=regionen_2[kenner_id].split('#');
        window.location.href=uebergabe+'&IFF='+part[2]+'&zielgebiets_kenner='+part[10]+'&detail=termine&showresult='+part[11]+'&startposition_hotel='+part[12];
    }

    //________________________________________________________________

    function s_termine_topHotel(kenner_id){
        if(document.bengine.refresh.value=='1'){
            var errStr="Sie haben Ihre Suchparameter geändert.\nBitte klicken Sie auf 'aktualisieren' zum Aktualisieren der Ergebnisliste!"
            alert(errStr);
            return;
        }
        
        part = topHotels[kenner_id].split('#');
        window.location.href = uebergabe_topHotel+part[20]+'&IFF='+part[2]+'&detail=termine&showresult='+part[12]+'&startposition_hotel='+part[13];
    }
    
    //________________________________________________________________
    
    function skippen(zaehler,sortierung){
        part=regionen_2[0].split('#');
        window.location.href=uebergabe+'&sortierung='+sortierung+'&detail=hotel&startposition='+zaehler+'&zielgebiets_kenner='+part[10]+'&showresult='+part[11];
    }

    //________________________________________________________________

    function ortsucher(ort,sortierung){
        part=regionen_2[0].split('#');
        window.location.href=uebergabe+'&sortierung='+sortierung+'&detail=hotel&startposition=0&zielgebiets_kenner='+part[10]+'&showresult='+part[11]+'&s_ort='+escape(ort);
    }

    //________________________________________________________________

    function horder(sortierung){
        part=regionen_2[0].split('#');
        window.location.href=uebergabe+'&sortierung='+sortierung+'&detail=hotel&startposition=0&zielgebiets_kenner='+part[10]+'&showresult='+part[11];
    }
    
    //________________________________________________________________

    function MakeStars(nStars,pfad_images){
        var strStars="";
        while(nStars>0){
            strStars+='<img src="'+pfad_images+'/'+((nStars>5)?'1_stern':'stern_halb')+'.gif" border="0">';
            nStars-=10;
        }
        return strStars;
    }

    //________________________________________________________________
    
    //id der aktuell geöffneten HIB
    var isOpenScroll = '-1';
    //hier werden Daten für die Scrollboxen gespeichert
    var scrollCache = new Array();
    
    //________________________________________________________________
    
    function overFirstBox(imgId){
        if ($('scrollLine_' + imgId).className != 'tt_HotResultScroll') {
            $('scrollLine_' + imgId).className = 'tt_HotResultAct';
        }
        
        if ($('btnTxt_' + imgId)) {
            $('btnTxt_' + imgId).style.visibility = 'visible';
            addClass($('btnTable_' + imgId), 'x-btn-rowover-imagemap');
        }
        
        if ($('ttHotelClip' + imgId)) {
            $('ttHotelClip' + imgId).className = 'ttHotelClipActive';
        }
    }
    
    //________________________________________________________________
    
    function outFirstBox(imgId){
        if ($('scrollLine_' + imgId).className != 'tt_HotResultScroll') {
            if ($('tt_HotTrenner' + (imgId - 1))){
                $('tt_HotTrenner' + (imgId - 1)).style.backgroundColor = '#DDDDDD';
            }
            if ($('tt_HotTrenner' + imgId)) {
                $('tt_HotTrenner' + imgId).style.backgroundColor = '#DDDDDD';
            }
            $('scrollLine_'+imgId).className = 'tt_HotResult';
            if ($('btnTxt_' + imgId)) {
                //$('btnTxt_' + imgId).style.visibility = 'hidden';
                $('btnTable_' + imgId).className = 'x-btn-text-icon';
            }
        }
        
        if ($('ttHotelClip' + imgId) && isOpenScroll != imgId) {
            $('ttHotelClip' + imgId).className = 'ttHotelClip';
        }
    }
    
    function imgActScroll(imgId) {
        $('scrollLine_'+imgId).className = 'tt_HotResultScroll';   
        if ($('tt_HotTrenner' + (imgId - 1))) {
            $('tt_HotTrenner' + (imgId - 1)).style.backgroundColor = '#fff';
        }
        if ($('tt_HotTrenner' + imgId)) {
            $('tt_HotTrenner' + imgId).style.backgroundColor = '#fff';
        } 
    }
    
    //________________________________________________________________
    
    //Special-Button: Aktionen bei Rollover
    function addClass(element, value) {
        if (!element.className) {
            element.className = value;
        } else {
            var newClassName = element.className;
            newClassName += " ";
            newClassName += value;
            element.className = newClassName;
        }
    }
    
    //________________________________________________________________
    
    //Special-Button: Mouseover
    function overBtnTable(rowId) {
        $('btnTxt_' + rowId).style.color = '#3B4148';
        $('btnTxt_' + rowId).style.visibility = 'visible';
        addClass($('btnTable_' + rowId), 'x-btn-over-imagemap');
    }
    
    //________________________________________________________________
    
    //Special-Button: Mouseout
    function outBtnTable(rowId) {        
        $('btnTxt_' + rowId).style.color = '#3B4148';
        $('btnTxt_' + rowId).style.visibility = 'visible';
        $('btnTable_'+rowId).className = 'x-btn-rowover-imagemap';        
    }
    
    //________________________________________________________________
    
    //Special-Button: Mouseover mit Exit-Layout
    function overBtnTableClose(rowId) {
        $('btnTxt_' + rowId).style.visibility = 'visible';
        $('btnTxt_'+rowId).style.color = '#FFF';
        //$('btnTxt_' + rowId).innerHTML = 'Hotelinfos schlie&szlig;en';
        addClass($('btnTable_' + rowId), 'x-btn-overclose-imagemap');
    }
    //Special-Button: Mouseout
    function offBtnTable(rowId)
    {
        $('btnTxt_'+rowId).style.color = '#3B4148';
        //$('btnTxt_'+rowId).style.visibility = 'hidden';
        $('btnTable_'+rowId).className = 'x-btn-text-icon';    
    }
    
    //________________________________________________________________
    
    //Special-Button: Table bauen
    function genSpecBtnTable(rowId, isScroll) {
        if (typeof(isScroll) == 'undefined'){
            var isScroll = 0;
        }
        var txtBtn = 'Hotelinfos anzeigen';        
        thisHTML  = '<table id="btnTable_' + rowId + '" class="x-btn-text-icon" style="width: auto;" border="0" cellpadding="0" cellspacing="0"';
        if (isScroll == 0){
            thisHTML+= ' onmouseover="javascript:overBtnTable(\''+rowId+'\');" onmouseout="javascript:outBtnTable(\''+rowId+'\');"';
        }
        else{
            txtBtn = 'Hotelinfos schließen';
        }        
        thisHTML += '>';      
        thisHTML += '<tr><td class="x-btn-left-imagemap"></td>';
        thisHTML += '<td class="x-btn-center-imagemap">';
        thisHTML += '<div id="btnTxt_' + rowId + '" class="x-btn-text" style="visibility:block;">'+txtBtn+'</div>';
        thisHTML += '</td><td class="x-btn-right-imagemap" style="width: 10px;"></td></tr>';
        thisHTML += '</table>';
        
        return thisHTML;
    }    
    
    //________________________________________________________________
        
    //Mouseout Hotelblock
    function imgInact(imgId) {
        $('scrollLine_' + imgId).style.backgroundColor = "#FFFFFF";
        $('scrollLine_' + imgId).style.borderBottom = "1px solid #DDDDDD";
        $('btnTxt_' + imgId).style.visibility = 'hidden';
        $('btnTable_' + imgId).className = 'x-btn-text-icon';         
    }
        
    //________________________________________________________________

    // Grosses Hotelthumb
    function buildBigThumb(np, img) {
        thisHTML  = '<table cellspacing="0" cellpadding="0" border="0">';
        thisHTML += ' <tr>';
        thisHTML += '     <td class="tt_HotThumbBigBorderTopL iepngfix"><img src="/images/spacer.gif" alt="" border="0" width="9" height="9"></td>';
        thisHTML += '     <td class="tt_HotThumbBigBorderTop iepngfix"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>';
        thisHTML += '     <td class="tt_HotThumbBigBorderTopR iepngfix"><img src="/images/spacer.gif" alt="" border="0" width="9" height="9"></td>';
        thisHTML += ' </tr>';
        thisHTML += ' <tr>';
        thisHTML += '     <td class="tt_HotThumbBigBorderLeft iepngfix">';
        thisHTML += '<div style="position: relative;">';
        thisHTML += '<div class="tt_HotThumbBigZipfel iepngfix">';
        thisHTML += '<img src="/images/spacer.gif" alt="" border="0" width="10" height="8">';
        thisHTML += '</div>';
        thisHTML += '</div>';
        thisHTML += '     </td>';
        thisHTML += '     <td><img src="' + imgservPfad + '/images/content/booking_thumbs_gr/' + np + '/THB_999_H' + img + '.jpg" alt="" /></td>';
        thisHTML += '     <td class="tt_HotThumbBigBorderRight iepngfix"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>';
        thisHTML += ' </tr>';
        thisHTML += ' <tr>';
        thisHTML += '     <td class="tt_HotThumbBigBorderBottomL iepngfix"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>';
        thisHTML += '     <td class="tt_HotThumbBigBorderBottom iepngfix"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>';
        thisHTML += '     <td class="tt_HotThumbBigBorderBottomR iepngfix"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>';
        thisHTML += ' </tr>';
        thisHTML += '</table>';
        return thisHTML;
    }
    
    //________________________________________________________________

    // Positionierung und Anzeigen des grossen Hotelthumbs
    function showBigThumb(rowId, np, item) {
        if($('tt_HotThumbBig_' + rowId) == null || typeof($('tt_HotThumbBig_' + rowId)) == 'undefined') {
            var thumbBigDiv = document.createElement("div");
            var thumbBigDiv_id = document.createAttribute("id");
            thumbBigDiv_id.nodeValue = "tt_HotThumbBig_" + rowId;
            thumbBigDiv.setAttributeNode(thumbBigDiv_id);
            var thumbBigDiv_class = document.createAttribute("class");
            thumbBigDiv_class.nodeValue = "tt_HotThumbBig iepngfix";
            thumbBigDiv.setAttributeNode(thumbBigDiv_class);
            document.body.appendChild(thumbBigDiv);
        }
        
        $('tt_HotThumbBig_' + rowId).innerHTML = buildBigThumb(np, item);
        
        var pos = getPosition($('tt_HotThumb' + rowId));
        
        $('tt_HotThumbBig_' + rowId).style.left = (pos.x  + 174) + 'px';
        $('tt_HotThumbBig_' + rowId).style.top  = (pos.y - 20) + 'px';
        
        $('tt_HotThumbBig_' + rowId).style.display = 'block';
    }
    
    //________________________________________________________________
    
    function hideBigThumb(rowId) {
        if($('tt_HotThumbBig_' + rowId)) {
            $('tt_HotThumbBig_' + rowId).style.display = 'none';
        }
    }
    
    //________________________________________________________________
    
    var ttGlobalParts = new Array();
    function s_hotel_tabelle(nuralt){
        if(regionen_2.length <= 0) {}
        else{
            var n_AltFlag = 0;
            var n_TopFlag = 0;
            var bgColClass;
            
            var strAusgabe = '';
            strAusgabe += '<div class="tt_HotTop'+(typeof(uebergabe_topHotel) != 'undefined' ? '2' : '')+'">';
            if (zielgebiet_ausgabe.length > 63) {
                var zielAusgabe = zielgebiet_ausgabe.substr(0,60) + '...';
            } else {
                var zielAusgabe = zielgebiet_ausgabe;
            }
            strAusgabe += ' <div class="tt_HotTopDestination">'+zielAusgabe+' - Hotels</div>';
            strAusgabe += ' <div class="tt_HotTopPrice">Preis pro Person</div>';
            strAusgabe += '</div>';
                
            for(i = 0; i < regionen_2.length; i++){
                parts = regionen_2[i].split("#");
                if(parts[9] == 0){
                    if(n_TopFlag == 0){
                        n_TopFlag = 1;
                    }
                }
                else{
                    if(n_AltFlag == 0){
                        if(nuralt != 1){
                            n_AltFlag = 1;
                        }
                        var styleAlternatives = '-1px 0 0 0;';
                        if ((i + nrTopHotels) == 0 ) {
                            styleAlternatives = '8px 0 0 0;';
                        }
                        strAusgabe += '<div class="tt_HotAlternatives" style="margin : ' + styleAlternatives + '">Alternative Reiseangebote, die Ihren W&uuml;nschen nahe kommen:</div>';
                        n_AltFlag = 1;
                    }
                }
                
                //---Veranstalter Logo
                var va_dat=parts[20].split(";");
                var va_txt=va_dat[1];
                var va_bild;
                var va_logo=va_dat[0].split("-");
                if (va_logo[1]){
                    va_bild=KID+'-'+va_logo[0];
                }
                else {
                    va_bild=va_logo[0];
                }
                
                np = String(parseInt(parts[2] / 5000) * 5000);
                while(np.length < 5) np = "0"+np;
                
                scrollCache[(i + nrTopHotels)] = getWSdate(parts[13])+'#'+parts[2];
                
                strAusgabe += '<div class="tt_HotResult" id="scrollLine_' + (i + nrTopHotels) + '" onmouseover="overFirstBox(' + (i + nrTopHotels) + ');" onmouseout="outFirstBox(' + (i + nrTopHotels) + ');">';
                strAusgabe += '<div style="width: 648px; height: 5px;"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></div>';
                strAusgabe += '    <div id="tt_HotResultContent' + (i + nrTopHotels) + '" class="tt_HotResultContent">';
                
                strAusgabe += '    <div class="tt_HotThumbContainer">';
                
                //--- THUMBNAIL ----------------------------------------------------
                strAusgabe += '<div id="scrollTitleThumb_' + (i + nrTopHotels) + '">';
                strAusgabe += '    <div id="scrollThumbBox_' + (i + nrTopHotels) + '" onClick="navigate(\'idContent=' + (i + nrTopHotels) + '&prefix=2&time=' + getWSdate(parts[13]) + '&IFF=' + parts[2] + '\',\'scrollContentThumb_' + (i + nrTopHotels) + '\',\'\',\'reqAllHbs\'); imgActScroll(\''+ (i + nrTopHotels) +'\'); hideBigThumb(' + (i + nrTopHotels) + ');">';
                strAusgabe += '        <div id="tt_HotThumb' + (i + nrTopHotels) + '" class="tt_HotThumb">';
                strAusgabe += '<a href="javascript:void(0);" onmouseover="showBigThumb(' + (i + nrTopHotels) + ', \'' + np + '\', \'' + parts[2] + '\');" onmouseout="hideBigThumb(' + (i + nrTopHotels) + ');">';
                strAusgabe += '<img src="/tools/image.php?pfad='+imgservPfad+'/images/content/booking_thumbs_gr/' + np + '/THB_999_H'+parts[2]+'.jpg&b=170&h=114" width="170" height="114" alt="" border="0">';
                strAusgabe += '</a></div>';
                strAusgabe += '        </div>';
                strAusgabe += '    </div>';
                strAusgabe += '</div>';
                
                strAusgabe += '    <div class="tt_HotDataContainer">';
                
                //--- HOTELNAME | STERNE | PREIS -----------------------------------
                var hotelname = parts[6].length > 28 ? parts[6].substr(0, 26) + '...' : parts[6];
                
                nSterne=Math.floor(parts[4] * 10);
                if (parts[1].length > 3) {
                    parts[1] = parts[1].replace(/([0-9]*)([0-9]{3})/, "$1.$2");
                }
                if (parts[7] == '...') {
                    parts[7] = '';
                }
                
                strAusgabe += '        <div id="tt_HotHotel' + (i + nrTopHotels) + '" class="tt_HotHotel" style="cursor: pointer;" onClick="s_termine(' + i + ');">';
                strAusgabe += '            <div class="tt_HotHotelName" title="' + parts[6] + '">' + hotelname + '</div>';
                strAusgabe += '            <div class="tt_HotHotelStars">'+MakeStars(nSterne,imgPfad)+'</div>';
                strAusgabe += '            <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                strAusgabe += '            <div class="tt_HotHotelRegion">' + parts[7] + parts[8] + '</div>';
                strAusgabe += '        </div>';
                strAusgabe += '        <div id="tt_HotPrice' + (i + nrTopHotels) +'" class="tt_HotPrice">';
                strAusgabe += '            ab <a class="tt_HotPriceLink" href="javascript:s_termine(' + i + ');">' + parts[1] + ' &euro;</a>';
                strAusgabe += '            <a class="tt_HotPriceLinkImg" href="javascript:s_termine(' + i + ');"><img src="'+imgPfad+'/doppelpfeil_gruen.gif"></a>';
                strAusgabe +='         </div>';
                strAusgabe += '        <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                
                //--- TEASER-TEXT | INFO-BUTTON ------------------------------------
                strAusgabe += '        <div id="tt_HotData' + (i + nrTopHotels) + '" class="tt_HotData">';
                strAusgabe += '            <div class="tt_HotDataRel">';
                
                //--- GIATA-CLIPS -----------------------------------
                ttGlobalParts[i + nrTopHotels] = parts[21]; 
                
                if (parts[21] != '-1') {
                    strAusgabe += '            <div id="scrollTitleClip_' + (i + nrTopHotels) + '" class="scrollTitleClip">';
                    strAusgabe += '                <div id="scrollClipBox_' + (i + nrTopHotels) + '" class="scrollClipBox">';
                    strAusgabe += '<div class="ttHotelClip" id="ttHotelClip' + (i + nrTopHotels) + '" onclick="navigate(\'stars=' + (nSterne / 10) + '&idContent=' + (i + nrTopHotels) + '&prefix=4&time=' + getWSdate(parts[13]) + '&IFF=' + parts[2] + '\',\'scrollContentClip_' + (i + nrTopHotels) + '\',\'\',\'hibReqClip\'); imgActScroll(\'' + (i + nrTopHotels) + '\');">';
                    strAusgabe += '<img src="/images/spacer.gif" width="29" height="20" alt="" title="Hotel-Clip anzeigen" /></a>';
                    strAusgabe += '</div>';
                    strAusgabe += '                </div>';
                    strAusgabe += '            </div>';
                }
                
                strAusgabe += '                <div class="tt_HotResultTeaserTxt">' + parts[19] + '</div>';                
                strAusgabe += '                <div id="scrollTitle_' + (i + nrTopHotels) + '" class="boxTitle">';
                strAusgabe += '                    <div class="tt_HotResultInfoButton" onclick="navigate(\'stars=' + (nSterne / 10) + '&idContent=' + (i + nrTopHotels) + '&prefix=0&time=' + getWSdate(parts[13]) + '&IFF=' + parts[2] + '\',\'scrollContent_' + (i + nrTopHotels) + '\',\'\',\'reqAllHbs\'); imgActScroll(\'' + (i + nrTopHotels) + '\');">';                
                strAusgabe += '<div id="scrollSpecBtn_' + (i + nrTopHotels) + '">'+genSpecBtnTable((i + nrTopHotels))+'</div>';
                strAusgabe += '                    </div>';
                strAusgabe += '                </div>';                
                
                strAusgabe += '                <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                strAusgabe += '            </div>';
                strAusgabe += '        </div>';
                
                //--- HOTELBEWERTUNGEN ---------------------------------------------
                strAusgabe += '        <div id="tt_HotHBW' + (i + nrTopHotels) + '" class="tt_HotHBW">';
                var showHbw = 1;
                if (showHbw == 1) {
                    if (parts[17] != '') {
                        hbw_details = parts[17].split("_");
                        strAusgabe += '    <div class="tt_HotHBWBox">';
                        var classEmpfTxt = 'tt_HotHBWBottom';
                        if (parseInt(hbw_details[2].substring(0, 1)) >= 4) {
                            strAusgabe += '    <div class="tt_HotHBWHaken">&nbsp;</div>';
                        }
                        if (parseInt(hbw_details[1] / 10) >= 70) {
                            classEmpfTxt = 'tt_HotHBWBottomGreen';
                        }
                        strAusgabe += '        <div id="scrollTitleHbw_' + (i + nrTopHotels) + '"><div id="scrollHbwBox_' + (i + nrTopHotels) + '" class="tt_HotHBW_mainScrollBox" onclick="navigate(\'idContent=' + (i + nrTopHotels) + '&prefix=1&time=' + getWSdate(parts[13]) + '&IFF=' + parts[2] + '\',\'scrollContentHbw_' + (i + nrTopHotels) + '\',\'\',\'reqHbw\'); imgActScroll(\'' + (i + nrTopHotels) + '\');" title="Hotelbewertungen anzeigen">';
                        strAusgabe += '            <div class="tt_HotHBWTxt">Kundenbewertung (' + hbw_details[0] + ')</div>';
                        strAusgabe += '            <div class="tt_HotHBWScaleGif' + (browser == "0" ? '' : 'FF') + '"><img src="' + imgPfad + '/hbw/scale_small/small_scale_' + hbw_details[2] + '.gif" border="0" width="60" height="10" alt="Gesamtbewertung" title="Gesamtbewertung ' + hbw_details[2].substring(0,1) + '.' + hbw_details[2].substring(1,2) + ' von 6"></div>';
                        strAusgabe += '            <div class="tt_HotHBWPoints">' + hbw_details[2].substring(0,1) + '.' + hbw_details[2].substring(1,2) + ' </div>';
                        strAusgabe += '            <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                        if(hbw_details[0] > 1){
                            strAusgabe += '        <div class="' + classEmpfTxt + '"><span class="tt_HotHBWTxtSmall">Weiterempfehlung</span> <span class="tt_HotHBWTxtScale">' + parseInt(hbw_details[1] / 10) + '%</span></div>';
                        }
                        strAusgabe += '            <div class="tt_HotHBWTxtLink">jetzt lesen</div>';
                        strAusgabe += '            <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                        strAusgabe += '        </div></div>';
                        strAusgabe += '    </div>';
                    } else {
                        strAusgabe += '<span class="tt_hotNoVote">Es liegt noch keine<br />Hotelbewertung<br />der G&auml;ste vor.</span><!--<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="' + imgPfad + 'hbw/info_hotelbewertung.gif" alt="" border="0" style="vertical-align: middle;"></a>-->';
                    }
                }
                strAusgabe += '        </div>';
                
                //--- ATTRIBUTE ----------------------------------------------------
                strAusgabe += '        <div id="tt_HotAttr' + (i + nrTopHotels) + '" class="tt_HotAttr">';
                strAusgabe += '            <table class="tt_HotAttrTable" border="0" cellspacing="0" cellpadding="0">';
                strAusgabe += '                <tr>';
                strAusgabe += '                    <td class="tt_HotAttrTableTop">&nbsp;';
                var str_Hattbut1 = "";
                if (parts[14] & 1) {
                    str_Hattbut1 = 'Familie<br />';
                }
                if(parts[14] & 2) {
                    str_Hattbut1 += 'Direkte Strandlage<br />';
                }
                if(parts[14] & 4) {
                    str_Hattbut1 += 'Gro&szlig;es Sportangebot<br />';
                }
                if(parts[14] & 8) {
                    str_Hattbut1 += 'Wellness-Fitness';
                }
                
                if(str_Hattbut1 != '') {
                    strAusgabe += str_Hattbut1;
                }
                strAusgabe += '                    </td>';
                strAusgabe += '                </tr>';
                strAusgabe += '                <tr>';
                strAusgabe += '                    <td class="tt_HotAttrTableBottom">&nbsp;';
                var str_Hattbut2 = "";
                if(parts[14] & 65536)
                    str_Hattbut2 += 'Kindererm&auml;&szlig;igung';
                if(parts[14] & 131072)
                    str_Hattbut2 += '<br />Fr&uuml;hbucherangebot';
                    
                if(str_Hattbut2 != ''){
                    strAusgabe += '<span class="tt_HotAttrBottomTxt">' + str_Hattbut2 + '</span>';
                }
                strAusgabe += '                    </td>';
                strAusgabe += '                </tr>';
                strAusgabe += '            </table>';
                strAusgabe += '        </div>';
                strAusgabe += '        <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                strAusgabe += '    </div>';
                strAusgabe += '    <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                
                //--- BOX HIB CONTENT ----------------------------------------------
                strAusgabe += '        <div id="scrollContent_' + (i + nrTopHotels) + '" class="boxContent"></div>';
                strAusgabe += '        <div id="scrollContentBottom_' + (i + nrTopHotels) + '" class="boxContentBottom"><div id="scrollCloseLink_' + (i + nrTopHotels) + '" class="arrowUpLink"> </div></div>';
                
                //--- BOX HBW CONTENT ----------------------------------------------
                strAusgabe += '        <div id="scrollContentHbw_' + (i + nrTopHotels) + '" class="boxContent"></div>';
                strAusgabe += '        <div id="scrollContentBottomHbw_' + (i + nrTopHotels) + '" class="boxContentBottom"><div id="scrollCloseLinkHbw_' + (i + nrTopHotels) + '" class="arrowUpLink"> </div></div>';
                
                //--- BOX THUMB CONTENT --------------------------------------------
                strAusgabe += '        <div id="scrollContentThumb_' + (i + nrTopHotels) + '" class="boxContent"></div>';
                strAusgabe += '        <div id="scrollContentBottomThumb_' + (i + nrTopHotels) + '" class="boxContentBottom"><div id="scrollCloseLinkThumb_' + (i + nrTopHotels) + '" class="arrowUpLink"> </div></div>';
                
                //--- BOX CLIP CONTENT ---------------------------------------------
                strAusgabe += '        <div id="scrollContentClip_' + (i + nrTopHotels) + '" class="boxContent"></div>';
                strAusgabe += '        <div id="scrollContentBottomClip_' + (i + nrTopHotels) + '" class="boxContentBottom"><div id="scrollCloseLinkClip_' + (i + nrTopHotels) + '" class="arrowUpLink"> </div></div>';
                                
                //--- End Main DIV -------------------------------------------------
                strAusgabe += '    </div>';
                strAusgabe += '<div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                strAusgabe += '<div style="width: 650px; height: 5px;"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></div>';
                strAusgabe += '</div>';
                strAusgabe += '<div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                
                strAusgabe += '<div id="tt_HotTrenner' + (i + nrTopHotels) + '" class="tt_HotTrenner"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></div>';
            }
            document.write(strAusgabe);
        }
    }
    
    //________________________________________________________________
    
    var nrTopHotels = 0;
    var ttGlobalStoererTxtFlag = new Array();
    function s_topHotel(){        
        
        if(topHotels.length <= 0){}
        else{
            nrTopHotels = topHotels.length; 
            var n_AltFlag = 0; var n_TopFlag = 0;
            
            if(isIEold) {
                var imgageType = 'gif';
            } else {
                var imgageType = 'png';
            }
            
            var strAusgabe = '';
            strAusgabe += '<div class="tt_HotTop">';
            if (zielgebiet_ausgabe.length > 50) {
                var zielAusgabe = zielgebiet_ausgabe.substr(0,47) + '...';
            } else {
                var zielAusgabe = zielgebiet_ausgabe;
            }
            strAusgabe += ' <div class="tt_HotTopDestination">'+zielAusgabe+' - Hotelempfehlungen</div>';
            strAusgabe += ' <div class="tt_HotTopPrice">Preis pro Person</div>';
            strAusgabe += '</div>';
            
            for(i=0;i<topHotels.length;i++){
                parts=topHotels[i].split("#");                
                n_TopFlag = 1;                
                
                //---Veranstalter Logo
                var va_dat=parts[20].split(";");
                var va_txt=va_dat[1];
                var va_bild;
                var va_logo=va_dat[0].split("-");
                if (va_logo[1]){
                    va_bild=KID+'-'+va_logo[0];
                }
                else {
                    va_bild=va_logo[0];
                }
                
                np = String(parseInt(parts[2] / 5000) * 5000);
                while(np.length < 5) np = "0"+np;
                
                scrollCache[i] = getWSdate(parts[14])+'#'+parts[2];
                
                strAusgabe += '<div class="tt_HotResult" id="scrollLine_' + i + '" onmouseover="overFirstBox(' + i + ');" onmouseout="outFirstBox(' + i + ');">';
                strAusgabe += '<div style="width: 648px; height: 5px;"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></div>';
                strAusgabe += '    <div id="tt_HotResultContent' + i + '" class="tt_HotResultContent">';
                
                //--- STOERER-TEXT -------------------------------------------------
                ttGlobalStoererTxtFlag[i] = parts[25]; 
                if (parts[25] != '') {
                    var VA = parts[17].split(";")[0] || '';
                    strAusgabe += '<div class="tt_HotStoerer">';
                    strAusgabe +=      VA != '' ? '<div class="tt_HotStoererVAImg"><img src="http://images.traveltainment.int/images/content/va_logos/small/'+VA+'.gif" class="tt_HotStoererVA" alt="" border="0"></div>' : '';
                    strAusgabe += '    <div class="tt_HotStoererTxt">'+parts[25]+'</div>';
                    strAusgabe += '    <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                    strAusgabe += '</div>';
                    strAusgabe += '    <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                }
                
                strAusgabe += '    <div class="tt_HotThumbContainer">';
                
                //--- THUMBNAIL ----------------------------------------------------
                strAusgabe += '<div id="scrollTitleThumb_' + i + '">';
                strAusgabe += '    <div id="scrollThumbBox_' + i + '"  onClick="navigate(\'idContent=' + i + '&prefix=2&time=' + getWSdate(parts[14]) + '&IFF=' + parts[2] + '\',\'scrollContentThumb_' + i + '\',\'\',\'reqAllHbs\'); imgActScroll(\''+ i +'\'); hideBigThumb(' + i + ');">';
                strAusgabe += '        <div id="tt_HotThumb' + i + '" class="tt_HotThumbTop">';
                strAusgabe += '<a href="javascript:void(0);" onmouseover="showBigThumb(' + i + ', \'' + np + '\', \'' + parts[2]+ '\');" onmouseout="hideBigThumb(' + i + ');">';
                strAusgabe += '<img src="/tools/image.php?pfad='+imgservPfad+'/images/content/booking_thumbs_gr/'+np+'/THB_999_H'+parts[2]+'.jpg&b=170&h=114" width="170" height="114" alt="" border="0">';
                //PNG Tophotel
                strAusgabe += '<div class="tt_HotThumbTopLogo"><img src="'+imgPfad+'/topempfehlung.'+imgageType+'" border="0" alt="Top Empfehlung" title="Top Empfehlung"></div>';
                strAusgabe += '</a></div>';
                strAusgabe += '    </div>';
                strAusgabe += '    </div>';
                strAusgabe += '</div>';
                
                strAusgabe += '    <div class="tt_HotDataContainer">';
                
                //--- HOTELNAME | STERNE | PREIS -----------------------------------
                var hotelname = parts[6].length > 28 ? parts[6].substr(0, 26)+'...' : parts[6];
                
                nSterne=Math.floor(parts[4] * 10);
                if(parts[1].length > 3){
                    parts[1] = parts[1].replace(/([0-9]*)([0-9]{3})/,"$1.$2");
                }                
                if (parts[7] == '...') {
                    parts[7] = '';
                }
                
                strAusgabe += '        <div id="tt_HotHotel' + i + '" class="tt_HotHotel" style="cursor: pointer;" onClick="s_termine_topHotel(' + i + ');">';
                strAusgabe += '            <div class="tt_HotTopHotelName" title="'+parts[6]+'">'+hotelname+'</div>';
                strAusgabe += '            <div class="tt_HotHotelStars">'+MakeStars(nSterne,imgPfad)+'</div>';
                strAusgabe += '            <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                strAusgabe += '            <div class="tt_HotHotelRegion">' + parts[7] + parts[8] + '</div>';
                strAusgabe += '        </div>';
                strAusgabe += '        <div id="tt_HotPrice' + i + '" class="tt_HotPrice">';
                strAusgabe += '            ab <a class="tt_HotPriceLink" href="javascript:s_termine_topHotel(' + i + ');">'+parts[1]+' &euro;</a>';
                strAusgabe += '            <a class="tt_HotPriceLinkImg" href="javascript:s_termine_topHotel(' + i + ');"><img src="'+imgPfad+'/doppelpfeil_gruen.gif"></a>';
                strAusgabe +='         </div>';
                strAusgabe += '        <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                
                //--- TEASER-TEXT | INFO-BUTTON ------------------------------------
                if (parts[23].length > 92) {
                    parts[23] = parts[23].substring(0, 92) + '...';
                }
                strAusgabe += '        <div id="tt_HotData' + i + '" class="tt_HotData">';
                strAusgabe += '            <div class="tt_HotDataRel">';
                
                //--- GIATA-CLIPS -----------------------------------
                ttGlobalParts[i] = parts[31];
                if (parts[31] != '-1') {
                    strAusgabe += '            <div id="scrollTitleClip_' + i + '" class="scrollTitleClip">';
                    strAusgabe += '                <div id="scrollClipBox_' + i + '" class="scrollClipBox">';
                    strAusgabe += '<div class="ttHotelClip" id="ttHotelClip' + i + '" onclick="navigate(\'stars=' + (nSterne / 10) + '&idContent=' + i + '&prefix=4&time=' + getWSdate(parts[13]) + '&IFF=' + parts[2] + '\',\'scrollContentClip_' + i + '\',\'\',\'hibReqClip\'); imgActScroll(\'' + i + '\');">';
                    strAusgabe += '<img src="/images/spacer.gif" width="29" height="20" alt="" title="Hotel-Clip anzeigen" /></a>';
                    strAusgabe += '</div>';
                    strAusgabe += '                </div>';
                    strAusgabe += '            </div>';
                }
                
                strAusgabe += '                <div class="tt_HotResultTeaserTxt">'+parts[23]+'</div>';                
                strAusgabe += '                    <div id="scrollTitle_' + i + '" class="boxTitle">';
                strAusgabe += '                         <div class="tt_HotResultInfoButton" onClick="navigate(\'idContent=' + i + '&prefix=0&time=' + getWSdate(parts[14]) + '&IFF=' + parts[2] + '\',\'scrollContent_' + i + '\',\'\',\'reqAllHbs\'); imgActScroll(\''+i+'\');">';
                strAusgabe += '<div id="scrollSpecBtn_' + i + '">'+genSpecBtnTable(i)+'</div>';
                strAusgabe += '                        </div>';
                strAusgabe += '                    </div>';                
                
                strAusgabe += '                <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                strAusgabe += '            </div>';
                strAusgabe += '        </div>';
                
                //--- HOTELBEWERTUNGEN ---------------------------------------------
                strAusgabe += '        <div id="tt_HotHBW'+i+'" class="tt_HotHBW">';
                var showHbw = 1;
                if (showHbw == 1) {
                    if (parts[21] != '') {
                        hbw_details = parts[21].split("_");
                        strAusgabe += '    <div class="tt_HotHBWBox">';
                        var classEmpfTxt = 'tt_HotHBWBottom';
                        if (parseInt(hbw_details[2].substring(0, 1)) >= 4) {
                            strAusgabe += '    <div class="tt_HotHBWHaken">&nbsp;</div>';
                        }
                        if (parseInt(hbw_details[1] / 10) >= 70) {
                            classEmpfTxt = 'tt_HotHBWBottomGreen';
                        }
                        strAusgabe += '        <div id="scrollTitleHbw_' + i + '"><div id="scrollHbwBox_' + i + '" class="tt_HotHBW_mainScrollBox" onClick="navigate(\'idContent=' + i + '&prefix=1&IFF=' + parts[2] + '\',\'scrollContentHbw_' + i + '\',\'\',\'reqHbw\'); imgActScroll(\''+i+'\');" title="Hotelbewertungen anzeigen">';
                        strAusgabe += '            <div class="tt_HotHBWTxt">Kundenbewertung (' + hbw_details[0] + ')</div>';
                        strAusgabe += '            <div class="tt_HotHBWScaleGif' + (browser == "0" ? '' : 'FF') + '"><img src="' + imgPfad + '/hbw/scale_small/small_scale_' + hbw_details[2] + '.gif" border="0" width="60" height="10" alt="Gesamtbewertung" title="Gesamtbewertung ' + hbw_details[2].substring(0,1) + '.' + hbw_details[2].substring(1,2) + ' von 6"></div>';
                        strAusgabe += '            <div class="tt_HotHBWPoints">' + hbw_details[2].substring(0,1) + '.' + hbw_details[2].substring(1,2) + ' </div>';
                        strAusgabe += '            <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                        if(hbw_details[0] > 1){
                            strAusgabe += '        <div class="' + classEmpfTxt + '"><span class="tt_HotHBWTxtSmall">Weiterempfehlung</span> <span class="tt_HotHBWTxtScale">'+parseInt(hbw_details[1] / 10)+'%</span></div>';
                        }
                        strAusgabe += '            <div class="tt_HotHBWTxtLink">jetzt lesen</div>';
                        strAusgabe += '            <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                        strAusgabe += '        </div></div>';
                        strAusgabe += '    </div>';
                    }
                    else{
                        strAusgabe += '<span class="tt_hotNoVote">Es liegt noch keine<br />Hotelbewertung<br />der G&auml;ste vor.</span><!--<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="'+imgPfad+'hbw/info_hotelbewertung.gif" alt="" border="0" style="vertical-align: middle;"></a>-->';
                    }
                }
                strAusgabe += '        </div>';
                
                //--- ATTRIBUTE ----------------------------------------------------
                strAusgabe += '        <div id="tt_HotAttr' + i + '" class="tt_HotAttr">';
                strAusgabe += '            <table class="tt_HotAttrTable" border="0" cellspacing="0" cellpadding="0">';
                strAusgabe += '                <tr>';
                strAusgabe += '                    <td class="tt_HotAttrTableTop">&nbsp;';
                var str_Hattbut1 = "";
                if(parts[15] & 1)
                    str_Hattbut1 = 'Familie<br />';
                if(parts[15] & 2)
                    str_Hattbut1 += 'Direkte Strandlage<br />';
                if(parts[15] & 4)
                    str_Hattbut1 += 'Gro&szlig;es Sportangebot<br />';
                if(parts[15] & 8)
                    str_Hattbut1 += 'Wellness-Fitness';
                if(str_Hattbut1 != ''){
                    strAusgabe += str_Hattbut1;
                }
                strAusgabe += '                    </td>';
                strAusgabe += '                </tr>';
                strAusgabe += '                <tr>';
                strAusgabe += '                    <td class="tt_HotAttrTableBottom">&nbsp;';
                var str_Hattbut2 = "";
                if(parts[15] & 65536)
                    str_Hattbut2 += 'Kindererm&auml;&szlig;igung';
                if(parts[15] & 131072)
                    str_Hattbut2 += '<br />Fr&uuml;hbucherangebot';
                if(str_Hattbut2 != ''){
                    strAusgabe += '<span class="tt_HotAttrBottomTxt">' + str_Hattbut2 + '</span>';
                }
                strAusgabe += '                    </td>';
                strAusgabe += '                </tr>';
                strAusgabe += '            </table>';
                strAusgabe += '        </div>';
                strAusgabe += '        <div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                strAusgabe += '    </div>';
                strAusgabe += '<div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                
                //--- BOX HIB CONTENT ----------------------------------------------
                strAusgabe += '        <div id="scrollContent_' + i + '" class="boxContent"></div>';
                strAusgabe += '        <div id="scrollContentBottom_' + i + '" class="boxContentBottom"><div id="scrollCloseLink_' + i + '" class="arrowUpLink"> </div></div>';
                
                //--- BOX HBW CONTENT ----------------------------------------------
                strAusgabe += '        <div id="scrollContentHbw_' + i + '" class="boxContent"></div>';
                strAusgabe += '        <div id="scrollContentBottomHbw_' + i + '" class="boxContentBottom"><div id="scrollCloseLinkHbw_' + i + '" class="arrowUpLink"> </div></div>';
                
                //--- BOX THUMB CONTENT --------------------------------------------
                strAusgabe += '        <div id="scrollContentThumb_' + i + '" class="boxContent"></div>';
                strAusgabe += '        <div id="scrollContentBottomThumb_' + i + '" class="boxContentBottom"><div id="scrollCloseLinkThumb_' + i + '" class="arrowUpLink"> </div></div>';
                
                //--- BOX CLIP CONTENT ---------------------------------------------
                strAusgabe += '        <div id="scrollContentClip_' + i + '" class="boxContent"></div>';
                strAusgabe += '        <div id="scrollContentBottomClip_' + i + '" class="boxContentBottom"><div id="scrollCloseLinkClip_' + i + '" class="arrowUpLink"> </div></div>';
                
                strAusgabe += '    </div>';
                strAusgabe += '<div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                strAusgabe += '<div style="width: 650px; height: 5px;"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></div>';
                strAusgabe += '</div>';
                strAusgabe += '<div class="tt_clearboth"><img src="/images/spacer.gif" alt="" width="0" height="0" /></div>';
                
                strAusgabe += '<div id="tt_HotTrenner' + i + '" class="tt_HotTrenner"><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></div>';
            }
            document.write(strAusgabe);
        }
    }
    
    //________________________________________________________________
    
    function pageSkip(seiten,apage,sortierung){
        var countSkip = 1;
        var skpipLink;
        for (t = 1; t <= seiten; t ++){
            zaehler = (t - 1) * 10;
            if (t == 1) {
                if (apage - 2 < 0) {
                    document.write('<div class="tt_SkipBox">&lt;</div>');
                } else {
                    document.write('<div class="tt_SkipBox"><a href="javascript:skippen('+((apage - 2 < 0 ? '0' : apage - 2) * 10)+',\''+sortierung+'\');" class="tt_SkipLinkB">&lt;</a></div>');
                }
            }
            if (seiten <= 6) {
                if(t != apage){
                    document.write('<div class="tt_SkipBox"><a href="javascript:skippen('+zaehler+',\''+sortierung+'\');" class="tt_SkipLinkB" title="Angebote der Seite '+t+' abrufen">'+t+'</a></div>');
                } else{
                    document.write('<div class="tt_SkipBoxActive"><span class="tt_SkipActive">'+t+'</span></div>');
                }
            } else {
                if (apage <= 4 && t <= 4) {
                    if(t != apage){
                        document.write('<div class="tt_SkipBox"><a href="javascript:skippen('+zaehler+',\''+sortierung+'\');" class="tt_SkipLinkB" title="Angebote der Seite '+t+' abrufen">'+t+'</a></div>');
                    } else{
                        document.write('<div class="tt_SkipBoxActive"><span class="tt_SkipActive">'+t+'</span></div>');
                    }
                    if (t == 4) {
                        if (t + 4 <= seiten || seiten == 7) {
                            document.write('<div class="tt_SkipBox"><a href="javascript:skippen(40,\''+sortierung+'\');" class="tt_SkipLinkB">...</a></div>');
                        }
                        document.write('<div class="tt_SkipBox"><a href="javascript:skippen('+((seiten - 1) * 10)+',\''+sortierung+'\');" class="tt_SkipLinkB">'+(seiten)+'</a></div>');
                    }
                } else if (apage > 4 && apage <= 8 && t > 4 && t <= 8) {
                    if(t != apage){
                        document.write('<div class="tt_SkipBox"><a href="javascript:skippen('+zaehler+',\''+sortierung+'\');" class="tt_SkipLinkB" title="Angebote der Seite '+t+' abrufen">'+t+'</a></div>');
                    } else if (t <= 8) {
                        document.write('<div class="tt_SkipBoxActive"><span class="tt_SkipActive">'+t+'</span></div>');
                    }
                    if (t == 8) {
                        if (t + 4 < seiten) {
                            document.write('<div class="tt_SkipBox"><a href="javascript:skippen(80,\''+sortierung+'\');" class="tt_SkipLinkB">...</a></div>');
                            document.write('<div class="tt_SkipBox"><a href="javascript:skippen('+((seiten - 1) * 10)+',\''+sortierung+'\');" class="tt_SkipLinkB">'+(seiten)+'</a></div>');
                        } else if (t == seiten - 1) {
                            document.write('<div class="tt_SkipBox"><a href="javascript:skippen('+((seiten - 1) * 10)+',\''+sortierung+'\');" class="tt_SkipLinkB">'+(seiten)+'</a></div>');
                        }
                    }
                } else if (apage > 8 && apage <= 12 && t > 8 && t <= 12) {
                    if (t == 9) {
                        document.write('<div class="tt_SkipBox"><a href="javascript:skippen(0,\''+sortierung+'\');" class="tt_SkipLinkB">1</a></div>');
                        document.write('<div class="tt_SkipBox"><a href="javascript:skippen(40,\''+sortierung+'\');" class="tt_SkipLinkB">...</a></div>');
                    }
                    if(t != apage){
                        document.write('<div class="tt_SkipBox"><a href="javascript:skippen('+zaehler+',\''+sortierung+'\');" class="tt_SkipLinkB" title="Angebote der Seite '+t+' abrufen">'+t+'</a></div>');
                    } else{
                        document.write('<div class="tt_SkipBoxActive"><span class="tt_SkipActive">'+t+'</span></div>');
                    }
                } else if (apage > 12 && apage <= 15 && t > 12 && t <= 15) {
                    if (t == 13) {
                        document.write('<div class="tt_SkipBox"><a href="javascript:skippen(0,\''+sortierung+'\');" class="tt_SkipLinkB">1</a></div>');
                        document.write('<div class="tt_SkipBox"><a href="javascript:skippen(80,\''+sortierung+'\');" class="tt_SkipLinkB">...</a></div>');
                    }
                    if(t != apage){
                        document.write('<div class="tt_SkipBox"><a href="javascript:skippen('+zaehler+',\''+sortierung+'\');" class="tt_SkipLinkB" title="Angebote der Seite '+t+' abrufen">'+t+'</a></div>');
                    } else{
                        document.write('<div class="tt_SkipBoxActive"><span class="tt_SkipActive">'+t+'</span></div>');
                    }
                }
            }
        }
        if (apage * 10 < seiten * 10) {
            document.write('<div class="tt_SkipBox"><a href="javascript:skippen('+(apage * 10)+',\''+sortierung+'\');" class="tt_SkipLinkB">&gt;</a></div>');
        } else {
            document.write('<div class="tt_SkipBox">&gt;</div>');
        }
    }

    //________________________________________________________________

    function fillOrte(s_ort, mapIff){        
        if (typeof(ortsliste) == 'string' && ortsliste != '' && mapIff != '' && mapIff != null) {
            var aIffOrte = ortsliste.split("{");
            for (var t = 0; t < anzahl_treffer_orte; t++) {
                if (mapIff != aIffOrte[t]) {
                    document.write('<option value="' + Orte[t] + '">' + Orte[t] + '</option>');     
                } else {
                    document.write('<option value="' + Orte[t] + '" SELECTED>' + Orte[t] + '</option>');    
                }
            }
        } else {
            for (var 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>');
            }
        }
    }
    
    //________________________________________________________________

    function twoDigit(val){
        return parseInt(val,10)<10?"0"+parseInt(val,10):parseInt(val,10);
    }
    
    //_________________________________________________________________________________________________
    
    //---Aufruf Kartentool Google
    function select_iff_ort() {
        if (typeof(mTStartMod) == 'undefined')  {
            return;
        }
        
        if($('tt_ortsauswahlOpacBox') == null || typeof($('tt_ortsauswahlOpacBox')) == 'undefined') {
            var opacDiv = document.createElement("div");        
            var opacDiv_id = document.createAttribute("id");
            opacDiv_id.nodeValue = "tt_ortsauswahlOpacBox";        
            opacDiv.setAttributeNode(opacDiv_id);        
            var opacDiv_class = document.createAttribute("class");
            opacDiv_class.nodeValue = "iepngfix2";        
            opacDiv.setAttributeNode(opacDiv_class);        
            document.body.appendChild(opacDiv);    
        }
        
        if($('tt_ortsauswahlOpacBoxContent') == null || typeof($('tt_ortsauswahlOpacBoxContent')) == 'undefined') {
            var opacDiv = document.createElement("div");        
            var opacDiv_id = document.createAttribute("id");
            opacDiv_id.nodeValue = "tt_ortsauswahlOpacBoxContent";        
            opacDiv.setAttributeNode(opacDiv_id);        
            var opacDiv_class = document.createAttribute("class");
            opacDiv_class.nodeValue = "iepngfix2";        
            opacDiv.setAttributeNode(opacDiv_class);        
            document.body.appendChild(opacDiv);    
        }
        
        if (document.body && document.body.offsetHeight && document.body.offsetHeight > 0) {
            var iW = document.body.offsetWidth;
            var iH = document.body.offsetHeight;    
        } else if (document.body && document.body.clientHeight && document.body.clientHeight > 0) {
            var iW = document.body.clientWidth;
            var iH = document.body.clientHeight;    
        } else if (window.innerHeight && window.innerHeight > 0) {
            var iW = window.innerWidth;
            var iH = window.innerHeight;    
        }
        
        document.getElementById('tt_ortsauswahlOpacBox').style.width = iW + 'px';
        document.getElementById('tt_ortsauswahlOpacBox').style.height = iH + 'px';
        
        //--- if body height ist not valid --------------------------
        if (document.body.offsetHeight < 1200) {
            document.getElementById('tt_ortsauswahlOpacBox').style.height = '3000px';
        }
        
        if (online == 1) {
            document.getElementById('tt_ortsauswahlOpacBoxContent').innerHTML = '<iframe src="' + url + 'maps/google/selectIffOrtGoogle_comvel.php?url=http://' + document.domain + '/&mTStartMod=' + mTStartMod  +'&KID=' + KID + '&ORTE=' + ortsliste + '" width="792" height="520" frameborder="0" scrolling="no" allowtransparency style="0; border: 0;" />';
        } else {
            document.getElementById('tt_ortsauswahlOpacBoxContent').innerHTML = '<iframe src="' + url + 'maps/google/selectIffOrtGoogle_comvel.php?url=' + encodeURIComponent(url) + '&mTStartMod=' + mTStartMod + '&KID=' + KID + '&ORTE=' + ortsliste + '" width="792" height="520" frameborder="0" scrolling="no" allowtransparency style="0; border: 0;" />';
        }
        document.getElementById('tt_ortsauswahlOpacBox').style.display = 'block';
        document.getElementById('tt_ortsauswahlOpacBoxContent').style.display = 'block';
    }
    
    //________________________________________________________________
    
    //---Aufruf der Seite ueber Kartentool
    function SearchOrtKarteByIff(ort, code){ 
        var aIffOrte = ortsliste.split("{");
        for (var t = 0; t < anzahl_treffer_orte; t++) {
            if (code == aIffOrte[t]) {
                ort = Orte[t];
                break;        
            }
        }
        document.bengine.s_ort.value     = ort;
        document.bengine.mapIffOrt.value = code; 
        return BookingAction('hotel');
        document.getElementById('tt_ortsauswahlOpacBox').style.display = 'none';
    }
