
var GB_ANIMATION = true;
$(document).ready(function() {
 
 
//EXTERNES FENSTER ÖFFNEN 
$("a[rel='external']").click(function(event){
            window.open($(this).attr("href"));
            event.preventDefault();
        });
 //LIGHTBOX
 $('a[@rel*=lightbox]').lightBox();
 
 //SPONSOREN SLIDER
$("#slider").easySlider({
		auto: true,
		continuous: true 
	});


//IMMOBILIEN ANFRAGE AUFKLAPPEN
$("#UpdatePanel2 div:first").hide();

$("#UpdatePanel2 h3").click(function(){
	$(this).next("div").slideToggle("slow")
	.siblings("div:visible").slideUp("slow");
	$(this).toggleClass("active");
	$(this).siblings("h3").removeClass("active");
});

//GÄSTEBUCH EINTRAG 
$("#UpdatePanel3 p:first").hide();

$("#UpdatePanel3 h3").click(function(){
	$(this).next("p").slideToggle("slow")
	.siblings("p:visible").slideUp("slow");
	$(this).toggleClass("active");
	$(this).siblings("h3").removeClass("active");
});

//IE6 HINWEIS
$("#closeLink").click(function() {
    $("#message").slideUp("slow");
});

//SUPERFISH MENU
        $('ul.sf-menu').superfish({ 
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        }); 

//FÜR POPUP -> HP'S

$("a.greybox").click(function(){
          var t = this.title || $(this).text() || this.href;
          GB_show(t,this.href,1024 ,768);
          return false;
  });
        
});






