<!--

var Fenster = null;

function neuesFenster(meineSeite,meinName,w,h,scroll) {
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	Fenster = window.open(meineSeite,meinName,settings)
	}

function applyPopups()
{
  a = document.getElementsByTagName("a");

  for(i=0; i<a.length; i++)
  {
    if(a[i].getAttribute("rel") && a[i].getAttribute("rel") == "popup512")
    {
      a[i].onclick = function()
      {
        url = this.getAttribute("href");
        window.open(url,'popup','width=512,height=384');
        return false;
      }
    }
    if(a[i].getAttribute("rel") && a[i].getAttribute("rel") == "popup640")
    {
      a[i].onclick = function()
      {
        url = this.getAttribute("href");
        window.open(url,'popup','width=640,height=480,scrollbars=yes');
        return false;
      }
    }
    if(a[i].getAttribute("rel") && a[i].getAttribute("rel") == "popup640sq")
    {
      a[i].onclick = function()
      {
        url = this.getAttribute("href");
        window.open(url,'popup','width=640,height=640,scrollbars=no');
        return false;
      }
    }
    if(a[i].getAttribute("rel") && a[i].getAttribute("rel") == "popup800")
    {
      a[i].onclick = function()
      {
        url = this.getAttribute("href");
        window.open(url,'popup','width=800,height=600,scrollbars=yes');
        return false;
      }
    }
    if(a[i].getAttribute("rel") && a[i].getAttribute("rel") == "popup450")
    {
      a[i].onclick = function()
      {
        url = this.getAttribute("href");
        window.open(url,'popup','width=450,height=450,scrollbars=yes');
        return false;
      }
    }
    if(a[i].getAttribute("rel") && a[i].getAttribute("rel") == "popup520")
    {
      a[i].onclick = function()
      {
        url = this.getAttribute("href");
        window.open(url,'popup','width=520,height=520,scrollbars=yes');
        return false;
      }
    }
  }
}
 
window.onload = applyPopups;
//-->