/* ***************************************************************************************** CONCEITUAL */

var speedcon = 8000
var Piconceitual = new Array()

Piconceitual[0] = 'img/home/conceitual_1.jpg'
Piconceitual[1] = 'img/home/conceitual_2.jpg'
Piconceitual[2] = 'img/home/conceitual_3.jpg'

var t
var j = 0
var p = Piconceitual.length

var preLoadcon = new Array()
for (i = 0; i < p; i++){
  preLoadcon[i] = new Image()
  preLoadcon[i].src = Piconceitual[i];
}

function setBackgroundImage2 (id, imageURLcon) {
if (document.layers)
	document[id].background.src = imageURLcon == 'none' ? null : imageURLcon;
else if (document.all)
	document.all[id].style.backgroundImage = imageURLcon == 'none' ? 'none' 
	: 'url(' + imageURLcon + ')';
else if (document.getElementById)
	document.getElementById(id).style.backgroundImage = imageURLcon == 
	'none' ? 'none' : 'url(' + imageURLcon + ')';
}

function runBGSlideShow2(){
  if (document.getElementById('conceitual')){
    newImagecon = Piconceitual[j];
	setBackgroundImage2('conceitual',newImagecon);
  j = j + 1;
  if (j > (p-1)) j=0;
  t = setTimeout('runBGSlideShow2()', speedcon);
  }
}


/* ******************************************************************************************* BOX-HOME */

var speed = 12000
var Pic = new Array()

Pic[0] = '../img/home/bg_1.jpg'
Pic[1] = '../img/home/bg_2.jpg'
Pic[2] = '../img/home/bg_3.jpg'

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
  preLoad[i] = new Image()
  preLoad[i].src = Pic[i];
}

function setBackgroundImage (id, imageURL) {
if (document.layers)
	document[id].background.src = imageURL == 'none' ? null : imageURL;
else if (document.all)
	document.all[id].style.backgroundImage = imageURL == 'none' ? 'none' 
	: 'url(' + imageURL + ')';
else if (document.getElementById)
	document.getElementById(id).style.backgroundImage = imageURL == 
	'none' ? 'none' : 'url(' + imageURL + ')';
}

function runBGSlideShow(){
  if (document.getElementById('box-home')){
    newImage = Pic[j];
	setBackgroundImage('box-home',newImage);
  j = j + 1;
  if (j > (p-1)) j=0;
  t = setTimeout('runBGSlideShow()', speed);
  }
}


