function pftf_navSub(sec) {
	var section = document.getElementById('nav' + sec);
	var alink = document.getElementById('a' + sec);
	var cookie_opt = {domain:pftf_domain, path:'/'};
	
	if (section.style.display == 'none') {
		section.style.display = '';
		alink.className = addClass(alink.className, 'collapsed');
		Cookie.set('nav' + sec, 1, cookie_opt);
	} else {
		section.style.display = 'none';
		alink.className = removeClass(alink.className, 'collapsed');
		Cookie.set('nav' + sec, 0, cookie_opt);
	}
	
}

function changeTab(id) {
	if (id > 3 || id < 1) return;
	
	for(var i=1;i<4;i++) {
		$('tab' + i).style.display = 'none';
		$('atab' + i).className = '';
	}
	
	$('tab' + id).style.display = 'block';
	$('atab' + id).className = 'current';
	$('atab' + id).blur();
	
	$('tabs').className = 'tab' + id;
}

function toggleIndustry(id) {
	if (isNaN(id)) return;
	
	var crsDiv = $('ind-' + id);
	
	if (!crsDiv) return;
	
	if (crsDiv.style.display == 'none') {
		//open
		crsDiv.style.display = '';
		
	} else {
		//close
		crsDiv.style.display = 'none';
	}
	
	$('hind-' + id).className = toggleClass($('hind-' + id).className,'open');
}