
function hideIt(table1)
{
 if (document.getElementById)
 { document.getElementById(table1).style.visibility="hidden"; }
 else if (document.all)
 { document.all[layer].style.visibility="hidden"; }
 else if (document.layers)
 { document.layers[table2].visibility="hide"; }
}

function hideAll(nbTop) {
	for(i=1;i<=nbTop;i++) {
		var name = "table"+i ;

		if (document.getElementById)
		{ document.getElementById(name).style.visibility="hidden"; }
		else if (document.all)
		{ document.all[name].style.visibility="hidden"; }
		else if (document.layers)
		{ document.layers[name].visibility="hide"; }
	}
}

function showIt(table2)
{
 if (document.getElementById)
 { document.getElementById(table2).style.visibility="visible"; }
 else if (document.all)
 { document.all[table2].style.visibility="visible"; }
 else if (document.layers)
 { document.layers[table2].visibility="show"; }
}


/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  Copyright 2001-3 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

// onresize for ns4
var origWidth, origHeight;
if (document.layers) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

var cur_lyr;	// holds id of currently visible layerfunction swapLayerscarte(id) {
  if (cur_lyr) hideLayercarte(cur_lyr);
  showLayercarte(id);
  cur_lyr = id;
}
function showLayercarte(id) {
  var lyr = getElemRefscarte(id);
  if (lyr && lyr.css) {	/*var t = document.getElementById(id)
	t.className='boxe_PlateForme';*/		lyr.css.visibility = "visible";
  	lyr.css.height = "auto";
  }
}
function hideLayercarte(id) {
  var lyr = getElemRefscarte(id);
  if (lyr && lyr.css) {  	/*var t = document.getElementById(id)	t.className='boxe_PlateForme_hide';*/		lyr.css.visibility = "hidden";
  	lyr.css.height = "0px";
  }
}function getElemRefscarte(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}function swapLayersArticle(id) {
  if (cur_lyr) hideLayerArticle(cur_lyr);
  showLayerArticle(id);
  cur_lyr = id;
}
function showLayerArticle(id) {
  var lyr = getElemRefsArticle(id);
  if (lyr && lyr.css) {	var t = document.getElementById(id)
	t.className='prix_public';		var b = document.getElementById('b_'+id)	b.className='b_prix_public';
  }
}
function hideLayerArticle(id) {
  var lyr = getElemRefsArticle(id);
  if (lyr && lyr.css) {   var t = document.getElementById(id)
  	t.className='prix_hide';	var b = document.getElementById('b_'+id)	b.className='b_prix_hide';
  }
}function getElemRefsArticle(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}
function swapLayers(id) {
  if (cur_lyr) hideLayer(cur_lyr);
  showLayer(id);
  cur_lyr = id;
}
function showLayer(id) {/*var t = document.getElementById(id)
t.className='class0';*/
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) {
  	lyr.css.visibility = "visible";
  	lyr.css.height = "auto";
  }
}
function hideLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) {
  	lyr.css.visibility = "hidden";
  	lyr.css.height = "0px";
  }
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}