// JavaScript Document

<!--
function init() {
	if (TransMenu.isSupported()) {
		TransMenu.initialize();
	}
	
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//texte afficher masquer

function visibilite(thingId){
  var targetElement;
  targetElement = document.getElementById(thingId) ;
  if (targetElement.style.display == "none")
  {
  targetElement.style.display = "" ;
  } else {
  targetElement.style.display = "none" ;
}
}

// Conf. du SlideShow
var slideShowSpeed = 5000;

var crossFadeDuration = 3;

var Pic = new Array();
var UrlPic = new Array();

Pic[0] = '../img/image_dynamique/header/1.jpg';
UrlPic[0] = '';
Pic[1] = '../img/image_dynamique/header/3.jpg';
UrlPic[1] = 'http://www.hebergementevenementiel.com/';
Pic[2] = '../img/image_dynamique/header/4.gif';
UrlPic[2] = 'http://www.agarik.com/services/managed.php';
Pic[3] = '../img/image_dynamique/header/5.jpg';
UrlPic[3] = '';
Pic[4] = '../img/image_dynamique/header/6.jpg';
UrlPic[4] = '';
//Pic[5] = '../img/image_dynamique/header/2.gif';
//UrlPic[5] = 'http://www.agarik.com/offre/offre.php';


var t;
var j = 0;
var p = Pic.length;

//defilement image
function go(a)
{
  if (a=="1"){window.location="../services/managed-services.php"}
  if (a=="2"){window.location="../corporate/our-references.php"}
  //if (a=="6"){window.location="http://www.agarik.com/offre/offre.php"}

}

function pub()
{
  a = Math.round((Math.random()*1)+1);
  document.write('<a href="javascript:go(a)" >');
  document.write('<img src="../img/image_dynamique/header/image'+ a+ '.gif" border="0" />');
  document.write('</a>');
}

//Pop up/
function fenetreCent(url,nom,largeur,hauteur,options) {
var haut=(screen.height-hauteur)/2;
var Gauche=(screen.width-largeur)/2;
fencent=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
}
