function changePage() {

if(parent.frames.length==0)
	{
if (top.document.title == 'CNC - Empresa') {top.location='frames.html?01'}
if (top.document.title == 'CNC - Produtos') {top.location='frames.html?02'}
if (top.document.title == 'CNC - Qualidade') {top.location='frames.html?03'}
if (top.document.title == 'CNC - Contactos') {top.location='frames.html?04'}
if (top.document.title == 'CNC - Notícias') {top.location='frames.html?05'}
if (top.document.title == 'CNC - Links') {top.location='frames.html?06'}
	
if (top.document.title == 'CNC - Empresa Organigrama') {top.location='frames.html?07'}
if (top.document.title == 'CNC - Produtos - Frescos') {top.location='frames.html?08'}
if (top.document.title == 'CNC - Produtos - Congelados') {top.location='frames.html?09'}
if (top.document.title == 'CNC - Produtos - Salsicharia') {top.location='frames.html?10'}
if (top.document.title == 'CNC - Produtos - Charcutaria') {top.location='frames.html?11'}
if (top.document.title == 'CNC - Ciclo de Produção') {top.location='frames.html?12'}
if (top.document.title == 'CNC - Produtos - Receitas e Sugestões') {top.location='frames.html?13'}
	
if (top.document.title == 'CNC - Companhia Nacional de Carnes, Lda.') {top.location='f_index.html'}
	}
}
changePage();	

