/*****************************************************************************/
/* Variablen: */
/*****************************************************************************/

var theURLs = new Array();

theURLs[0] = "http://www.lps-welt.de";
theURLs[1] = "http://home.arcor.de/martinhastenteufel/fruestyxradio1.htm";
theURLs[2] = "http://fruehstyxradio.kunstklaubeirat.de/";
theURLs[3] = "http://www.plattenguelle.de";
theURLs[4] = "http://www.hotte.org/fsr.html";
theURLs[5] = "http://www.beepworld.de/members15/fsr-fan/fruehstyxradio.htm";
theURLs[6] = "http://www.lenz-online.de/fsr.htm";
theURLs[7] = "http://www.m-petz.de/Fsr/index.htm";
theURLs[8] = "http://www.thorix.de/fsr/fsr-frame.html";
/*theURLs[9] = "http://www.fsrdroehnung.de.vu/";*/
theURLs[9] = "http://www.frühstyxradio-forum.de/";
theURLs[10] = "http://mkafke.de/fsr/";
/*theURLs[12] = "";*/

/*
theURLs[6] = "http://www.sveni.purespace.de/kalkofe/kalkofe.html";
*/

/* - - - - - - - - - - - - - - - - - - - */

var theStrings = new Array();

theStrings[0] = "lps-welt";
theStrings[1] = "martinhastenteufel";
theStrings[2] = "kunstklaubeirat";
theStrings[3] = "plattenguelle";
theStrings[4] = "hotte.org";
theStrings[5] = "fsr-fan";
theStrings[6] = "lenz-online";
theStrings[7] = "m-petz";
theStrings[8] = "thorix.de";
theStrings[9] = "hstyxradio-forum";
/*theStrings[9] = "fsrdroehnung";*/
theStrings[10] = "mkafke";
/*theStrings[12] = "";*/

/*
theStrings[5] = "sveni";
*/

/* - - - - - - - - - - - - - - - - - - - */


/*****************************************************************************/
/* Funktionen: */
/*****************************************************************************/

function getMyNumber() // liefert den Array-Index der aktuellen Seite zurück.
{
	var i=0;
	for(i=0; i<theStrings.length; i++)
	{
		if(document.referrer.indexOf(theStrings[i])>-1)
		{
			return i;
		}
	}
	// Seite ist nicht im Array, schade.
	document.write("<h2>Sie kommen von " + document.referrer + " !<br>Diese Seite ist nicht im FSR-Webring verlinkt.</h2><br><br>");
	//showAll();
	return -1;
}

/*****************************************************************************/

function openURL(nummer) // Öffnet die Adresse Nummer 'nummer'.
{
	if(nummer<0) // Index zu klein
	{
		nummer+=theURLs.length;
	}
	if(nummer>(theURLs.length-1)) // Index zu groß
	{
		nummer = nummer%(theURLs.length);
	}
	// Jetzt haben wir's:

	window.location=theURLs[nummer];
}

/*****************************************************************************/

function FWR_openNext()
{
			openURL(getMyNumber()+1);
}

/*****************************************************************************/

function FWR_openPrev()
{
		openURL(getMyNumber()-1);
}

/*****************************************************************************/

function FWR_openRandom()
{
	var index = getMyNumber() - Math.floor(Math.random()*(theURLs.length-2)+1);
	openURL(index);

}

/*****************************************************************************/

