
	var COOKIE_NAME = 'ageVerified';
	$go = $.cookie(COOKIE_NAME);
	var url = window.location.pathname;
	var filename = url.substring(url.lastIndexOf('/')+1);
	var verify = "verify.php";
	if ($go == null && filename != verify && filename != "c_msc.php") {
		$.cookie('redir', window.location.href,{ path: '/', domain: 'campari.de'});
		window.location.href = "/"+verify;
	}

	function grantAccess(){
		var redir = $.cookie('redir');
		$.cookie('redir', null);
		$.cookie('ageVerified', 'yes',{ path: '/', domain: 'campari.de'});
		window.location.href = redir;
	};

function showClaim(){
	setTimeout(function() { $('#claim').fadeIn(1000); }, 2000);
};


$(function() {
	$(".newsticker-jcarousellite").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		auto:3000,
		speed:1000
	});
});

function textCounter(field, countfield, maxlimit) {
	if (field.value.length > maxlimit) {
		field.value = field.value.substring(0, maxlimit);
	} else {
		var c = maxlimit - field.value.length;
		//countfield.value = maxlimit - field.value.length;
		$('#tcount').html("(Noch "+c+" Zeichen)");
	}
}


$(function(){
		$("#playlist a").bind('click', function() {
			if($(this).hasClass('active')){
				$(this).removeClass("active");
				$('#mp3player').flash(function(){this.GotoFrame(9);});
			} else {
				  $(this).addClass("active").siblings().removeClass("active");

					var mp3 = this.href;
					$('#mp3player').flash(function(){this.SetVariable('/:mFile', mp3)});
					//$('#mp3player').flash(function(){this.Play();});
					$('#mp3player').flash(function(){this.GotoFrame(15);});
					$('#mp3player').flash(function(){this.Play();});
			}
			return false;

		})
});


/*	$(function(){
		$(".nav-list a").hover(function(){
			$(this).children("span").fadeOut();
		}, function(){
			$(this).children("span").fadeIn();
		})		
	});

	$(function() {
		if (jQuery.browser.msie)
			$('img[src$=.png]').each(function() {
				this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.src+",sizingMethod='scale')";
				});
	});


$(function(){
	$.fn.supersized.options = {  
		startwidth: 1272,  
		startheight: 935,
		minsize: .50
	};
	$('#supersize').supersized(); 
});
*/
/*
$(document).ready(function() {
	$("a#trailer").fancybox({
		'width'				: '655',
		'height'			: '360',
		'autoScale'			: true,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titleShow'			: false,
		'sstype'				: 'iframe'
	});

});
*/
