// Version 1.06_b vom 10.04.2000

function btest()
{
BV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(BV>=4))?true:false;
}


function wsize()
{
if(NS4){
WIW = window.innerWidth;
WIH = window.innerHeight;
}
else
{
if(IE4){
WIW = document.body.clientWidth;
WIH = document.body.clientHeight;
}
else
{
WIW = 800;
WIH = 500;
}
}
VPOS = (PICWID - WIW) / 2;
HPOS = (PICHEI - WIH) / 2;
}



function copyright(e)
{
CRM ="Die Bilder sind Urheberrechtlich geschützt. © All rights reserved.";
//function click(e) 

if (document.all) {if (event.button == 2)
{alert(CRM); return false;}}if (document.layers) {if (e.which == 3) {alert(CRM);
return false;}}
}


function anmelden_Contentpage()
{
AKPG = top.confra.location.href;
}


function setze_reftyp(typ)
{
//if(typ == 0 || REFT == 0){
//if (top.STEN == 1)
//{
//REFT = typ;
//search = "?npos=" + NPOS + "&reft=" + typ + "&srst=" + SRST + "&cont=" + top.confra.location.href;
//URL = top.location.href;
//cpo = URL.indexOf("?");
//if (cpo != -1)
//{
//URL = URL.substring(0, cpo);
//}
//window.location.href = (URL + search);
//}
//}

REFT = typ;
}



function verweise_Link(link)
{
if(REFT == 2)
{
window.open(link, "", "location=1,menubar=1,status=1,toolbar=1,scrollbars=1,resizable=1");
}  
if(REFT == 3)
{
top.confra.location.href = link;
}
if(REFT == 1)
{
LinkWin=window.open(link, "linkwin", "location=1,menubar=1,status=1,toolbar=1,scrollbars=1,resizable=1");
//"LinkWin.focus()" klapt nur bei NS
if (document.layers) {
LinkWin.focus();
}
}

if(REFT == 0)
{
// prüfen ,ob searchstring aktuell ist, ansonsten vor dem verzweigen Railhooseite mit korrektem search-sting neu laden
//search = "?npos=" + NPOS + "&reft=" + top.REFT + "&srst=" + SRST + "&cont=" + top.confra.location.href;
//URL = top.location.href;
//cpo = URL.indexOf("?");
//alert("cpo =" + cpo);
//if (cpo = -1) {
//cpo = URL.length;
//}
//if (URL.substring(cpo, URL.length) != search)
//{
//alert(URL.substring(cpo, URL.length) + " - ungleicher Searchstring - " + search);
//URL = URL.substring(0, cpo);
//search = search + "&jump=" + link;
//alert(" wo wollen wa den hin " + URL + search);
//top.location.href = (URL + search);
//window.location.href = (URL + search);
//}
//else
//{
window.location.href = link;
//}
}
}



function pc(pp)
{
search = "?npos=" + NPOS + "&reft=" + top.REFT + "&srst=" + SRST + "&cont=" + pp;
URL = "./riafrmp.html";
window.location.href = (URL + search);
}

function NeuLaden(){
confra.location.reload()
}

function Navigation_positionieren(po)
{
top.NPOS = po;

//Fehler beim IE wenn im Contentframe eine Fremdseite ist
search = "?npos=" + po + "&reft=" + top.REFT + "&srst=" + top.SRST + "&cont=" + top.confra.location.href;


URL = top.location.href;
cpo = URL.indexOf("?");
if (cpo != -1)
{
URL = URL.substring(0, cpo);
}
window.location.href = (URL + search);
}

function serien_style(st)
{
if(STEN == 1)
{
top.SRST=st;
search = "?npos=" + top.NPOS + "&reft=" + top.REFT + "&srst=" + top.SRST + "&cont=" + top.confra.location.href;
URL = top.location.href;
cpo = URL.indexOf("?");
if (cpo != -1)
{
URL = URL.substring(0, cpo);
}
window.location.href = (URL + search);
}
}

function jumpto(tg)
{
if(tg != "")
{
search = "?npos=" + top.NPOS + "&reft=" + top.REFT + "&srst=" + top.SRST + "&cont=" + tg;
URL = top.location.href;
cpo = URL.indexOf("?");
if (cpo != '-1')
{
URL = URL.substring(0, cpo);
}
if (tg == '../index.html')
{
window.location.href = ('../index.html');
}
else {
window.location.href = (URL + search);
}
}
}

function Servicewechsel(tg, con)
{
if(tg != "")
{
search = "?npos=" + top.NPOS + "&reft=" + top.REFT + "&srst=" + top.SRST + "&cont=" + con;
window.location.href = (tg + search);
}
}

