jQuery.cookie = function(key,value,options) { // set up variables used later in this method var settings = jQuery.extend({ 'domain':'.espn.go.com', 'path': '/', 'secure': window.location.protocol === 'https:', 'expires': null },options), regex, r, date, expires, path = settings.path !== null ? '; path='+settings.path : '', domain = settings.domain !== null ? '; domain='+settings.domain : '', secure = settings.path === true ? '; secure=' : ''; // if only a key was passed in, look to see if we have that cookie and pass back the value. if (typeof value === 'undefined') { regex = new RegExp('(^|;) ?' + key + '=([^;]+)(;|$)','g'); r = regex.