<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 6;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
// the version of javascript supported
var jsVersion = 1.0;
// -----------------------------------------------------------------------------
// -->

document.write('<script language="VBScript" type="text/vbscript"\> \n');
document.write('// Visual basic helper required to detect Flash Player ActiveX control version information\n');
document.write('Function VBGetSwfVer(i)\n');
document.write('  on error resume next\n');
document.write('  Dim swControl, swVersion\n');
document.write('  swVersion = 0\n');
document.write('  set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i))\n');
document.write('  if (IsObject(swControl)) then\n');
document.write('    swVersion = swControl.GetVariable("$version")\n');
document.write('  end if\n');
document.write('  VBGetSwfVer = swVersion\n');
document.write('End Function\n');
document.write('//\n ');
document.write('</script\>');

<!-- // Detect Client Browser type

var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
jsVersion = 1.1;
// JavaScript helper required to detect Flash Player PlugIn version information
function JSGetSwfVer(i){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
      		var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			descArray = flashDescription.split(" ");
			tempArrayMajor = descArray[2].split(".");
			versionMajor = tempArrayMajor[0];
			versionMinor = tempArrayMajor[1];
			if ( descArray[3] != "" ) {
				tempArrayMinor = descArray[3].split("r");
			} else {
				tempArrayMinor = descArray[4].split("r");
			}
      		versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
            flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
      	} else {
			flashVer = -1;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	// Cant detect in all other cases
	else {
		
		flashVer = -1;
	}
	return flashVer;
} 

// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) 
{

 	reqVer = parseFloat(reqMajorVer + "." + reqRevision);
   	// loop backwards through the versions until we find the newest version	
	
	for (i=25;i>0;i--) {	
		
		if (isIE && isWin && !isOpera) {
			versionStr = VBGetSwfVer(i);
			
		} else {
			versionStr = JSGetSwfVer(i);		
		}
		
		
		if (versionStr == -1 ) { 
			return false;
		} else if (versionStr != 0) {
			if(isIE && isWin && !isOpera) {
				tempArray         = versionStr.split(" ");
				tempString        = tempArray[1];
				versionArray      = tempString .split(",");				
			} else {
				versionArray      = versionStr.split(".");
			}
			versionMajor      = versionArray[0];
			versionMinor      = versionArray[1];
			versionRevision   = versionArray[2];
			
			versionString     = versionMajor + "." + versionRevision;   // 7.0r24 == 7.24
			versionNum        = parseFloat(versionString);
        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
			if ( (versionMajor > reqMajorVer) && (versionNum >= reqVer) ) {
				return true;
			} else {
				return ((versionNum >= reqVer && versionMinor >= reqMinorVer) ? true : false );	
			}
		}
	}	
}

// Version check based upon the values entered above in "Globals"
var fl = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

function mf(f,x,w,h,bg,e) {
	var specialchar = new Array('&reg;','&amp;','&AMP;','ä','&auml;','&AUML;','ö','&ouml;','&OUML;','ü','&uuml;','&UUML;','Ä','Ö','Ü','ß','á','à','â','ã','é','è','ê','ú','ù','û','ó','ò','ô','í','ì','î');
	var specialcharutf8 = new Array('%C2%AE','%26','%26','%C3%A4','%C3%A4','%C3%A4','%C3%B6','%C3%B6','%C3%B6','%C3%BC','%C3%BC','%C3%BC','%C3%84','%C3%96','%C3%9C','%C3%9F','%C3%A0','%C3%A1','%C3%A2','%C3%A9','%C3%A8','%C3%AA','%C3%BA','%C3%B9','%C3%BB','%C3%B3','%C3%B2','%C3%B4','%C3%AD','%C3%AC','%C3%AE');
/*	for (iii=0;iii<specialchar.length;iii++){
		x = x.replace(specialchar[iii], specialcharutf8[iii]);
	}
*/
	for (iii=0;iii<specialchar.length;iii++){
		x = x.split(specialchar[iii]).join(specialcharutf8[iii]);
	}


	//alert(x);
	var flashsrc = "";
	flashsrc+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"';
	flashsrc+='codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+w+'" height="'+h+'">';
	flashsrc+='<param name="movie" value="'+f+'?'+x+'"><param name="bgcolor" value="'+bg+'"><param name="quality" value="high"><param name="scale" value="noscale"><param name="wmode" value="transparent">';	
	flashsrc+='<embed src="'+f+'?'+x+'" quality="high" scale="noscale" width="'+w+'" height="'+h+'" bgcolor="'+bg+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" />';
	flashsrc+='</object>';
	
	return flashsrc;
	
}

