function OpenGalerie(url,w,h) {
  var x = (screen.width - w) / 2;
  var y = (screen.height - h) / 2;
  parameter = 'height='+h+',width='+w+',top='+y+',left='+x+',scrollbars=no,resizable=no';
  banner = window.open(url, 'banner', parameter);
  banner.focus();
}

function OpenCard(url) {
  var x = (screen.width - 500) / 2;
  var y = (screen.height - 500) / 2;
  parameter = 'height=500,width=500,top='+y+',left='+x+',scrollbars=no,resizable=no';
  card = window.open(url, 'card', parameter);
  card.focus();
}

function OpenDisclaimer() {
  var x = (screen.width - 300) / 2;
  var y = (screen.height - 500) / 2;
  parameter = 'height=500,width=500,top='+y+',left='+x+',scrollbars=yes,resizable=no';
  disclaimer = window.open('/disclaimer.html', 'disclaimer', parameter);
  disclaimer.focus();
}

function init() {
  if(parent != null && parent != self) {
    var host=parent.location.hostname;
      if(host != "www.raskard.de") {
        top.location.href=self.location.href;
      }
  }
}

