// JavaScript Document

// Diashow Begin 


var dia=new Array ("content-images/start_newsbild1.jpg","content-images/start_newsbild2.jpg", "content-images/start_newsbild3.jpg", "content-images/start_newsbild4.jpg")
function MM_preloadImages() 
{ 
   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
 }
var imgNr=0;
var maxImgNr=dia.length;
function startTrans()
{
  if (imgNr==(maxImgNr-1))
   { imgNr = -1;}
  imgNr++;
  if ((navigator.appVersion.substr(22, 3) >= 5.5) && (navigator.appName=="Microsoft Internet Explorer"))
  { 
        SampleID.filters.item(0).Apply();
        SampleID.src = dia[imgNr];
        SampleID.filters.item(0).Play();
        window.setTimeout ("startTrans()", 6000);
  }
 else
  {
  window.document.images[0].src= dia[imgNr];
  window.setTimeout ("startTrans()", 5000);
  }
}

function firstChange()
{    
    window.setTimeout ("startTrans()", 3000);
}

// window.onLoad = firstChange (); bem.: disabled here

// Diashow End

// behavior on a tags starts

var myrules = 
	{
	'#natur' : function(el)
		{
		el.onmouseover = function()
			{
			MM_showHideLayers('natur2','','show','kunst2','','hide','geschichte2','','hide','infocenter2','','hide');
			}
		},
	'#kunst' : function(el)
		{
		el.onmouseover = function()
			{
			MM_showHideLayers('natur2','','hide','kunst2','','show','geschichte2','','hide','infocenter2','','hide');
			}
		},
	'#geschichte' : function(el)
		{
		el.onmouseover = function()
			{
			MM_showHideLayers('natur2','','hide','kunst2','','hide','geschichte2','','show','infocenter2','','hide');
			}
		},
	'#infocenter' : function(el)
		{
		el.onmouseover = function()
			{
			MM_showHideLayers('natur2','','hide','kunst2','','hide','geschichte2','','hide','infocenter2','','show');
			}
		},
	
	'#nature' : function(el)
		{
		el.onmouseover = function()
			{
			MM_showHideLayers('natur2','','show','kunst2','','hide','geschichte2','','hide','infocenter2','','hide');
			}
		},
	'#art' : function(el)
		{
		el.onmouseover = function()
			{
			MM_showHideLayers('natur2','','hide','kunst2','','show','geschichte2','','hide','infocenter2','','hide');
			}
		},
	'#history' : function(el)
		{
		el.onmouseover = function()
			{
			MM_showHideLayers('natur2','','hide','kunst2','','hide','geschichte2','','show','infocenter2','','hide');
			}
		},
	'#infocentre' : function(el)
		{
		el.onmouseover = function()
			{
			MM_showHideLayers('natur2','','hide','kunst2','','hide','geschichte2','','hide','infocenter2','','show');
			}
		}
		
	};

Behaviour.register(myrules);