function headreplacement(h,c){
	if (document.getElementById(c)){
		if (document.getElementById(c).getElementsByTagName(h)){
			var hh = document.getElementById(c).getElementsByTagName(h);

			for (var i=0; i<hh.length; i=i) {
				var r = hh[i].innerHTML;
		
				if ((h=="h1" && c=="left") || (h=="h1" && c=="hotellistwrap")){hhh=46;www=530;r = r.toUpperCase();
					if (typeof(h1width) != "undefined") { 
						www = h1width;
					}				
				}
				else if (h=="h1" && c=="package"){hhh=46;www=200;r = r.toUpperCase();}
				else if (h=="h1" && c=="partner"){hhh=46;www=200;r = r.toUpperCase();}
				else if (h=="h1" && c=="numeroverde"){hhh=25;www=170;r = r.toLowerCase(); h = "numeroverde"; t="06802A";}
				else if (h=="h1" && c=="idealeper"){hhh=46;www=160;r = r.toUpperCase();}
				else if (h=="h2" && c=="hotelcontact"){hhh=15;www=119; h = "numeroverde"; t="ffffff";}
				

				//alert(c+""+h);
				
				if (h=="dt"){hhh=35;www=190;}
				if (h=="h3"){hhh=17;www=170;}
				
				if (typeof(t) == "undefined") {t="000000";} 
				

				var src = mf("/flash/head_"+h+".swf","txt="+r+"&txtcolor="+t,www,hhh,"ffffff");
				
				
				
				if (h=="dt"){
					var e = document.createElement('dt');
					e.innerHTML = src;
					hh[i].parentNode.replaceChild(e,hh[i]);
					i++;	
				} else {				
					var e = document.createElement('span');
					e.className = "flash_h1";
					e.innerHTML = src;		
					hh[i].parentNode.replaceChild(e,hh[i]);
				}
			}
		}
	}
}
function sh(id,a){
	if (document.getElementById(id)){
		document.getElementById(id).style.display=a;
	}
}
function switchtabs(url,wrapper,bt_id){
	getsrc(url,wrapper);
	if (document.getElementById("switch_hotels")){
		document.getElementById("switch_hotels").className="";
	}
	if (document.getElementById("switch_packages")){
		document.getElementById("switch_packages").className="";
	}
	if (document.getElementById(bt_id)){
		document.getElementById(bt_id).className="active";
	}
	

}

function draw_flash(pfad, width, height, wmode, bgcolor, alt){
	if(fl){
		params = false;
		if(pfad.indexOf("?") != -1){
			params = pfad.split("?")[1];
			pfad = pfad.split("?")[0];
		}
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" name="flash" width="' + width + '" height="' + height + '" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		if(wmode!=""){document.write('<param name="wmode" value="' + wmode + '" />');}
		if(bgcolor!=""){document.write('<param name="bgcolor" value="' + bgcolor + '" />');}
		if(params){document.write('<param name="flashvars" value="' + params + '" />');}
		document.write('<param name="movie" value="' + pfad + '" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />');
		document.write('<embed src="' + pfad + '" width="' + width + '" height="' + height + '"');
		if(wmode!=""){document.write(' wmode="' + wmode + '"');}
		if(bgcolor!=""){document.write(' bgcolor="' + bgcolor + '"');}
		if(params){document.write(' flashvars="' + params + '"');}
		document.write(' align="middle" quality="high" bgcolor="#ffffff" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="flash" />');
		document.write('</object>');
	}
	else{
		document.write(alt);
	}
}



