
var dom = net = iex = false;
if (document.getElementById) dom = true; // IE5+ ou Netscape6+/Mozilla
if (document.layers) net = true; // Netscape4 
if (document.all) iex = true; // IE4+



function initposh() {

  if (iex) {
     var larg_utile = document.body.clientWidth;
  }
  else if (dom || net) {
     var larg_utile = window.innerWidth; 
  }
  else {}

  //alert("larg_utile : " + larg_utile);

  listssm = new Array();
  listssm[0] = 'ssm1';
  listssm[1] = 'ssm2';
  listssm[2] = 'ssm3';

  listposhm =  new Array();
  listposhm[0] = 247;
  listposhm[1] = 371;
  listposhm[2] = 495;
 
  for(i=0; i<listssm.length; i++){

	     ssm = listssm[i];
             poshm = listposhm[i];
             posh = (larg_utile - 780)/2 + poshm; if(posh<=poshm) posh=poshm;
	     elt = document.getElementById(ssm);
      	     elt.style.left = posh+"px";
             //alert("posh : " + posh+"px");
  }

}

function showLayer(layerName) {

    document.getElementById(layerName).style.visibility='visible';

}

function hideLayer(layerName) {

    document.getElementById(layerName).style.visibility='hidden';
 
}
