/**
 * @author Uwe Günzel
 */
$(function() { 
    $("#triggers img[rel]").overlay({expose: '#333', effect: 'apple'});
    $("#triggers_landscape img[rel]").overlay({expose: '#333', effect: 'apple'}); 

	$('#navigation li').hover(
		function () {
			$(this).addClass("hover");
		}, 
		function () {
			$(this).removeClass();
		}
	)
	$('.subnavigation_header').hover(
		function () {
			$(this).removeClass();
			$(this).addClass("subnavigation_header_hover");
		}, 
		function () {
			$(this).removeClass();
			$(this).addClass("subnavigation_header");
		}
	)

	$("a[rel]").overlay({
		expose: '#333',
		effect: 'apple', 
 
		onBeforeLoad: function() { 
            var wrap = this.getOverlay().find(".contentWrap");  
            var self = this;  
  
            wrap.load(this.getTrigger().attr("href"), function(){ 
                $('.close', this).click(function(){self.close()}); 
            }); 
        } 
 
    }); 
});


