$(document).ready(function() {


    jQuery('#mycarousel').jcarousel({
        vertical: true,
        scroll: 2
    });
	
$('ul.sf-menu').superfish({
delay:0, // the delay in milliseconds that the mouse can remain outside a submenu without it closing
animation: {opacity:'show',height:'show'},
speed:  'fast',
autoArrows: false, // disable generation of arrow mark-up
dropShadows: false, // disable drop shadows
disableHI: false
}); 




/*
$("#navikopfnavi a").each(function(){
        var href = this.getAttribute('href');
        var location = new String( document.location );
		var fileN1 = location.lastIndexOf("/") + 1;
		var fileN2 = location.length;
		location = location.substring(fileN1,fileN2);
		
		if ( location == href) {
            $(this).addClass("active");
        }
    });
*/

$("#tabs").tabs();
	



$('#controll').toggle(function() {
  $('#angeboteinhalt').animate({
    left: '+=680'
  }, 2000, function() {
    // Animation complete.
  });
 
}, function() {
  $('#angeboteinhalt').animate({
    left: '-=680'
  }, 2000, function() {
    // Animation complete.
  });
}

);



$("a[rel=360Box]").fancybox({
		'width': '90%',
		'height': '90%',
		'autoScale': false,
		'transitionIn': 'none',
		'transitionOut': 'none',
		'type': 'iframe',
'hideOnContentClick':   true
});



$("a[rel=	lightbox]").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
                  'overlayOpacity' : 0.7,
                  'overlayColor': '#000',
'hideOnContentClick':   true


});


$("a.xtcSlimboxBild").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
                  'overlayOpacity' : 0.7,
                  'overlayColor': '#000',
                  'hideOnContentClick':   true
});





$(".text1 .preise").click(function () {
      $(".text1 .preiseinhalt").slideToggle("slow");
      $(this).toggleClass("preiseon");

});

$(".text1 .angebote").click(function () {
      $(".text1 .angeboteinhalt").slideToggle("slow");
      $(this).toggleClass("angeboteon");
   
});

$(".text1 .skizze").click(function () {
      $(".text1 .skizzeinhalt").slideToggle("slow");
      $(this).toggleClass("skizzeon");

});

$(".text1 .bilder").click(function () {
      $("#xtcSlimboxPic1").slideToggle("slow");
      $(this).toggleClass("bilderon");

});





$(".text2 .preise").click(function () {
      $(".text2 .preiseinhalt").slideToggle("slow");
      $(this).toggleClass("preiseon");

});

$(".text2 .angebote").click(function () {
      $(".text2 .angeboteinhalt").slideToggle("slow");
      $(this).toggleClass("angeboteon");
   
});

$(".text2 .skizze").click(function () {
      $(".text2 .skizzeinhalt").slideToggle("slow");
      $(this).toggleClass("skizzeon");

});

$(".text2 .bilder").click(function () {
      $("#xtcSlimboxPic2").slideToggle("slow");
      $(this).toggleClass("bilderon");

});






$(".text3 .preise").click(function () {
      $(".text3 .preiseinhalt").slideToggle("slow");
      $(this).toggleClass("preiseon");

});

$(".text3 .angebote").click(function () {
      $(".text3 .angeboteinhalt").slideToggle("slow");
      $(this).toggleClass("angeboteon");
   
});

$(".text3 .skizze").click(function () {
      $(".text3 .skizzeinhalt").slideToggle("slow");
      $(this).toggleClass("skizzeon");

});

$(".text3 .bilder").click(function () {
      $("#xtcSlimboxPic3").slideToggle("slow");
      $(this).toggleClass("bilderon");

});








$(".text4 .preise").click(function () {
      $(".text4 .preiseinhalt").slideToggle("slow");
      $(this).toggleClass("preiseon");

});

$(".text4 .angebote").click(function () {
      $(".text4 .angeboteinhalt").slideToggle("slow");
      $(this).toggleClass("angeboteon");
   
});

$(".text4 .skizze").click(function () {
      $(".text4 .skizzeinhalt").slideToggle("slow");
      $(this).toggleClass("skizzeon");

});

$(".text4 .bilder").click(function () {
      $("#xtcSlimboxPic4").slideToggle("slow");
      $(this).toggleClass("bilderon");

});







$(".text5 .preise").click(function () {
      $(".text5 .preiseinhalt").slideToggle("slow");
      $(this).toggleClass("preiseon");

});

$(".text5 .angebote").click(function () {
      $(".text5 .angeboteinhalt").slideToggle("slow");
      $(this).toggleClass("angeboteon");
   
});

$(".text5 .skizze").click(function () {
      $(".text5 .skizzeinhalt").slideToggle("slow");
      $(this).toggleClass("skizzeon");

});

$(".text5 .bilder").click(function () {
      $("#xtcSlimboxPic5").slideToggle("slow");
      $(this).toggleClass("bilderon");

});







$(".text6 .preise").click(function () {
      $(".text6 .preiseinhalt").slideToggle("slow");
      $(this).toggleClass("preiseon");

});

$(".text6 .angebote").click(function () {
      $(".text6 .angeboteinhalt").slideToggle("slow");
      $(this).toggleClass("angeboteon");
   
});

$(".text6 .skizze").click(function () {
      $(".text6 .skizzeinhalt").slideToggle("slow");
      $(this).toggleClass("skizzeon");

});

$(".text6 .bilder").click(function () {
      $("#xtcSlimboxPic6").slideToggle("slow");
      $(this).toggleClass("bilderon");

});





});


