function printPage() {
if (window.print) {
jetztdrucken = confirm('Seite drucken ?');
if (jetztdrucken) window.print();
   }
}

function AusblendenSlide(div)
{
	Effect.BlindUp(div, { duration: 0.8 });
}
									
function EinblendenSlide(div)
{
	Effect.BlindDown(div, { duration: 0.8});
}

jQuery(document).ready(function(){
	jQuery("#economy-link").click(function ()
	{
      	if (jQuery("#economy").is(":hidden"))
      	{
      	   jQuery("#comfort").slideUp('slow');
      	   jQuery("#comfort-titel-div").css('height','93px');
      	   
      	   jQuery("#executive").slideUp('slow');
      	   jQuery("#executive-titel-div").css('height','93px');
      	   
      	   jQuery("#deluxe").slideUp('slow');
      	   jQuery("#deluxe-titel-div").css('height','93px');
      	   
      	   jQuery("#superior").slideUp('slow');
      	   jQuery("#superior-titel-div").css('height','93px');
      	 
      	 
      	   jQuery("#economy").slideDown("slow");
      	   jQuery("#economy-titel-div").css('height','98px');
      	} 
      	else
      	{
      	   jQuery("#economy").slideUp('slow');
      	   jQuery("#economy-titel-div").css('height','93px');
      	}
	});
});

jQuery(document).ready(function(){
	jQuery("#comfort-link").click(function ()
	{
      	if (jQuery("#comfort").is(":hidden"))
      	{
      	   jQuery("#executive").slideUp('slow');
      	   jQuery("#executive-titel-div").css('height','93px');
      	   
      	   jQuery("#deluxe").slideUp('slow');
      	   jQuery("#deluxe-titel-div").css('height','93px');
      	   
      	   jQuery("#superior").slideUp('slow');
      	   jQuery("#superior-titel-div").css('height','93px'); 
      	 
      	   jQuery("#economy").slideUp("slow");
      	   jQuery("#economy-titel-div").css('height','93px');
      	   
      	   
      	   jQuery("#comfort").slideDown("slow");
      	   jQuery("#comfort-titel-div").css('height','98px');
      	} 
      	else
      	{
      	   jQuery("#comfort").slideUp('slow');
      	   jQuery("#comfort-titel-div").css('height','93px');
      	}
	});
});

jQuery(document).ready(function(){
	jQuery("#executive-link").click(function ()
	{
      	if (jQuery("#executive").is(":hidden"))
      	{
      	   jQuery("#comfort").slideUp('slow');
      	   jQuery("#comfort-titel-div").css('height','93px');
      	   
      	   jQuery("#deluxe").slideUp('slow');
      	   jQuery("#deluxe-titel-div").css('height','93px');
      	   
      	   jQuery("#superior").slideUp('slow');
      	   jQuery("#superior-titel-div").css('height','93px');
      	 
      	   jQuery("#economy").slideUp("slow");
      	   jQuery("#economy-titel-div").css('height','93px');
      	   
      	   
      	   jQuery("#executive").slideDown("slow");
      	   jQuery("#executive-titel-div").css('height','98px');
      	} 
      	else
      	{
      	   jQuery("#executive").slideUp('slow');
      	   jQuery("#executive-titel-div").css('height','93px');
      	}
	});
});

jQuery(document).ready(function(){
	jQuery("#deluxe-link").click(function ()
	{
      	if (jQuery("#deluxe").is(":hidden"))
      	{
      	   jQuery("#comfort").slideUp('slow');
      	   jQuery("#comfort-titel-div").css('height','93px');
      	   
      	   jQuery("#executive").slideUp('slow');
      	   jQuery("#executive-titel-div").css('height','93px');
      	   
      	   jQuery("#superior").slideUp('slow');
      	   jQuery("#superior-titel-div").css('height','93px');
      	 
      	   jQuery("#economy").slideUp("slow");
      	   jQuery("#economy-titel-div").css('height','93px');
      	   
      	   
      	   jQuery("#deluxe").slideDown("slow");
      	   jQuery("#deluxe-titel-div").css('height','98px');
      	} 
      	else
      	{
      	   jQuery("#deluxe").slideUp('slow');
      	   jQuery("#deluxe-titel-div").css('height','93px');
      	}
	});
});

jQuery(document).ready(function(){
	jQuery("#superior-link").click(function ()
	{
      	if (jQuery("#superior").is(":hidden"))
      	{
      	   jQuery("#comfort").slideUp('slow');
      	   jQuery("#comfort-titel-div").css('height','93px');
      	   
      	   jQuery("#executive").slideUp('slow');
      	   jQuery("#executive-titel-div").css('height','93px');
      	   
      	   jQuery("#deluxe").slideUp('slow');
      	   jQuery("#deluxe-titel-div").css('height','93px');
      	 
      	   jQuery("#economy").slideUp("slow");
      	   jQuery("#economy-titel-div").css('height','93px');
      	   
      	   jQuery("#superior").slideDown("slow");
      	   jQuery("#superior-titel-div").css('height','98px');
      	} 
      	else
      	{
      	   jQuery("#superior").slideUp('slow');
      	   jQuery("#superior-titel-div").css('height','93px');
      	}
	});
});

Shadowbox.init({
    language:   "de-DE",
    players:    ["img", "html", "iframe", "qt", "wmp", "swf","flv"]
});

function oeffnefenster(url) {
 fenster = window.open(url, "Hotelbuchung Koehlers-Forsthaus", "width=950,height=725,status=yes,scrollbars=yes,resizable=yes");
 fenster.focus();
}

function popup(url) {

var popWidth = 950;
var popHeight = 725; 
var popX = (screen.width/2) - (popWidth/2);
var popY = (screen.height/2) - (popHeight/2);

 
fenster=open(url,'win','scrollbars=no,toolbar=no,resizable=no,location=no,status=no,width=950,height=725, left='+popX+', top='+popY);
void(0);

return false;
}


function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
   {
   for(var i=0; i<document.images.length; i++)
      {
      var img = document.images[i]
      var imgName = img.src.toUpperCase ()
      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
         var imgID = (img.id) ? "id='" + img.id + "' " : "" 
         var imgClass = (img.className) ? "class='" + img.className + "' " : ""
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
         var imgStyle = "display:inline-block;" + img.style.cssText 
         if (img.align == "left") imgStyle = "float:left;" + imgStyle
         if (img.align == "right") imgStyle = "float:right;" + imgStyle
         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle        
         var strNewHTML = "<span " + imgID + imgClass + imgTitle 
         + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader "
         + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
         img.outerHTML = strNewHTML
         i = i-1
         }
      }
   }
   window.attachEvent ("onload", correctPNG);
   function googleTranslateElementInit() {
   new google.translate.TranslateElement({
    pageLanguage: 'de',
    includedLanguages: 'en,nl'
  }, 'google_translate_element');
}
