var link_array = [
"https://www.youtube.com/watch?v=kUgKlZ520DQ",
"https://www.youtube.com/watch?v=z11sxu8Zy9I",
"https://www.youtube.com/watch?v=lqdMFDfuVpE",
"https://www.youtube.com/watch?v=8VHxzRLYjM0",
"https://www.youtube.com/watch?v=jJFPSLeY33M",
"https://www.youtube.com/watch?v=Wl-NIKnqPR8",
"https://www.youtube.com/watch?v=UefK4UNQRtw",
"https://www.youtube.com/watch?v=L2NM2N-Do6A",
"https://www.youtube.com/watch?v=SOtq-qjozaw",
"https://www.youtube.com/watch?v=WGArwLU3mjw"
]
var img_array = [
"http://sct2021.unesc.net/mostra-cultural/tela1.png",
"http://sct2021.unesc.net/mostra-cultural/tela2.png",
"http://sct2021.unesc.net/mostra-cultural/tela3.png",
"http://sct2021.unesc.net/mostra-cultural/tela4.png",
"http://sct2021.unesc.net/mostra-cultural/tela5.png",
"http://sct2021.unesc.net/mostra-cultural/tela6.png",
"http://sct2021.unesc.net/mostra-cultural/tela7.png",
"http://sct2021.unesc.net/mostra-cultural/tela8.png",
"http://sct2021.unesc.net/mostra-cultural/tela9.png",
"http://sct2021.unesc.net/mostra-cultural/tela10.png"
]
var artista_array = [
" Íris Darolt",
" Quetlin da Silva Silveira Apolinario / Cultura Mamoeira",
" Vinicius da Silva Martins / Cultura Mamoeira",
" Álvaro Baldini Piuco / treet Dagger",
" Felipe Creaste / Lipe Style",
" Vinícius Galvani",
" Érica Seleri",
" Dricca Teixeira",
" A. Neumaier",
" Marina Pagani"
]
var linguagem_array = [
" Música",
" Cultura Popular",
" Cultura Popular",
" Performance",
" Cultura Popular",
" Música",
" Dança",
" Música",
" Artes Visuais",
" Música"
]
var setor_array = [
" Letras",
" Letras",
" Artes Visuais",
" Artes Visuais",
" Educação Física",
" Coral Unesc",
" Cia de Dança Unesc",
" Enfermagem",
" Artes Visuais",
" Psicologia"
]
let x = 1;
setInterval(function(){
if (x < link_array.length) {
var pos = x;
x++;
document.getElementById('ifrm').setAttribute('src', img_array[pos]);
document.getElementById('lnkfrm').setAttribute('href', link_array[pos]);
document.getElementById('artista').innerHTML = artista_array[pos];
document.getElementById('linguagem').innerHTML = linguagem_array[pos];
document.getElementById('setor').innerHTML = setor_array[pos];
}else x = 0;
}, 5000);