
var res;
if ((screen.height) <= 600)
{  res=1;
   document.write("<LINK REL=\"stylesheet\" HREF=\"css/css800.css\" TYPE=\"text/css\">");
   }
else
{   res=2;
    document.write("<LINK REL=\"stylesheet\" HREF=\"css/css1024.css\" TYPE=\"text/css\">");
     };

var sender;
 function lupe(bild,breit,hoch) {

 if (res==1)
 {
  breit=parseInt(breit*0.79);
  hoch=parseInt(hoch*0.79);
  var seite ="<html><body><img src='img800/"+bild+"'><p><a href=javascript:this.close();>Fenster schlie&szlig;en</a></body></html>";
 }
 else
 {
  var seite ="<html><body><img src='img/"+bild+"'><p><a href=javascript:this.close();>Fenster schlie&szlig;en</a></body></html>";
 }
 fenster=window.open("","","width="+breit+",height="+hoch+",screenX=0,screenY=100,dependent=yes");
 fenster.document.write(seite);
 fenster.moveTo(10,10);
 }

 function spacen(x1024,y1024,x800,y800) {
   var res800 ="<img src='img/spacer.gif' width='"+x800+"' height='"+y800+"' border='0' alt=''>";
   var res1024 ="<img src='img/spacer.gif' width='"+x1024+"' height='"+y1024+"' border='0' alt=''>";
   if (res==1)
   {
    document.write(res800);
   }
   else
   {
    document.write(res1024);
   };
 }
function linen(x1024,y1024,x800,y800) {
   var res800 ="<img src='img/line.jpg' width='"+x800+"' height='"+y800+"' border='0' alt=''>";
   var res1024 ="<img src='img/line.jpg' width='"+x1024+"' height='"+y1024+"' border='0' alt=''>";
   if (res==1)
   {
	document.write(res800);
   }
   else
   {
	document.write(res1024);
   };
 }

 function resbild(bildname) {
 

 
 var bild800 ="<img src='img_neu/800/"+bildname+"' border='0' alt=''>";
 var bild1024 ="<img src='img_neu/1024/"+bildname+"' border='0' alt=''>";
   
 
   
   if (res==1)
   {
    document.write(bild800);
   }
   else
   {
    document.write(bild1024);
   };
 }

 function linespacen(x1024,y1024,x800,y800) {
   var res800 ="<img src='img/linespacer.gif' width='"+x800+"' height='"+y800+"' border='0' alt=''>";
   var res1024 ="<img src='img/linespacer.gif' width='"+x1024+"' height='"+y1024+"' border='0' alt=''>";
   if (res==1)
   {
    document.write(res800);
   }
   else
   {
    document.write(res1024);
   };
 }
 
 function imap() {
  var bild800 ="<img src='img_neu/800/startbild.jpg' usemap='#800' border='0' alt=''>";
 var bild1024 ="<img src='img_neu/1024/startbild.jpg' usemap='#1024' border='0' alt=''>";
   
 
   
   if (res==1)
   {
    document.write(bild800);
   }
   else
   {
    document.write(bild1024);
   };
  
 }
 
 function hide_imglink(){
         	for (var i=1;i<=5;i++){
         		if (document.all){
         			document.all['anw'+i].style.visibility='hidden';
         		}
         		if (document.layers)
         		{
	         		for (var i=0;i<document.layers.length;i++)
	         		{
	         			Layername=document.layers[i].name;
	         			if (Layername.indexOf("anw")>=0)
	         			{
	         				document.layers[i].visibility='hide';
	         			}
	         		}
	         	}
         		if (!document.all && document.getElementById){
         			document.getElementById('anw'+i).style.visibility='hidden';
         		}
         	}
         }


         function show_imglink(id,lepo,diwi){
         	if(res==1){
         			if (document.all){
	         		document.all[id].style.top=(212*0.77);
	         		document.all[id].style.left=((lepo)*0.78);
	         		document.all[id].style.height='10';
	         		document.all[id].style.width=(diwi*0.82);
	         		document.all[id].style.visibility='visible';
	
	         	}
	         	if (document.layers)
	         	{
		         	for (var i=0;i<document.layers.length;i++)
		         		{
		         			if (document.layers[i].name==id)
		         			{
		         				document.layers[i].pageY=200*0.77;
		         				document.layers[i].visibility='show';
		         			}
		         		}
		         }
	         	if (!document.all && document.getElementById){
	         		document.getElementById(id).style.top=197*0.77;
	         		document.getElementById(id).style.left=(lepo-10)*0.77;
	         		document.getElementById(id).style.visibility='visible';
	
	         	}
         	}
         	else{
	         	if (document.all){
	         		document.all[id].style.top=212;
	         		document.all[id].style.visibility='visible';
	
	         	}
	         	if (document.layers)
	         	{
		         	for (var i=0;i<document.layers.length;i++)
		         		{
		         			if (document.layers[i].name==id)
		         			{
		         				document.layers[i].pageY=200;
		         				document.layers[i].visibility='show';
		         			}
		         		}
		         }
	         	if (!document.all && document.getElementById){
	         		document.getElementById(id).style.top=197;
	         		document.getElementById(id).style.left=lepo-10;
	         		document.getElementById(id).style.visibility='visible';
	
	         	}
         	};
         }
 
