
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);
if (navigator.userAgent.indexOf('Safari') != -1)
   {var safari = 'ja';
   }
opac = 100;

function intro()
  {
   document.getElementById('kasten').style.borderColor = '#ffffff';
   document.getElementById('kasten').style.width = '0px';
   document.getElementById('kasten').style.height = '0px';

   new Effect.Morph('kasten', {
   style: 'border-color:#717274; width:994px;height:337px;', // CSS Properties
   duration: 3.0, // Core Effect properties
   delay: 1.5
   });
// new Effect.Morph('linie', {
//  style: 'border-color:#717274; width:100%;', // CSS Properties
//  duration: 0.5 // Core Effect properties
// });

   new Effect.Morph('logo', {
   style: 'width:109px;', // CSS Properties
   duration: 1.6 // Core Effect properties
   });

   new Effect.Morph('content_grey', {
   style: 'background:#9D9DA0;', // CSS Properties
   duration: 3.5, // Core Effect properties
   delay: 4.0
   });
  }



function showcontent()
  {
   if (ie5)
      {document.getElementById('content').filters.alpha.opacity = 0;}
   if (ns6)
      {document.getElementById('content').style.MozOpacity = 0;}
   if (safari)
      {document.getElementById('content').style.opacity = 0;
      }

   new Effect.Opacity('content', {
   from: 0.0, to: 1.0, duration: 1.7
  });

  }

function closecontent(page,layer)
  {
   showhtmlpage = page;
   if   (layer)
	{showtmlpagelayer = layer;}
   else {showtmlpagelayer = 'content';
	}
   fadeout();
  }



function fadeout() 
  {
   if   (opac!= 0)
	{document.getElementById(showtmlpagelayer).style.display = 'block';
	 opac-=2;
	 if (ie5)
	    {document.getElementById(showtmlpagelayer).filters.alpha.opacity = opac;}
	 if (ns6)
	    {document.getElementById(showtmlpagelayer).style.MozOpacity = opac/100;}
	 if (safari)
	    {document.getElementById(showtmlpagelayer).style.opacity = opac/100;}
	 setTimeout('fadeout()', 2);
	}
// else {window.location.href = showhtmlpage+".htm";
   else {window.location.href = showhtmlpage+".php";
	}
  }

 
