The cookie stores a value, because the client computer doesn't keep anything on a document when the address changes and PHP sends another page.
In your first post you attempted a to make a link to this address: ../main/cd-dvd-bd/index.php?$('sixteen').removeClass('hide');return false;
document.cookie = name + "=" + escape(value);
<a onclick="writeCookie('featuredButton','sixteen')" href="../main/cd-dvd-bd/index.php"><img src="img/index_set/features/c.jpg" width="150" height="150" class="gradualfader" alt="Featured #3" /></a>
By adding the above code to page one, you inform the next page to that the cookie templatespage
has the value of the desired slider location. There is more work for the next page. Some hints: load the cookie value first so the client has a value to compare... remember these are conditional effects that you desire... the document is where the client stores the effects, so document
is your top level container.
var featuredButton = readCookie('featuredButton')
The first line in the above code is from some commented out scripts on line 325 of the second page and probably depends on the SlidingTabs object found in one of the includes from the script tags starting around line 30.
I could go on, but this ought to get you started. I suggest a slimmed down test-bed to get the configuration right. I typically remove everything that is not neede to provide the desired effect.