/******************* AJAX - FUCTIONS */
//object detection to return the correct object depending upon broswer type. Used by the getAXHA(); function.
function getNewHttpObject() {
    var objType = false;
    try {
        objType = new ActiveXObject('Msxml2.XMLHTTP');
    } catch(e) {
        try {
            objType = new ActiveXObject('Microsoft.XMLHTTP');
        } catch(e) {
            objType = new XMLHttpRequest();
        }
    }
    return objType;
}

//Function used to update page content with new xhtml fragments by using a javascript object, the dom, and http.
function getsrc(url,elementContainer){
		document.getElementById(elementContainer).innerHTML = '<blink class="redtxt">Loading...<\/blink>';
		var theHttpRequest = getNewHttpObject();
		
		
		theHttpRequest.onreadystatechange = function() {processAXAH(elementContainer);};
		theHttpRequest.open("GET", url);
		theHttpRequest.send(false);
	
			function processAXAH(elementContainer){
			   if (theHttpRequest.readyState == 4) {
				   if (theHttpRequest.status == 200) {
					   document.getElementById(elementContainer).innerHTML = theHttpRequest.responseText;
				   } else {
					   document.getElementById(elementContainer).innerHTML="<p><span class='redtxt'>Error!<\/span> HTTP request return the following status message:&nbsp;" + theHttpRequest.statusText +"<\/p>";
				   }
			   }
			}

			
}

function expandcontent(cid){
	if (document.getElementById){
		for(i=1; i<=10; i++){
			if (i<=cid){
				document.getElementById("childage"+i).style.display="block";
			} else {
				document.getElementById("childage"+i).style.display="none";
				document.getElementById("age"+i).value="0";
			}
		}
	}
}
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;




//////////////////// GetElementByClassName

function getElementsByClassName(oElm, strTagName, oClassNames){
    var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
    var arrReturnElements = new Array();
    var arrRegExpClassNames = new Array();
    if(typeof oClassNames == "object"){
        for(var i=0; i<oClassNames.length; i++){
            arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames[i].replace(/\-/g, "\\-") + "(\\s|$)"));
        }
    }
    else{
        arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames.replace(/\-/g, "\\-") + "(\\s|$)"));
    }
    var oElement;
    var bMatchesAll;
    for(var j=0; j<arrElements.length; j++){
        oElement = arrElements[j];
        bMatchesAll = true;
        for(var k=0; k<arrRegExpClassNames.length; k++){
            if(!arrRegExpClassNames[k].test(oElement.className)){
                bMatchesAll = false;
                break;                      
            }
        }
        if(bMatchesAll){
            arrReturnElements.push(oElement);
        }
    }
    return (arrReturnElements)
}

//////////////////// IE - HOVER

function iehover(id,classname){
	if (document.getElementById(id)){
		if (getElementsByClassName(document.getElementById(id),"div",classname)){
			var classes = getElementsByClassName(document.getElementById(id),"div",classname);
			for (var i=0; i<classes.length; i++) {
				classes[i].onmouseover = function(){
					this.style.background = "#f3f3f3";
				}
				classes[i].onmouseout = function(){
					this.style.background = "";
				}
			}
		}
	}
	
}
///////////////////  Tooltipps

