// --{ popup stuff } ---------------------------------------------------------------

var newWin;
function launchWin(url, name, px, py, settings){
	newWin = window.open(url, name, 'width='+px+',height='+py+','+settings);
	if(newWin.moveTo)newWin.moveTo(screen.availWidth - px - 20, 10);
	setTimeout('newWin.focus()', 250);
}

function showPhoto(image, sx, sy){
	var settings = 'resizeable=no,status=no,menubar=no,locationbar=no,scrollbars='+((sx > sy)?'no':'yes');
	var p = String(image).indexOf('.');
	if(p > 0){
		launchWin('./photo.html?pic='+ image +'&sx='+ sx +'&sy='+ sy, image.substr(0, p), sx, ((sx > sy) ? sy : sx), settings);
	} else {
		alert("ERROR: wrong picture");
		return false;
	}
}

// --{ no right click } ------------------------------------------------------------

function nrghtclk(e){if(nv==4){if(e.which == 3)return false;}else if(e.button==2||e.button==3){e.preventDefault();return false}}
nn=navigator.appName; nv=parseInt(navigator.appVersion); d=document;
if(nn=="Netscape"&&nv==4){d.onmousedown=nrghtclk;document.captureEvents(Event.MOUSEDOWN)}
if(nn=="Netscape"&&nv>=5)d.onmouseup=nrghtclk;
if(nn=="Microsoft Internet Explorer")d.oncontextmenu=new Function("return false");

// --{ no foreign frameset } -------------------------------------------------------

if((top.location != self.location) && (top.location!="http://thoralt.ehecht.com/")) top.location = self.location;

// --{ misc } ----------------------------------------------------------------------

statusMsg = "thoralt.de - alles andere is kindergarten";
top.status = statusMsg;