// JavaScript Document
if(typeof(spnx)=="undefined"){
	spnx={};
}
if(typeof(spnx.hc)=="undefined"){	spnx.hc={};
}
spnx.hc.setPageType = function(pageType) {
	document.cookie = "pageType="+pageType+";path=/";
}
document.observe("dom:loaded", function() {
	if($('hc-about')) {
		$('hc-about').down('a').observe('click', function() {
			spnx.hc.setPageType('about');
		});
	}
	if($('hc-lookbook')) {
		$('hc-lookbook').down('a').observe('click', function() {
			spnx.hc.setPageType('lookbook');
		});
	}
	if($('hc-home')) {
		$('hc-home').down('a').observe('click', function() {
			spnx.hc.setPageType('landing');
		});
	}
	if($('nav-hautecontour')) {
		$('nav-hautecontour').down('a').observe('click', function() {
			spnx.hc.setPageType('landing');
		});
	}
});