tooltipaktive = false;
function getMousePos(e) {
	if (document.all) { // IF is IE
		mousex=event.x + document.documentElement.scrollLeft; 
		mousey=event.y + document.documentElement.scrollTop;
	}
	else {mousex=e.pageX; mousey=e.pageY;}
	if(tooltipaktive == true){
		document.getElementById("tooltip_div").style.left = (mousex+10) + "px";
		document.getElementById("tooltip_div").style.top = (mousey+5) + "px";
	}
	//ret = new Array(mousex, mousey);
	//return ret;
}
document.onmousemove = getMousePos;
function tooltip_init(cname){
	for(i=0; i<document.images.length; i++){
		if(document.images[i].className == cname){
			document.images[i].onmouseover = function(){
				showTooltip(this);
			}
			document.images[i].onmouseout = function(){
				hideTooltip();
			}
			document.images[i].alt_h = document.images[i].alt;
			document.images[i].alt = "";
		}
	}
}
function showTooltip(obj){
	var mydiv = document.createElement("div");
	mydiv.id = "tooltip_div";
	mydiv.style.position = "absolute";
	mydiv.style.left = (mousex+10) + "px";
	mydiv.style.top = (mousey+5) + "px";
	var myText = document.createTextNode(obj.alt_h);
	mydiv.appendChild(myText);
	document.body.appendChild(mydiv);
	tooltipaktive = true;
}
function hideTooltip(obj){
	knoten = document.body.childNodes[document.body.childNodes.length-1];
	if(knoten.id == "tooltip_div"){
		document.body.removeChild(knoten);
	}
	tooltipaktive = false;
}


