﻿function initCom(){
  com1 = '<img src="wp-content/themes/dhimyotis/images/fortigna.jpg" alt="Fortigna" />';
  com2 = '<img src="wp-content/themes/dhimyotis/images/ssl.jpg" alt="Certigna SSL" />';
  com3 = '<img src="wp-content/themes/dhimyotis/images/id.jpg" alt="Certigna ID" />';
  com4 = '<img src="wp-content/themes/dhimyotis/images/suitecertigna.jpg" alt="SuiteCertigna" />';

changercom();
}

function changercom(){

contenu = window.document.getElementById("com").innerHTML;

if(contenu.indexOf("com0") != -1){
 window.document.getElementById("com0").innerHTML = com2;
 window.document.getElementById("com0").id = "com2";
}else if(contenu.indexOf("com2") != -1){
  window.document.getElementById("com2").innerHTML = com3;
  window.document.getElementById("com2").id = "com3";
}else if(contenu.indexOf("com3") != -1){
 window.document.getElementById("com3").innerHTML = com4;
 window.document.getElementById("com3").id = "com4";
}else if(contenu.indexOf("com4") != -1){
 window.document.getElementById("com4").innerHTML = com1;
 window.document.getElementById("com4").id = "com0";
}

window.setTimeout("changercom()", 8000);

}