
// browsercheck
function BrowserCheck() {
	this.agt = navigator.userAgent;
	this.app = navigator.appName;
	this.os = navigator.platform;
	this.lg = navigator.language;
	this.v = parseInt(navigator.appVersion);
	this.saf = (navigator.userAgent.indexOf('Safari')>0);
	this.ie = (navigator.userAgent.indexOf('MSIE')>0);
	this.ieOS9 = (navigator.platform=="MacPPC") && ((navigator.userAgent.indexOf('MSIE 4.5')>0) || (navigator.userAgent.indexOf('MSIE 5.0')>0) ||  (navigator.userAgent.indexOf('MSIE 5.1')>0));
	
	
	}
is = new BrowserCheck()


function brows(){
  alert(" is.v: "			+ is.v + 
		"\n  is.agt: "		+ is.agt + 
		"\n  is.app: "		+ is.app + 
		"\n  is.lg: "		+ is.lg + 
		"\n  is.os: "		+ is.os + 
		"\n  is.safari: "	+ is.saf + 
		"\n  is.ie: "		+ is.ie + 
		"\n  is.ieOS9: "	+ is.ieOS9 + 
		"\n  X*Y: "			+ breite + "*" + hoehe +
		"\n  URL: "			+ document.URL +
		"\n  schirm: "		+ screen.availWidth +" x "+ screen.availHeight + 
		"\n  fenster: "		+ top.document.body.offsetWidth + " x " + top.document.body.offsetHeight );
}



breite = 1014; 
hoehe  =  710;


// if(screen.availHeight <590 || screen.availWidth <1020) { breite = 780; hoehe = 480; }


if(is.os=='Win32') { 
	 if	(is.ie)		{hoehe -=0;}
}

if(is.os=='MacPPC') { 
	if		(is.saf)	{hoehe -=1;}
	else if	(is.ie)		{hoehe +=12;}
	else if	(is.ieOS9)	{hoehe -=60; breite +=40;}
}



// fenster zu klein => comp zu alt
if(screen.availHeight < 700) {document.write("<body><font face='arial,helvetica'>Your screen is too small to be able to view this site. Please increase the screen resolution<br>Ihr Bildschirm ist zu klein eingestellt. Bitte erhöhen Sie die Bildschirmauflösung.");document.close();};  


// go ...neues fenster  davor
function go(url) {
	self.resizeTo (800,650); 
	self.moveTo(5,5);
	neu = window.open(url,"fenster","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+breite+",height="+hoehe);
//	neu.moveTo(0,0);
	neu.focus();
} 

function start() { 
	if(is.ieOS9) { self.resizeTo (breite,hoehe); }

	if(screen.availWidth < 1051) { window.moveTo(0,0); }; /* nur bei kleinen Bildschirmen */

	self.focus();
}




// Steuerung mit Pfeilen ________________________________________________________________________________

var xLength;
var xnow;
var re=0; 
var li = 0;
var xPosition = 0;
var scrollAmount = 5;
var scrollInterval = 10;

function scrollre() {
	li=0;
	xnow=xversatz();
	xPosition = xnow + scrollAmount;
	parent.frames[1].scroll(xPosition,0);
	if(re>0 && xnow!=xversatz()) setTimeout('scrollre()',scrollInterval);
}

function scrollli() {
	re=0;
	xnow=xversatz();
	xPosition = xnow - scrollAmount;
	parent.frames[1].scroll(xPosition,0);
	if(li>0 && xnow!=xversatz()) setTimeout('scrollli()',scrollInterval);
}

function xversatz() {
  if (document.all)			return parent.frames[1].document.body.scrollLeft;
  else if (document.getElementById)	return parent.frames[1].pageXOffset;
  else if (document.layers)		return parent.frames[1].pageXOffset;
}

