if (document.URL.toLowerCase().indexOf("pfefferonis.de") >= 0)
	location.replace(document.URL.toLowerCase().replace(/pfefferonis/, "straightflash"));
switch (window.name) {
	case "sfhtml":
		break;
  default:
		window.name = "sfmain";
		switch (fctDName(document.URL)) {
			case "inge.htm":
			case "georg.htm":
			case "stefan.htm":
			case "holger.htm":
			case "martin.htm":
				window.open("index.htm", "_self");
				location.replace("index.htm");
				break;
			case "":
			case "index.htm":
				var jetzt = new Date();
				var Rolinck = new Date(2004, 7 - 1, 18, 0, 0, 0);
				if (Math.floor(Rolinck.getTime() - jetzt.getTime()) > 0)
					window.open("http://www.rolinck.de/pop.html", "popup", "width=300, height=300, left=50, top=50, screenX=50, screenY=50");
		}
}
function externalLinks() {
	if (!document.getElementsByTagName)
		return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel"))
			anchor.target = anchor.getAttribute("rel"); 
	}
} 
window.onload = externalLinks;
function fctDName(s) {
	var p = s.indexOf("#");
	if (p != -1)
		s = s.substr(0, p);
	p = s.lastIndexOf("\\");
	if (p == -1)
		p = s.lastIndexOf("/");
	return s.substr(p + 1, s.length - p - 1);
}
function toptab() {
	document.write('<a name="top">&nbsp;</a>\n');
	document.write('<a href="index.htm"><img src="straightflash.gif" alt="Straight Flash" width="290" height="50"></a>\n');
	document.write('<table class="menue" width="100%" border="0" cellspacing="0" cellpadding="0">\n');
	document.write('	<tr>\n');
	document.write('		<td><a href="index.htm" OnFocus="blur();">Home</a></td>\n');
	document.write('		<td><a href="info.htm" OnFocus="blur();">Info</a></td>\n');
	document.write('		<td><a href="band.htm" OnFocus="blur();">Die&nbsp;Band</a></td>\n');
	document.write('		<td><a href="http://www.welnet4u.de/wf/index.php?u=pfefferonis" rel="_blank" OnFocus="blur();">Aktuelles</a></td>\n');
	document.write('		<td><a href="programm.htm" OnFocus="blur();">Programm</a></td>\n');
	document.write('		<td><a href="galerie.htm" OnFocus="blur();">Galerie</a></td>\n');
	document.write('		<td><a href="referenzen.htm" OnFocus="blur();">Referenzen</a></td>\n');
	document.write('		<td><a href="impressum.htm" OnFocus="blur();">Impressum</a></td>\n');
	document.write('		<td><a href="http://www.100pro-gaestebuch.de/gbserver/guestbook.pl?seite=1&amp;anzeigen=10&amp;id=Pfefferonis" rel="_blank" OnFocus="blur();">G&auml;stebuch</a></td>\n');
	document.write('		<td><a href="links.htm" OnFocus="blur();">Links</a></td>\n');
	document.write('	</tr>\n');
	document.write('</table>\n');
}
function ZeigeBanner() {
	document.FormBanner.TextBanner.value = '<a href="http://www.straightflash.de" target="_blank"> <img style="border:0;width:290px;height:50px" src="http://www.straightflash.de/straightflash.gif" alt="Straight Flash"> </a>';
}
function ZeigeBild(Bild, dx, dy) {
	if (typeof(InfoZeigeBild) == "object" && InfoZeigeBild.closed == false)
		InfoZeigeBild.close();
	if (Bild != "") {
		var x = 25;
		var y = 25;
		var Fenstername = "sfbild";
		var Titel = "Straight Flash - Bild";
		var Zieladresse = "about:blank";
		var height = dy;
		var scrollbars = "no";
		if (dy > 480) {
			scrollbars = "yes";
			dx = dx + 18;
			dy = 480;
		}
		var Eigenschaften = "scrollbars=" + scrollbars + "," + "width=" + dx + "," + "height=" + dy + "," + "left=" + x + "," + "top=" + y;
		InfoZeigeBild = window.open(Zieladresse, Fenstername, Eigenschaften);
		with(InfoZeigeBild) {
			document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\n');
			document.write('<html>\n');
			document.write('<head>\n');
			document.write('<title>' + Titel + '</title>\n');
			document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n');
			document.write('<style type="text/css">\n');
			document.write('<!--\n');
			document.write('body {\n');
			document.write('background-image : url(' + Bild + ');\n');
			document.write('background-repeat : no-repeat;\n');
			document.write('margin : 0;\n');
			document.write('height : ' + height + 'px;\n');
			document.write('}\n');
			document.write('-->\n');
			document.write('</style>\n');
			document.write('</head>\n');
			document.write('<body>\n');
			document.write('<p>&nbsp;</p>\n');
			document.write('</body>\n');
			document.write('</html>\n');
			focus();
		}
	}
}
function ZeigeHTML(Zieladresse, Groesse) {
	if (typeof(InfoZeigeHTML) == "object" && InfoZeigeHTML.closed == false)
		InfoZeigeHTML.close();
	if (Zieladresse != "") {
		var Fenstername = "sfhtml";
		var dx;
		var dy = 340;
		var x = 25;
		var y = 25;
		switch (Groesse) {
			case 1:
				dx = 713;
				break;
			case 2:
				dx = 790;
				if (screen.width <= 800)
					x = 0;
				break;
		}
		var Eigenschaften = "width=" + dx + "," + "height=" + dy + "," + "left=" + x + "," + "top=" + y;
		InfoZeigeHTML = window.open(Zieladresse, Fenstername, Eigenschaften);
		InfoZeigeHTML.focus();
	}
}
