function dom_init() {

/* Documentation - http://fancybox.net/api

	/* Regular */

	$("a.fancy").fancybox()

	/* Without title */
	
	$("a.fancy-notitle").fancybox({
		'titleShow' : false
	});

	/* gallerylink */

	$("a[rel=fancy_group]").fancybox({
		'transitionIn'		: 'none', // fade / elastic / none
		'transitionOut'		: 'none',
		'titlePosition' 	: 'outside' // inside / over
	});
	
	/* iframelink */
	
	$("a.iframe").fancybox({
		'width'				: '75%',
		'height'			: '75%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
	$('a#datenschutz').fancybox ({
		'width'				: '75%',
		'height'			: '75%',
	    'autoScale'     	: false,
	    'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});

	
	$("a[href$='.pdf']").addClass("pdf");
	$("a[href$='.doc'], a[href$='.txt'], a[href$='.rft']").addClass("txt");
	$("a[href$='.zip'], a[href$='.rar']").addClass("zip"); 
	$("a[href^='mailto:']").addClass("email");
	$('a').filter(function() {
		return this.hostname && this.hostname !== location.hostname;
	}).addClass("external");
	
	$('a').filter(function() {
		return this.hostname && this.hostname !== location.hostname;
	}).addClass("external").attr("target", "_blank");
	

$('.portal img').not('#content .portal img').hover(function() {
	$(this).animate({opacity: 0}, 250);
	}, function() {
	$(this).animate({opacity: 1}, 250);
});

};
