function pollutec_init()
{
	for(a=0;a<actuonglettohide.length;a++)
   toggleVis(actuonglettohide[a],0);
}

/* Permet d'afficher ou non un élément de page*/
function toggleVis(what,vis)
	{
		element = document.getElementById(what);
		if (element != null)
		{
			if (vis == 0)
			{
				element.style.visibility = "hidden";
				element.style.display = "none";
			}
			else
			{
				element.style.visibility = "visible";
				element.style.display = "block";
			}
		}
	}
	

$(document).ready(function(){

	/*$("#form .bloc").each(function (i) {
		$(this).addClass('color1');
	});*/
	contenerstyle=new Array('color1','color2','color3','filet1','filet2','filet3');
	
	for(a=0;a<contenerstyle.length;a++)
	{
		theclass="."+contenerstyle[a];
		$(theclass).each(function (i) {
				content=$(this).html();
				//$(this).html('');
				//$(this).append("<div class=content>"+content+"</div><div class=closer><div></div></div>");
				$(this).wrapInner("<div class='content'></div>");
				$(this).append("<div class=closer><div></div></div>");


				
				});
	}
	attributes='';
	//Exception pour IE
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){
		var ieversion=new Number(RegExp.$1);
	}
	
	contenerstyle=new Array('form-submit','form-submit-final','btvert','btoran','bttaupe');

	for(a=0;a<contenerstyle.length;a++)
	{
		theclass="."+contenerstyle[a];
		$(theclass).each(function (i) {
				if (ieversion>=8){
					attributes='class=boutonImg';
				}
				else if (ieversion>=7){
					attributes='class=boutonImgIE7';
				}
				else if (ieversion>=6){
					attributes='class=boutonImgIE6';
				}
				$(this).wrap("<div class='"+contenerstyle[a]+"b'></div>");
				$(this).before("<img src='img/functions/"+contenerstyle[a]+"-left.gif' align='absmiddle' "+attributes+" />");
				$(this).after("<img src='img/functions/"+contenerstyle[a]+"-right.gif' align='absmiddle' "+attributes+" />");
				
				});
	}

	contenerstyle=new Array('linkvert','linktaupe','linkvertf');

	for(a=0;a<contenerstyle.length;a++)
	{
		theclass=contenerstyle[a];
		$("."+theclass).each(function (i) {
				var spanclass = contenerstyle[a]+"r";
				if (ieversion>=8){
					attributes='class=boutonImg2';
				}
				else if (ieversion>=7){
					attributes='class=boutonImgIE7';
				}
				else if (ieversion>=6) {
					spanclass=contenerstyle[a]+"IE6";	
					attributes='class=boutonImgIE6';
				}
				if(navigator.userAgent.indexOf('WebKit/') > -1)
					attributes='class=boutonImgWK';
				$(this).html("<img src='img/functions/"+contenerstyle[a]+"-left.gif' align='absmiddle' "+attributes+" /><span class='"+spanclass+"'><img src='img/dot.gif'/>"+$(this).html()+"</span><img src='img/functions/"+contenerstyle[a]+"-right.gif' align='absmiddle' "+attributes+" />");
				$(this).css('background-color',"transparent");

			});
	
	}


	if(typeof sIFR == "function"){

		sIFR.replaceElement(named({sSelector:"#value .titre", sFlashSrc:"impact.swf",sWmode: 'transparent',sColor:"#ffffff"}));

		sIFR.replaceElement(named({sSelector:"#bloc-center #actualites_btns  .boxnotsel", sFlashSrc:"impact.swf",sWmode: 'transparent',sColor:"#5ca128", sLinkColor:"#5ca128", sFlashVars:"textalign=center"}));
		sIFR.replaceElement(named({sSelector:"#bloc-center #actualites_btns .boxsel", sFlashSrc:"impact.swf",sWmode: 'transparent',sColor:"#ffffff", sLinkColor:"#ffffff" ,sFlashVars:"textalign=center"}));
		sIFR.replaceElement(named({sSelector:"#zoom h1", sFlashSrc:"impact.swf",sWmode: 'transparent',sColor:"#5ca128",sFlashVars:"textalign=right"}));
		sIFR.replaceElement(named({sSelector:"h1", sFlashSrc:"impact.swf",sWmode: 'transparent',sColor:"#5ca128"}));
		sIFR.replaceElement(named({sSelector:".style1 h2", sFlashSrc:"impact.swf",sWmode: 'transparent',sColor:"#514138"}));
		sIFR.replaceElement(named({sSelector:".style2 h2", sFlashSrc:"impact.swf",sWmode: 'transparent',sColor:"#3488a3"}));
		sIFR.replaceElement(named({sSelector:"#colright h2", sFlashSrc:"impact.swf",sWmode: 'transparent',sColor:"#5CA128"}));
		sIFR.replaceElement(named({sSelector:"#homeinnos h2", sFlashSrc:"impact.swf",sWmode: 'transparent',sColor:"#5CA128"}));
		sIFR.replaceElement(named({sSelector:"h2", sFlashSrc:"impact.swf",sWmode: 'transparent',sColor:"#514138"}));
		sIFR.replaceElement(named({sSelector:"#boutonpush span", sFlashSrc:"impact.swf",sWmode: 'transparent',sColor:"#ffffff" ,sLinkColor:"#ffffff"}));

	};

})