function detectBrowser()  { 
    var version = parseFloat(navigator.appVersion); 
    if ((navigator.appName == "Microsoft Internet Explorer")  && (version <= 6))  { 
        return; 
    } else { $($(document).ready(function() {
            var COOKIE_NAME = 'splash-page-cookie';
            $go = $.cookie(COOKIE_NAME);
            if ($go == null) {
                $("a[rel]").overlay({

					// some mask tweaks suitable for modal dialogs
					mask: {
						color: '#333333',
						loadSpeed: 200,
						opacity: 0.9
					},

					closeOnClick: false,
					
					closeOnEsc: false,
					
					onBeforeLoad: function() {

								// grab wrapper element inside content
								var wrap = this.getOverlay().find(".contentWrap");

								// load the page specified in the trigger
								wrap.load(this.getTrigger().attr("href"));
							},
					load: true

					
				});
            }
        })); 
    } 
} // detectBrowser();

function checkAgeCheckBox(f){
var min_age= 21;

var cmbmonth=(parseInt(document.getElementById("cmbmonth").options[document.getElementById("cmbmonth").selectedIndex].value));
var cmbday=parseInt(document.getElementById("cmbday").options[document.getElementById("cmbday").selectedIndex].value);
var cmbyear=parseInt(document.getElementById("cmbyear").options[document.getElementById("cmbyear").selectedIndex].value);
var theirDate = new Date((cmbyear + min_age), cmbmonth, cmbday);
var today = new Date;

if(cmbmonth==0){alert("You must enter the month you were born in.");return false;}
else if(cmbday==0){alert("You must enter the day you were born on.");return false;}
else if(cmbyear==2005){alert("You must enter the year you were born in.");return false;}
else if ( (today.getTime() - theirDate.getTime()) < 0){alert("You are Under 21 years of age and are prohibited from entering this site!");return false;}
else if(!document.getElementById("agree").checked){alert('Check the agree box to enter this site.');return false;}
else{
$(function() {
	var COOKIE_NAME = 'splash-page-cookie';
	$go = $.cookie(COOKIE_NAME);
	if ($go == null) {
		$.cookie(COOKIE_NAME, 'verified', { path: '/', expires: 60 });
		triggers.eq(1).overlay().close();
	}
});
return true;
}
}


// $().ready(function() {
// 		var $scrollingDiv = $("#header_warning");
//  
// 		$(window).scroll(function(){			
// 			$scrollingDiv
// 				.stop()
// 				.animate({"top": ($(window).scrollTop()) + "px"}, "slow" );			
// 		});
// });
