function s_hliste(kenner_id,nurflug)
{
    parts=regionen_2[kenner_id].split('|');
    detail=(nurflug==1)?'termine':'hotel';
    window.location.href=uebergabe_hotel+'&zielgebiets_kenner='+parts[1]+'&detail='+detail+'&showresult=1';
}
function zur_suche(showresult)
{
    window.location.href=uebergabe_hotel+'&showresult='+showresult;
}
function s_liste_tabelle(nurflug,pfad_images)
{
    var str_glhotelTitel="";
    for(i=0;i<regionen_2.length;i++)
    {
        parts_2=regionen_2[i].split("|");

       if(parts_2[2]>=10000) str_glhotelTitel="";
       if(parts_2[2]==10032){
           str_glhotelTitel='title="Nazwa hotelu zostanie Państwu podana po przybyciu na miejsce podróży."';
       }

        if(parts_2[4]==''){
            a = 0;
        if(i>0){
								document.write('<tr>');
									document.write('<td width="726">');
										document.write('<table cellpadding="0" cellspacing="0" border="0" height="16">');
											document.write('<tr>');
												document.write('<td width="1" bgcolor="#dfdfdf"></td>');
												document.write('<td width="2" bgcolor="#ffffff"></td>');
												document.write('<td width="720" height="2" background="img/dotted_line.jpg" style="background-repeat:repeat-x;"></td>');
												document.write('<td width="2" bgcolor="#ffffff"></td>');
												document.write('<td width="1" bgcolor="#dfdfdf"></td>');
											document.write('</tr>');
										document.write('</table>');
									document.write('</td>');
								document.write('</tr>');
        }


								document.write('<tr>');
									document.write('<!-- START ROW1 -->');
									document.write('<td width="726">');
										document.write('<table cellpadding="0" cellspacing="0" border="0" height="27" width="726">');
											document.write('<tr>');
												document.write('<td width="1" bgcolor="#dfdfdf"></td>');
												document.write('<td width="2" bgcolor="#ffffff"></td>');
												document.write('<td style="padding-left:9px;" width="711" height="27" background="'+pfad_images+'/inner_content_row_bg.jpg" align="left" class="white_text12">');
            if(nurflug!=1){
                document.write('<a class="white_text12" href="javascript:s_hliste('+i+',0);" '+str_glhotelTitel+'>'+parts_2[0]+'</a>');
            }
            else {
                document.write(parts_2[0]);
            }
												document.write('</td>');
												document.write('<td width="2" bgcolor="#ffffff"></td>');
												document.write('<td width="1" bgcolor="#dfdfdf"></td>');
											document.write('</tr>');
										document.write('</table>');
									document.write('</td>');
									document.write('<!-- END ROW1 -->');
								document.write('</tr>');						
        }
        else{
            a++;
            if(typeof(SelectedColour)=="undefined"){
                SelectedColour = 1;
            }
            if(SelectedColour==1){
                TableColor = "#FFFFFF";
                SelectedColour = 2;
            } else if(SelectedColour==2){
                TableColor = "#f2f2f2";
                SelectedColour = 1;
            }
            if(a==1){
                SetTableHeight = 44;
                SetTd4 = '<td style="padding-top:23px;" width="226" height="27" valign="top" align="left" class="black_text12">';
                SetTd5 = '<td valign="top" style="padding-top:18px;" align="left" width="166">';
                SetTd6 = '<td style="padding-top:21px;" width="164" height="27" valign="top" align="left" class="black_text12">';
                SetTd7 = '<td style="padding-top:15px;" width="155" height="27" valign="top" align="left">';
            } else {
                SetTableHeight = 34;
                SetTd4 = '<td width="226" height="27" valign="middle" align="left" class="black_text12">';
                SetTd5 = '<td valign="middle" align="left" width="166">';
                SetTd6 = '<td width="164" height="27" valign="middle" align="left" class="black_text12">';
                SetTd7 = '<td width="155" height="27" valign="middle" align="left">';
            }

        
								document.write('<tr>');
									document.write('<!-- START CONTENT1 -->');
									document.write('<td width="726">');
										document.write('<table cellpadding="0" cellspacing="0" border="0" height="'+SetTableHeight+'" width="726" bgcolor="'+TableColor+'">');
											document.write('<tr>');
												document.write('<td width="1" bgcolor="#dfdfdf"></td>');
												document.write('<td width="2" bgcolor="#ffffff"></td>');
												document.write('<td width="9"></td>');
												document.write(SetTd4);
                                                //document.write('<td style="padding-top:23px;" width="225" height="27" valign="top" align="left" class="black_text12">');
												//document.write('<u>Majorka</u>');
												
                                                document.write('<a class="black_text12" style="text-decoration:underline;" href="javascript:s_hliste('+i+','+nurflug+');" '+str_glhotelTitel+'>'+parts_2[0]+'</a>');												
												
                                                document.write('</td>');
												document.write(SetTd5);
												//document.write('<td valign="top" style="padding-top:18px;" align="left" width="205">');
													document.write('<table cellpadding="0" cellspacing="0" border="0" width="96" height="20">');
														document.write('<tr>');
															document.write('<td width="96" class="white_text12" valign="middle" align="center">');
															//document.write('Informacje');
                                                                document.write('<a class="white_text12" href="javascript:oHIB(\'\',\''+parts_2[2]+'\',\''+parts_2[2]+'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'region\');"><img src="'+pfad_images+'/info.jpg" border="0"></a>');																
															document.write('</td>');
														document.write('</tr>');
													document.write('</table>');
												document.write('</td>');
												document.write(SetTd6);												
												//document.write('<td style="padding-top:21px;" width="164" height="27" valign="top" align="left" class="black_text12">');
    												if(parts_2[4]==""){ parts_2[4] = ""; sun_pic = ''; } else { parts_2[4] = parts_2[4]+"°C"; sun_pic = '<img src="'+pfad_images+'/sun_pic.gif" width="15" height="15" />'; }
	    											if(parts_2[5]==""){ parts_2[5] = ""; sign_pic = ''; } else { parts_2[5] = parts_2[5]+"°C"; sign_pic = '<img src="'+pfad_images+'/sign_pic.gif" width="12" height="6" />'; }																											
													document.write('<table cellpadding="0" cellspacing="0" border="0">');
														document.write('<tr>');
															document.write('<td>'+sun_pic+'</td>');
															document.write('<td width="6"></td>');
															document.write('<td width="32" class="black_text11_no_bold" align="left">'+parts_2[4]+'</td>');
															document.write('<td valign="middle">'+sign_pic+'</td>');
															document.write('<td width="8"></td>');
															document.write('<td width="91" class="black_text11_no_bold" align="left">'+parts_2[5]+'</td>');
														document.write('</tr>');
													document.write('</table>');
												document.write('</td>');
												document.write(SetTd7);												
												//document.write('<td style="padding-top:15px;" width="111" height="27" valign="top" align="left">');
													document.write('<table cellpadding="0" cellspacing="0" border="0">');
														document.write('<tr>');
															document.write('<td width="21" class="black_text11" valign="bottom">');
																document.write('od');
															document.write('</td>');
															document.write('<td width="56" class="black_text24" valign="bottom" style="line-height:23px;">');
                                                                document.write('<a class="black_text24" style="text-decoration:underline;" href="javascript:s_hliste('+i+','+nurflug+');" '+str_glhotelTitel+'>'+parts_2[3]+'</a>');
															document.write('</td>');
															document.write('<td width="30" class="black_text10" valign="bottom">');
																document.write('PLN');
															document.write('</td>');
															document.write('<td width="25" class="black_text10" valign="bottom">');
																document.write('<a href="javascript:s_hliste('+i+','+nurflug+');" '+str_glhotelTitel+'><img src="'+pfad_images+'/arrow_right.jpg" border="0"></a>');
															document.write('</td>');															

															
														document.write('</tr>');
													document.write('</table>');
												document.write('</td>');
												document.write('<td width="2" bgcolor="#ffffff"></td>');
												document.write('<td width="1" bgcolor="#dfdfdf"></td>');
											document.write('</tr>');
										document.write('</table>');
									document.write('</td>');
									document.write('<!-- END CONTENT1 -->');
								document.write('</tr>');
								document.write('<tr>');
									document.write('<td width="726">');
										document.write('<table cellpadding="0" cellspacing="0" border="0" height="1">');
											document.write('<tr>');
												document.write('<td width="1" bgcolor="#dfdfdf"></td>');
												document.write('<td width="2" bgcolor="#ffffff"></td>');
												document.write('<td width="720" height="1" background="'+pfad_images+'/dotted_line.jpg"></td>');
												document.write('<td width="2" bgcolor="#ffffff"></td>');
												document.write('<td width="1" bgcolor="#dfdfdf"></td>');
											document.write('</tr>');
										document.write('</table>');
									document.write('</td>');
								document.write('</tr>');
								
								
        }
    }
}

