    /* Copyright Patrik Worthmann 09/2003 */
  
  function adjustteil()
  { if( this.att1 == "width" || this.att1 == "left" || 
        this.att2 == "width" || this.att2 == "left")
    { //alert("Breite");
	  var pictureadj = this.width * winbreite / Breite;
	}
	else
	{ //alert("Hoehe");
	  var pictureadj = this.width * winhoehe / Hoehe;
	}
	pictureadj = parseInt(pictureadj);
//	alert(pictureadj)  
   if (document.getElementById)
   { 
     var node = document.getElementById(this.name);
//   alert(this.name + " : " + this.width + "; " + picturewidth);
//   var picturewidth = this.width * winbreite / Breite;
//     alert(this.att1);
     if (this.att1 != "style")
	 {  
       node.setAttribute(this.att1,pictureadj);
       eval("node." + this.att1 + " = " + pictureadj);
	 }
	 else
	 {
	   eval("node." + this.att1 + "." + this.att2 + " = '" + pictureadj + "' + 'px'"); 
	 }
   }
   else
   {  //alert("hallo " + this.name);
 //    eval("document." + this.name + ".width = " + pictureadj); 
	if (this.att1 != "style")
	 {  
       eval("document." + this.name + "." + this.att1 + " = " + pictureadj);
   	 }
	 else
	 { 
	   if (document.all)
	   {
	    eval("document.all." + this.name + "." + this.att1 + ".pixel" + this.att2 + " = " + pictureadj);
	   }
	   else
	   {
	//    eval("document." + this.name + "." + this.att2 + " = " + pictureadj);
	   }
	    
	 }
	   
   }
  }	
  
  function winteil(name, width, att1, att2)
  {
    this.name = name;
	this.width = width;
	this.att1 = att1;
	this.att2 = att2;
	this.adjustteil = adjustteil; 
  }
  
  var start = new Array (new winteil('cpic',90,'width',''),
                         new winteil('zpic',90,'width',''),
			 new winteil('ctxt',160,'width',''),
			 new winteil('ztxt',200,'width',''),
			 new winteil('ueber',600,'width',''),
			 new winteil('bigpic',600,'width',''));
						 
	
  				
  var Breite = 1004;
  var Hoehe = 602;
  var winbreite = 100;
  var winhoehe = 100;
  
  function windowdim(x)
  { var wdim = 100;
 	if (eval("window.inner" + x))
 	  { 
            wdim = eval("window.inner" + x);
	  }
	else  
	  { if (document.documentElement && 
	        eval("document.documentElement.client" + x))
	      { 
                wdim = eval("document.documentElement.client" + x);
	      }
	    else
		{ if (document.body)
	      { 
                wdim = eval("document.body.client" + x);
	      }
		}
	  }	 
	 return(wdim)     
  } 

  function adjustall(x)
  { winbreite = windowdim('Width');
    winhoehe = parseInt(windowdim('Height'));
	for (var i=0;i<x.length;i++)
	{ selectedteil = eval(x[i]);
	  selectedteil.adjustteil(); 
	}
  }	
  function firstadjust(x)
  { adjustall(eval(x));  
	var y = "adjustall(" + x + ")";	
	timerID = setInterval(y, 100); 
  }	

  function onceadjust(x)
  { 
    var item;
    winbreite = parseInt(windowdim('Width'));
	winhoehe = parseInt(windowdim('Height'));
//	alert("winhoehe: " + winhoehe);
    var h = self.screen.availHeight;
//	alert("winbreite: " + winbreite);
	for (var i=0;i<x.length;i++)
	{ item = eval(x[i]);
	  item.adjustteil();
	}  
  }
  
  
  

  function newwin(url, title)
  { 
    var w = self.screen.availWidth;
    var h = self.screen.availHeight;
//    alert("width=" + w + " , height=" + h);
    var att = "menubar,status,location,toolbar,directories," +
              "outerWidth=" + w + ",outerHeight=" + h + "," +
              "width=" + w + ",height=" + h + "," +
              "screenX=0,sceenY=0,top=0,left=0,";
//    alert(att);
    newwin = window.open(url, title, att);
    newwin.focus();
  }