var scrollerwidth=180
var scrollerheight=500
var pausebetweenimages=15000

var vSlideContent=new Array(6)    

str='<img border="0" src="./imagens/cfae.png" width="190" height="77" align="center"><br />';
str+='<font color="#02047D" size="1px">Consulte a informação sobre o futuro Plano de Formação do CFAE Sousa Nascente, no menu: <br />';
str+='<font size="1px"><p> <b> Links Úteis –> Outros</b> ou <a href="http://www.cfaesousanascente.org" target="_blank">aqui.</a></font><p />';
vSlideContent[0]=str;

str='<img border="0" src="./imagens/concurso.png" width="190" height="77" align="center"><br />';
str+='<font color="#02047D" size="1px">Vai realizar-se na nossa Escola, no próximo dia 25 de Março, pelas 14h:25m o concurso <b>"CANGURU MATEMÁTICO SEM FRONTEIRAS 2010"</b>. <br />';
str+='<font size="1px">Para participar só tens de te inscrever junto do teu Professor de Matemática.</font><p />';
str+='<font size="1px">Não te esqueças de participar !!!!!!</font><p />';
vSlideContent[1]=str; 

str='<img border="0" src="./imagens/ri.png" width="190" height="77" align="center"><br />';
str+='<font color="#02047D" size="1px">Já se encontra disponível para consulta, a actualização do Regulamento Interno.<br />';
str+='<font size="1px"> Consulte-o no menu:<p> <b> Docs Internos –> Regulamento Interno</b> ou <a href="./textos/relInterno/RIversoConsultaPublica.pdf" target="_blank">aqui.</a></font><p />';
vSlideContent[2]=str;
          
str='<img border="0" src="./imagens/avaliacao.png" width="190" height="77" align="center"><br />';
str+='<font color="#02047D" size="2px"><b>Avaliação 1º Período</b></</font><br /><P />';
str+='<font size="1px">Já se encontram disponíveis as Pautas de Avaliação referentes ao 1º Período. ';
str+='<font size="1px">Consulte-as no menu:<p> <b> Alunos –> Avaliação do 1º Período</b> ou <a href="./notasTurmasAnos.htm">aqui.</a></font><p />';
vSlideContent[3]=str;

str='<img border="0" src="./imagens/cno/cno_efeito.png" width="190" height="77" align="center"><br />';
str+='<font color="#02047D" size="1px">Centro Novas Oportunidades</font><br /><P />';
str+='<font size="1px">Convidam-se todos os internautas a visitar o novo Sítio do Centro Novas Oportunidades da Escola Secundária/3 de Felgueiras em: </font><font color="#B0049E" size="1px"><a href="http://cno.esfelgueiras.org" target="_blank">Escola -> Centro Novas Oportunidades</a></font><br><p />';
str+='<font size="1px">consulte <a href="./textos/cno/cno.pdf" target="_blank">aqui.</a> a Lista de Ordenação Final dos candidatos que concluíram o procedimento concursal comum para Assistente Técnico do CNO.</font><br><p />';
vSlideContent[4]=str;

str='<img border="0" src="../imagens/cno.gif" width="220" height="85"><br />';
str+='<font size="1px">Consulte <a href="./textos/ofertaEducativa/ofertaProf.pdf" target="_blank"> aqui</a> a nossa oferta profissionalizante</font><p />';
str+='<font color="#02047D" size="1px"><b>Centro Novas Oportunidades</b></font><br />(Ex-Centro RVCC)<br />';
str+='<font size="1px">As suas experiências pessoais, sociais e profissionais podem valer-lhe o certificado do 9º ano ou 12º ano!<br>';
str+='<font size="1px">Informações e inscrições na Secretaria da Escola Secundária de Felgueiras, durante todo o ano.</font><br><p>';
vSlideContent[5]=str;


if (vSlideContent.length>1)
detalhesCont=2
else
detalhesCont=0

function locateObject(n, d) { //v3.0
  var p,detalhesCont,x;
  if(!d) d=document;
  if((p=n.indexOf("?"))>0&&parent.frames.length)
  {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);
    }
  if(!(x=d[n])&&d.all) x=d.all[n];
  
  for (detalhesCont=0;!x&&detalhesCont<d.forms.length;detalhesCont++) x=d.forms[detalhesCont][n];
  for(detalhesCont=0;!x&&d.layers&&detalhesCont<d.layers.length;detalhesCont++) x=locateObject(n,d.layers[detalhesCont].document);
  return x;
}

