// JavaScript Document

var rotate_delay = 2500; // delay in milliseconds (5000 = 5 secs)
current = 0;
function next() {
if (document.slideform.slide[current+1]) {
document.images.show.src = document.slideform.slide[current+1].value;
document.slideform.slide.selectedIndex = ++current;
   }
else first();
}
function previous() {
if (current-1 >= 0) {
document.images.show.src = document.slideform.slide[current-1].value;
document.slideform.slide.selectedIndex = --current;
   }
else last();
}
function first() {
current = 0;
document.images.show.src = document.slideform.slide[0].value;
document.slideform.slide.selectedIndex = 0;
}
function last() {
current = document.slideform.slide.length-1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
}
function appt(text) {
document.slideform.slidebutton.value = (text == "Parar") ? "Começar" : "Parar";
rotatept();
}
function apgb(text) {
document.slideform.slidebutton.value = (text == "Stop") ? "Begin" : "Stop";
rotategb();
}

function change() {
current = document.slideform.slide.selectedIndex;
document.images.show.src = document.slideform.slide[current].value;
}
function rotatept() {
if (document.slideform.slidebutton.value == "Parar") {
current = (current == document.slideform.slide.length-1) ? 0 : current+1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
window.setTimeout("rotatept()", rotate_delay);
   }
}
function rotategb() {
if (document.slideform.slidebutton.value == "Stop") {
current = (current == document.slideform.slide.length-1) ? 0 : current+1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
window.setTimeout("rotategb()", rotate_delay);
   }
}

//  End -->


<!--//JANELA EM JAVASCRIPT
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
// Parâmetros:
// name - identificador da janela
// url - endereco da pagina que sera aberta
// left - canto esquerdo da janela
// top - canto superior da janela
// width - largura da janela
// height - altura da janela
// toolbar - exibe barra de ferramentas do browser (1-sim; 0-nao)
// menubar - exibe o menu do browser (1-sim; 0-nao)
// statusbar - exibe a barra de status do browser  (1-sim; 0-nao)
// scrollbar - exibe barras de rolagem no browser  (1-sim; 0-nao)
// resizable - permite que o tamanho da janela seja alterado  (1-sim; 0-nao)
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
// Manter o comando abaixo na mesma linha
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+', menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
// -->









