﻿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('colonne'),

		oA0 = d.getElementById('agm1'),
		oGdiv0 = d.createElement('p'),
		oH30 = d.createElement('h3'),
		oTxtH30 = d.createTextNode('Luminaires et rideaux'),
		oGimg0 = d.createElement('img'),
		oP0 = d.createElement('p'),
		oTxtP0 = d.createTextNode('Fermer la boite en cliquant dessus');

	oGdiv0.setAttribute('id','pop0');
	oGimg0.setAttribute('src','images/luminaires-rideaux.jpg');
	oGimg0.setAttribute('width','432');
	oGimg0.setAttribute('height','540');
	oGimg0.setAttribute('alt','Luminaires et rideaux');

	oGdiv0.style.display = 'none';
	
	oA0.onclick = pop.__method__.prototype.__Pop0__;
	oGdiv0.onclick = pop.__method__.prototype.__Pop0__;


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

	oRep.appendChild(oGdiv0);
};
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;
};