/***************
functions:
	get_cookie- recieves name of requested cookie, returns status of cookie, true or false
	GB_myShow- Opens "thickbox" params are declaired in options, I.E. Width, Height
***************

*/

function get_cookie ( cookie_name ){
	var results = document.cookie.match ( cookie_name);
	
	if ( results ) {
		return ( unescape ( results[1] ) );
	} else {
		return false;
	}
}

window.onload=function(){
	var x = get_cookie ( "eccodomani-com-visited" );
	if(!x){return GB_myShow('www.eccodomani.com - 21 and Over Only Please ', 'legal/disclaimer.html');}                  
}

GB_myShow = function(caption, url, /* optional */ height, width, callback_fn) {
	var options = {
		caption: caption,
		center_win: true,
		width: width || 771,
		height: height ||527,
		fullscreen: false,
		show_loading: false,
		callback_fn: callback_fn
	}
	var win = new GB_Window(options);
	return win.show(url);
}