/* Frankie's Javascript (copyright 2001) */


/* Browsercheck */


/* Bookmark */

var bookurl=window.parent.location.href;
var booktitle=window.document.title;

book = "<A HREF='javascript:window.external.AddFavorite(bookurl,booktitle);'>";

/* JS-Fehler unterdrücken (wichtig falls Werbe-Links nicht funken) */

function stoperror(){
return true
}
window.onerror=stoperror;

/* Datum (langes Format - deutsch) */

monName = new Array ("Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember")
now = new Date

if (now.getDate() < 10) {
adatum= "0" + now.getDate() + ". " + monName[now.getMonth()] + " " + now.getYear();
}
else {
adatum= now.getDate() + ". " + monName[now.getMonth()] + " " + now.getYear();
}

/* Text Statuszeile */

var timerID = null;
var bannerRunning = false;
		
var currentMessage = 0;
var offset = 0;
	
function stopBanner() {
	if (bannerRunning) clearTimeout(timerID);
	bannerRunning = false;
}
stopBanner();

function showBanner() {
  var text = ar[currentMessage]
	if (offset < text.length) {
	  if (text.charAt(offset) == " ") offset++;                     
	  var partialMessage = text.substring(0, offset + 1);
	  window.status = partialMessage;
	  offset++;
	  timerID = setTimeout("showBanner()", speed);
	  bannerRunning = true;
} else {
      offset = 0;
      currentMessage++;
      if (currentMessage == ar.length) currentMessage = 0;
      timerID = setTimeout("showBanner()", pause2);
      bannerRunning = true;
   }
}

/* QuickLink */
function MM_jumpMenu(targ,selObj,restore){ 
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function JumpMenu2(selObj)
{ 
	eval("self.location.href='"+selObj.options[selObj.selectedIndex].value+"'"); 
}


/* Fenster öffnen mit variabler B x H */
function openWindow(url, width, height, fenstername) {
	if ((width + 30 > screen.width) || (height + 60 > screen.height))
	{
		width = width + 50;
		if (width > screen.width - 80) width = screen.width - 80;
		height = height + 50;
		if (height > screen.height - 110) height = screen.height - 110;
		window.open(url, fenstername, "resizable, scrollbars, menubar, width=" + width + ",height=" + height + ",top=40,left=40,screenX=40,screenY=40");
	}
	else
	{
		width = width + 18;
		height = height + 26;
		window.open(url, fenstername, "resizable, scrollbars, menubar, width=" + width + ",height=" + height + ",top=40,left=40,screenX=40,screenY=40");
	}
}

/* Fenster öffnen bei X=Y=0 */
function openWindow_00(url, width, height, fenstername) {
	if ((width + 30 > screen.width) || (height + 60 > screen.height))
	{
		width = width + 50;
		if (width > screen.width - 80) width = screen.width - 80;
		height = height + 50;
		if (height > screen.height - 110)	height = screen.height - 110;
		window.open(url, fenstername, "resizable, scrollbars, width=" + width + ",height=" + height + ",top=0,left=0,screenX=0,screenY=0");
	}
	else
	{
		width = width + 18;
		height = height + 26;
		window.open(url, fenstername, "resizable, scrollbars, width=" + width + ",height=" + height + ",top=0,left=0,screenX=0,screenY=0");
	}
}

/* Fenster öffnen mit fester B x H (links oben mit Abstand X=Y=40)*/
function openWindow_lo(url) {
	width = 300;
	height = 200;
	if ((width + 30 > screen.width) || (height + 60 > screen.height))
	{
		width = width + 50;
		if (width > screen.width - 80) width = screen.width - 80;
		height = height + 50;
		if (height > screen.height - 110)	height = screen.height - 110;
		window.open(url, "Image", "resizable, scrollbars, width=" + width + ",height=" + height + ",top=40,left=40,screenX=40,screenY=40");
	}
	else
	{
		width = width + 18;
		height = height + 26;
		window.open(url, "Image", "resizable, scrollbars, width=" + width + ",height=" + height + ",top=40,left=40,screenX=40,screenY=40");
	}
}

/* Fenster öffnen mit fester B x H (rechts unten)*/
function openWindow_ru(url) {
	width = 400;
	height = 300;
	width = width + 18;
	height = height + 26;
	toppos = screen.height - (height + 80);
	leftpos = screen.width - (width +40);
	window.open(url, "_blank", "resizable, scrollbars, width=" + width + ",height=" + height + ",top=" + toppos + ",left=" + leftpos + ",screenY=" + toppos + ",screenX=" + leftpos);
}

/* EOF */
