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

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

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

function oeffnefenster2 (url) {
 fenster = window.open(url, "fenster1", "width=500,height=400,status=no,scrollbars=no,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 oeffnefenster(url) {
 fenster = window.open(url, "Hotelbuchung Koehlers-Forsthaus", "width=950,height=725,status=yes,scrollbars=yes,resizable=yes");
 fenster.focus();
}

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');
}


