/***************
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( "gascon-com-visited" );
//	if(!x){return GB_myShow('www.Gasconwine.com - 21 and Over Only Please ', 'legal/disclaimer.html');}
	if(!x){return GB_myShow('www.Gasconwines.com - 21 and Over Only Please ', GLOBAL_DISCLAIMER_URL);}
                  
}
GB_myShow = function(caption, url, /* optional */ height, width, callback_fn) {
  
   
	var options = {
        caption: caption,
		center_win: true,
        width: width || 590,
        height: height ||480,
        fullscreen: false,
        show_loading: false,
        callback_fn: callback_fn
		
    }
    var win = new GB_Window(options);
	return win.show(url);
}