function g2p(tg)
{
if(tg != "")
{
search = "?npos=" + top.NPOS + "&reft=" + top.REFT + "&srst=" + top.SRST + "&cont=" + tg;
URL = top.location.href;
cpo = URL.indexOf("?");
if (cpo != -1)
{
URL = URL.substring(0, cpo);
}
window.location.href = (URL + search);
}
}


function j2f(fr)
{
search = "?npos=" + top.NPOS + "&reft=" + top.REFT + "&srst=" + top.SRST + "&cont=" + fr;
URL = "./index.html"
window.location.href = (URL + search);
}



function parameterauswertung()
{
if (position >= 0)
{
PARALS = URL.substring((1 + position),ende);
while(position >= 0)
{
position = PARALS.indexOf("&");
if (position >= 0)
{
PARAAR = PARALS.substring(0,position);
PARALS = PARALS.substring((position + 1),PARALS.length);
}
else
{
PARAAR = PARALS
}
if (PARAAR.substring(0,4) == "srst")
{
SRST = PARAAR.substring(5,PARAAR.length);
if(PARAAR.substring(5,PARAAR.length) == "pat"){
SRST = 0;
}
}
else
{
if (PARAAR.substring(0,4) == "reft")
{
REFT = PARAAR.substring(5,PARAAR.length);
}
else
{
if (PARAAR.substring(0,4) == "npos")
{
NPOS = PARAAR.substring(5,PARAAR.length);
}
else
{
if (PARAAR.substring(0,4) == "cont")
{
CNT = PARAAR.substring(5,PARAAR.length);
if (CNT == "undefined")
{
CNT = "";
}
}
else
{
if (PARAAR.substring(0,4) == "jump")
{
if (PARAAR.substring(5,PARAAR.length) != "")
{
JMP = PARAAR.substring(5,PARAAR.length);
}
}
}
}
}
}
}
}
}

function make_rhframeset()
{
//alert("hallo 21");
//if (history.previous.indexOf("www.railhoo.de") != -1) {
//alert("jump = " + JMP);
if (JMP != "") 
{
//alert("jump = " + JMP);
//	alert("hallo = " + history[1]);
	//if (history.previous.indexOf("railhoo") != -1) 
	//{
//		alert("hallo 23");
//		window.location.href = JMP;
	//}
}


//Suche = /(railhoo)/g;
//Ergebnis = Suche.test(derSatz);
//if(Ergebnis == false)
//if (Suche.test(JMP) == True) {


if (NPOS == "links") {
document.write("<frameset cols='150,*' marginwidth=0 marginheight=0 border=0 frameborder=0 framespacing=0 onResize='NeuLaden()'>");
document.write("<frame src='" + NV + "' name=NaviFenster scrolling=auto noresize>");
document.write("<frame src='" + CNT + "' name=confra>");
}
else {
if (NPOS == "unten") {
document.write("<frameset rows='*,80' onResize='NeuLaden()'>");
document.write("<frame src='" + CNT + "' name=confra>");
document.write("<frame src='" + NH + "' name=NaviFenster scrolling=auto noresize>");
}
else {
if (NPOS == "oben") {
document.write("<frameset rows='80,*' onResize='NeuLaden()'>");
document.write("<frame src='" + NH + "' name=NaviFenster scrolling=auto noresize>");
document.write("<frame src='" + CNT + "' name='confra'>");
}
else {
document.write("<frameset cols='*,150' border=0 onResize='NeuLaden()'>");
document.write("<frame src='" + CNT + "' name=confra>");
document.write("<frame src='" + NV + "' name=NaviFenster scrolling=auto noresize>");
}
}
}
document.write("</frameset>");
}

function make_riaframeset()
{
if (NPOS == "links") {
document.write("<frameset cols='150,*' marginwidth=0 marginheight=0 border=0 frameborder=0 framespacing=0 onResize='NeuLaden()'>");
document.write("<frame src='" + NV + "' name=NaviFenster scrolling=auto noresize>");
document.write("<frame src='" + CNT + "' name=confra>");
}
else {
if (NPOS == "unten") {
document.write("<frameset rows='*,80' onResize='NeuLaden()'>");
document.write("<frame src='" + CNT + "' name=confra>");
document.write("<frame src='" + NH + "' name=NaviFenster scrolling=auto noresize>");
}
else {
if (NPOS == "oben") {
document.write("<frameset rows='80,*' onResize='NeuLaden()'>");
document.write("<frame src='" + NH + "' name=NaviFenster scrolling=auto noresize>");
document.write("<frame src='" + CNT + "' name='confra'>");
}
else {
document.write("<frameset cols='*,150' border=0 onResize='NeuLaden()'>");
document.write("<frame src='" + CNT + "' name=confra>");
document.write("<frame src='" + NV + "' name=NaviFenster scrolling=auto noresize>");
}
}
}
document.write("</frameset>");
}

