  var cntLoop
  var strDir
  cntLoop = 0
  strDir = '/francais/template/'

  function changeMenu(div,type){
    if (document.all){
      commonPos('SBMenu1',0,0)
      commonPos('SBMenu2',0,0)
      commonPos('SBMenu3',0,0)
      commonPos('SBMenu4',0,0)
      document.all[div].style.visibility = type;
    } else {
      document[div].visibility = type;
    }
  }

  function commonWidth(x){
    if (document.all){       
      return document.all[x].offsetWidth;
	}
	else if (document.layers){
      if (document.layers[x]){
        return document.layers[x].document.width;
	  }
      if (document.layers[x+"L"]){
        return document.layers[x+"L"].document.width;
	  }
	}
	else if (document.getElementById){
      if (document.getElementById(x)){
        return document.getElementById(x).offsetWidth;
	  }
	}
  }

  function changeImage(x,y,type) {
    if (document.images) {
      chgImg = new Image
      chgImg.src = strDir + '01_live_state' + y + '_' + x + '.' + type
      bldTimeout = "changeImage('" + x + "','" + y + "','" + type + "')"
      /*
      if (chgImg.complete) {
        document[x].src = chgImg.src
      }
      else {
        if (cntLoop <= 10) {
          setTimeout(bldTimeout,500)
        }
        else {
          cntLoop = 0
        }
      }
      */
    }
  }

