﻿function __enhance__()
{
	if( !document.getElementById ||
		!document.getElementsByTagName ||
		!document.createElement ||
		!document.createTextNode ) return false;

	var elem = new pop.__method__;

	return elem.__init__();
}
window.onload = __enhance__;

var pop =
{
	__method__: function() {}
};

pop.__method__.prototype.__init__ = function()
{
	var d = document,
		oCont = d.getElementsByTagName('body')[0],
		oRep = d.getElementById('colonne2_bis'),

		oA0 = d.getElementById('agm1'),
		oGdiv0 = d.createElement('div'),
		oH30 = d.createElement('h3'),
		oTxtH30 = d.createTextNode('Protection pour un fauteuil'),
		oGimg0 = d.createElement('img'),
		oP0 = d.createElement('p'),
		oTxtP0 = d.createTextNode('Fermer la boite en cliquant dessus'),

		oA1 = d.getElementById('agm2'),
		oGdiv1 = d.createElement('div'),
		oH31 = d.createElement('h3'),
		oTxtH31 = d.createTextNode('Emballage et protection de meuble'),
		oGimg1 = d.createElement('img'),
		oP1 = d.createElement('p'),
		oTxtP1 = d.createTextNode('Fermer la boite en cliquant dessus');
		
		oA2 = d.getElementById('agm3'),
		oGdiv2 = d.createElement('div'),
		oH32 = d.createElement('h3'),
		oTxtH32 = d.createTextNode('Protection pour un meuble'),
		oGimg2 = d.createElement('img'),
		oP2 = d.createElement('p'),
		oTxtP2 = d.createTextNode('Fermer la boite en cliquant dessus');

	oGdiv0.setAttribute('id','pop0');
	oGimg0.setAttribute('src','../images/emballage-meuble12.jpg');
	oGimg0.setAttribute('width','333');
	oGimg0.setAttribute('height','250');
	oGimg0.setAttribute('alt','Photo du garde meubles');

	oGdiv1.setAttribute('id','pop1');
	oGimg1.setAttribute('src','../images/protection-meuble22.jpg');
	oGimg1.setAttribute('width','333');
	oGimg1.setAttribute('height','250');
	oGimg1.setAttribute('alt','Photo du garde meubles');
	
	oGdiv2.setAttribute('id','pop2');
	oGimg2.setAttribute('src','../images/protection-meuble32.jpg');
	oGimg2.setAttribute('width','333');
	oGimg2.setAttribute('height','250');
	oGimg2.setAttribute('alt','Photo du garde meubles');

	oGdiv0.style.display = 'none';
	oGdiv1.style.display = 'none';
	oGdiv2.style.display = 'none';

	oA0.onclick = pop.__method__.prototype.__Pop0__;
	oGdiv0.onclick = pop.__method__.prototype.__Pop0__;

	oA1.onclick = pop.__method__.prototype.__Pop1__;
	oGdiv1.onclick = pop.__method__.prototype.__Pop1__;
	
	oA2.onclick = pop.__method__.prototype.__Pop2__;
	oGdiv2.onclick = pop.__method__.prototype.__Pop2__;

	oH30.appendChild(oTxtH30);
	oP0.appendChild(oTxtP0);
	oGdiv0.appendChild(oH30);
	oGdiv0.appendChild(oGimg0);
	oGdiv0.appendChild(oP0);

	oH31.appendChild(oTxtH31);
	oP1.appendChild(oTxtP1);
	oGdiv1.appendChild(oH31);
	oGdiv1.appendChild(oGimg1);
	oGdiv1.appendChild(oP1);
	
	oH32.appendChild(oTxtH32);
	oP2.appendChild(oTxtP2);
	oGdiv2.appendChild(oH32);
	oGdiv2.appendChild(oGimg2);
	oGdiv2.appendChild(oP2);

	oRep.appendChild(oGdiv0);
	oRep.appendChild(oGdiv1);
	oRep.appendChild(oGdiv2);
};
pop.__method__.prototype.__Pop0__ = function()
{
	var oPop0 = document.getElementById('pop0');

	if( oPop0.style.display == 'none' )
		oPop0.style.display = 'block';
	else
		oPop0.style.display = 'none';

	return false;
};
pop.__method__.prototype.__Pop1__ = function()
{
	var oPop1 = document.getElementById('pop1');

	if( oPop1.style.display == 'none' )
		oPop1.style.display = 'block';
	else
		oPop1.style.display = 'none';

	return false;
};
pop.__method__.prototype.__Pop2__ = function()
{
	var oPop2 = document.getElementById('pop2');

	if( oPop2.style.display == 'none' )
		oPop2.style.display = 'block';
	else
		oPop2.style.display = 'none';

	return false;
};