/* ////////////////////////////////////////////////////////////////                            
                               By i4m                              
///////////////////////////////////////////////////////////////////

Struktur:
<ul>
	<li><a>TXT</a>
		<ul>
			<li><a>TXT</a>
		</ul>
	</li>
</ul>

<ul>
	<span><a>TXT</a>
		<div>
			<span><a>TXT</a></span>
		</div>
	</span>
</ul>
*/
function DrMenu(menuid){
	var self = this;
	this.menuid = menuid;
	this.active_items = new Array();  // Array für aktive Elemente
	this.html_menu = document.getElementById(this.menuid);  // Referenz auf die UL des Menus
	this.menu_event = "over"; // over oder click möglich
	this.show_parent_active = true; // wenn der/die Parent(s) aktiv bleiben sollen wird über die .hover classe gesteuert
	this.linkOut = true;  // ob beim überfahren einens anderen Menüpunktes das aktive Submenu verschwinden soll.
	this.needIeSelectBoxBugFix = ((navigator.appVersion.indexOf("MSIE 5") != -1 || navigator.appVersion.indexOf("MSIE 6") != -1) && navigator.userAgent.indexOf("Opera")==-1); // ob der IeSelectBoxBug gefixt werden muss
	this.init = function(){
		this.html_menu.obref = this;  // Referenz auf das DrMenu-Object
		this.html_menu.innerHTML = this.html_menu.innerHTML.replace(/<UL([^>]*)>/gi, '<div$1>').replace(/<\/UL>/gi, "</div>").replace(/<LI([^>]*)>/gi, '<span$1>').replace(/<\/LI>/gi, "</span>");  // ul wird durch div ersetzt und li durch span
		for(i=0; i<this.html_menu.getElementsByTagName("a").length; i++){  // Ereignissfunktionen werden gesetzt
			if(this.menu_event=="over" && this.html_menu.getElementsByTagName("a")[i].parentNode.getElementsByTagName("div").length>0){  // Wenn der Link ein Submenü beinhaltet
				this.html_menu.getElementsByTagName("a")[i].onmouseover = this.itemOver;
				this.html_menu.getElementsByTagName("a")[i].onmouseout = this.itemOut;
				this.html_menu.getElementsByTagName("a")[i].className += " nextlevel";
				this.html_menu.getElementsByTagName("a")[i].parentNode.getElementsByTagName("div")[0].onmouseover = this.drOver;
				this.html_menu.getElementsByTagName("a")[i].parentNode.getElementsByTagName("div")[0].onmouseout = this.drOut;
				this.html_menu.getElementsByTagName("a")[i].parentNode.getElementsByTagName("div")[0].style.display = "block";  // Das Submenü wird sichtbar gemacht (für die Breitenfeststellung nötig)
				this.setClassWidth(this.html_menu.getElementsByTagName("a")[i].parentNode.getElementsByTagName("div")[0]);  // Breitenfeststellung und Setzung
			}
			else if(this.menu_event=="over" && this.linkOut){  // Wenn der Link kein Submenü beinhaltet
				this.html_menu.getElementsByTagName("a")[i].onmouseover = this.lwsmItemOver;
			}
			else if(this.menu_event=="click" && this.html_menu.getElementsByTagName("a")[i].parentNode.getElementsByTagName("div").length>0){
				this.html_menu.getElementsByTagName("a")[i].onclick = this.itemOver;
				this.html_menu.getElementsByTagName("a")[i].parentNode.getElementsByTagName("div")[0].style.display = "block";  // Das Submenü wird sichtbar gemacht (für die Breitenfeststellung nötig)
				this.setClassWidth(this.html_menu.getElementsByTagName("a")[i].parentNode.getElementsByTagName("div")[0]);  // Breitenfeststellung und Setzung
			}
		}
		for(i=this.html_menu.getElementsByTagName("a").length-1; i>=0; i--){
			if(this.html_menu.getElementsByTagName("a")[i].parentNode.getElementsByTagName("div").length>0){
				this.html_menu.getElementsByTagName("a")[i].parentNode.getElementsByTagName("div")[0].style.display = "none";
				this.html_menu.getElementsByTagName("a")[i].parentNode.getElementsByTagName("div")[0].style.width = this.html_menu.getElementsByTagName("a")[i].parentNode.getElementsByTagName("div")[0].zw_width
			}
		}
	}
	this.lwsmItemOver = function(){
		for(i=0; i<this.parentNode.parentNode.getElementsByTagName("div").length; i++){
			if(this.parentNode.parentNode.getElementsByTagName("div")[i].style.display == "block"){
				self.itemOutTime(this.parentNode.parentNode.getElementsByTagName("div")[i].parentNode.getElementsByTagName("a")[0]);
			}
		}
	}
	this.itemOver = function(){
		zw = true;
		for(i=0; i<this.parentNode.getElementsByTagName("div").length; i++){
			if(this.parentNode.getElementsByTagName("div")[i].style.display == "block"){
				zw=false;
				break;
			}
		}
		if(zw){		
			for(i=0; i<	self.active_items.length; i++){
				self.itemOutTime(self.active_items[i]);
			}
			old_items = self.active_items;
			self.active_items = new Array();
			for(zw=this;zw; zw=zw.parentNode.parentNode.parentNode.getElementsByTagName("a")[0]){
				if(!zw.parentNode.getElementsByTagName("div")[0]){
					zw=false;
					break;
				}
				zw.parentNode.getElementsByTagName("div")[0].style.display = "block";
				self.active_items[self.active_items.length] = zw;
				if(!zw.parentNode.parentNode.parentNode.getElementsByTagName("a")[0]){
					zw=false;
					break;
				}
			}
		}
		this.parentNode.getElementsByTagName("div")[0].style.display = "block";
		if(self.show_parent_active){
			this.className = this.className + " hover";
		}
		if(old_items){
			for(i=0; i<old_items.length; i++){
				zw=false;
				for(j=0; j<self.active_items.length; j++){
					if(old_items[i].parentNode.innerHTML == self.active_items[j].parentNode.innerHTML){
						zw=true;
						break;
					}
				}
				if(!zw){
					self.itemOutTime(old_items[i]);
				}
			}
			old_items = false;
		}
		if(this.timeout){
			clearTimeout(this.timeout);
		}
	}
	this.drOver = function(){
		this.parentNode.getElementsByTagName("a")[0].onmouseover();
	}
	this.drOut = function(){
		this.parentNode.getElementsByTagName("a")[0].onmouseout();
	}
	this.itemOut = function(){
		this.timeout = setTimeout(function(a,b) { return function() { b.itemOutTime(a); } } (this,self), 300);
	}
	this.itemOutTime = function(object){
		object.parentNode.getElementsByTagName("div")[0].style.display = "none";
		object.className = object.className.replace(/hover/g, "");
	}
	this.setClassWidth = function(object){
		maxwidth = 0;
		for(j=0; j<object.childNodes.length; j++){
			if(object.childNodes[j].getElementsByTagName){
				if(object.childNodes[j].getElementsByTagName("a")[0].offsetWidth>maxwidth){
					maxwidth = object.childNodes[j].getElementsByTagName("a")[0].offsetWidth;
				}
			}
		}
		for(j=0; j<object.childNodes.length; j++){
			if(object.childNodes[j].getElementsByTagName){
				object.childNodes[j].getElementsByTagName("a")[0].style.width = (maxwidth - getCurrentStyle(object.childNodes[j].getElementsByTagName("a")[0], 'padding-left').replace(/px/, "") - getCurrentStyle(object.childNodes[j].getElementsByTagName("a")[0], 'padding-right').replace(/px/, "")) + "px";
				if(navigator.appVersion.indexOf("MSIE 5.5") != -1 || navigator.appVersion.indexOf("MSIE 5.0") != -1){
					object.childNodes[j].getElementsByTagName("a")[0].style.width = maxwidth;
				}
				if(object.childNodes[j].getElementsByTagName("div").length>0){
					object.childNodes[j].getElementsByTagName("div")[0].style.left = maxwidth + "px";
				}
			}
		}
		object.zw_width = maxwidth + "px";
		if(self.needIeSelectBoxBugFix){  // Nur für IE 5 bis 6
			zw_iframe = document.createElement("iframe");
			object.insertBefore(zw_iframe, object.firstChild);
			zw_iframe.style.position = "absolute";
			zw_iframe.style.filter = 'alpha(opacity=0)';
			zw_iframe.style.left = (getCurrentStyle(object, "border-left-width").replace(/px/g, "")*(-1)) + (getCurrentStyle(object, "padding-left").replace(/px/g, "")*(-1)) + "px";
			zw_iframe.style.top = (getCurrentStyle(object, "border-top-width").replace(/px/g, "")*(-1)) + (getCurrentStyle(object, "padding-top").replace(/px/g, "")*(-1)) + "px";
			zw_iframe.style.width = (object.zw_width.replace(/px/g, "")*1) + (getCurrentStyle(object, "border-left-width").replace(/px/g, "")*1) + (getCurrentStyle(object, "border-right-width").replace(/px/g, "")*1) + (getCurrentStyle(object, "padding-left").replace(/px/g, "")*1) + (getCurrentStyle(object, "padding-right").replace(/px/g, "")*1) + "px";
			zw_iframe.style.height = (object.offsetHeight*1) + (getCurrentStyle(object, "border-top-width").replace(/px/g, "")*1) + (getCurrentStyle(object, "border-bottom-width").replace(/px/g, "")*1) + (getCurrentStyle(object, "padding-top").replace(/px/g, "")*1) + (getCurrentStyle(object, "padding-bottom").replace(/px/g, "")*1) + "px";
		}
	}
}
function getCurrentStyle(obj, prop){  // Gibt den Wert des abgefragten CSS-Wertes zurück
	if(obj.currentStyle){
		if(obj.currentStyle.getAttribute(prop.replace(/\-/g, ""))){
			return obj.currentStyle.getAttribute(prop.replace(/\-/g, ""));
		}
		return "";
	}
	else if(document.defaultView && document.defaultView.getComputedStyle){
		if(document.defaultView.getComputedStyle(obj,"").getPropertyValue(prop)){
			return document.defaultView.getComputedStyle(obj,"").getPropertyValue(prop);
		}
		return "";
	}
	else if(window.getComputedStyle){
		if(window.getComputedStyle(obj,"").getPropertyValue(prop)){
			return window.getComputedStyle(obj,"").getPropertyValue(prop);
		}
		return "";
	}
	else{
		if(obj.style.getAttribute(prop.replace(/\-/g, ""))){
			return obj.style.getAttribute(prop.replace(/\-/g, ""));
		}
		return "";
	}
}


