<!--

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_eng.html\" class=\"lnkcinza\">+ info</a>"
link[2]=" ...<a href=\"noticias_eng.html\" class=\"lnkcinza\">+ info</a>"
link[3]=" ...<a href=\"noticias_eng.html\" class=\"lnkcinza\">+ info</a>"
link[4]=" ...<a href=\"noticias_eng.html\" class=\"lnkcinza\">+ info</a>"

var not=new Array()
not[0]=ima+"<b>Welcome to CNC website</b>"+link[0];
not[1]=ima+"<b>Social Responsability and Company Ethic</b><br>The <b>CNC</b>, while social organization , is conscientious of the important paper that it must assume in the community where is inserted.  In this way, the CNC has come to support cultural events and sports that develop in its council, and to the district level"+link[1];
not[2]=ima+"<b>Internationalization Project</b><br>The <b>CNC</b> is currently developing, in partnership with AIP, one project of internationalization for Benelux, in the scope of INTERNATIONAL PME program, whose objectives are for the establishment of partnerships"+link[2];
not[3]=ima+"<b>HACCP Process of certification</b><br>The <b>CNC</b> has already in terminal phase for the Certification of its system of selfcontrol based in the HACCP method, based on 3027 norm DS E, foreseeing itself that the final auditorship will come to verify in the beginning of 2º semester of 2005"+link[3];
not[4]=ima+"<b>New Products</b><br>The <b>CNC</b> has in development phase a new set of products (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
//-->
