	$(function() {
		// check for age cookie
		if(!cookieExists('age'))
		{
			// append growbox to body
			$('body').append('<div id="growbox"></div>');
			// append blanket to body
			$('#growbox').after('<div id="blanket"></div>');
			// add CSS properties to growbox
			$('#growbox').css({'background-color':'#000','border':'5px solid #51ffef','position':'absolute','z-index':'100','left': '50%','top':'50%'});
			// add CSS properties to blanket
			//$('#blanket').css({'background':'url(js/verify/tile.png)','height':$(document).height()+'px','width':'100%','position':'absolute','top':'0','left':'0', 'z-index':'99'});
			$('#blanket')
			.css({'background-color':'#000000','height':$(document).height()+'px','width':'100%','position':'absolute','top':'0','left':'0', 'z-index':'99'})
			.fadeTo('fast', '.95');
			// animate properties object
			var anim_properties = {'width':'+=700', 'height':'+=250', 'marginLeft':'-=350', 'marginTop':'-=125'};
			var text = '';
			text += '<h1 style="color: #ff8c1f; font: bold 14pt Arial, sans-serif;margin: 20px 0;padding: 0 25px;text-align: center;">';
			text += 'WARNING : SEXUALLY EXPLICIT MATERIALS : YOU MUST BE 18 YEARS OF AGE OR OLDER!';
			text += '</h1>';
			text += '<p style="color: #fff;font: bold 12pt Arial, sans-serif; padding: 0 25px; text-align: center;">';
			text += 'This website contains sexually explicit materials unsuitable for a younger audience.  I agree that I am over the age of 18 years and I am an adult as defined by my local, state, and federal laws.';
			text += '</p>';
			text += '<p style="overflow: auto;text-align: center;">';
			text += '<span style="float: left; margin-left: 75px;">';
			text += '<input type="button" name="enter" id="enter" value="ENTER" style="color:#090;font: bold 12pt sans-serif;margin-bottom: 5px;padding:10px;width:150px;" onclick="verifyEnter();" /><br />';
			text += '<span style="font: bold 8pt sans-serif;"><span style="color: #51ffef;">Zuzana</span> <span style="color: #ff8c1f;">Designs</span></span>';
			text += '</span>';
			text += '<span style="float: right; margin-right: 75px;">';
			text += '<input type="button" name="exit" id="exit" value="EXIT" style="color:#f00;font: bold 12pt sans-serif;margin-bottom: 5px;padding:10px;width:150px;" onclick="verifyExit();" /><br />';
			text += '<span style="font: bold 8pt sans-serif;"><span style="color: #2389ae;">Green</span> <span style="color: #64ca00;">Arrow</span> <span style="color: #2389ae;">Designs</span></span>';
			text += '</span>';
			text += '</p>';
			// animate growbox
			$('#growbox').animate(anim_properties, 'slow', false, function() {
				//$('#growbox').corner({tl: { radius: 8 }, tr: { radius: 8 }, bl: { radius: 8 }, br: { radius: 8 }, antiAlias: true});
				$('#growbox').append(text);
			});
		}
	});


function verifyExit()
{
	window.location = "http://www.greenarrowdesigns.com/";
}

function verifyEnter()
{
	// set age cookie
	setCookie();
	
	// remove warning message
	$('#growbox').fadeOut('fast', function() {
		$('#blanket').fadeOut('fast', function() {
			$('#growbox').remove();
			$('#blanket').remove();							   
		});
	});
}

function cookieExists(cookie)
{
	if(document.cookie.indexOf(cookie + "=") == -1)
	{
		return false;
	}
	else
	{
		return true;	
	}
}
function setCookie()
{
	var expire = new Date();
	
	expire.setDate(expire.getDate() + 1);
	
	document.cookie = 'age' + "=" +escape('age') + ( ( expire == null) ? "" : ";expires="+expire.toUTCString());
}
