var TopLinkListe="";
document.write('<style type="text/css">'
+'div.searchalertbox {visibility:hidden;position:absolute;top:0px;left:0px;width:300px;margin:6px 0 0 0;background:#ffffff;padding:4px;border:solid #000000 1px;font-weight:normal;text-decoration:none;color:#A90852;font-family:Arial,Helvetica;font-size:10px;}'
+'.xtd {font-family:Arial,Helvetica,sans-serif;font-size:12px;color:#A90852;}'
+'.ank {text-decoration:none;}'
+'</style>'
+'<div id="searchalertbox" class="searchalertbox"></div>'
+'<table width="300" border="0" cellspacing="0" cellpadding="0" id="LozDB2">'
+'<form method="post" action="/Hotel_Finder.asp">'
+'<tr><td><h1>Schnellsuche</h1>'
+'<p>Hier Angebotsnummer, Hotelname-/ort oder Region/Land eingeben:<br>'
+'<table border="0" cellspacing="0" cellpadding="0"><tr>'
+'<td><input type="text" maxlength="30" name="hxSUCH" size="15" style="width:180px;" value="" onKeyUp="loadXMLDoc(this.value);" onFocus="reg();" autocomplete="off">&nbsp;&nbsp;&nbsp;</td>'
+'<td><input type="image" src="/oss/img/wl/lmn/b_los.gif" width="63" height="22" border=0></td></tr></table></p></td></tr>'
+'<tr><td><img src="/img/pixel.gif" style="position:relative;" id="Ewas" width="1" height="1"></td></tr>'
+'</form></table><img src="/oss/img/trans.gif" width="300" height="8"><br>');

var HttpReq,posX=0,posY=0,xheight=0;

function reg(){
 posY= document.all.Ewas.offsetTop
 posX= document.all.Ewas.offsetLeft
}

function loadXMLDoc(url) {
 if(isNaN(url)){
	url='/hx.asp?h='+escape(url)
	if (window.XMLHttpRequest) {
		HttpReq = new XMLHttpRequest();
		HttpReq.onreadystatechange = processReqChange;
		HttpReq.open("GET", url, true);
		HttpReq.send(null);
	} else if (window.ActiveXObject) {
		HttpReq = new ActiveXObject("Microsoft.XMLHTTP");
		if (HttpReq) {
			HttpReq.onreadystatechange = processReqChange;
			HttpReq.open("GET", url, true);
			HttpReq.send();
		}
	}
 } else iShow();
}	
	

function processReqChange() {
	if (HttpReq.readyState == 4) {
		if (HttpReq.status == 200) {
		XMLout(HttpReq.responseText);
		} else {
		// alert("There was a problem retrieving the XML data");
		}
	}
}

function getElementById(id) {
 if (document.getElementById) return document.getElementById(id);
 if (document.all) return document.all[id];
 if (document.layers) return document.layers[id];
 return null
}

function XMLout(Wahl){
 xheight= 0;
 xHotel = Wahl.split(";");
 tt = '<table class="xtd" width="100%" cellpadding="0" cellspacing="0" border="0">';
 for (i=0; i< xHotel.length; i++) {
	if(xHotel[i] !='') tt+='<tr onMouseOver="mOV(this)" onMouseOut="mOU(this)"><td><a class="ank" href="/Hotel_Finder.asp?hxsuch='+escape(xHotel[i]).replace("+","%2B")+'">'+xHotel[i]+'</td></tr>' , xheight+=15;
 }
 tt+= '</table>';
 if(Wahl.length >0) iShow(tt);
 else iShow();
}

function mOV(thisObj) {
 thisObj.bgColor='F8CDE0';
}

function mOU(thisObj) {
 thisObj.bgColor='FFFFFF';
}

function iShow(aText) {
 parm= ((aText==null || aText=='')? 'hidden':'visible')
 id='searchalertbox';
 setAnzeige(id, parm, aText);
}

function setAnzeige(id, vis, txt) {
 var element = getElementById(id);
 var style = element;
 if (element.style) {
 element.innerHTML = txt;
  if (element) {
   element.style.visibility=vis;
   element.style.width = 250;
   element.style.height = xheight;
   element.style.top = posY-10;
   element.style.left = posX+8;
   element.style.zIndex = 2001;
   element.style.background= '#ffffff';
  }
 }
}
