/* COOKIES */

var Cookies = {
	init: function () {
		var allCookies = document.cookie.split('; ');
		for (var i=0;i<allCookies.length;i++) {
			var cookiePair = allCookies[i].split('=');
			this[cookiePair[0]] = cookiePair[1];
		}
	},
	create: function (name,value,days) {
		if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
		this[name] = value;
	},
	erase: function (name) {
		this.create(name,'',-1);
		this[name] = undefined;
	}
};

Cookies.init();



function saveLocation(name) {
	
		Cookies.create("hyperlocal",name,7);
	
}




var nowUrl = location.href;
	
	if (nowUrl == "http://www.oc-fas.com/orange-county-storage/default.aspx" || nowUrl == "http://www.oc-fas.com/orange-county-storage/" || nowUrl == "http://oc-fas.com/orange-county-storage/" || nowUrl == "http://oc-fas.com/orange-county-storage/" || nowUrl == "http://www.oc-fas.com/services-fine-art-storage/antique-furniture-storage.aspx" || nowUrl == "http://oc-fas.com/services-fine-art-storage/antique-furniture-storage.aspx") 
    {
		saveLocation("OCStorage");
	} 
	
    
    
    
	if (Cookies["hyperlocal"] == "OCStorage") {
	
		document.write("Call us for Special Pricing!<br />&#40;714&#41; 481-0010");
	}  else {
		document.write("Call us today!<br />&#40;714&#41; 418-4400");
	}


