window.status="Lastminute - mit eigener Anreise";
noCity= "/Aktiv und Fit/Bahnreisen/Clubtouren/Ferienpark/Städtereisen/Fluss/-Kreuzfahrten/"
noPKW = "/Ägypten-Tunesien-Marokko/Afrika-Mauritius-Seychellen/Arabische Halbinsel-Israel/Asien-Thailand-Malediven/Karibik-Mexiko-Dom.Rep./Belize/Brasilien/Erlebnisparks/Malta/Zypern/Andorra/Argentinien/Australien/Bolivien/Chile/Cook Islands/Ecuador/Fidschi/Französisch Polynesien/Kanada/Malta/Neuseeland/Peru/Tonga/USA/"
var SKI=new Array(
 new Array('AT'),
 new Array('CH'),
 new Array('CZ'),
 new Array('Slowakei','Mittel-Slowakei','Ost-Slowakei'),
 new Array('Südtirol / Dolomiten','Aostatal','Piemont'),
 new Array('Französische Alpen'),
 new Array('Bayerischer Wald','Allgäu','Bayern','Oberbayern','Schwarzwald','Schwäbische Alb'));


function SysDatum(){
 fehler=false
 time = new Date
 if(SysMonat != (1+time.getMonth()) ) fehler=true
 if(SysJahr != (2000+(time.getYear()%100)) ) fehler=true
 if(fehler) document.write('<font class="kleinw"><b>Hinweis:<b> Ihr Systemdatum ist falsch eingestellt !</font>')
}

function HotFinder(){
 document.HotelFinder.submit()
}

function IhreWahl(na){
 if(na != ''){
  fm= eval("document." + na)
  fm.submit();
 }
}

function IhreRegion(r){
 document.eaOrt.To.value= r;
 document.eaOrt.submit();
}

function DauerBox(n,mx){
 if(mx==null) mx=30;
 out='<option value="00">beliebig</option>';
 n=parseInt(n);
 for (i=1; i<=mx;i++) out+='<option value='+((i>9) ? i:'0'+i)+((i==n) ? ' selected':'')+'>'+i+((i==1) ? ' Nacht':' Nächte')+'</option>';
 document.write(out)
}

function MakeBox(s){
 tt='<option value="---">alle Reiseziele</option>'

 tmpL='',iz=((s=='')? 0:-1);
 for (i=0; i<ea; i++){
   if(tmpL != LD[i]){
	Lcc= LC[i];
	qParm= LC[i]+'-'+Lcc;
	iz= ((s==qParm)? 0:iz);
	tt+='<option style="background-color:#ffcae2" value="'+qParm+'"'+((iz==0) ? " selected":"")+'>'+LD[i]+'</option>';
	tmpL= LD[i];
	iz++;
   }
   qParm= LC[i]+'-'+ZC[i]
   iz= ((s==qParm)? 0:iz);
   tt+='<option style="padding-left:20px" value="'+qParm+'"'+((iz==0) ? " selected":"")+'>'+RG[i]+'</option>';
   iz++;
 }
 document.write(tt);
}



