
$(function() { 
	
    $("a[rel]").click(function() { 
        $(this).expose({
        	api: true,
        	color: '#ffff00',
            opacity: 0.7, 
            closeSpeed: 1000
        }).load(); 
    }); 
    
    
 
    // if the function argument is given to overlay, it is assumed to be the onBeforeLoad event listener 
    $("a[rel]").overlay(function() { 
 
        // grab wrapper element inside content 
        var wrap = this.getContent().find("div.wrap"); 
 
        // bei mehreren href's das if herausnehmen!!! 
        ///if (wrap.is(":empty")) { 
            wrap.load(this.getTrigger().attr("href")); 
        ///} 
    }); 
});


