// Frame freischießen!
//if (window.location.host != "www.archiv-lauban.de" || self.location == top.location){ top.location.replace("http://www.archiv-lauban.de") }

// Netscape 4 bug!
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

var message="Die Bilder dieser Seite stehen unter Kopierschutz!\n\n© 2002-2005 Kurt-Michael Beckert";
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

function statu()
	{
	window.status="© 2002-2005 Kurt-Michael Beckert";
	}

function k(){

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;

}
document.oncontextmenu=new Function("shake(4);alert(message);return false");
document.onmousemove=statu;
}



// Rechtsklick starten!
k();

function shake(n)
	{
	if (top.moveBy)
		{
		for (i = 10; i > 0; i--)
			{
			for (j = n; j > 0; j--)
				{
				top.moveBy(0,i);
				top.moveBy(i,0);
				top.moveBy(0,-i);
				top.moveBy(-i,0);
         		}
      		}
   		}
	}

function wi(nr)
	{
	parent.kli='b'+nr;
	if (document.all)
		{parent.menue.location.href('menue1.html')}
		else
		{parent.menue.location.reload()}
	}


//if (window.location.host != "http://agoff.genealogy.net/archiv-lauban/index.htm" || //self.location != top.location){top.location.replace("http://agoff.genealogy.net/archiv-//lauban/index.htm")}
//scrW = screen.width;
//scrH = screen.height;
//outerHeight = screen.height;
//outerWidth = screen.width;
//if(navigator.appName=="Netscape" && (navigator.appVersion.substr(0,1))==4){scrH=scrH-30;}
//resizeTo( scrW-0, scrH-26 );
//moveTo ( 0,0 );
