function startGallery() {
  var myGallery = new gallery($('myGallery'), { timed: false, defaultTransition: "fadeslideleft" });
}

function newWindow(sURL) {
  window.open(sURL,"popupcontent","menubar=no,width=790,height=400,toolbar=no,scrollbars=yes");
}

function newPictureWindow(sURL) {
  window.open('picture.asp?bild_id=' + sURL,"popupcontent","menubar=no,width=800,height=360,toolbar=no,scrollbars=no");
}

function adjust_background() {
  container_element = document.getElementById('html');
  if(container_element.clientHeight < container_element.scrollHeight) {
    // Scrollbalken aktiv
    document.getElementById("content_wrapper_content").style.height = "auto";
  }
  else {
    // Scrollbalken nicht aktiv
    document.getElementById("content_wrapper_content").style.height = "100%";
  }
}

// Für Internet Explorer 1 Pixel Bug
function to_even() {
  if(document.body.clientWidth % 2 == 1)
  {
    self.resizeTo(document.body.offsetWidth + 11, document.body.offsetHeight + 10);
  }
}
