var pflanzenliste;

var ready = false;

var good = true

// solange StartStop = [false] werden keine JS Befehle ausgefuehrt
var isIE3Mac = false;
var is;

//Creator function for brwobj
function BrowserCheck ()
{
	var agt=navigator.userAgent.toLowerCase(); 
	// *** BROWSER VERSION *** 
	// Note: On IE5, these return 4, so use is.ie5up to detect IE5. 
	this.major = parseInt(navigator.appVersion); 
	this.minor = parseFloat(navigator.appVersion); 

	this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 
				&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 
				&& (agt.indexOf('webtv')==-1)); 
	this.nav2 = (this.nav && (this.major == 2)); 
	this.nav3 = (this.nav && (this.major == 3)); 
	this.nav4 = (this.nav && (this.major == 4)); 
	this.nav4up = (this.nav && (this.major >= 4)); 
	this.navonly      = (this.nav && ((agt.indexOf(";nav") != -1) || 
						  (agt.indexOf("; nav") != -1)) ); 
	this.nav5 = (this.nav && (this.major == 5)); 
	this.nav5up = (this.nav && (this.major >= 5)); 
	this.ie   = (agt.indexOf("msie") != -1); 
	this.ie3  = (this.ie && (this.major < 4)); 
	this.ie4  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")==-1) ); 
	this.ie4up  = (this.ie  && (this.major >= 4)); 
	this.ie5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) ); 
	this.ie5up  = (this.ie  && !this.ie3 && !this.ie4); 

	this.fubbel = (this.ie4 || this.ie4up || this.ie5 || this.ie5up || this.nav3 || this.nav4 || this.nav4up)
	this.onlyfour = (this.ie4 || this.ie4up || this.ie5up || this.ie5 || this.nav4 || this.nav4up )
	this.nsbroken = ( (this.minor == 4.0 || this.minor == 4.01 || this.minor == 4.02   || this.minor == 4.03 || this.minor == 4.04 || this.minor == 4.05) && ! this.ie )
}

// for ie3 on mac only
if (((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)==3)))
{
	isIE3Mac = true;
}
// for all the other ones
else 
{
	is = new BrowserCheck();
}


function resizeFix() 
{
	document.location.href = document.location.href
}

function ChangeStatus(text)
{
	status = text
}



function StartTimeouts()
{

	setTimeout('infoline1.hide();infoline2.show()',10000)
	setTimeout('infoline2.hide();infoline3.show()',20000)
	setTimeout('infoline3.hide();infoline4.show()',30000)
	setTimeout('infoline4.hide();infoline1.show();StartTimeouts()',40000)
}


if(is.ie3 || is.nav2 || is.nav3 || isIE3Mac || is.nsbroken)
{
	document.location.href="download.html"
	good = false
}


function OpenemailWIN()
{
		eLOC = '/shares/eMail/'
		eTHEwindow = parent.window.open(eLOC,'eTHEWIN','height=380,width=390,screenX=50,screenY=50,left=50,top=50')
		eTHEwindow.focus()
}


function OpenimpressumWIN()
{
		iLOC = '/shares/impressum/'
		iTHEwindow = parent.window.open(iLOC,'iTHEWIN','height=300,width=360,screenX=50,screenY=50,left=50,top=50')
		iTHEwindow.focus()
}


function newsWIN(whichnews)
{
	newsitem = new Array()
	newsitem[1] = '/News/news1.html'
	newsitem[2] = '/News/news2.html'
	newsitem[3] = '/News/news3.html'
	newsitem[4] = '/News/news4.html'
	newsitem[5] = '/News/news5.html'
	newsitem[6] = '/News/news6.html'
	newsitem[7] = '/News/news7.html'
	newsitem[8] = '/News/news8.html'
	newsitem[9] = '/News/news9.html'
	newsitem[10] = '/News/news10.html'

	NEWSLOC = newsitem[whichnews]

	NEWSwindow = parent.window.open(NEWSLOC,'NEWSWIN','height=600,width=550,screenX=200,screenY=200,left=200,top=200,scrollbars,menubar')
	NEWSwindow.focus()
}

function FILMWINDOW()
{
var help = '/film/index.htm'
filmwindow = parent.window.open(help,'filmWIN','height=450,width=600,screenX=50,screenY=50,left=50,top=50')
filmwindow.focus()
}




var days = new Array();
var months = new Array("",
"Januar", "Februar", "März", "April", "Mai", "Juni",
"Juli", "August", "September", "Oktober", "November", "Dezember"
);

var today = new Date(); // today
var mon = months[today.getMonth() + 1]; // month
var day = today.getDate(); // day
var year = y2k(today.getYear()); // year

function dateMsg() {
for (i = 0; i < days.length; i++) {
tempdate = new Date(days[i]);
tempmonth = months[tempdate.getMonth() + 1];
tempday = tempdate.getDate();
tempyear = y2k(tempdate.getYear());
if (year == tempyear && mon == tempmonth && day == tempday)
return("Today is " + days[i] + ".  " + msgs[i]); // returns day message
   }
return(" " + day + ". " + mon + " " + year); // returns default
}

// Y2K Fix Function
function y2k(year) {
if (year < 2000)
year = year + 1900;
return year;
}

