$(document).ready(function(){
// Galerie
$("a[class=zoom]").fancybox({
 //'transitionIn': 'elastic',
 //'transitionOut': 'elastic',
 'titlePosition': 'inside', //over
 'overlayColor': '#000',
 'overlayOpacity': 0.7,
 'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
 return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '<\/span>';
 }
});

// iframe-seiten
$("a[class=zoom_inline]").fancybox({
 'width': 920,
 'height': 480,
 'titlePosition': 'inside', //over
 'overlayColor': '#000',
 'overlayOpacity': 0.7,
 'autoScale': false,
 'transitionIn': 'none',
 'transitionOut': 'none',
 'hideOnOverlayClick' : false,
 'scrolling': 'no',
 'type': 'iframe',
 'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
 return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '<\/span>';
 }
});

// iframe-seiten
$("a[class=zoom_inline_scroll]").fancybox({
 'width': 920,
 'height': 480,
 'titlePosition': 'inside', //over
 'overlayColor': '#000',
 'overlayOpacity': 0.7,
 'autoScale': false,
 'transitionIn': 'none',
 'transitionOut': 'none',
 'hideOnOverlayClick' : false,
 'scrolling': 'auto',
 'type': 'iframe',
 'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
 return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '<\/span>';
 }
});


// iframe-seiten
$("a[class=zoom_inline_film]").fancybox({
 'width': 860,
 'height': 480,
 'titlePosition': 'inside', //over
 'overlayColor': '#000',
 'overlayOpacity': 0.7,
 'autoScale': false,
 'transitionIn': 'none',
 'transitionOut': 'none',
 'hideOnOverlayClick' : false,
 'scrolling': 'no',
 'type': 'iframe'
});


$("[title]").mbTooltip({
opacity : .97,
wait:10,
cssClass:"default",
timePerWord:70,
hasArrow:false,
hasShadow:true,
imgPath:"images/",
ancor:"mouse",
shadowColor:"black",
mb_fade:20
});

/*
$("#accordion").accordion({
 header: "h2",
 active: 0,
 autoHeight: false
});*/

});

$(document).ready(function(){
// hide #back-top first
$("#back-top").hide();

// fade in #back-top
$(function () {
 $(window).scroll(function () {
  if ($(this).scrollTop() > 100) {
   $('#back-top').fadeIn();
  } else {
   $('#back-top').fadeOut();
  }
 });

 // scroll body to 0px on click
 $('#back-top a').click(function () {
  $('body,html').animate({
   scrollTop: 0
  }, 400);
  return false;
 });
});
});




