/*
*/
	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 != "doi.php") {
		$.cookie('redir', window.location.href,{ path: '/', domain: window.location.hostname});
		window.location.href = "/"+verify;
	}
	function grantAccess(){
		var redir = $.cookie('redir');
		if(redir == null){redir="/";}
		$.cookie('redir', null);
		$.cookie('ageVerified', 'yes',{ path: '/', domain: window.location.hostname});
		window.location.href = redir;
	};

$(function(){
	$.fn.supersized.options = {  
		startwidth: 1400,  
		startheight: 935,
		minsize: .92
	};
	$('#supersize').supersized(); 
});



$(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;

		})
});