function Boxfiller(p,s){
 v='---', sTop='alle Reiseziele mit eigene Anreise';
 window.document.Filter.Code.options[0]= new Option(sTop,v);
 v='SKI', sTop='alle Berge & mehr Reiseziele';
 window.document.Filter.Code.options[1]= new Option(sTop,v);

 iz=2;
 tmpL='';
 sel=(s=='SKI' ? 1:0);

 if(p==1){
  for (r=0; r< SKI.length; r++){
   for (ss=0; ss < SKI[r].length; ss++){
    code= SKI[r][ss];
    for (i=0; i<ea; i++){
     if( (code==LC[i]) || (code==RG[i]) ){
	if(LC[i] != tmpL){
	 if(s==LC[i]) sel=iz;
	 window.document.Filter.Code.options[iz]= new Option(LD[i],LC[i]);
	 tmpL= LC[i];
	 iz++;
	}
      if(s==ZC[i]) sel=iz;
      window.document.Filter.Code.options[iz]= new Option('-- '+RG[i], ZC[i]);
      iz++;
     }
    }
   }
  }

 }else{

  if(p==3) dieseNicht=noPKW;
  else dieseNicht=""

  for (i=0; i<ea; i++){
   if(dieseNicht.indexOf(LD[i]) < 0){
    if(LC[i] != tmpL){
	if(s==LC[i]) sel=iz;
	window.document.Filter.Code.options[iz]= new Option(LD[i], LC[i]);
	tmpL= LC[i];
	iz++;
    }
    if(s==ZC[i]) sel=iz;
    window.document.Filter.Code.options[iz]= new Option('-- '+RG[i], ZC[i]);
    iz++;
   }
  }
 }
window.document.Filter.Code.options.length=iz;
window.document.Filter.Code.selectedIndex=sel;
}


function PopUp(url,wn) {
 WinName= (wn==null, 'Kalender', wn)
 if(window.event){
	Ereignis= window.event;
	X=Ereignis.screenX;
	Y=Ereignis.screenY;
 }else{
	Ereignis= window;
	X=Ereignis.screenX+mousex+10;
	Y=Ereignis.screenY+mousey+100;
 }
 Calwin= window.open(url,WinName,'height=185,width=165,status=no,dependent=yes');
 Calwin.moveTo(X,Y);
}

var waitPic=new Image();
waitPic.src= "/oss/img/wl/lmn/warten.gif";
var animPic='',wcu=1;

function Momant(){
 if(wcu >=75) wcu=0;
 wcu+=5
 document.images[animPic].width = 50-wcu+1;
 document.images[animPic].width = wcu;
 setTimeout("Momant()",1000)
}

function TST(R,P){
 if(Klick==0){
  Klick++;
  animPic= 'p'+R;
  document.images[animPic].src = waitPic.src;
  document.images[animPic].width =50;
  document.Sort.CHK.value= R;
  document.Sort.HotSuch.value= R;
  //setTimeout("Refresh()",100)
  Momant();
  document.Sort.submit();
 }
}

function eaL(LAND,ANK){
 LNK='/Eigene_Anreise.asp?s=Suchen&ID='+ANK;
 out='<tr><td colspan=7><img border=0 width=1 height=4 src="/img/pixel.gif"></td></tr>'
 +'<tr><td colspan=7 background="/oss/img/wl/lmn/h_bg_list.gif"><img border=0 width=1 height=1 src="/img/pixel.gif"></td></tr>'
 +'<tr bgcolor=#EEEEEE height=30>'
 +'<td align=center><img src="/oss/img/wl/lmn/ic_path.gif" width=21 height=20 border=0></td>'
 +'<td class=gross><a href="'+LNK+'" title="Angebote in '+LAND+' anzeigen"><b>'+LAND+'</b></a></td>'
 +'<td></td>'
 +'<td align=center><img border=0 src="/oss/img/wl/lmn/ic_sun.gif" alt="Tagestemperatur"></td>'
 +'<td align=center><img border=0 src="/oss/img/wl/lmn/ic_moon.gif" alt="Nachttemperatur"></td>'
 +'<td align=center><img border=0 src="/oss/img/wl/lmn/ic_waves.gif" alt="Wassertemperatur"></td>'
 +'<td>&nbsp;</td></tr>'
 +'<tr><td colspan=7 background="/oss/img/wl/lmn/dl3.gif"><img border=0 width=1 height=1 src="/img/pixel.gif"></td></tr>'
 +'<tr><td colspan=7><img border=0 width=1 height=4 src="/img/pixel.gif"></td></tr>';
document.write(out);
}

