
function divsizer(name)
{
	var myWidth = 0, myHeight = 0;
	//var font = 'courier new';
	var font = 'Arial, Helvetica, sans-serif';
	
	name = name.replace(/^\s+|\s+$/g,"");
	
	if( typeof( window.innerWidth ) == 'number' )
	{
		  //Non-IE
		  myWidth = window.innerWidth;
		  myHeight = window.innerHeight;
	}
	else if( document.documentElement &&
	    ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
	{
	  //IE 6+ in 'standards compliant mode'
		  myWidth = document.documentElement.clientWidth;
		  myHeight = document.documentElement.clientHeight;
	}
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
	{
	  //IE 4 compatible
		  myWidth = document.body.clientWidth;
		  myHeight = document.body.clientHeight;
	}

  	if (name == "content_suche")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-image:url(../images/hintergrund_suche.jpg);background-position:center center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
     
     }

  else if (name == "content_brookselector")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:4px;top:5px;background-color:#f0f0d0;background-position:center center; border: 0px; margin: 0px; ; overflow: hidden; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
  }

  else if (name == "content_home")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-image:url(../images/bgindex.jpg);background-position:center center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
  }
         
	else if (name == "content_sitemap")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-image:url(../images/hintergrund_sitemap.jpg);background-position:center center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
	}
    
	else if (name == "content_contact")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-image:url(../images/Kontakt.jpg);background-position:center center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
	}
	
  	else if (name == "content_ueberuns")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-image:url(../images/hintergrund_ueber_uns.jpg);background-position:center center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
   
  }
    
  	else if (name == "content_ferien")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-image:url(../images/ferien.jpg);background-position:center center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
   
  }
	else if (name == "content_products")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-image:url(../images/warenlager.jpg);background-position:center center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
	}
	   
  else if (name == "content_links")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-image:url(../images/bibliothek.jpg);background-position:center center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
	}
  
   else if (name == "content_support")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-image:url(../images/Techsupport.jpg);background-position:center center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
	}
  
	else if (name == "content_news")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-image:url(../images/news.jpg);background-position:center center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
	}

	else if (name == "content_compendium")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-image:url(../images/question.jpg);background-position:center center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
	}

	else if (name == "content_bgaps")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-image:url(../images/bgaps.jpg);background-position:top center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
	}

	else if (name == "sidemenu")
  	{
		myHeight -= 10;
		if (myHeight > 650) myHeight = 650;
		if (myHeight < 400) myHeight = 400;

		document.write('<div  class="sidemenu" style="position:absolute; left:5px;top:5px;background-color:#666666;background-image:url(../images/apsmenubackground.jpg); 		 background-position:center center; border: 0px solid ; overflow: hidden; font-family: sans-serif;font-weight:600;color:white;height: ' + myHeight + 'px;width: 150px" >');

	}

	else if (name == "address")
  	{
		if (myHeight > 650) myHeight = 650;
		if (myHeight < 400) myHeight = 400;

		document.write('<div  class="sidemenu" style="position:absolute; left:5px;top:' + (myHeight + 15) + 'px;width: 150px; font-family: ' + font + ';" >');

	}
	
	else if (name == "search")
  	{
		if (myHeight > 650) myHeight = 650;
		if (myHeight < 400) myHeight = 400;

		document.write('<div  style="position:absolute;left:5px;top:' + (myHeight + 15) + 'px;height:50px;width:150px;background-color:#666666;border: 0px solid; overflow: hidden; font-family: sans-serif;color:white;">');
	}
	
	else if (name == "topmenu")
  	{
		myWidth -= 370;
		
		document.write('<div  class="topmenu" style="position:absolute;left:160px;top:25px;height:20px;width:' + myWidth + 'px;background-color:#666666;border: 0px solid; overflow: auto; font-family: sans-serif;font-weight:30;color:white;">');

	}
	
	else if (name == "pathmenu")
  	{
		myWidth -= 370;
		
		document.write('<div class="topmenu" style="position:absolute;left:160px;top:5px;height:20px;width:' + myWidth + 'px;background-color:#666666;border: 0px solid; overflow: auto; font-family: sans-serif;color:white;">');

	}

	else //if (name == "content")
  	{
		myHeight -= 21;
		myWidth -= 175;
		document.write('<div  class="content" style="position:absolute; left:160px;padding:5px;top:5px;background-color:#f0f0d0;background-position:center center; border: 1px solid ; overflow: auto; font-family: ' + font + ';height: ' + myHeight + 'px;width: ' + myWidth + 'px" >');
		//document.write('<div  style="position:absolute;top:45px;left:155px;right:0px;bottom:0px;margin:5px;padding:5px;background-color:#f0f0d0; border 1px solid; overflow: auto; font-family: ' + font + ';">');
	}
	
	
	
}