function setTab(obref, id, lang){
	for(i=0; i<obref.parentNode.parentNode.getElementsByTagName("a").length; i++){
		obref.parentNode.parentNode.getElementsByTagName("a")[i].className = "";
	}
	for(i=0; i<obref.parentNode.parentNode.parentNode.getElementsByTagName("div").length; i++){
		if(obref.parentNode.parentNode.parentNode.getElementsByTagName("div")[i].id.indexOf("tc_")!=-1){
			obref.parentNode.parentNode.parentNode.getElementsByTagName("div")[i].style.display = "none";
		}
	}
	document.getElementById("tc_" + id).style.display = "block";
	obref.className = "active";
	if(id=="packages"){
		getsrc("/packages/index.php?top=1&nohf=1&lang="+lang, "tc_"+id);
	}
	obref.blur();
	return false;
}


function initSearchBox(txt_feld, lang){
	var searchlang = lang;
	var searchinput=document.getElementById("searchinput");
	var searchresult=document.getElementById("searchresult");
	
	searchinput.onblur = function() {
		if (searchinput.value==""){searchinput.value=txt_feld;}
		sh("searchresult","none");
	}

	searchresult.onfocus = function() {
		sh("searchresult","block");
	}

	searchinput.onfocus = function() {
		if (searchinput.value=="Suche nach Namen"){searchinput.value="";}
		document.getElementById("searchresult").innerHTML = '<p>' + txt_feld + '</p>';
		sh("searchresult","block");
	}
	
	searchinput.onkeyup = function(evt){
		if (searchinput.value==""){
			sh("searchresult","none")
		} else {
			sh("searchresult","block")
		}
		var terms="";
		var terms=document.getElementById("searchinput").value;
		var searchurl = "/hotels/?action=incremental&cc=1&lang=" + searchlang + "&terms="+terms;
		if (evt) { 
			key = evt.keyCode;
		} else {
		    key = event.keyCode;
		}
		if (key!=37 && key!=38 && key!=39 && key!=40){ // search if no arrow-keys!
			document.activeid=-1;
			getsrc(searchurl,"searchresult");		
		}		
	}

	searchinput.onkeydown = function(evt){		
	
		activeid=document.activeid;		
		for (i=0;i<searchresult.getElementsByTagName("UL")[0].getElementsByTagName("LI").length;i++){
			searchresult.getElementsByTagName("UL")[0].getElementsByTagName("LI")[i].getElementsByTagName("A")[0].id="searchlist"+i;
			document.getElementById("searchlist"+i).className="";
		}
		var maxnum = i;
		if (evt) { 
			key = evt.keyCode;
		} else {
		    key = event.keyCode;
		}		
		if (key=="38"){ // up -> scroll up
			if (activeid<=0){activeid=0;}else{activeid = activeid-1;}
			document.getElementById("searchlist"+(activeid)).className="active";			
			

		} else if (key=="40"){ // down -> scroll down
			if(activeid>=maxnum-1){activeid=maxnum-1}else{activeid=activeid+1}
			document.getElementById("searchlist"+(activeid)).className="active";
			
			
		} else if (key=="13") {
			document.location.href=document.getElementById("searchlist"+(activeid)).href;
		}	
		document.activeid = activeid;
	}
}
function startSlideShow(object, path, size){
	object.picsize = size;
	object.aktpic = 0;
	object.path = path;
	setTimeout('runSlideShow("' + object.id + '")', 4000);
}
function runSlideShow(objectid){
	object = document.getElementById(objectid);
	if (document.all){
		object.style.filter='blendTrans(duration='+'2'+')';
		object.filters.blendTrans.Apply();   
	}
	object.aktpic++;
	if(object.aktpic>=object.picsize){
		object.aktpic=0;
	}
	object.src = object.path + object.aktpic + ".jpg";
	if (document.all){
		object.filters.blendTrans.Play();
	}
	setTimeout('runSlideShow("' + objectid + '")', 4000);
}


function logClick2(id, func){
	var mydate = new Date();
	myURL = 'http://alpine.log.checkeffect.at/' + func + '/alpine/' + id + '/' + mydate.getTime();
	webBug = new Image();
	webBug.src = myURL;
	return true;
}
function logClick(e, myID, func) {
	if (document.all) {
		if (event.button!=2 && event.button!=3) {
			logClick2(myID, func);
		}
	} else if (document.getElementById){
			if (e.which!=3){
				logClick2(myID, func);
			}
	}
};
	
