 $(document).ready(function(){
// DOM is geladen

 $('#splashdiv').overlay({expose: '#000', effect: 'apple', api: true}).load();

 $("img[rel]").overlay({expose: '#000', effect: 'apple'});
 $("a.vandiv[rel]").overlay({expose: '#000', effect: 'apple'});
	// if the function argument is given to overlay,
	// it is assumed to be the onBeforeLoad event listener
 $("a.external[rel]").overlay({expose: '#000',effect: 'apple',
		onBeforeLoad: function() {
			// grab wrapper element inside content
			var wrap = this.getContent().find(".contentwrap");
			// load the page specified in the trigger
			wrap.load(this.getTrigger().attr("href"));
		}
	});
 });

