// ========= weiche_obj ========================================================================

function Is () {   
	agt=navigator.userAgent.toLowerCase();

	this.major = parseInt(navigator.appVersion);
	this.minor = parseFloat(navigator.appVersion);

	this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -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.nav6 = (this.nav && (this.major == 5));
	this.nav6up = (this.nav && (this.major >= 5));
	this.gecko = (agt.indexOf('gecko') != -1);

	this.ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
	this.ie3    = (this.ie && (this.major < 4));
	this.ie4    = (this.ie && (this.major == 4) && (agt.indexOf("msie 4")!=-1) );
	this.ie4up  = (this.ie && (this.major >= 4));
	this.ie5    = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
	this.ie5_5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
	this.ie5up  = (this.ie && !this.ie3 && !this.ie4);
	this.ie5_5up =(this.ie && !this.ie3 && !this.ie4 && !this.ie5);
	this.ie6    = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) );
	this.ie6up  = (this.ie && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5);

	this.opera = (agt.indexOf("opera") != -1);
   	this.opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
   	this.opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
	this.opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
	this.opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
	this.opera5up = (this.opera && !this.opera2 && !this.opera3 && !this.opera4);
}
is = new Is(); 

// ========= dhtml_objects ========================================================================

function crObj(id) {

	//eigenschaften

	if ( is.nav6up) { 	

		this.el = document.getElementById(id);

		this.img = document.images; 

		this.css = this.el.style; }

	else if (document.all) 	{ 	

		this.el = document.all[id]; 

		this.img = document.images; 


		this.css = this.el.style;}


	else if (document.layers) 	{ 	

		this.el = document.layers[id]; 

		this.img = this.el.document.images; 

		this.css = this.el;

	}

						

  	this.x = (!document.all)? parseInt(this.css.left):this.el.offsetLeft;

   	this.y = (!document.all)? parseInt(this.css.top):this.el.offsetTop;

  

   	this.sichtbar = true;

  

  	if (document.layers) {

      		this.breite = this.el.document.width;

     		this.hoehe = this.el.document.height;

   	} else {

      		this.breite = this.el.offsetWidth;

      		this.hoehe = this.el.offsetHeight;

   	}



   	this.zIndex = this.css.zIndex;



	//methoden

   	this.zeige = Obj_ein;

  	this.verstecke = Obj_aus;

    this.gehNach = dObj_gehNach;

	this.ebSchreiben = Obj_ebSchreiben;
}

	

function Obj_ein() {

   	this.css.visibility = (document.layers)? "show":"visible";

   	this.sichtbar = true;

}



function Obj_aus() {

   	this.css.visibility = (document.layers)? "hide":"hidden";

   	this.sichtbar = false;

}



function dObj_gehNach(x,y) {

   this.css.left = x;

   this.css.top = y;

   this.x = x;

   this.y = y;

}
// --------------

function Obj_ebSchreiben(inhalt){
	if  (document.layers){
		this.el.document.open(); 
		this.el.document.write(inhalt); 
		this.el.document.close(); 
					}
	else { this.el.innerHTML=inhalt;
					}
}

// ----------


// ========= Ein-Aus-Funktionen ========================================================================

	function ein(ebene) {
			ebene.zeige(ebene);
			}

    	function aus(ebene) {
			ebene.verstecke(ebene);
			}

    	function neupos(ebene,px,py) {
			ebene.gehNach(px,py);
			}
			

// ========= Bildwechsel Pfeile ========================================================================




							
			
			function startpfeil(nr,anfangsbild,wechselbild) {
				if(document.images) {	
					document.images["bildanzeige"+nr].src = wechselbild;
									}
								}
								
			function stoppfeil(nr,anfangsbild,wechselbild)	{
				if(document.images) {
					document.images["bildanzeige"+nr].src = anfangsbild;
									}
								}

// ========= Printfenster ========================================================================


			
function PrintWindowErzeugen(URL) {

		neu = window.open(URL, "PrintWindow",
		"resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width=700,height=600,left=10,screenX=10',top=10,screenY=10");
		}
		
		
