function start()
{
	content_height();
	
			/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ PNG fix */
	var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

if ((version >= 5.5) && (document.body.filters)) 
{
	
 for(var i=0; i<document.images.length; i++)
   {
      var img = document.images[i]
      var imgName = img.src.toUpperCase()
      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
      {
         var imgID = (img.id) ? "id='" + img.id + "' " : ""
         var imgClass = (img.className) ? "class='" + img.className + "' " : ""
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
         var imgStyle = "display:inline-block;" + img.style.cssText 
         if (img.align == "left") imgStyle = "float:left;" + imgStyle
         if (img.align == "right") imgStyle = "float:right;" + imgStyle
         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
         var strNewHTML = "<span " + imgID + imgClass + imgTitle
         + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'" + img.src + "\');\"></span>" 
         img.outerHTML = strNewHTML
         i = i-1
      }
   }
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ PNG fix ende*/
}

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Legt die Höhe des Contents fest*/
function content_height()
{
	if (navigator.appName.indexOf("Explorer") != -1)
	{
		var height = $("hoehe").getHeight()-276;
		$("news").style.marginTop = 165+'px';
		$("main_content").style.height = height-20+'px';
	}
	else
	{
		var height = $("hoehe").getHeight()-274;
		$("news").style.marginTop = 155+'px';
		$("main_content").style.height = height-25+'px';
	}
	
	$("content").style.height = height+'px';
	
	set_navi();
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Legt die Höhe des Contents fest Ende*/

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Zentriert die Navigation*/
function set_navi()
{
	var breite_gesamt = $('header').getWidth();
	var breite_navi = 0;
	
	var navi_kinder = $('naviul').childElements();
	var navi_kinder_size = navi_kinder.size();
	
	for (i=0; i<navi_kinder_size; i++)
	{
		breite_navi += navi_kinder[i].getWidth();
	}
	
	var navi_left = (breite_gesamt/2) - (breite_navi/2);
	
	$('navi').style.marginLeft = navi_left+'px';
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Zentriert die Navigation Ende*/


/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 Buttons auf der Statseite*/
function move_strt_btns()
{
	new Effect.Appear ('btn1',{duration: 0.5});
	new Effect.Appear ('btn2',{duration: 0.5, delay:0.2});
	new Effect.Appear ('btn3',{duration: 0.5, delay:0.4});
}

var interval = true;

function slideshow(div, stelle, id_nr)
{
	if (interval)
	{
		var img = 'fileadmin/templates/images/button/'+id_nr+'_'+stelle+'.jpg'
		stelle++;
		div.writeAttribute({src: img});
		
		if (stelle == 6)
		{
			stelle = 1;	
		}
		
		aktiv = window.setTimeout( function() {
					slideshow(div, stelle, id_nr);
				},600);
	}
	else
	{
		window.clearInterval(aktiv);	
	}
}

function image_highlight(div)
{	
	var vater = $(div).ancestors();
	var kinder = $(div).descendants();
	
	var id_array = vater[0].identify().toArray();
	var id_nr = id_array[3];
		
	new Effect.Morph(vater[0],{
  	style:{
   		 width:'185px',
		 marginLeft: '-5px',
		 height: '200px'
  			}, duration:0.3
		});
	
	new Effect.Morph(div,{
  	style:{
   		 width:'185px',
		 height: '178px'
  			}, duration:0.2
		});
	
	kinder[0].fade({duration: 0.15});
	kinder[1].appear({duration: 0.15});
	
	interval = true;
	slideshow(kinder[1], 1, id_nr);
}

function image_highlight_out(div)
{	
	var vater = $(div).ancestors();
	var kinder = vater[0].descendants();
	
	new Effect.Morph(vater[1],{
  	style:{
   		 width:'175px',
		 marginLeft: '0px',
		 height: '168px'
  			}, duration:0.3
		});
	
	new Effect.Morph(vater[0],{
  	style:{
   		 width:'175px',
		 height: '144px'
  			}, duration:0.2
		});

	kinder[1].fade({duration: 0.15});
	kinder[0].appear({duration: 0.15});
	
	interval = false;
	window.clearInterval(aktiv);
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 Buttons auf der Statseite Ende*/

function popup(link, height) {
		objectprioritywindow=window.open(link,
		'objectprioritywindow','directories=no,location=no,scrollbars=yes,menubar=no,status=no,toolbar=no,resizable=yes,height='+height+',width=934');
		objectprioritywindow.focus();
		return false;
	}