<!--

var scrollerwidth='230px'
var scrollerheight='160px'
var scrollerbgcolor='#77768C'
var scrollerbackground=''
var ima="<img src=\"images/seta1.gif\" width=\"6\" height=\"6\" alt=\"\" border=\"0\">"

var link=new Array()
link[0]="";
link[1]=" ...<a href=\"noticias.html\" class=\"lnkcinza\">+ info</a>"
link[2]=" ...<a href=\"noticias.html\" class=\"lnkcinza\">+ info</a>"
link[3]=" ...<a href=\"noticias.html\" class=\"lnkcinza\">+ info</a>"
link[4]=" ...<a href=\"noticias.html\" class=\"lnkcinza\">+ info</a>"

var not=new Array()
not[0]=ima+"<b>Bem-Vindo ao <i>website</i> da CNC</b>"+link[0];
not[1]=ima+"<b>Responsabilidade Social e Ética Empresarial</b><br>A <b>CNC</b>, enquanto organização social que é, está consciente do papel importante que deve assumir no seio da comunidade em que está inserida"+link[1];
not[2]=ima+"<b>Projecto de Internacionalização</b><br>A <b>CNC</b> está actualmente a desenvolver, em parceria com a AIP, um projecto de internacionalização para o Benelux, no âmbito do programa PME INTERNACIONAL"+link[2];
not[3]=ima+"<b>Processo de Certificação do Sistema HACCP</b><br>A <b>CNC</b> tem já em fase terminal a Certificação do seu sistema de autocontrolo baseado no HACCP, baseada na norma DS 3027 E, prevendo-se que a auditoria final se venha a verificar no início do 2º semestre de 2005"+link[3];
not[4]=ima+"<b>Novos Produtos</b><br>A <b>CNC</b> tem em fase de desenvolvimento uma nova gama de produtos (CATERING SERVICE)"+link[4];


var messages=new Array()
messages[0]=not[0];
messages[1]=not[1];
messages[2]=not[2];
messages[3]=not[3];
messages[4]=not[4];

var ie=document.all
var dom=document.getElementById

if (messages.length>2)
i=2
else
i=0

function move1(whichlayer)
{
	tlayer=eval(whichlayer)
	if (tlayer.top>0&&tlayer.top<=5)
	{
		tlayer.top=0
		setTimeout("move1(tlayer)",3000)
		setTimeout("move2(document.main.document.second)",3000)
		return
	}
	if (tlayer.top>=tlayer.document.height*-1)
	{
		tlayer.top-=5
		setTimeout("move1(tlayer)",50)
	}
	else
	{
		tlayer.top=parseInt(scrollerheight)
		tlayer.document.write(messages[i])
		tlayer.document.close()
		if (i==messages.length-1)
			i=0
		else
			i++
	}
}

function move2(whichlayer)
{
	tlayer2=eval(whichlayer)
	if (tlayer2.top>0&&tlayer2.top<=5)
	{
		tlayer2.top=0
		setTimeout("move2(tlayer2)",3000)
		setTimeout("move1(document.main.document.first)",3000)
		return
	}
	if (tlayer2.top>=tlayer2.document.height*-1)
	{
		tlayer2.top-=5
		setTimeout("move2(tlayer2)",50)
	}
	else
	{
		tlayer2.top=parseInt(scrollerheight)
		tlayer2.document.write(messages[i])
		tlayer2.document.close()
		if (i==messages.length-1)
			i=0
		else
			i++
	}
}

function move3(whichdiv)
{
	tdiv=eval(whichdiv)
	if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5)
	{
		tdiv.style.top=0+"px"
		setTimeout("move3(tdiv)",3000)
		setTimeout("move4(second2_obj)",3000)
		return
	}
	if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1)
	{
		tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
		setTimeout("move3(tdiv)",50)
	}
	else
	{
		tdiv.style.top=parseInt(scrollerheight)
		tdiv.innerHTML=messages[i]
		if (i==messages.length-1)
			i=0
		else
		i++
	}
}

function move4(whichdiv)
{
	tdiv2=eval(whichdiv)
	if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5)
	{
		tdiv2.style.top=0+"px"
		setTimeout("move4(tdiv2)",3000)
		setTimeout("move3(first2_obj)",3000)
		return
	}
	if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1)
	{
		tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
		setTimeout("move4(second2_obj)",50)
	}
	else
	{
		tdiv2.style.top=parseInt(scrollerheight)
		tdiv2.innerHTML=messages[i]
		if (i==messages.length-1)
			i=0
		else
		i++
	}
}

function startscroll()
{
	if (ie||dom)
	{
	first2_obj=ie? first2 : document.getElementById("first2")
	second2_obj=ie? second2 : document.getElementById("second2")
	move3(first2_obj)
	second2_obj.style.top=scrollerheight
	second2_obj.style.visibility='visible'
	}
	else 
	if (document.layers)
	{
		document.main.visibility='show'
		move1(document.main.document.first)
		document.main.document.second.top=parseInt(scrollerheight)+5
		document.main.document.second.visibility='show'
	}
}



document.write ('<ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; bgColor=&{scrollerbgcolor}; background=&{scrollerbackground}; visibility=hide>');
document.write ('<layer id=\"first\" left=0 top=1 width=&{scrollerwidth};>');

if (document.layers) 
document.write(messages[0])
document.write ('</layer>\n');
document.write ('<layer id="second" left=0 top=0 width=&{scrollerwidth}; visibility=hide>\n');

if (document.layers)
document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
document.write('</layer>\n');
document.write('</ilayer>\n');

if (ie||dom)
{
document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">\n');
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0px;top:0px">\n');
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:1px;">\n');
document.write(messages[0])
document.writeln('</div>\n');
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden">\n');
document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
document.writeln('</div>\n');
document.writeln('</div>\n');
document.writeln('</div>\n');
}

window.onload=startscroll
//-->
