	var nn2 = ((navigator.appName.indexOf("scape") >= 0) && (parseInt(navigator.appVersion) <= 2));
	var never = "Wed, 30-Dec-2037 00:00:00 GMT";
	var nn2HardcodedDate = never;//"Sat, 25-Dec-1999 00:00:00 GMT";
	
	//var never = "Sat, 25-Dec-1999 00:00:00 GMT";
	
	var defaultExpirationTime = 48;
	
		function acceptsCookies() {
		  var answer;
		  document.cookie = 'Welcome=to_EarthLink';
		  if(document.cookie == '') answer = false; else answer = true;
		  //document.cookie = 'Welcome=to_EarthLink; expires=Fri, 13-Apr-1970 00:00:00 GMT';
			
		  return answer;
		}
		
		function setCookie (name, value, hours, path, domain, secure) {
			
		var thishost = self.location.hostname; var thisdomain = thishost.substring(thishost.lastIndexOf(".",(thishost.length - 5)), thishost.length );	
		domain = thisdomain;
		  if (acceptsCookies()) {
		  	var expirationDate = "";
		  	if (hours != -1) {
			    if (!nn2) {
			  		expirationDate = (new Date(((new Date()).getTime()) + defaultExpirationTime * 3600000)).toGMTString();
			  	} else {
			  		expirationDate = nn2HardcodedDate;
			  	}  	
		  		if (hours && !nn2 && !isNaN(parseInt(hours))) {
					expirationDate = (new Date(((new Date()).getTime()) + hours*3600000)).toGMTString();
				} else if (hours && !nn2){
					expirationDate = hours;
				}//
			} else {
				expirationDate = never;
			}
				document.cookie = name + '=' + unescape(value) + ((hours)?('; expires=' + expirationDate):'') + ((path)?'; path=' + path:'') + ((domain)?'; domain=' + domain:'') + ((secure && (secure == true))?'; secure':'');
			}
		}

		function readCookie(name, filter) {
		  if(document.cookie == '') { return false; }
		  else return unescape(getCookieValue(name, filter));
		}
		
		function getCookieValue(name, filter) {
			var prefix = filter ? filter : "";
		  var firstChar, lastChar, endOfName;
		  var entireCookieString = document.cookie;
		  
		  if (filter) {
		  	var searchkeyindex = 0;
		  	var foundkey = false;

				while (!foundkey && (searchkeyindex <= entireCookieString.length)) {
				  	var fc = entireCookieString.indexOf(name, searchkeyindex);
				  	if (fc >= 0 && (entireCookieString.substring((fc - prefix.length), fc) != prefix)) {
				  			foundkey = true;
				  			firstChar = fc;
				  	} else {
				  			searchkeyindex = fc + name.length;
				  	}//
		  	}
		  } else {
		  		firstChar	=	entireCookieString.indexOf(name);
		  }//

		  var equalIndex = parseInt(firstChar + name.length);
		  if((firstChar != -1) && (entireCookieString.charAt(equalIndex) == '=')) {
		    firstChar += name.length + 1;
		    lastChar = entireCookieString.indexOf(';', firstChar);
		    if(lastChar == -1) lastChar = entireCookieString.length;
		    return entireCookieString.substring(firstChar, lastChar);
		  } else {
		    return false;
		  }
		}
		
		function eatCookie(name, path, domain) {
		var thishost = self.location.hostname; var thisdomain = thishost.substring(thishost.lastIndexOf(".",(thishost.length - 5)), thishost.length );	
		domain = thisdomain;
		  var theValue = getCookieValue(name);
		  if(theValue) {
		    document.cookie = name + '=' + theValue + '; expires=Fri, 13-Apr-1970 00:00:00 GMT' + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:'');
		  }
		}