function eaZ(ZIEL,PREIS,TAG,NACHT,WASSER,ANK,LAND,OT){
 LNK='/Eigene_Anreise.asp?s=Suchen&ID='+ANK;
 Code= ANK.substring(3,6);
 out="<tr onMouseOver='mOver(this)' onMouseOut='mOut(this)' height=20>"
 +'<td bgcolor="#ffffff"><img border=0 width=1 height=20 src="/img/pixel.gif"></td>'
 +'<td onMouseOver="auf('+"'"+LAND+" "+ZIEL+" ab&nbsp;Euro&nbsp;"+PREIS+".- Angebote anzeigen"+"'"+')" onMouseOut="zu()" class=norm><a id=ank href="'+LNK+'">'+ZIEL+'</a></td>'
 +'<td><img src="/oss/img/wl/lmn/ic_attention.gif" border=0 height=11 onmouseover="auf(ShowOrtInfo('+"'"+Code+"'"+'));" onmouseout="zu()"></td>'
 +'<td align=center bgcolor="#FFF9EB">'+TAG+'&deg;</td>'
 +'<td align=center bgcolor="#FFF9EB">'+NACHT+'&deg;</td>'
 +'<td align=center bgcolor="#FFF9EB">'+WASSER+'&deg;</td>'
 +'<td onMouseOver="auf('+"'"+LAND+" "+ZIEL+" ab&nbsp;Euro&nbsp;"+PREIS+".- Angebote anzeigen"+"'"+')" onMouseOut="zu()" align=right class=norm><a id=ank href="'+LNK+'">ab <b>'+PREIS+'.-</b> &euro;</a></td></tr>'
 + lOrt(OT,LNK)
 +'<tr><td></td><td colspan=6 background="/oss/img/wl/lmn/dl3.gif"><img border=0 width=1 height=1 src="/img/pixel.gif"></td></tr>';
document.write(out);
}

function lOrt(ar,ank){
 var re='';
 if(ar!=null && ar.length >0){
  var o = ar.split("#");
  re+='<tr><td></td><td colspan=6 background="/oss/img/wl/lmn/dl3.gif"><img border=0 width=1 height=1 src="/img/pixel.gif"></td></tr><tr><td></td><td colspan=6>';
  for (i=0; i< o.length; i++) {
	if(o[i]!='') re+='<a id=ank href="'+ank+'&Stadt='+escape(o[i])+'">'+o[i]+'</a>, ';
  }
  re+='</td></tr>';
 }
 return(re);
}

function oWin(URL,w,h){
 wName="InfoPopUp";
 if(window.event){
	Ereignis= window.event;
	X=Ereignis.screenX;
	Y=Ereignis.screenY;
 }else{
	Ereignis= window;
	X=Ereignis.screenX+mousex+10;
	Y=Ereignis.screenY+mousey+100;
 }
 if(w==null){
  w="320";
  h="372";
 } 
 WinObj= window.open(URL,wName,'width='+w+',height='+h+',resizable=no,toolbar=no,scrollbars=no')
 WinObj.moveTo(X,Y);
}

function EA_Land(s){
 tt='';
 tmpL='';
 for (i=0; i<ea; i++){
	if(LC[i] != tmpL){
	tmpL=LC[i];
	tt+='<option value="'+LC[i]+'"'+((LC[i]==s) ? " selected":"")+'>'+LD[i]+'</option>';
	}
 }
 document.write(tt);
}


function LandSelected(la){
 u=0;
 if(la=='--' || la=='SKI'){
  if(la=='--') document.aform.Code.options[u] = new Option( 'alle Regionen', '---' ), u++;
  if(la=='SKI') document.aform.Code.options[u] = new Option( 'alle Skiregionen', 'SKI' ), u++;
 }else{
  tmpL='';
  for(i=0; i<= ea; i++) {

	if(LC[i]== la){
    	 if(tmpL=='') document.aform.Code.options[u] = new Option( LD[i], LC[i] ), tmpL=LC[i], u++;
	 document.aform.Code.options[u] = new Option( ' - '+RG[i], ZC[i] );
	 u++;
	}

  if(tmpL!='' && tmpL!=LC[i]) break
  }
 }
 document.aform.Code.length = u;
}

