// global variables
//
// 
var max=0;
var revision = "01.03.2001";
var timerID = null;
var mainTitle = "";
orte_arr=new Array();


function msg(statuszeile)
{
    window.status = statuszeile;
    return true;
}

function subline()
{
    return msg(mainTitle);
}

function setMain(titel)
{
   mainTitle = titel;
   subline();
}

function url(urlstring, helpmsg)
{
    document.write("<A HREF="+urlstring+" ");
    document.write("onMouseOver=");
    document.write('"');             // Anf|hrung f|r Eventhandler onMouseOver
    document.write("return msg('" + helpmsg + "')");  // Helptext
    document.write('" onMouseOut='); // Ende Eventhandler onMouseOver, Beginn onMouseOut
    document.write('"');
    document.write("return subline()"); // Standardzeile restaurieren
    document.write('">');
}

function uend()
{
    document.write("</A>");
}


function preLoadImages() {
  dotClear = new Image();
  dotClear.src = '/ihahotels/img/layout/dot_clear.gif';
  sphereRed = new Image();
  sphereRed.src = '/ihahotels/img/layout/sphere_red.gif';
  sphereOrange = new Image();
  sphereOrange.src = '/ihahotels/img/layout/sphere_orange.gif';
}

//  -->


function auswahl_show_sterne() 
 {
    document.getElementById('sterne').style.visibility = "visible";
    document.getElementById('pulldown').style.visibility = "hidden";
    document.getElementById('sterne0').style.visibility = "visible";
    document.getElementById('pulldown0').style.visibility = "hidden";
 }

function auswahl_show_pulldown() 
 {
    document.getElementById('sterne').style.visibility = "hidden";
    document.getElementById('pulldown').style.visibility = "visible";
    document.getElementById('sterne0').style.visibility = "hidden";
    document.getElementById('pulldown0').style.visibility = "visible";
 }

function aktuelle_angebote_window()
{
 window.open('aktuelle_angebote.php?spr=<?php echo $spr;?>','aktuelle_angbote_wind', 'directories=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0,width=400,height=480,left=320,top=150');
}




function ortsliste()
{
 str="";
 for (i=0;i<orte_arr.length;i++)
 {
	einzelort=orte_arr[i].toLowerCase();
	suchort=document.komfort.manueller_ort.value.toLowerCase();
	if (einzelort.indexOf(suchort)==0 && document.komfort.manueller_ort.value!="")
  str+="<p class=\"ort\" onclick=\"tdch('"+orte_arr[i]+"','go')\" onmouseout=\"tdch(this,'out')\" onmouseover=\"tdch(this,'over')\">"+orte_arr[i]+"</p>";
 }
 if (str=="")
 {
	document.getElementById("ortsliste").style.visibility="hidden";
	document.getElementById("ortsliste").style.height="0px";
 }
 else
 {
	document.getElementById("ortsliste").style.filter="Alpha(opacity=90, style=0)";
	document.getElementById("ortsliste").style.visibility="visible";
	document.getElementById("ortsliste").style.height="100px";
  document.getElementById("ortsliste").innerHTML=str;
 }
 
}

function tdch(op,todo)
{
 if (todo=="over")
 {
  op.style.backgroundColor="#EFEFEF";
  op.style.color="#000000";
  //op.style.fontWeight="bold";
 }
 
 if (todo=="out")
 {
  op.style.backgroundColor="#FFFFFF";
  op.style.color="#333333";
  op.style.fontWeight="normal";
 }

 if (todo=="go")
 {
	document.komfort.manueller_ort.value=op;
	document.getElementById("ortsliste").style.visibility="hidden";
	document.getElementById("ortsliste").style.height="0px";
 }

 if (todo=="opacity") 	document.getElementById("ortsliste").style.filter="Alpha(opacity=70, style=0)";
 if (todo=="opacity2") 	document.getElementById("ortsliste").style.filter="Alpha(opacity=92, style=0)";


}




function onlinebuchen (url)
	{
		//var oeffnen=window.open(url,"onlinebuchung","directories=no,menubar=no,scrollbars=yes,resizable=yes,status=no,width=750,hei
		var oeffnen=window.open(url,"onlinebuchung","");
	}