function make_picframeset()
{
document.write("<frameset rows='*,40' border=0 frameborder=0 framespacing=0>");
document.write("<frame src=" + CNT + " name=confra>");
document.write("<frame src=" + NV + " name=NaviFenster scrolling=no noresize>");
document.write("</frameset>");
}

function manage_pagesize()
{
if(NS4)
{
WIW = window.innerWidth;
}
else
{
if(IE4)
{
WIW = document.body.clientWidth;
}
else
{
WIW = 570;
}
}
if (top.SRST==1)
{
SPBR=136;
}
else
{
SPBR=274;
}
SPA = Math.floor(WIW / (SPBR + 6));
if (SPA == 0)
{
SPA = 1;
}
}


function make_pic_entry()
{
PICDES="<P ALIGN=justify><FONT color=#000000 size='-1'>" + PICDES + "</FONT></P>";
DESTAB1="<TABLE WIDTH=274 BORDER=1 CELLPADDING=0 CELLSPACING=0><TR><TD WIDTH='11%' VALIGN=top ALIGN=center><FONT size='-2'>Bild</FONT></TD><TD WIDTH='42%' VALIGN=top ALIGN=center><FONT size='-1'><A HREF=\"JAVASCRIPT:top.pc('" + PICPAG + "');\" name=" + PICNO + "><B>" + PICNO + "</B></A>&nbsp;&nbsp;</FONT><FONT size='-2'>(" + PICSIZ + "&nbsp;kb)</FONT></TD>";
DESTAB2="<TD WIDTH=130 ROWSPAN=4 VALIGN=top ALIGN=center><A HREF=\"JAVASCRIPT:top.pc('" + PICPAG + "');\" name=" + PICNO + "><IMG SRC='" + THUMB + "' WIDTH=" + TMBWID + " HEIGHT=" + TMBHEI + " ALIGN=right HSPACE=0 VSPACE=0></A></TD>";
DESTAB3="</TR><TR><TD VALIGN=TOP ALIGN=CENTER><FONT size='-2'>Ort</FONT></TD><TD VALIGN=top ALIGN=center><FONT size='-1'>" + PICLOC + "</FONT></TD></TR><TR><TD VALIGN=top ALIGN=center><FONT size='-2'>Datum</FONT></TD><TD VALIGN=top ALIGN=center><FONT size='-1'>" + PICDAT +"</FONT></TD></TR><TR><TD VALIGN=top ALIGN=center><FONT size='-2'>Autor</FONT></TD><TD VALIGN=top ALIGN=center><FONT size='-1'>";
if (AUTREF == "")
{
DESTAB3=DESTAB3 + PICAUT;
}
else
{
DESTAB3=DESTAB3 + "<A HREF='../authors/authorspage_de.html#" + AUTREF + "' target='_top'>" + PICAUT + "</A>";
}
if (PICCOL != "")
{
if (COLREF == "")
{
DESTAB3=DESTAB3 + "<BR>Sa.: " + PICCOL;
}
else
{
DESTAB3=DESTAB3 + "<A HREF='" + COLREF + "' target='_top'><BR>Sa.: " + PICCOL + "</A>";
}
}
DESTAB3=DESTAB3 + "</FONT></TD></TR></TABLE>";
document.write("<TD WIDTH=" + SPBR + " ALIGN=left VALIGN=top>");
//Nur Bild
if (top.SRST == 1)
{
document.write("<A HREF=\"JAVASCRIPT:top.pc('" + PICPAG + "');\" name=" + PICNO + "><IMG SRC='" + THUMB + "' WIDTH=130 HEIGHT=91 ALIGN=right HSPACE=0 VSPACE=0></A>");
}
else
{
//Nur Text
if (top.SRST == 2)
{
document.write(DESTAB1 + DESTAB3 + "<CENTER><TABLE WIDTH='95%' BORDER=0 CELLPADDING=0><TR><TD><A HREF=\"JAVASCRIPT:top.pc('" + PICPAG + "');\" name=" + PICNO + ">" + PICDES + "</A></TD></TR></TABLE></CENTER>");
}
else
{
// Bild und Text
if (top.SRST == 0)
{
document.write(DESTAB1 + DESTAB2 + DESTAB3 + "<CENTER><TABLE WIDTH='95%' BORDER=0 CELLPADDING=0><TR><TD>" + PICDES + "</TD></TR></TABLE></CENTER>");
}
}
}
document.write("</TD>");
if (ZAE == SPA)
{
ZAE = 1;
document.write('</TR></TABLE>');
document.write('<HR><TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0><TR>');
}
else 
{
ZAE ++ ;
}
}

