$(document).ready(function(){
	var toolTipActive = false;
	$("area.jTip").hover(
		function() {
			var offsetX = 10;
			var offsetY = 0;
			var areaCoords = this.coords.split(',');
			var mapPosition = $('img#mapImage').offset();			
			var tipTop = mapPosition.top + (areaCoords[1] * 1) + offsetY;;
			var tipLeft = mapPosition.left + (areaCoords[2] * 1) + offsetX;
			if (!toolTipActive)
				JT_show(this.href,this.id,this.alt,tipLeft,tipTop);
			toolTipActive = true;
		}, 
		function() {			
			JT_destroy();
			toolTipActive =false;
		}
	);
});
$(function () {
		var tabContainers = $('div.tabs > div');
		tabContainers.hide().filter(':first').show();
		
		$('div.tabs ul.tabNavigation a').click(function () {
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				$('div.tabs ul.tabNavigation a').removeClass('selected');
				$(this).addClass('selected');
				return false;
		}).filter(':first').click();
});
jQuery(document).ready(function($) {
	// We only want these styles applied when javascript is enabled
	$('div.navigation').css({'width' : '150px', 'float' : 'left'});
	$('div.contentGalleriffic').css('display', 'block');

	// Initially set opacity on thumbs and add
	// additional styling for hover effect on thumbs
	var onMouseOutOpacity = 0.67;
	$('#thumbs ul.thumbs li').opacityrollover({
		mouseOutOpacity:   onMouseOutOpacity,
		mouseOverOpacity:  1.0,
		fadeSpeed:         'fast',
		exemptionSelector: '.selected'
	});

	// Initialize Advanced Galleriffic Gallery
	var gallery = $('#thumbs').galleriffic({
		delay:                     5000,
		numThumbs:                 6,
		preloadAhead:              8,
		enableTopPager:            false,
		enableBottomPager:         false,
		maxPagesToShow:            3,
		imageContainerSel:         '#slideshow',
		controlsContainerSel:      '#controls',
		captionContainerSel:       '#caption',
		loadingContainerSel:       '#loading',
		renderSSControls:          true,
		renderNavControls:         true,
		playLinkText:              'Play Slideshow',
		pauseLinkText:             'Pause Slideshow',
		prevLinkText:              '&lsaquo; zurück',
		nextLinkText:              'vor &rsaquo;',
		nextPageLinkText:          '&rsaquo;',
		prevPageLinkText:          '&lsaquo;',
		enableHistory:             false,
		autoStart:                 true,  // war auf 'false'
		syncTransitions:           true,
		defaultTransitionDuration: 900,
		onSlideChange:             function(prevIndex, nextIndex) {
			// 'this' refers to the gallery, which is an extension of $('#thumbs')
			this.find('ul.thumbs').children()
				.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
				.eq(nextIndex).fadeTo('fast', 1.0);
		},
		onPageTransitionOut:       function(callback) {
			this.fadeTo('fast', 0.0, callback);
		},
		onPageTransitionIn:        function() {
			this.fadeTo('fast', 1.0);
		}
	});
});

document.write('<style>.noscript { display: none; }</style>');


