var duration = 8;
var imgnr = 0;

function is_slideshow() {
  jQuery.noConflict();
   
    // Aktuelles ausblenden
    if(document.getElementById('hImg_'+(imgnr))) {
      jQuery(document).ready(function(){
	jQuery('#hImg_'+imgnr).fadeOut(duration*1000);
	
	// Naechstes einblenden wenn vorhanden
	if(document.getElementById('hImg_'+((imgnr+1)))) {
      	  jQuery('#hImg_'+(imgnr+1)).fadeIn(duration*1000,function() {  
	     imgnr++;
      	     is_slideshow();
      	  });
      	  
      	// sonst wieder erstes einblenden
	} else {
          jQuery('#hImg_0').fadeIn(duration*1000,function() {
	     imgnr = 0; 
      	     is_slideshow();
      	  });
        }
      });
      
     }
}
// Aufklappmenue fuer IE
function navi() {
  if (document.all&&document.getElementById) {
    navRoot = document.getElementById('mainmenu');
    for (i=0; i<navRoot.childNodes.length; i++) {
      node = navRoot.childNodes[i];
      if (node.nodeName=="LI") {
        node.onmouseover=function() {
          this.className+=" over";
        }
        node.onmouseout=function() {
          this.className=this.className.replace(" over", "");
        }
      }
    }
  }
}

function load() {
	//fontinit();
	is_slideshow();
	navi();
}
