/***************
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 ( "apothicred-com-visited" );
	if(!x){return GB_myShow('ApothicRed.com - 21 and over only, please ', 'inc/disclaimer.html');}
                  
}
GB_myShow = function(caption, url, /* optional */ height, width, callback_fn) {
  
   
	var options = {
        caption: caption,
		center_win: true,
        width: width || 816,
        height: height ||480,
        fullscreen: false,
        show_loading: false,
        callback_fn: callback_fn
    }
    var win = new GB_Window(options);
	return win.show(url);
}

//Function to open pop window for user agreement, etc.
function showWindow(win,title){
 window.open(win,title,'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=500,height=500');
 return false;
 }


