function Blaumachen(ding)
{
	ding.style.color = "blue";
}
function Schwarzmachen(ding)
{
	ding.style.color = "black";
}
function Rotmachen(ding)
{
	ding.style.color = "red";
}
function Weissmachen(ding)
{
	ding.style.color = "white";
}


imag = new Array(); 
imag[0] = new Image();
imag[0].src = "images/logo/1arabiansgermany.gif";
imag[2] = new Image();
imag[2].src = "images/weis.gif";
imag[3] = new Image();
imag[3].src = "images/logo/geruestbau_light.gif";
imag[4] = new Image();
imag[4].src = "images/logo/geruestbau_full.gif";


function clickImag(iname)
{
	iname.src = imag[4].src;
}
function outImag(iname)
{
	 iname.src = imag[2].src;
}
function overImag(iname)
{
	 iname.src = imag[3].src;
}
function showLayerImag(iname)
{
	 iname.src = imag[3].src;
}

function show(name) 
{
if(DOM || MS)
  getElem("id",name,null).style.visibility = "visible";
 if(NS)
  getElem("id",name,null).visibility = "show";
}
 
function hide(name) 
{
 if(DOM || MS)
  getElem("id",name,null).style.visibility = "hidden";
 if(NS)
  getElem("id",name,null).visibility = "hide";
}

//Gleichbleibende Rechtecke
   function resize2() 
   {
	   Haupt1.style.height = document.body.clientHeight - document.body.clientHeight/10;
	   Haupt1.style.width = document.body.clientHeight * 6.5 / 4;
	   if (document.body.clientWidth < parseInt(Haupt1.style.width))
	   {
		 Haupt1.style.width = document.body.clientWidth;
	     Haupt1.style.height = document.body.clientWidth * 4 / 7.1;
	   }
	   Haupt1.style.left = (document.body.clientWidth - parseInt(Haupt1.style.width))/2; 
	   Haupt1.style.top = (document.body.clientHeight - parseInt(Haupt1.style.height))/2;
   	   
	   window.scroll(0,0);
  }
  window.onresize = resize2;
  window.onload = resize2;

function resize3()
{
   
   	if (document.body.offsetWidth <= 920 || document.body.offsetHeight <=570)
	{
				
				var counter = 22;
				var temp = eval('window.Eb' + counter);
				while(counter < 40)
					{
					if(temp)
					{
					temp.style.fontSize = 14;					
					temp.style.fontWeight = 'bold';
					}
					counter = counter + 1;
					temp = eval('window.Eb' + counter);
					}
								counter = 1;
				counterzwei = 1;
				temp = eval('window.Verlinkung' + counterzwei + counter);
				while(counterzwei < 8)				
				{
					while(counter < 15)
					{
						if(temp)
						{
						temp.style.fontSize = 11;					
						}
					counter = counter + 1;
					temp = eval('window.Verlinkung' + counterzwei + counter);
					}
					counter = 1;	
				counterzwei = counterzwei + 1;
				temp = eval('window.Verlinkung' + counterzwei + counter);
				}
				
		if (document.body.offsetWidth <= 700 || document.body.offsetHeight <=430)
			{
				var counter = 22;
				var temp = eval('window.Eb' + counter);
				while(counter < 40)
					{
					if(temp)
					{
					temp.style.fontSize = 11;					
					}
					counter = counter + 1;
					temp = eval('window.Eb' + counter);
					}
								counter = 1;
				counterzwei = 1;
				temp = eval('window.Verlinkung' + counterzwei + counter);
				while(counterzwei < 8)				
				{
					while(counter < 15)
					{
						if(temp)
						{
						temp.style.fontSize = 9;					
						}
					counter = counter + 1;
					temp = eval('window.Verlinkung' + counterzwei + counter);
					}
					counter = 1;	
				counterzwei = counterzwei + 1;
				temp = eval('window.Verlinkung' + counterzwei + counter);
				}
			}
		if (document.body.offsetWidth <= 600 || document.body.offsetHeight <=380)
			{
				var counter = 22;
				var temp = eval('window.Eb' + counter);
				while(counter < 40)
					{
					if(temp)
					{
					temp.style.fontSize = 9;					
					}
					counter = counter + 1;
					temp = eval('window.Eb' + counter);
					}
				counter = 1;
				counterzwei = 1;
				temp = eval('window.Verlinkung' + counterzwei + counter);
				while(counterzwei < 8)				
				{
					while(counter < 15)
					{
						if(temp)
						{
						temp.style.fontSize = 6;					
						}
					counter = counter + 1;
					temp = eval('window.Verlinkung' + counterzwei + counter);
					}
					counter = 1;	
				counterzwei = counterzwei + 1;
				temp = eval('window.Verlinkung' + counterzwei + counter);
				}
			}
	}
	 else
	 {
	 
				var counter = 22;
				var temp = eval('window.Eb' + counter);
				while(counter < 40)
					{
					if(temp)
					{
					temp.style.fontSize = '13.5 pt';					
					temp.style.fontWeight = 'bold';
					}
					counter = counter + 1;
					temp = eval('window.Eb' + counter);
					}

				counter = 1;
				counterzwei = 1;
				temp = eval('window.Verlinkung' + counterzwei + counter);
				while(counterzwei < 8)				
				{
					while(counter < 15)
					{
						if(temp)
						{
						temp.style.fontSize = 13;					
						}
					counter = counter + 1;
					temp = eval('window.Verlinkung' + counterzwei + counter);
					}
					counter = 1;	
				counterzwei = counterzwei + 1;
				temp = eval('window.Verlinkung' + counterzwei + counter);
				}
				
	}	
	
}

