
// FONCTIONS BARRE DE NAVIGATION ----------------------------------------------------------------- //
// MENU DEROULANT -------------------------------------------------------------------------------- //

var d = document
var ie  = d.all ? 1 : 0
var ns4 = d.layers ? 1 : 0
var dom = d.getElementById ? 1 : 0
var mo5 = d.getElementById && !document.all ? 1 : 0
var submenu = new Array()

submenu[0] = '<div id="ssm" style="left: 100px; width: 150px; height: 70px" onmouseover="clr();" onmouseout="counter(2);"><ul class="liste_deroulante2"><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'groupe/presentation.htm\';counter(6);">Our group</a></li><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'groupe/metiers.htm\';counter(6);">Our Activities</a></li><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'groupe/implantations.htm\';counter(6);">Locations</a></li><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'groupe/charte_qualite.htm\';counter(6);">Quality Charter</a></li></ul></div>'
submenu[1] = '<div id="ssm" style=" left: 143px; width: 150px; height: 90px" onmouseover="clr();"  onmouseout="counter(2);"><ul class="liste_deroulante2"><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'esp_entr/offres.htm\';counter(6);"> Services</a></li><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'esp_entr/secteur_petrole.htm\';counter(6);">Sectors</a></li><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'esp_entr/exemples_proj.htm\';counter(6);">Examples of projects</a></li><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'esp_entr/innovations.htm\';counter(6);">Innovations</a></li><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'contacts.htm\';counter(6);">Contacts</a></li></ul></div>'
submenu[2] = '<div id="ssm" style=" left: 238px; width: 150px; height: 60px" onmouseover="clr();"  onmouseout="counter(2);"><ul class="liste_deroulante2"><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'esp_cons/carrieres.htm\';counter(6);">Careers</a></li><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self"  onClick="parent.frame.location.href=\'esp_cons/temoignages.htm\';counter(6);">What they say</a></li><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'esp_cons/organigramme.htm\';counter(6);">Contact</a></li></ul></div>'
<!-- submenu[3] = '<div id="ssm" style=" left: 248px; width: 150px; height: 60px" onmouseover="clr();" onmouseout="counter(2);"><ul class="liste_deroulante2"><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'intranet/login.htm\';counter(6);">Login</a></li><li class="liste_deroulante"><a href="#" onmouseover="clr()" target="_self" onClick="parent.frame.location.href=\'intranet/logout.htm\';counter(6);">Logout</li></ul> </div>'-->
submenu[4] = '<div id="ssm" style=" left: 348px; width: 120px; height: 40px" onmouseover="clr();" onmouseout="counter(2)"><ul class="liste_deroulante2"><li class="liste_deroulante"><a onclick="ssmenu(5);" href="http://www.kappa-group.com/uk/" target="_blank">Kappa UK</a></li><li class="liste_deroulante"><a onclick="ssmenu(5);" href="http://www.kappa-group.com/index.php" target="_self">French vs</a></li></ul></div>'

submenu[5] = ''
var idto;

function clr() {
	clearTimeout(idto);
}
function counter(t) {
	idto = setTimeout("ssmenu("+5+")",t*100);
}
function ssmenu(n) {

	var menuobj=dom? document.getElementById("ssRubs") : document.all
	menuobj.innerHTML=submenu[n];
	window.focus();
}


// FONCTIONS BANNIERES REFERENCES ---------------------------------------------------------------- //

var NbImg = 17;
var tps = 1; // temps en secondes

function SlideRef() {
	var nb = Math.floor(Math.random()*NbImg);
    var str = (nb<10)?"0":"";
	document.getElementById("ref").src = '../images/references/ref'+str+nb+'.gif';
	setTimeout("SlideRef()",tps*1000);
}


// FONCTIONS IMAGES GROUPĖ ----------------------------------------------------------------------- //

var Tps_GrKbType = [4,4,4,4,4];
var RubGr = ["kb","kc","al","kv","gen"];
var TpsDelta = 800;

function StartSlide(n, rub)
{
  switch (n){
    case 1 : SlideGrType(0,1, rub); setTimeout("StartSlide(2,"+rub+")",TpsDelta); break;
    case 2 : SlideGrType(0,2, rub); setTimeout("StartSlide(3,"+rub+")",TpsDelta); break;
    case 3 : SlideGrType(0,3, rub); setTimeout("StartSlide(4,"+rub+")",TpsDelta); break;
    case 4 : SlideGrType(0,4, rub); setTimeout("StartSlide(5,"+rub+")",TpsDelta); break;
    case 5 : SlideGrType(0,5, rub); break;
    default : return 1;
  }
}

function SlideGrType(n,t, rub)
{
    document.getElementById("type"+t).src = '../images/groupe/type'+t+'_'+RubGr[rub]+'_0'+n+'.gif';
    if (n<5)
	    setTimeout("SlideGrType( "+eval(n+1)+","+t+","+ rub +")",Tps_GrKbType[t-1]*1000);
    else
        setTimeout("SlideGrType(0,"+t+","+ rub +")",Tps_GrKbType[t]*1000);
}
