
	
$(document).ready(function(){
/*
	if($.browser.msie) {
		var path = window.location.pathname;
		if($.browser.version < 7 && path.indexOf("browser-hinweis.html") < 0) {
			window.location = '/browser-hinweis.html';
			return false;
		}
	}
*/	
	$("a").click(function(){
		$(this).blur(); //Remove outline from links
	});
	$("input[name=button]").click(function(){
		$(this).blur(); //Remove outline from links
	});
/**/	
	// Alterüberprüfung bei direkt Einstig in die Seite
	if($.cookie('ageCheck') != "ok" && !$('body').hasClass('Startseite') && !$('body').hasClass('noAltersabfrage')) {
		$.fancybox({
		'overlayOpacity' : 0.5,
		'overlayColor' : '#000',
		'padding'			: 5,
		'width'				: 700,
		'height'      : 450,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'modal'		: true,
		'type'		:'iframe',
		'href'		:'/altersabfrage.html'
		});
	}
		$("a.popup").fancybox({
		'overlayOpacity' : 0.5,
		'overlayColor' : '#000',
		'padding'			: 5,
		'width'				: 700,
		'height'      : 400,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'modal'		: false,
		'type'		:'iframe'/*,
		'href'		:'/mix-und-flambierwettbewerb/online-anmeldung.html'*/
		});
/**/		
		if($.cookie('ageCheck') == "ok" && $.cookie('popupwettbewerb') != "yes") {
			$.fancybox({
				'overlayOpacity' : 0.5,
				'overlayColor' : '#000',
				'padding'		: 5,
				'href'			: 'assets/images/Wettbewerb/popup_gewinner.jpg',
				'transitionOut'		: 'none',
				'transitionIn'		: 'none',
				'onComplete' : function() {
					$("#fancybox-img").css("cursor", "pointer");
					$("#fancybox-img").click(function() {
						window.location.href = "/mix-und-flambierwettbewerb/";
						parent.$.fancybox.close();
					});
				},
				'onClosed' : function() {
					$.cookie('popupwettbewerb', 'yes', { expires: null, path: '/' });
				}
			});
		}

});
