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();
	this.agtString = agt;
	// *** BROWSER VERSION *** 
	// Note: On IE5, these return 4, so use is.ie5up to detect IE5. 

	// added from dynlayer.js BC obj -- don't know if used anywhere...
  	var b = navigator.appName;
  	if (b=="Netscape") this.b = "ns"
  	else if (b=="Microsoft Internet Explorer") this.b = "ie"
  	else this.b = b;
  	this.version = navigator.appVersion;
  	this.v = parseInt(this.version);
  	this.ns = (this.b=="ns" && this.v>=4);
  	this.ns4 = (this.b=="ns" && this.v==4);
  	this.ns5 = (this.b=="ns" && this.v==5);
  	this.ie = (this.b=="ie" && this.v>=4)
  	this.ie4 = (this.version.indexOf('MSIE 4')>-1)
	    //  	this.ie5 = (this.version.indexOf('MSIE 5')>-1)
  	this.min = (this.ns||this.ie)
	// end dynlayer.js inclusion

	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")==-1) ); 
	this.ie4up  = (this.ie && (this.major >= 4)); 
	this.ie5  = (this.ie
		     && (this.major == 4)
		     && ((agt.indexOf("msie 5.0")!=-1)
			 || (agt.indexOf("msie 5.5")!=-1)) );
	this.test  = true;
	this.ie55  = (this.ie
		      && (this.major == 4)
		      && (agt.indexOf("msie 5.5")!=-1));
	this.ie5up  = (this.ie  && !this.ie3 && !this.ie4); 

	this.fubbel = (this.ie4up || this.nav4up || this.ie5up
		       || this.ie4 || this.ie5 || this.nav3 || this.nav4);
	this.onlyfour = (this.ie4up || this.nav4up || this.ie5up
			 || this.ie4 || this.ie5 || this.nav4);
	this.nsbroken = ( !this.ie
			  && (this.minor == 4.0 || this.minor == 4.01
			      || this.minor == 4.02   || this.minor == 4.03
			      || this.minor == 4.04 || this.minor == 4.05));
}

// 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
}





if(is.ie3 || is.nav2 || is.nav3 || isIE3Mac || is.nsbroken)
{
	document.location.href="download.html"
	good = false
}




function SHOWWINDOW()
{
var help = '/shares/humanclick.html'
showwindow = parent.window.open(help,'showWIN','height=200,width=150,screenX=20,screenY=20,left=20,top=50')
showwindow.focus()
}
function LIEFERWINDOW()
{
var help = '/shares/lieferzonen.html'
showwindow = parent.window.open(help,'showWIN','height=400,width=600,screenX=20,screenY=20,left=20,top=50,scrollbars')
showwindow.focus()
}
function RECHTWINDOW()
{
var help = '/shares/widerruf.html'
showwindow = parent.window.open(help,'rechtWIN','height=400,width=400,screenX=20,screenY=20,left=20,top=50,scrollbars')
showwindow.focus()
}
function VFARBWINDOW()
{
var help = '/shares/vfarb.html'
showwindow = parent.window.open(help,'vfarbWIN','height=520,width=580,screenX=20,screenY=20,left=20,top=50,scrollbars')
showwindow.focus()
}

function VSCHNITTWINDOW()
{
var help = '/shares/vschnitt.html'
showwindow = parent.window.open(help,'vschnittWIN','height=500,width=500,screenX=20,screenY=20,left=20,top=50,scrollbars')
showwindow.focus()
}
function VGROESSEWINDOW()
{
var help = '/shares/vgroesse.html'
showwindow = parent.window.open(help,'vgroesseWIN','height=350,width=550,screenX=20,screenY=20,left=20,top=50,scrollbars')
showwindow.focus()
}
function VPFLEGEWINDOW()
{
var help = '/shares/vpflege.html'
showwindow = parent.window.open(help,'vpflegeWIN','height=430,width=820,screenX=20,screenY=20,left=20,top=50,scrollbars')
showwindow.focus()
}
function AFARBWINDOW()
{
var help = '/shares/afarb.html'
showwindow = parent.window.open(help,'afarbWIN','height=500,width=400,screenX=20,screenY=20,left=20,top=50,scrollbars')
showwindow.focus()
}
function ANFAHRTWINDOW()
{
var help = '/shares/anfahrt.html'
showwindow = parent.window.open(help,'anfahrtWIN','height=500,width=500,screenX=20,screenY=20,left=20,top=50,scrollbars')
showwindow.focus()
}

