(function(){
function afficheMeteo(){
	var publo_meteo = document.getElementById('publo_meteo');
	var cle= publo_meteo.getAttribute('cle');
	var request = 'http://www.publo.fr/barre/meteo.js?page='+escape(window.document.URL) + '&cle=' + cle;
	var code_postal = publo_meteo.getAttribute('code_postal');
	if(code_postal != null){
		request=request + '&code_postal=' + code_postal;
	}
	var code_insee = publo_meteo.getAttribute('code_insee');
	if(code_insee != null){
		request=request + '&code_insee=' + code_insee;
	}
	var code_twc = publo_meteo.getAttribute('code_twc');
	if(code_twc != null){
		request=request + '&code_twc=' + code_twc;
	}
	var script = document.createElement('script');
	script.setAttribute('type','text/javascript');
	script.setAttribute('language','javascript');
	script.setAttribute('charset','UTF-8');
	script.setAttribute('src',request);
	document.getElementsByTagName('head')[0].appendChild(script);
}
if( window.addEventListener ) {
	window.addEventListener('load',afficheMeteo,false);
} else if( document.addEventListener ) {
	document.addEventListener('load',afficheMeteo,false);
} else if( window.attachEvent ) {
	window.attachEvent('onload',afficheMeteo);
}
})();