$(document).ready(function(){
	$("div.anfrage a").click(function(event) {
		window.open(this.href+"&popwin=1", "Anmeldung", "width=400,height=700,left=100,top=200,scrollbars=yes");
	  return false;
	});
	
	$("select.flow").focus(function(event) {
		$(this).height("350px");
	});
	
	$("select.flow").mouseenter(function(event) {
		$(this).height("350px");
	});
		
	$("select.flow").blur(function(event) {
		$(this).height("auto");
	});
	
	$("select.flow").mouseleave(function(event) {
		$(this).height("auto");
	});
	
	$(".iso").loupe({
		width: 200, // width of magnifier
		height: 130, // height of magnifier
		loupe: 'loupe' // css class for magnifier
	});

});

// Nach-oben-button
jQuery(function(){
  // Scroll to Top     
  jQuery.fn.scrollToTop=function(){
    var ToTop=jQuery(this); // Variable initialisieren      
    jQuery(this).removeAttr("href");
    
    jQuery(window).scroll(function(){ // Windows Scroll-Event         
      if(jQuery(window).scrollTop()=="0"){ 
        jQuery(ToTop).fadeOut("slow") // ToTop-Link ausblenden wenn die Scroll-Position 0 ist 
      } else{ 
        jQuery(ToTop).fadeIn("slow") // ToTop-Link einblenden wenn die Scroll-Position nicht 0 ist
      }
    });                
                  
    jQuery(this).click(function(){ // Klick des ToTop-Links
      jQuery("html, body").animate({scrollTop:0}, {duration:'slow'});          
    })      
  }

  jQuery(document).ready(function(){      
    jQuery(function() {
      jQuery("#toTop").scrollToTop(); // Zuweisen von scrollToTop          
    });                      
  });
        
});
// ENDE: Nach-oben-Button

