I'm afraid that there are two intertwined programming languages here that run on separate machines: Javascript and PHP
javaScript is a client technology that works well with the HTML (that contains the ID attribute) and CSS (where the style is at). All of these are client technologies.
Your server runs PHP to deliver, and collect, the content to the client computers to run the content. Although PHP can rewrite the code to be interpreted by the client computer, it is the HTML, CSS and javaScript mechanisms that load content to be displayed on the computer.
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;. The problem is that the ? in the link tells php that there are additional values it should be aware of when broadcasting the code. This behavior is similar to submitting a form, whereas a cookie stays on the client computer. And the above is javaScript code that will not be understood by PHP. That is the reason I recommend cookies.
Moving on, here is some javaScript code that might help:
function writeCookie(name,escape)
{
document.cookie = name + "=" + escape(value);
}
</script>
<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')
slidingtabs.changeTo(featuredButton);
document.getElementById(featuredButton).removeClass('hide');
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.
document.referrer