
$(document).ready(function() { 
		if (typeof $.fn.fancybox != "undefined") {
		$("a[rel=lightbox]").fancybox({
			'transitionIn'		: 'elastic',
			'transitionOut'		: 'fade',
			'titlePosition' 	: 'over',
			'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
			    return '<span id="fancybox-title-over">Bild ' +  (currentIndex + 1) + ' von ' + currentArray.length + ' - ' + title + '</span>';
			}
		});
	}
	
	
	if (typeof $.fn.fancybox != "undefined") {
				 $("a.iframe").fancybox({
			'type'				: 'iframe',
			'width'				: 860,
			'height'			 	: 600		
		});
	}
	
	
//		if (typeof $.fn.fancybox != "undefined") {
//				 $("a#video").fancybox({
//			'type'				: 'iframe',
//			'width'				: 660,
//			'height'			 	: 380		
//		});
//	}
	
	if (typeof noSpam != "undefined") {
		noSpam();	
	}
}); 



				



//window.addEventListener?window.addEventListener('load',noSpam,false):window.attachEvent('onload',noSpam);



							 
