<!-- Funktionen Hauptnavigation
<!--//--><![CDATA[//><!--

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]>




<!-- Funktionen Highlights
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  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];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

<!-- Funktion Zoom
function anzeigenPopup(url,width,height) {
   view = "width="+width+",height="+height+",screenX=0,screenY=0,status=no,locationbar=no,menubar=no,resizable=no,scrollbars=no";
   fenster = window.open('','Zoom',view);
   fenster.document.open("text/html");
   height = height;
   width = width;
   fenster.document.write("<html><title>Zoom</title><body scroll='auto' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'><img src='"+url+"' border=0 width='"+width+"' height='"+height+"'></body></html>");
   fenster.moveTo((screen.width-width)/2,(screen.height-height)/2);
   fenster.focus();
   fenster.document.close();
  
}
//-->


<!-- Funktionen bisher noch nicht eingesetzt
function anzeigen(url)
{
Bild = window.open(url,'Bild','width=550,height=430,screenX=0,screenY=0,status=no,locationbar=no,menubar=no,resizable=no');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  winName = window.open(theURL,'',features);
  winName.moveTo(25,25);
}

Protokoll = self.location.protocol;
Pfad = self.location.pathname;
Basis = Protokoll + '//' + Pfad.substring(1,Pfad.length-11)
neues_Fenster = null;

function Zeigen(Bild0,Titel0,Breite0,Hoehe0)
{
   Bild = Bild0;
   Titel = Titel0;
   Breite = Breite0;
   Hoehe = Hoehe0;
   zu();
   setTimeout("sichtbar()",10);
}

function sichtbar()
{  
   Fenster_Hoehe = Hoehe;
   Fenster_Breite = Breite;
   Optionen = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height='+Fenster_Hoehe+',width='+Fenster_Breite;
   neues_Fenster = window.open('','',Optionen)
   neues_Fenster.moveTo((screen.width-Fenster_Breite)/2,(screen.height-Fenster_Hoehe)/2);
   with (neues_Fenster) 
   {
      document.writeln('<html><head><title>' + Titel + '</title>');
      document.writeln('<body style="background-color: #FFFFFF; margin: 0px;">');
      document.writeln('<table style="width: 100%; height: 100%; border: 0px;" cellpadding="0" cellspacing="0">');
      document.writeln('<tr><td style="text-align: center; vertical-align: middle;">');
      document.writeln('<a href="javascript:void(0);" onClick="javascript:window.close();"><img src="'+Bild+'" border=0 alt="'+Titel+'"></a></td></tr></table>');
      document.writeln('</body></html>');
   }
}

function zu()
{
   if (neues_Fenster != null)
     if (!neues_Fenster.closed)
       neues_Fenster.close();
}

function werbung(theURL,winName,features) { //v2.0
   winName = window.open(theURL,'',features);
   winName.moveTo(25,25);
}

function anzeigen(url,width,height,name) {
   view = "width="+width+",height="+height+",screenX=0,screenY=0,status=no,locationbar=no,menubar=no,resizable=no,scrollbars=no";
   name = window.open(url,name,view);
}

function anzeigen(url,width,height,scrollbars,menubar,locationbar,resizable,name) {
   view = "width="+width+",height="+height+",screenX=0,screenY=0,status=no,locationbar="+locationbar+",menubar="+menubar+",resizable="+resizable+",scrollbars="+scrollbars+"";
   name = window.open(url,name,view);
}

function anzeigenMenu(url,width,height,name) {
   view = "width="+width+",height="+height+",screenX=0,screenY=0,status=no,locationbar=no,menubar=yes,resizable=no,scrollbars=yes";
   name = window.open(url,name,view);
}

function submit(formId) {
   document.getElementById(formId).submit();
}

function changeLink(id,href,value) {
   document.getElementById(id).href=href;
   document.getElementById(id).firstChild.nodeValue=value;
}

function preview() {
   windowname = window.open("","preview","width=492,height=450");
   self.document.preview_form.submit();
   windowname.focus();
}
//-->
