/* jquery */

jQuery(document).ready(function() {

	jQuery('.locPager a').click(function() {
        jQuery('.locPager a').removeClass('active');
        jQuery(this).addClass('active');
	});

});


/* subnavi-location */
jQuery(document).ready(function() {
	act_a 		= '';
	act_a_src	= '';

	act_src 	= '';
	new_src 	= '';

	jQuery('.locTyps img').hover(function() {
		act_src = this.src;
		new_src = act_src.replace(/_p/, '_a');
		jQuery(this).attr("src", new_src);
	}, function() {
		if(act_a_src != new_src) {
			jQuery(this).attr("src", act_src);
		}
	});
	
	jQuery('.locTyps img').click(function() {
		if( !act_a_src.match(/locations_locations/i) ) {
			act_a_src = act_a_src.replace(/_a/, '_p');
		}
		jQuery(act_a).attr("src", act_a_src);
		act_a 		= this;
		act_a_src 	= this.src;
		jQuery(this).attr("src", new_src);
	});
	
	


	jQuery('table.radios input.radio, table.radios a').click(function() {
		jQuery('table.radios input.checkbox').attr('checked', false);
	});

	
});



// lightbox

$(function() {
	// Use this example, or...
	//$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
	// This, or...
	//$('#gallery a').lightBox(); // Select all links in object with gallery ID
	// This, or...
	//jQuery('a.lightbox').lightBox(); // Select all links with lightbox class

	jQuery('a.lightbox').lightBox(); // Select all links with lightbox class
	//jQuery('a.lightboxHotel').lightBox(); // Select all links with lightbox class
	// This, or...
	//$('a').lightBox(); // Select all links in the page
	// ... The possibility are many. Use your creative or choose one in the examples above

	jQuery('a.lightbox').lightBox({fixedNavigation:true}); // zeigt prev/next immer an
	//jQuery('a.lightboxHotel').lightBox({fixedNavigation:true}); // zeigt prev/next immer an
});