function moveVTextFirstBlock(whichdiv)
{

if (document.all)
{
	tdiv=eval(whichdiv)

	if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5)
	{
		tdiv.style.pixelTop=0
		setTimeout("moveVTextFirstBlock(tdiv)",pausebetweenimages)
		setTimeout("moveVTextSecondBlock('vTextSecond')",pausebetweenimages)
		return
	}
	if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1)
	{
		tdiv.style.pixelTop-=5
		setTimeout("moveVTextFirstBlock(tdiv)",10)
	}
	else
{
	tdiv.style.pixelTop=scrollerheight+5
//	window.status=tdiv.style.pixelTop;
	tdiv.innerHTML=vSlideContent[detalhesCont]
	if (detalhesCont==vSlideContent.length-1)
	detalhesCont=0
else
	detalhesCont++
}
}
else
{
tlayer=eval(whichdiv)
if (tlayer.top>0&&tlayer.top<=5)
{
tlayer.top=0
setTimeout("moveVTextFirstBlock(tlayer)",pausebetweenimages)
setTimeout("moveVTextSecondBlock(locateObject('vTextSecond'))",pausebetweenimages)
return
}
if (tlayer.top>=tlayer.document.height*-1)
{
tlayer.top-=5
setTimeout("moveVTextFirstBlock(tlayer)",10)
}
else
{
	tlayer.top=scrollerheight+5
/*	if (detalhesCont+1==vSlideContent.length-1)
		j=0
	else
		j=detalhesCont+1
	tlayer.document.write(vSlideContent[detalhesCont] + '<BR>' + vSlideContent[j])*/
	tlayer.document.write(vSlideContent[detalhesCont])
	tlayer.document.close()
	if (detalhesCont==vSlideContent.length-1)
		detalhesCont=0
	else
		detalhesCont++
}
}
}

function moveVTextSecondBlock(whichdiv)
{
if (document.all)
{
tdiv2=eval(whichdiv)

if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5)
{
	tdiv2.style.pixelTop=0
	setTimeout("moveVTextSecondBlock(tdiv2)",pausebetweenimages)
	setTimeout("moveVTextFirstBlock('vTextFirst')",pausebetweenimages)
	return
}
//window.status=tdiv2.offsetHeight;
if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
	tdiv2.style.pixelTop-=5
	setTimeout("moveVTextSecondBlock('vTextSecond')",10)
}
else
{
	tdiv2.style.pixelTop=scrollerheight+5
//window.status=tdiv2.style.pixelTop
	tdiv2.innerHTML=vSlideContent[detalhesCont]
	if (detalhesCont==vSlideContent.length-1)
	detalhesCont=0
else
	detalhesCont++
}
}
else if (document.layers)
{
tlayer2=eval(whichdiv)

if (tlayer2.top>0&&tlayer2.top<=5)
{
tlayer2.top=0
setTimeout("moveVTextSecondBlock(tlayer2)",pausebetweenimages)
setTimeout("moveVTextFirstBlock(locateObject('vTextMain').document.layers['vTextFirst'])",pausebetweenimages)
return
}
if (tlayer2.top>=tlayer2.document.height*-1)
{
tlayer2.top-=5
setTimeout("moveVTextSecondBlock(tlayer2)",10)
}
else
{
tlayer2.top=scrollerheight+5
tlayer2.document.write(vSlideContent[detalhesCont])
tlayer2.document.close()
if (detalhesCont==vSlideContent.length-1)
detalhesCont=0
else
detalhesCont++
}
}
}

function startVTextScroll(){
if (document.all)
{
	locateObject('vTextSecond').style.top=scrollerheight+5
	locateObject('vTextFirst').visibility='visible';
	locateObject('vTextSecond').visibility='visible';
	//moveVTextFirstBlock(locateObject("vTextFirst"))
	moveVTextFirstBlock(locateObject("vTextFirst"))
}
else if (document.layers)
{
	locateObject('vTextMain').visibility='show'
	locateObject('vTextFirst').visibility='show'
	locateObject('vTextSecond').top=scrollerheight+5
	locateObject('vTextSecond').visibility='show'
	moveVTextFirstBlock(locateObject('vTextMain').document.layers['vTextFirst'])
}
}

