It is a bit hard to guess what you want, perhaps this is what you are looking for?
$(function () {
var east = 'http://subdomain.domain1.com/landingpage.html';
var west = 'http://subdomain.domain2.com/landingpage.html';
var host = location.hostname;
var cook = $.cookie('nameofmycookie');
if (cook) {
if (cook.indexOf(host)==-1) { // we are not on the site the cookie says
window.location = cook;
}
}
$('#set-eastern').click(function () {
$.cookie('nameofmycookie', east, { expires: 999 });
alert('East was set as your choice');
});
$('#set-western').click(function () {
$.cookie('nameofmycookie', west, { expires: 999 });
alert('West was set as your choice');
});
});