 <?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>News &#8211; Conseil Chauffage</title>
	<atom:link href="https://conseil-chauffage.com/tag/news/feed/" rel="self" type="application/rss+xml" />
	<link>https://conseil-chauffage.com</link>
	<description>Pour Bien choisir Votre Chauffage</description>
	<lastBuildDate>Tue, 07 Apr 2020 08:01:06 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.2</generator>

<image>
	<url>https://conseil-chauffage.com/wp-content/uploads/2020/02/cropped-apple-icon-152x152-1-32x32.png</url>
	<title>News &#8211; Conseil Chauffage</title>
	<link>https://conseil-chauffage.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Produits pétroliers: Le prix du mazout est en chute libre &#8211; News Genève: Grand Genève</title>
		<link>https://conseil-chauffage.com/produits-petroliers-le-prix-du-mazout-est-en-chute-libre-news-geneve-grand-geneve/</link>
		
		<dc:creator><![CDATA[Conseil-Chauffage]]></dc:creator>
		<pubDate>Tue, 07 Apr 2020 08:01:06 +0000</pubDate>
				<category><![CDATA[Chauffage au Fioul]]></category>
		<category><![CDATA[chute]]></category>
		<category><![CDATA[Est]]></category>
		<category><![CDATA[Genève]]></category>
		<category><![CDATA[Grand]]></category>
		<category><![CDATA[Libre]]></category>
		<category><![CDATA[mazout]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[pétroliers]]></category>
		<category><![CDATA[prix]]></category>
		<category><![CDATA[produits]]></category>
		<guid isPermaLink="false">https://conseil-chauffage.com/produits-petroliers-le-prix-du-mazout-est-en-chute-libre-news-geneve-grand-geneve/</guid>

					<description><![CDATA[Produits pétroliers: Le prix du mazout est en chute libre &#8211; News Genève: Grand Genève Après les pâtes, le stock de fioul? Les prix du pétrole sont en chute libre du fait des tensions géopolitiques mais surtout de la crise sanitaire qui pourrait conduire à une violente récession. Le monde est plein d&#39;or noir. L&#39;offre est abondante et la demande se tarit. Les prix deviennent donc fous. Et les propriétaires profitent de l&#39;aubaine pour remplir leurs réservoirs. ... <p class="read-more-container"><a title="Produits pétroliers: Le prix du mazout est en chute libre &#8211; News Genève: Grand Genève" class="read-more button" href="https://conseil-chauffage.com/produits-petroliers-le-prix-du-mazout-est-en-chute-libre-news-geneve-grand-geneve/#more-2475" aria-label="Plus sur Produits pétroliers: Le prix du mazout est en chute libre &#8211; News Genève: Grand Genève">Lire l'Article</a></p>]]></description>
										<content:encoded><![CDATA[<h1>Produits pétroliers: Le prix du mazout est en chute libre &#8211; News Genève: Grand Genève</h1>
<p></p>
<div id="mainContent">
<p>	Après les pâtes, le stock de fioul? Les prix du pétrole sont en chute libre du fait des tensions géopolitiques mais surtout de la crise sanitaire qui pourrait conduire à une violente récession. Le monde est plein d&#39;or noir. L&#39;offre est abondante et la demande se tarit. Les prix deviennent donc fous. Et les propriétaires profitent de l&#39;aubaine pour remplir leurs réservoirs.</p>
<p>Grégoire Bosson sort sa calculatrice. En un an, le prix du fioul est passé de 90 francs à près de 68 francs les 100 litres ces jours-ci. Ou environ 24% de baisse. Et la chute, de fin janvier à début avril, est encore plus impressionnante puisqu&#39;elle s&#39;est déroulée en deux gros mois: de 82 francs à 68 francs, soit 17% de moins. Ces estimations de prix concernent une commande de 3000 litres, ce qui correspond à la quantité nécessaire pour remplir le réservoir d&#39;une villa moyenne.</p>
<p>Dans ces conditions, le téléphone continue de sonner chez Bosson Combustibles ou d&#39;autres sociétés de livraison de fioul. Et il n&#39;est pas rare que les propriétaires passent une commande même si leurs réservoirs ne sont pas vides. Selon les professionnels du secteur, l&#39;achat se fait couramment alors qu&#39;il y a encore 10 à 20% de produit dans le réservoir. Mais la crainte que la pandémie ne s&#39;installe et dégénère en crise économique amène les propriétaires à ne plus attendre avant de faire le plein.</p>
<p>La créature a également été invitée à ces opérations. «Nous intervenons avec le plus grand soin», explique Grégoire Bosson. Nos chauffeurs évitent de rencontrer des clients dans les escaliers. Nous les avertissons à l&#39;avance afin qu&#39;ils ouvrent toutes les portes et facilitent l&#39;accès aux réservoirs. &quot;</p>
<p>Avantage de ces recharges: les propriétaires ou les locataires sont chez eux. Les pétroliers ne doivent pas courir derrière un concierge ou un trousseau de clés. Avec le confinement, de nombreux propriétaires se sont promenés dans leur chaufferie. En plus de stocker la cave, ils en ont profité pour jeter un œil à la chaudière et au brûleur. C&#39;est toujours plus intéressant que de compter les mouches.</p>
<p>Inutile cependant de souligner. Selon les experts du secteur, rien n&#39;indique que les prix augmenteront dans les semaines ou les mois à venir, bien au contraire.</p>
<p>Les prix du pétrole ont de nouveau baissé lundi, faisant écho à l&#39;annonce d&#39;un report d&#39;une réunion entre les pays membres de l&#39;Organisation des pays exportateurs de pétrole (OPEP), dont les États-Unis, nouvel acteur majeur, ne font pas partie. Donald Trump, pour sa part, s&#39;est bombardé la poitrine, menaçant d&#39;introduire des tarifs sur les produits pétroliers dans l&#39;espoir de faire monter les prix. Jusqu&#39;à ce que la crise sanitaire montre des signes plus encourageants, les produits pétroliers resteront bon marché. Ici, on attend le pic de la pandémie, là on espère le creux des cours du pétrole.</p>
<p>Alors que les grands noms du monde se déchirent, les locataires genevois peuvent-ils espérer des dividendes sur leurs frais de chauffage cet automne? Peut-être. Mais accessoirement: la baisse des prix du fioul est intervenue tardivement, alors que le printemps était déjà installé et que le chauffage était coupé.</p>
<hr />
<h2>L&#39;essence est également en baisse dans les stations-service</h2>
<p>En trois mois, le prix de l&#39;essence a baissé de 7% à Genève. C&#39;est très peu par rapport aux prix du pétrole, qui se sont effondrés de 48% entre janvier et avril. A la pompe, un score ce week-end et lundi avec dix stations-service genevoises conduit à un prix moyen de 1,48 franc le litre de sans plomb 95, avec une fourchette comprise entre 1,45 franc à Perly ou Vernier et 1,53 franc à Bellevue. En France voisine, région plus chère, il en coûte environ 1,50 franc. Du fait de la crise sanitaire et des difficultés de franchissement de la frontière, les achats de gaz par les résidents français ont fortement diminué.</p>
<p>Selon Avenergy, qui regroupe une trentaine de marques en Suisse, un litre de plomb sans plomb coûtait 1,67 franc en avril 2019 et 1,59 franc en février dernier. La baisse représente donc 11% en un an et 7% en trois mois. La compagnie pétrolière rappelle que les taxes à l&#39;importation, les surtaxes et les frais suisses &quot;font une offre pour l&#39;essence à environ 73 cents le litre&quot;. Hors TVA 7,7%. La baisse des prix des produits pétroliers aura donc également un impact sur les finances publiques, notamment celles de la Confédération.</p>
<p>Avenergy souligne également que les distributeurs supportent des frais généraux, allant des coûts de stockage à ceux du transport dans des camions sophistiqués, de la logistique, du marketing, de l&#39;amortissement financier des stations-service ou des coûts liés aux protocoles légaux. Sans oublier les salaires de leurs employés. Afin d&#39;augmenter leur rentabilité, les exploitants de stations-service essaient de proposer toutes sortes d&#39;articles, parfois avec seulement un lien éloigné avec le monde automobile.</p>
<p>Mais cette branche de l&#39;économie n&#39;est pas encore très transparente sur les détails de ses coûts, en raison notamment de la concurrence féroce dans laquelle les marques pétrolières sont engagées. Les gérants de stations s&#39;espionnent souvent pour ajuster leurs prix. Entre Meyrin, Vernier et Onex, quatre entreprises proposaient dimanche quatre tarifs différents. Itinéraire Ditto Thonon lundi, avec une différence de deux cents le litre entre deux stations rivales.</p>
<p class="publishedDate">Créé: 07.04.2020, 06:48</p>
</p></div>
<p><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script language="javascript"></p>
<p>		var commentNotSent = true;
		///////////////////////////////////////////////////
		// object FBcomments, can be reused for FB authentification
        var FBcomments = {
        		fbAppId : '222318267841285',
                version: 'v2.0',
        		fbChannel_path : '/facebook_xd_receiver.html', 
        		isLoggedIn : false, </p>
<p>            ///////////////////////////////////////////////////
        		initFb : function() {	
	        		window.fbAsyncInit = function() {
                    FB.init({appId: FBcomments.fbAppId, version: FBcomments.version});
	                if (typeof FB === 'undefined') {
        		 				alert($("#tr_fbConnectError").html()); 
        		 			} 
	            };</p>
<p>                (function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)(0);
                    if (d.getElementById(id)) return;
                    js = d.createElement(s); js.id = id;
                    js.src = "http://connect.facebook.net/fr_FR/sdk.js";
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));
          	},
          	///////////////////////////////////////////////////
          	fbLogin : function() { 
          	 var populateFbData_ = this.populateFbData;
          	 var fbDisplay_ = this.fbDisplay;	
          	 var promptFanBox_ = this.promptFanBox;</p>
<p>        		 FB.init({appId: FBcomments.fbAppId, version: FBcomments.version}); 
        		 if (typeof FB === 'undefined') {
        		 	alert($("#tr_fbConnectError").html()); 
        		 } 	
							  	FB.login(function(response) {
									  if (response.authResponse) {
									     // granted some permissions 
									     this.isLoggedIn = true; 
									  	 populateFbData_(response.authResponse.accessToken, response.authResponse.userID);
									  	 fbDisplay_(); 
									  	 promptFanBox_(response.authResponse.userID);
									  } 
									  else { 
									    // user is not logged
									    this.isLoggedIn = false;
									  	fbDisplay_();  
									  }
									}, {scope:'publish_actions'});
				},
				///////////////////////////////////////////////////
				fbLogout : function() {  
					var fbDisplay_ = this.fbDisplay;
					$.cookie('fbsNN', '', { path: '/', expires: -1 });
					isLoggedIn = false;
					fbDisplay_();
        		},</p>
<p>				///////////////////////////////////////////////////
				populateFbData : function(accessToken, userID) {
					fbAccessToken = accessToken;
					fbUserID = userID;
					FB.api(
					'/me',
					{
						fields: 'name'
					},
					function(response) {
						var fbUserName = '';
						if (response){
							if (response.name){
								fbUserName = response.name;
							}
						}
						// store a fb-independent cookie for future login 
						$.cookie('fbsNN', "access_token="+escape(fbAccessToken)+""+"&uid="+fbUserID+"&realname="+escape(fbUserName), { path: '/', expires: 30 }); 
						fbDomInsert(fbUserName, fbUserID, fbAccessToken);
					}
					);
				},</p>
<p>				///////////////////////////////////////////////////
				promptFanBox : function(userId) {
  				 	FB.api({
					    method: 'fql.query',        
					    query: 'SELECT uid FROM page_fan WHERE uid='+userId+' AND page_id='+105188432853984 
						},
							function(response) {
								if (typeof response(0) === 'undefined') {
									// user has not liked the page 
									$(document).ready(function(){  
										var txt = $("#tr_fanBoxPromptTitle").html(); 
										tb_show(txt,'/facebook_iframe.html?&height=250&width=645');
									});
								}	
							}
						 );
  				 },
  				 ///////////////////////////////////////////////////
  				 fbDisplay : function() {    
  				 		fbLoginDisplay(this.isLoggedIn );  
  				 		loginDrop();
  				 }
  				 ///////////////////////////////////////////////////
        } // end object</p>
<p>				///////////////////////////////////////////////////
				// cookie based user registration, maybe replaced by user DB in future
  			function fetch_nnCookie() { 
  				 		var nnRegex = /access_token=((^&)+)&uid=((0-9)+)&realname=(.+)/; 
							nnRegex.exec($.cookie('fbsNN')); 		 
							fbAccessToken = unescape(RegExp.$1);      
							fbUserID = RegExp.$2;
							fbUserName = unescape(RegExp.$3);	  
  			}
				///////////////////////////////////////////////////
  			function check_nnCookie() {	          
  				 	if( $.cookie('fbsNN') == null) {   	 
  				 		return false; 
  				 	}
  				 	else { 
							fetch_nnCookie();   
  				 		// check for valid data, delete cookie otherwise 
  				 		if (fbAccessToken != null && fbAccessToken.length > 0 && fbUserID != null && fbUserID.length > 0  && fbUserName != null && fbUserName.length > 0 && fbUserName != 'undefined') {
  				 			fbDomInsert(fbUserName, fbUserID, fbAccessToken); 
  				 			return true;   
  				 		}
  				 		else {
  				 			$.cookie('fbsNN', '', { expires: -1 }); 
  				 			return false;  
  				 		}
  				 	}
  			}</p>
<p>  			///////////////////////////////////////////////////
  			// form handler 
  			function commentsForm_send () {
  				var fbForm_message = $.trim($("#fbForm_message").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());			
  				var fbForm_realName = $.trim($("#fbForm_realName").val());
  				var fbForm_userId = $.trim($("#fbForm_userId").val());
  				var fbForm_userToken = $("#fbForm_userToken").val(); 
  				var fbForm_publishOnFB = $("#fbForm_publishOnFB:checked").val();
  				if (typeof fbForm_publishOnFB === 'undefined') {
  					fbForm_publishOnFB = 0; 
  				}
					var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());	
					var hasErrors = false; 
					var messageReg =  fbForm_message.length > 1; </p>
<p>					if (messageReg == false) {
						$("#commentError_message").show(); 	
						hasErrors = true; 
					}
					if (fbFormN_gotcha.length > 1) {
						hasErrors = true; 
					} </p>
<p>          if (!($('#disclaimerConfirmBtn').is(':checked'))) {
						$("#commentError_disclaimer").show();
						hasErrors = true; 
					}
  				if (!hasErrors) {
						$("#commentsForm_send").attr("disabled", "true");
						$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>						$("#commentSendLoading").show(); 
						$.ajax({ type: "POST",
							dataType: "text",
							cache: false,
							url: "/community/talkback_ajax.html",
							async: true,
							data: "action=sendComment&fbForm_realName="+encodeURIComponent(fbForm_realName)+"&fbForm_userId="+fbForm_userId+"&fbForm_userToken="+encodeURIComponent(fbForm_userToken)+"&fbForm_publishOnFB="+fbForm_publishOnFB+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
							error: function(){
								alert($("#tr_commentSendError").html()); 
							},
							complete: function(reqCode){
								$("#commentLogin").hide();
								$("#fbForm_message").hide();
								$("#fbForm_message_count_class").hide();      	
								$("#commentError_message").hide();
									$("#commentError_name").hide();
									$("#commentError_location").hide();
									$("#commentError_email").hide();
									$("#commentError_disclaimer").hide();
									$(".disclaimerText").hide();
									$("#commentInfo_noFb").hide();
									$("#commentsForm_send").hide();
									$("#fbCommentPublishCheckbox").hide();
									$("#commentsForm_send_noFb").hide();
								$("#commentInfo_Fb").show();
								$("#commentSendLoading").hide();
							}
						});
					} // hasErrors
				}</p>
<p> 			//////////////////////////////////////////////////
 			function delete_cookie(cookie) {
				$.cookie(cookie, null, {path: '/'});
 			}</p>
<p>			//////////////////////////////////////////////////
			function save_form_to_cookie(class_name) {
				var form = new Array();
				$("."+ class_name).each(function(index) {
					form(index) = {};
					form(index)('id') = $(this).attr("id");
					form(index)('val') = $(this).val();
				});
				$.cookie(class_name, JSON.stringify(form), {json:true});
			}</p>
<p> 			//////////////////////////////////////////////////
 			function save_object_to_cookie(data) {
 			    var form = new Array();
 			    form(0)('id') = 'fbFormN_firstName';
 			    form(0)('val') = '';
 			    form(1)('id') = 'fbFormN_surname';
 			    form(1)('val') = '';
 			    form(2)('id') = 'fbFormN_zip';
 			    form(2)('val') = '';
 			    form(3)('id') = 'fbFormN_location';
 			    form(3)('val') = '';
 			    form(4)('id') = 'fbFormN_email';
 			    form(4)('val') = '';
 			    $("."+ class_name).each(function(index) {
 			        form(index) = {};
 			        form(index)('id') = $(this).attr("id");
 			        form(index)('val') = $(this).val();
 			    });
 			    $.cookie(class_name, JSON.stringify(form), {json:true});
 			}</p>
<p>			//////////////////////////////////////////////////
			function set_logged_in_cookie(data) {
			    $.cookie('comment_login_details_email', JSON.stringify(data), {json:true,expires:14,path: '/'});
			}</p>
<p>			//////////////////////////////////////////////////
			function read_logged_in_cookie() {
				var cookie_form_data_json = $.cookie('comment_login_details_email');
				if (cookie_form_data_json != null) {
					var form_data = JSON.parse(cookie_form_data_json);
					if (typeof form_data != 'undefined') {
						if (form_data.user.customer_id == 53){
							if (typeof form_data.pcr != 'undefined' && form_data.pcr != null && form_data.pcr.length > 0){
								if (typeof form_data.uid != 'undefined' && form_data.uid != null && form_data.uid != 0){
									auto_login_email(form_data);
									return;
								}
							}
						} else {
							auto_login_email(form_data);
						}
					}
				}</p>
<p>			}</p>
<p> 			//////////////////////////////////////////////////
 			function read_form_from_cookie(class_name) {
 			    var cookie_form_data_json = $.cookie(class_name);
 			    var form_data = JSON.parse(cookie_form_data_json);
 			    $.each(form_data, function(index, value) {
 			        $("#"+ value.id).val(value.val);
 			    });
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_create_account() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
				var fbFormN_location = $.trim($("#fbFormN_location").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				if ($("#fbFormN_password").length) {
				    var fbFormN_password = $.trim($("#fbFormN_password").val());
				}
				if ($("#fbFormN_password_confirm").length) {
				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
				}</p>
<p>				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
if (fbFormN_telephone.length > 1) {</p>
<p>			var telephoneReg = (fbFormN_telephone.match(/^(ds)*$/));</p>
<p>}
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_telephone").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentError_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentError_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    $("#commentError_password").show();
					    hasErrors = true;
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_create_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId)+password_params,
						error: function(){ },
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {</p>
<p>			$("#disclaimerConfirm").hide();
			$("#commentLogin").hide();
			$("#fbForm_message").hide();
			$("#fbForm_message_count_class").hide();
			$("#commentError_message").hide();
			$("#commentInfo_Fb").hide(); 
			$("#commentsForm_send").hide();
			$("#fbCommentPublishCheckbox").hide();
			$("#commentsForm_send_noFb").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>				/////////////////////////////////////////////////
				function confirm_delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=confirm_delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html(data.message);
					            $('#deleteAccount').fadeIn(800);
					            $('#commentFormSubContainer').slideUp(1000);
					            $('body,html').stop().animate({
					                'scrollTop': $("#deleteAccount").offset().top-200
					            }, 1000)
					        }
					    }     
				 	});
				}</p>
<p>                /////////////////////////////////////////////////
				function cancel_delete_account() {
					$('#deleteAccount').html('');
					$('#deleteAccount').hide();
					$('#commentFormSubContainer').slideDown(1000);
				}</p>
<p>                /////////////////////////////////////////////////
				function delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
					        }
					        else if (data.code == 2) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
					        }
					    }     
				 	});
				}</p>
<p>  			//////////////////////////////////////////////////
  			function commentsForm_update_account_close() {
  			    $("#manageAccount").html('');
  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_update_account() {
  				var fbFormN_firstName = $.trim($("#update_firstName").val());
  				var fbFormN_surname = $.trim($("#update_surname").val());
  				var fbFormN_zip = $.trim($("#update_zip").val());
  				var fbFormN_location = $.trim($("#update_location").val());
  				var fbFormN_telephone = $.trim($("#update_telephone").val());
  				var fbFormN_email = $.trim($("#update_email").val());
  				var fbFormN_email_hidden = $.trim($("#update_email_hidden").val());
  				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
  				var login_email_token = $.trim($("#login_email_token").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				if ($("#update_password").length) {
  				    var fbFormN_password = $.trim($("#update_password").val());
  				}
  				if ($("#update_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#update_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; </p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentErrorUpdate_name").hide(); 	
				$("#commentErrorUpdate_location").hide(); 
				$("#commentErrorUpdate_telephone").hide(); 
				$("#commentErrorUpdate_email").hide(); 
				$("#commentErrorUpdate_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentErrorUpdate_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentErrorUpdate_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentErrorUpdate_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentErrorUpdate_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    if ((fbFormN_password != 'mot de passe' || fbFormN_password_confirm != 'confirmer le mot de passe') && (fbFormN_password != 'password' || fbFormN_password_confirm != 'confirm password')) {
					        $("#commentErrorUpdate_password").show();
					        hasErrors = true;
					    }
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
	                save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
				          dataType: "json",
				          cache: false,
	                	  url: "/community/talkback_ajax.html",
				          async: true,
				          data: "action=talkback_update_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbFormN_email_hidden="+encodeURIComponent(fbFormN_email_hidden)+"&customer_id="+fbForm_customerId+password_params+"&token="+login_email_token+"&story_id="+encodeURIComponent(fbForm_storyId),
				          error: function(){ },
				          success: function(data){
				          	if (data.code == 1) {
							    $("#disclaimerConfirm").hide();
				          	    $("#commentLogin").hide();
				          	    $("#fbForm_message").hide();
				          	    $("#fbForm_message_count_class").hide();
				          	    $("#commentErrorUpdate_message").hide();
				          	    $("#commentInfo_Fb").hide(); 
				          	    $("#commentsForm_send").hide();
				          	    $("#fbCommentPublishCheckbox").hide();
							    $("#commentsForm_send_noFb").hide(); 
			          		    $("#commentInfo_noFb").show();
			          		    $("#manageAccount").toggle();
			          		    $("#commentInfo_noFb").text(data.message);
			          		    setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
			          		} else if (data.code == 2){
								$("#commentLogin").show();
								$("#fbForm_message").show();
								$("#fbForm_message_count_class").show();
								$("#commentErrorUpdate_message").hide();
								$("#commentInfo_Fb").hide(); 
								$("#commentsForm_send").hide();
								$("#fbCommentPublishCheckbox").hide();
								$("#commentsForm_send_noFb").hide(); 
								$("#commentInfo_noFb").hide();
								$("#manageAccount").toggle();
								setMessageBox(data.message, data.addclass);
								if (data.user.customer_id == 53){
									auto_login_email(data);
								}
							} else if (data.code == 3){
								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p> 			// Handler to reset the timer on each notification 
 			var timeoutHandle;
 			function setMessageBox(message, boxclass) {
 			    $("#messageBox").hide();
 			    $("#messageBox").html(message);
 			    $("#messageBox").removeClass("warning error success").addClass(boxclass);
 			    $("#messageBox").fadeIn(1500);</p>
<p> 			    clearTimeout(timeoutHandle);</p>
<p> 			    timeoutHandle = setTimeout(function(){
 			        $("#messageBox").fadeOut(2000, function () {
 			      });
 			    }, 12000);
 			}</p>
<p> 			function forgot_password_send() {
				var email = $.trim($('#password_forgot_email').val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				if(emailRegObj.test(email) == false){      
					$("#commentError_password_forgot_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=reset_password&customer_id="+fbForm_customerId+"&email="+encodeURIComponent(email),  
					    error: function(){ },
					    success: function(data){
						        if (data.code = 0) {
						            setMessageBox(data.message, data.addclass);
						        }
						        else if (data.code = 1) {
						            $('#comment_password_reset_form').toggle('slow');
						            $('#comment_login_form').toggle('slow');
						            setMessageBox(data.message, data.addclass);
						        }
					    }     
				 	});</p>
<p>				}
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_login_noFb() {
				var fbFormN_email = $.trim($("#fbFormN_email_login").val());
				var fbFormN_password = $.trim($("#fbFormN_password_login").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); </p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					//$("#commentsForm_send").attr("disabled", "true");
					//$("#commentsForm_send_noFb").attr("disabled", "true");
					//save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_login_email&email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password),
						error: function(){</p>
<p>						},
						success: function(data){
							//$("#commentLogin").hide();
							//$("#fbForm_message").hide();
							//$("#fbForm_message_count_class").hide();
							//$("#commentError_message").hide();
							//$("#commentInfo_Fb").hide(); 
							//$("#commentsForm_send").hide();
							//$("#fbCommentPublishCheckbox").hide();
							//$("#commentsForm_send_noFb").hide(); </p>
<p>							if (data.code == 2) {
								$('.commentFBlogin').hide();
								$('#comment_login_form').hide();
								$("#change_phonenumber").show();
								setMessageBox(data.message, data.addclass);
							} else {
								$("#change_phonenumber").hide();
								//$("#commentInfo_noFb").show();
								//$("#commentLoggedInEmail").text(data.message);
								setMessageBox(data.message, data.addclass);
								$("#commentLoggedInEmail").show();
								if ('user' in data) {
									auto_login_email(data);
								}
							}
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////</p>
<p>			function comments_modifyForm_phone_change() {</p>
<p>				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change_sms_verify() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbFormN_sms_change_Ver = $.trim($("#fbFormN_sms_change_Ver").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change_sms_verify&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change)+"&code="+encodeURIComponent(fbFormN_sms_change_Ver),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_sms_change_ver").hide();
							$("#fbFormN_sms_change_Ver").hide();
							$("#commentsForm_sms_send_change_veryfy").hide();
							$("#change_phonenumber").hide();</p>
<p>							$('#comment_login_form').show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}
			///////////////////////////////////////////////////
			function commentsForm_sms_verify() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbFormN_smsVer = $.trim($("#fbFormN_smsVer").val());</p>
<p>				var hasErrors = false;</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_sms_verify&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&email="+encodeURIComponent(fbFormN_email)+"&telefone="+encodeURIComponent(fbFormN_telephone)+"&code="+ fbFormN_smsVer +"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId),
						error: function(){
						},
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {
								$("#commentLogin").hide();
								$("#sms_verify").hide();
								$("#fbFormN_smsVer").hide();
								$("#commentsForm_sms_veryfy").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>			//////////////////////////////////////////
			//swissnoise quiva
			function auto_login_quiva(data) {
				console.log("quiva login start");
				var user = {
					"remoteId": data.uid,
					"username": data.user.email,
					"password": data.pcr,
					"email": data.user.email,
					"firstName": data.user.first_name,
					"lastName": data.user.last_name,
					"zipCode": data.user.post_code,
					"locality": data.user.city,
					"phoneNumber": data.user.mobile_number
				};
				whatif.login(user).always(function() {</p>
<p>				});
				console.log("quiva login done");
			}
			//END swissnoise quiva</p>
<p>  			function auto_login_email(data) {
			    $(".commentFBlogin").hide();
			    $(".commentOhnelogin").hide();
			    var html = '';
			    var name = data.user.first_name +' '+ data.user.last_name;
			    html += '<span class="fbUserWelcome">Bienvenue, <span id="fbUserRealName">'+ name +'</span></span><br />';
			    html += '<a href="" id="commentsForm_send_email" onclick="return false;">Soumettre Commentaire</button>';
			    html += '<a href="" class="emailLogoutButton" onclick="return false;">Déconnecter</a><br />';
			    html += '<a href="" id="emailManageAccount" onclick="return false;">Gérer le profil</a>';
			    html += '<input id="login_email_token" name="login_email_token" value="'+ data.token +'" type="hidden">';
			    html += '<input id="login_email_email" name="login_email_email" value="'+ data.user.email +'" type="hidden">';
			    $("#commentLoggedInEmail").html(html);
			    set_logged_in_cookie(data);
			    $("#commentLoggedInEmail").show();</p>
<p>  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_send_noFb() {
  				var fbForm_message = $.trim($("#fbForm_message").val());  
  				fbForm_message = fbForm_message.replace(/&/g, "+");
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
  				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
  				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
  				var fbFormN_location = $.trim($("#fbFormN_location").val());
  				var fbFormN_email = $.trim($("#fbFormN_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				if ($("#fbFormN_password").length) {
  				    var fbFormN_password = $.trim($("#fbFormN_password").val());
  				}
  				if ($("#fbFormN_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; 
				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				// dont check for ZIP, cause of foreign countries 
				//var locReg = !(fbFormN_zip.match(/(*)/)) && !(fbFormN_location.match(/(*)/)) && fbFormN_zip.length > 1 && fbFormN_location.length > 1;   
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;
				var password_params = '';</p>
<p>				$("#commentError_name").hide();
				$("#commentError_location").hide();
				$("#commentError_email").hide();
				$("#commentError_password").hide();
				$("#commentError_message").hide();
				$("#commentError_disclaimer").hide();
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show();
					hasErrors = true;
				}</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show();
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;
				}</p>
<p>				if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show();
					$(".disclaimerText").show();
					hasErrors = true;
				}</p>
<p>				if (!hasErrors) {</p>
<p>					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "html",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=sendComment&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
						error: function(){ },
						success: function(){
							$("#commentLogin").hide();
							$("#fbForm_message").hide();
							$("#fbForm_message_count_class").hide();
							$("#commentError_message").hide();
							$("#commentInfo_Fb").hide();
							$("#commentsForm_send").hide();
							$("#fbCommentPublishCheckbox").hide();
							$("#commentsForm_send_noFb").hide();
							$("#disclaimerConfirm").hide();
							$("#commentInfo_noFb").show();
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_send_email() {
				var fbForm_message = $.trim($("#fbForm_message").val());  
				fbForm_message = fbForm_message.replace(/&/g, "+");
				var fbForm_uri = $.trim($("#fbForm_uri").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_ip = $.trim($("#fbForm_ip").val());
				var login_email_token = $.trim($("#login_email_token").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_email = $.trim($("#login_email_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message </p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; </p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$("#commentError_message").hide(); 	
				$("#commentError_disclaimer").hide(); 	
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>			    if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					commentNotSent = false;</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=send_comment_email&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&customer_id="+fbForm_customerId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID+"&email="+encodeURIComponent(fbFormN_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
						          	if (data.code == 1) {
						          	    $("#commentLogin").hide();
						          	    $("#fbForm_message").hide();
						          	    $("#fbForm_message_count_class").hide();      	
						          	    $("#commentError_message").hide();
									    $("#commentError_name").hide(); 	 	
									    $("#commentError_location").hide(); 	
									    $("#commentError_email").hide();	
									    $("#commentError_disclaimer").hide(); 	
									    $(".disclaimerText").hide();
									    $("#commentInfo_noFb").hide(); 
    									$("#commentsForm_send").hide(); 
									    $("#fbCommentPublishCheckbox").hide();
									    $("#disclaimerConfirm").hide();
									    $("#commentsForm_send_noFb").hide();	
						          	    $("#commentInfo_noFb").show();  
						          	    $("#commentSendLoading").hide();
						          	    $("#commentInfo_Notice").hide();
						          	    $("#manageAccount").hide();
						          	}
						          	else if (data.code == 2) {
						          	    setMessageBox(data.message, data.addclass);
						          	}
					    }     
				 	});		
				}		
  			}  			</p>
<p>			///////////////////////////////////////////////////
			///////////////////////////////////////////////////
  			// some jquery UI functions
			function fbLoginDisplay(loginState) {
				$(document).ready(function(){
					if (loginState == true) {
						$(".notloggedToFacebook").hide();
						$(".loggedToFacebook").show();
						$('#commentsForm_send_noFb').hide();
						$('#commentsForm_send').show();
						$("#fbCommentPublishCheckbox").show();
						$(".recommendCommentFacebook").show();
					}
	else {
						$(".loggedToFacebook").hide(); 
						$(".notloggedToFacebook").show(); 
						$('#commentsForm_send').hide();
						$('#commentsForm_send_noFb').show();
						$("#fbCommentPublishCheckbox").hide();
						$(".recommendCommentFacebook").hide();
						if ($("#commentLoggedInEmail").length) {
							$("#commentLoggedInEmail").show();
						}
				}});
  			}</p>
<p>  			///////////////////////////////////////////////////
  			function fbDomInsert(username, uid, token) {  
						$(document).ready(function(){  
		           $("#fbUserRealName").html(username); 
		           var imgHtml= "<img src='https://graph.facebook.com/me/picture?access_token="+token+"'/>";
		           $("#fbUserProfilePicture").html(imgHtml);</p>
<p>		           $("#fbForm_realName").val(username); 
		           $("#fbForm_userId").val(uid);
		           $("#fbForm_userToken").val(token);
	        	});
				}
				///////////////////////////////////////////////////
				function loginDrop() {
					$(document).ready(function(){
						$('#commentLogin').slideDown();
						$("textarea#fbForm_message").attr("rows", 6);
						$("#commentsForm_send").removeAttr("disabled");
						$("#commentsForm_send_noFb").attr("disabled", "");
						$("#commentsForm_send_email").removeAttr("disabled");
						$("#fbForm_message").val("");
						$('#fbForm_message').removeAttr("onclick");
					});
				}
		///////////////////////////////////////////////////
		function doOnFbConnect() {
			$(".recommendCommentFacebook").show(); // for comments below: display checkbox to choose if recommended comments get published on facebook
		}</p>
<p>		///////////////////////////////////////////////////
		function log(msg){
			if (typeof console === 'undefined') {
				return false;
			} else {
				return true;
			}
		}</p>
<p>		/////////////////////////////////////////////////////////////////////////////////	
        /////////////////////////////////////////////////////////////////////////////////  
        /////////////////////////////////////////////////////////////////////////////////
        // main </p>
<p>        // fb auth 
        var fbAccessToken = ''; 
        var fbUserID = ''; 
        var fbUserName = '';  
        FBcomments.initFb(); 
        var nnFBloggedIn = check_nnCookie();  
   			if (nnFBloggedIn == true) {
   				fbLoginDisplay(true); </p>
<p>   			}
   			else {
   				fbLoginDisplay(false); 
   			}</p>
<p>function inputFocus(thisFor, thisClass) {
    $('#'+ thisFor).focus(function() {
        $('.'+ thisClass).animate({ opacity: "0" }, "fast");
    }).blur(function() {
        if($(this).val() == "") {
            $('.'+ thisClass).animate({ opacity: "1" }, "fast");
        }
    });
}</p>
<p>			//// some more jquery stuff
   			$(document).ready(function(){
				read_logged_in_cookie();</p>
<p>				// hide 'populär auf facebook' widget in sideline
				//$("#fb_activityFeed").hide(); </p>
<p>				$("#fbCommentPublishCheckbox").hide();</p>
<p>$('#fbFormN_password_login').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_post_confirmed').focus().click();
        return false;
    }
});</p>
<p>$('#fbFormN_smsVer').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_sms_veryfy').focus().click();
        return false;
    }
});</p>
<p>// Bind to set the fadeout of form labels when clicked or focused
$('.sbsLabel label').each(function () {
    var thisFor = $(this).attr('for');
    var thisClass = $(this).attr('class');
    inputFocus(thisFor, thisClass);
});</p>
<p>   				// some form display handling 
					$('#disclaimerButtonShow').bind('click', function(){
						$('.disclaimerText').show();
						$('#disclaimerButtonShow').css('display','none');
						$('#disclaimerButtonHide').css('display','inline');
					});
					$('#disclaimerButtonHide').bind('click', function(){
						$('.disclaimerText').hide();
						$('#disclaimerButtonHide').css('display','none');
						$('#disclaimerButtonShow').css('display','inline');
					});</p>
<p>				// display login data on start 
				if ($("#fbUserRealName").html()) {
					if ($("#fbUserRealName").html().length >= 2){ // && $("textarea#fbForm_message").attr("rows") > 2
						$("#fbCommentPublishCheckbox").show();
					}
				}</p>
<p>				// clear textarea 
				$("#fbForm_message").val(''); </p>
<p>				// submit buttons , disable on on reload 
				$("#commentsForm_send").attr("disabled", "true");
				$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>				// set checkboxes
				$('#fbForm_publishOnFB').attr('checked', true); 
				$('.recommendCommentPublishOnFb').attr('checked', true); 
				$('#disclaimerConfirmBtn').attr('checked', false);</p>
<p>				// fixes a tiny bug: if values are prefilled on reload they should not be grey 
				var myFbFormIds = ('fbFormN_firstName', 'fbFormN_surname', 'fbFormN_zip', 'fbFormN_location', 'fbFormN_email', 'fbFormN_password', 'fbFormN_password_confirm');
				for (var ii=0;ii < myFbFormIds.length; ii++) {
				  if ($("#"+myFbFormIds(ii)).length) {
					if (!($("#"+myFbFormIds(ii)).val().match(/(*)/))) {
						$("#"+myFbFormIds(ii)).css('color','#000000'); 
					};
				  }
				}

				$('.comment_signup_form_toggle').live('click', function(){
					$('#comment_signup_form').toggle('slow');
					$('#comment_login_form').toggle('slow');
					return false;
				});

				$('.comment_form_forgot_password').live('click', function(){
				    $('#comment_password_reset_form').toggle('slow');
				    $('#comment_login_form').toggle('slow');
				    return false;
				});

				$('.emailLogoutButton').live('click', function() {
					delete_cookie('comment_login_details_email');
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$(".commentFBlogin").show();
					$(".commentOhnelogin").show();
				});

				$('#show_update_phone').live('click', function() {
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$("#comment_login_form").hide();

					$("#change_phonenumber").show();
					$(".commentOhnelogin").show();
				});

				$('#commentsForm_send_email').live('click', function() {
				    if (commentNotSent) {
				        commentsForm_send_email();
				    }
				});

				$('#emailManageAccount').live('click', function () {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());

				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=login_manage_account&#038;customer_id="+customer_id+"&#038;email="+encodeURIComponent(login_email_email)+"&#038;token="+login_email_token,
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#manageAccount').html(data.message);
					            $('#manageAccount').show();
					        }
					    }     
				 	});
				});

				});
        </script><br /></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Les SIG sont sur le pont 24 heures sur 24 &#8211; News Genève: Actu genevoise</title>
		<link>https://conseil-chauffage.com/les-sig-sont-sur-le-pont-24-heures-sur-24-news-geneve-actu-genevoise/</link>
		
		<dc:creator><![CDATA[Conseil-Chauffage]]></dc:creator>
		<pubDate>Wed, 25 Mar 2020 02:25:41 +0000</pubDate>
				<category><![CDATA[Chauffage au Gaz]]></category>
		<category><![CDATA[Actu]]></category>
		<category><![CDATA[Genève]]></category>
		<category><![CDATA[genevoise]]></category>
		<category><![CDATA[heures]]></category>
		<category><![CDATA[les]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[pont]]></category>
		<category><![CDATA[SIG]]></category>
		<category><![CDATA[sont]]></category>
		<category><![CDATA[sur]]></category>
		<guid isPermaLink="false">https://conseil-chauffage.com/les-sig-sont-sur-le-pont-24-heures-sur-24-news-geneve-actu-genevoise/</guid>

					<description><![CDATA[Les SIG sont sur le pont 24 heures sur 24 &#8211; News Genève: Actu genevoise Parmi les professions qu&#39;ils remercient par leurs applaudissements quotidiens en soirée, les Genevois ont pu intégrer les salariés des Services Industriels de Genève (SIG). En tout cas, ceux qui, malgré la menace virale, restent sur le terrain afin de garantir &#8211; sept jours par semaine et vingt-quatre heures par jour &#8211; l&#39;approvisionnement du canton en eau potable, électricité, gaz et chauffage urbain. ... <p class="read-more-container"><a title="Les SIG sont sur le pont 24 heures sur 24 &#8211; News Genève: Actu genevoise" class="read-more button" href="https://conseil-chauffage.com/les-sig-sont-sur-le-pont-24-heures-sur-24-news-geneve-actu-genevoise/#more-2124" aria-label="Plus sur Les SIG sont sur le pont 24 heures sur 24 &#8211; News Genève: Actu genevoise">Lire l'Article</a></p>]]></description>
										<content:encoded><![CDATA[<h1>Les SIG sont sur le pont 24 heures sur 24 &#8211; News Genève: Actu genevoise</h1>
<p></p>
<div id="mainContent">
<p>	Parmi les professions qu&#39;ils remercient par leurs applaudissements quotidiens en soirée, les Genevois ont pu intégrer les salariés des Services Industriels de Genève (SIG). En tout cas, ceux qui, malgré la menace virale, restent sur le terrain afin de garantir &#8211; sept jours par semaine et vingt-quatre heures par jour &#8211; l&#39;approvisionnement du canton en eau potable, électricité, gaz et chauffage urbain.</p>
<p>Des besoins tout aussi cruciaux que les denrées alimentaires qui affluent dans les supermarchés. Sans oublier que ce sont aussi les SIG qui sont responsables de l&#39;élimination des déchets ménagers et autres à l&#39;usine d&#39;incinération de Cheneviers. Alors, comment pouvons-nous, en période de confinement et de distanciation sociale, continuer à fournir ces services essentiels à la population?</p>
<p>La direction se veut rassurante et élimine tout risque de pénurie. &quot;Depuis plus de dix ans, les SIG ont un plan de gestion de crise, qui comprend des plans de continuité des opérations (BCP)&quot;, a déclaré Anne-Claude Steiner-Mellot, porte-parole des SIG. L&#39;appareil est régulièrement testé avec une formation. «Tout cela fait partie intégrante du plan cantonal en cas de crise, ORCA.</p>
<p>Concrètement, tous les salariés qui n&#39;occupent pas les fonctions dites «critiques» font du télétravail à domicile. Les autres, notamment ceux qui gèrent l&#39;exploitation et la maintenance des réseaux, restent sur le pont, effectuant des changements d&#39;équipe. Mais seules les activités et interventions prioritaires sont réalisées. Cela comprend bien sûr les interventions d&#39;urgence, telles que celles liées aux pannes de courant, aux fuites de gaz ou aux conduites d&#39;eau cassées.</p>
<p>Cependant, ces techniciens, qui peuvent être en contact avec des clients ou contraints de se rendre sur leur lieu de travail, doivent se protéger du coronavirus. &quot;Les salariés assumant ces fonctions prioritaires ont reçu les équipements de protection nécessaires, tels que des masques, et sont régulièrement tenus informés des consignes d&#39;hygiène de l&#39;Office fédéral de la santé publique (OFSP)&quot;, assure le porte-parole.</p>
<p>Pour le traitement des déchets, par exemple, les règles spécifiques à la pandémie (lavage régulier des mains, distance entre les personnes, nombre d&#39;employés au même endroit, etc.) s&#39;ajoutent aux mesures habituelles de santé et de sécurité. &quot;La salle de contrôle, qui est le centre névralgique de l&#39;usine de Cheneviers, est mise en&quot; confinement partiel &quot;afin que seul le personnel d&#39;exploitation y ait accès, précise Anne-Claude Steiner-Mellot. Le nombre de collaborateurs sur place étant limité , les contacts interpersonnels sont réduits au maximum. »Les règles d&#39;hygiène sont d&#39;autant plus importantes à Cheneviers que l&#39;usine gère également les déchets hospitaliers.</p>
<p>L&#39;incinération des ordures ménagères ne connaissant aucun répit, le fonctionnement des réseaux de chauffage urbain fournis par l&#39;usine est également garanti. Rappelons que le réseau Cadiom fournit à lui seul de la chaleur à plus de 10 000 logements ainsi qu&#39;à plusieurs sites d&#39;activités tertiaires dans les communes d&#39;Aire-la-Ville, Bernex, Confignon, Onex et Lancy.</p>
<p>Les employés du SIG ont-ils contracté Covid-19? &quot;La situation évolue si rapidement, et en ce qui concerne les données médicales, nous préférons ne pas communiquer sur cette question.&quot; </p>
<p class="publishedDate">Créé: 24.03.2020, 21h02</p>
</p></div>
<p><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script language="javascript"></p>
<p>		var commentNotSent = true;
		///////////////////////////////////////////////////
		// object FBcomments, can be reused for FB authentification
        var FBcomments = {
        		fbAppId : '222318267841285',
                version: 'v2.0',
        		fbChannel_path : '/facebook_xd_receiver.html', 
        		isLoggedIn : false, </p>
<p>            ///////////////////////////////////////////////////
        		initFb : function() {	
	        		window.fbAsyncInit = function() {
                    FB.init({appId: FBcomments.fbAppId, version: FBcomments.version});
	                if (typeof FB === 'undefined') {
        		 				alert($("#tr_fbConnectError").html()); 
        		 			} 
	            };</p>
<p>                (function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)(0);
                    if (d.getElementById(id)) return;
                    js = d.createElement(s); js.id = id;
                    js.src = "http://connect.facebook.net/fr_FR/sdk.js";
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));
          	},
          	///////////////////////////////////////////////////
          	fbLogin : function() { 
          	 var populateFbData_ = this.populateFbData;
          	 var fbDisplay_ = this.fbDisplay;	
          	 var promptFanBox_ = this.promptFanBox;</p>
<p>        		 FB.init({appId: FBcomments.fbAppId, version: FBcomments.version}); 
        		 if (typeof FB === 'undefined') {
        		 	alert($("#tr_fbConnectError").html()); 
        		 } 	
							  	FB.login(function(response) {
									  if (response.authResponse) {
									     // granted some permissions 
									     this.isLoggedIn = true; 
									  	 populateFbData_(response.authResponse.accessToken, response.authResponse.userID);
									  	 fbDisplay_(); 
									  	 promptFanBox_(response.authResponse.userID);
									  } 
									  else { 
									    // user is not logged
									    this.isLoggedIn = false;
									  	fbDisplay_();  
									  }
									}, {scope:'publish_actions'});
				},
				///////////////////////////////////////////////////
				fbLogout : function() {  
					var fbDisplay_ = this.fbDisplay;
					$.cookie('fbsNN', '', { path: '/', expires: -1 });
					isLoggedIn = false;
					fbDisplay_();
        		},</p>
<p>				///////////////////////////////////////////////////
				populateFbData : function(accessToken, userID) {
					fbAccessToken = accessToken;
					fbUserID = userID;
					FB.api(
					'/me',
					{
						fields: 'name'
					},
					function(response) {
						var fbUserName = '';
						if (response){
							if (response.name){
								fbUserName = response.name;
							}
						}
						// store a fb-independent cookie for future login 
						$.cookie('fbsNN', "access_token="+escape(fbAccessToken)+""+"&uid="+fbUserID+"&realname="+escape(fbUserName), { path: '/', expires: 30 }); 
						fbDomInsert(fbUserName, fbUserID, fbAccessToken);
					}
					);
				},</p>
<p>				///////////////////////////////////////////////////
				promptFanBox : function(userId) {
  				 	FB.api({
					    method: 'fql.query',        
					    query: 'SELECT uid FROM page_fan WHERE uid='+userId+' AND page_id='+105188432853984 
						},
							function(response) {
								if (typeof response(0) === 'undefined') {
									// user has not liked the page 
									$(document).ready(function(){  
										var txt = $("#tr_fanBoxPromptTitle").html(); 
										tb_show(txt,'/facebook_iframe.html?&height=250&width=645');
									});
								}	
							}
						 );
  				 },
  				 ///////////////////////////////////////////////////
  				 fbDisplay : function() {    
  				 		fbLoginDisplay(this.isLoggedIn );  
  				 		loginDrop();
  				 }
  				 ///////////////////////////////////////////////////
        } // end object</p>
<p>				///////////////////////////////////////////////////
				// cookie based user registration, maybe replaced by user DB in future
  			function fetch_nnCookie() { 
  				 		var nnRegex = /access_token=((^&)+)&uid=((0-9)+)&realname=(.+)/; 
							nnRegex.exec($.cookie('fbsNN')); 		 
							fbAccessToken = unescape(RegExp.$1);      
							fbUserID = RegExp.$2;
							fbUserName = unescape(RegExp.$3);	  
  			}
				///////////////////////////////////////////////////
  			function check_nnCookie() {	          
  				 	if( $.cookie('fbsNN') == null) {   	 
  				 		return false; 
  				 	}
  				 	else { 
							fetch_nnCookie();   
  				 		// check for valid data, delete cookie otherwise 
  				 		if (fbAccessToken != null && fbAccessToken.length > 0 && fbUserID != null && fbUserID.length > 0  && fbUserName != null && fbUserName.length > 0 && fbUserName != 'undefined') {
  				 			fbDomInsert(fbUserName, fbUserID, fbAccessToken); 
  				 			return true;   
  				 		}
  				 		else {
  				 			$.cookie('fbsNN', '', { expires: -1 }); 
  				 			return false;  
  				 		}
  				 	}
  			}</p>
<p>  			///////////////////////////////////////////////////
  			// form handler 
  			function commentsForm_send () {
  				var fbForm_message = $.trim($("#fbForm_message").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());			
  				var fbForm_realName = $.trim($("#fbForm_realName").val());
  				var fbForm_userId = $.trim($("#fbForm_userId").val());
  				var fbForm_userToken = $("#fbForm_userToken").val(); 
  				var fbForm_publishOnFB = $("#fbForm_publishOnFB:checked").val();
  				if (typeof fbForm_publishOnFB === 'undefined') {
  					fbForm_publishOnFB = 0; 
  				}
					var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());	
					var hasErrors = false; 
					var messageReg =  fbForm_message.length > 1; </p>
<p>					if (messageReg == false) {
						$("#commentError_message").show(); 	
						hasErrors = true; 
					}
					if (fbFormN_gotcha.length > 1) {
						hasErrors = true; 
					} </p>
<p>          if (!($('#disclaimerConfirmBtn').is(':checked'))) {
						$("#commentError_disclaimer").show();
						hasErrors = true; 
					}
  				if (!hasErrors) {
						$("#commentsForm_send").attr("disabled", "true");
						$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>						$("#commentSendLoading").show(); 
						$.ajax({ type: "POST",
							dataType: "text",
							cache: false,
							url: "/community/talkback_ajax.html",
							async: true,
							data: "action=sendComment&fbForm_realName="+encodeURIComponent(fbForm_realName)+"&fbForm_userId="+fbForm_userId+"&fbForm_userToken="+encodeURIComponent(fbForm_userToken)+"&fbForm_publishOnFB="+fbForm_publishOnFB+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
							error: function(){
								alert($("#tr_commentSendError").html()); 
							},
							complete: function(reqCode){
								$("#commentLogin").hide();
								$("#fbForm_message").hide();
								$("#fbForm_message_count_class").hide();      	
								$("#commentError_message").hide();
									$("#commentError_name").hide();
									$("#commentError_location").hide();
									$("#commentError_email").hide();
									$("#commentError_disclaimer").hide();
									$(".disclaimerText").hide();
									$("#commentInfo_noFb").hide();
									$("#commentsForm_send").hide();
									$("#fbCommentPublishCheckbox").hide();
									$("#commentsForm_send_noFb").hide();
								$("#commentInfo_Fb").show();
								$("#commentSendLoading").hide();
							}
						});
					} // hasErrors
				}</p>
<p> 			//////////////////////////////////////////////////
 			function delete_cookie(cookie) {
				$.cookie(cookie, null, {path: '/'});
 			}</p>
<p>			//////////////////////////////////////////////////
			function save_form_to_cookie(class_name) {
				var form = new Array();
				$("."+ class_name).each(function(index) {
					form(index) = {};
					form(index)('id') = $(this).attr("id");
					form(index)('val') = $(this).val();
				});
				$.cookie(class_name, JSON.stringify(form), {json:true});
			}</p>
<p> 			//////////////////////////////////////////////////
 			function save_object_to_cookie(data) {
 			    var form = new Array();
 			    form(0)('id') = 'fbFormN_firstName';
 			    form(0)('val') = '';
 			    form(1)('id') = 'fbFormN_surname';
 			    form(1)('val') = '';
 			    form(2)('id') = 'fbFormN_zip';
 			    form(2)('val') = '';
 			    form(3)('id') = 'fbFormN_location';
 			    form(3)('val') = '';
 			    form(4)('id') = 'fbFormN_email';
 			    form(4)('val') = '';
 			    $("."+ class_name).each(function(index) {
 			        form(index) = {};
 			        form(index)('id') = $(this).attr("id");
 			        form(index)('val') = $(this).val();
 			    });
 			    $.cookie(class_name, JSON.stringify(form), {json:true});
 			}</p>
<p>			//////////////////////////////////////////////////
			function set_logged_in_cookie(data) {
			    $.cookie('comment_login_details_email', JSON.stringify(data), {json:true,expires:14,path: '/'});
			}</p>
<p>			//////////////////////////////////////////////////
			function read_logged_in_cookie() {
				var cookie_form_data_json = $.cookie('comment_login_details_email');
				if (cookie_form_data_json != null) {
					var form_data = JSON.parse(cookie_form_data_json);
					if (typeof form_data != 'undefined') {
						if (form_data.user.customer_id == 53){
							if (typeof form_data.pcr != 'undefined' && form_data.pcr != null && form_data.pcr.length > 0){
								if (typeof form_data.uid != 'undefined' && form_data.uid != null && form_data.uid != 0){
									auto_login_email(form_data);
									return;
								}
							}
						} else {
							auto_login_email(form_data);
						}
					}
				}</p>
<p>			}</p>
<p> 			//////////////////////////////////////////////////
 			function read_form_from_cookie(class_name) {
 			    var cookie_form_data_json = $.cookie(class_name);
 			    var form_data = JSON.parse(cookie_form_data_json);
 			    $.each(form_data, function(index, value) {
 			        $("#"+ value.id).val(value.val);
 			    });
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_create_account() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
				var fbFormN_location = $.trim($("#fbFormN_location").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				if ($("#fbFormN_password").length) {
				    var fbFormN_password = $.trim($("#fbFormN_password").val());
				}
				if ($("#fbFormN_password_confirm").length) {
				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
				}</p>
<p>				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
if (fbFormN_telephone.length > 1) {</p>
<p>			var telephoneReg = (fbFormN_telephone.match(/^(ds)*$/));</p>
<p>}
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_telephone").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentError_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentError_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    $("#commentError_password").show();
					    hasErrors = true;
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_create_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId)+password_params,
						error: function(){ },
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {</p>
<p>			$("#disclaimerConfirm").hide();
			$("#commentLogin").hide();
			$("#fbForm_message").hide();
			$("#fbForm_message_count_class").hide();
			$("#commentError_message").hide();
			$("#commentInfo_Fb").hide(); 
			$("#commentsForm_send").hide();
			$("#fbCommentPublishCheckbox").hide();
			$("#commentsForm_send_noFb").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>				/////////////////////////////////////////////////
				function confirm_delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=confirm_delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html(data.message);
					            $('#deleteAccount').fadeIn(800);
					            $('#commentFormSubContainer').slideUp(1000);
					            $('body,html').stop().animate({
					                'scrollTop': $("#deleteAccount").offset().top-200
					            }, 1000)
					        }
					    }     
				 	});
				}</p>
<p>                /////////////////////////////////////////////////
				function cancel_delete_account() {
					$('#deleteAccount').html('');
					$('#deleteAccount').hide();
					$('#commentFormSubContainer').slideDown(1000);
				}</p>
<p>                /////////////////////////////////////////////////
				function delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
					        }
					        else if (data.code == 2) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
					        }
					    }     
				 	});
				}</p>
<p>  			//////////////////////////////////////////////////
  			function commentsForm_update_account_close() {
  			    $("#manageAccount").html('');
  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_update_account() {
  				var fbFormN_firstName = $.trim($("#update_firstName").val());
  				var fbFormN_surname = $.trim($("#update_surname").val());
  				var fbFormN_zip = $.trim($("#update_zip").val());
  				var fbFormN_location = $.trim($("#update_location").val());
  				var fbFormN_telephone = $.trim($("#update_telephone").val());
  				var fbFormN_email = $.trim($("#update_email").val());
  				var fbFormN_email_hidden = $.trim($("#update_email_hidden").val());
  				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
  				var login_email_token = $.trim($("#login_email_token").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				if ($("#update_password").length) {
  				    var fbFormN_password = $.trim($("#update_password").val());
  				}
  				if ($("#update_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#update_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; </p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentErrorUpdate_name").hide(); 	
				$("#commentErrorUpdate_location").hide(); 
				$("#commentErrorUpdate_telephone").hide(); 
				$("#commentErrorUpdate_email").hide(); 
				$("#commentErrorUpdate_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentErrorUpdate_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentErrorUpdate_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentErrorUpdate_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentErrorUpdate_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    if ((fbFormN_password != 'mot de passe' || fbFormN_password_confirm != 'confirmer le mot de passe') && (fbFormN_password != 'password' || fbFormN_password_confirm != 'confirm password')) {
					        $("#commentErrorUpdate_password").show();
					        hasErrors = true;
					    }
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
	                save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
				          dataType: "json",
				          cache: false,
	                	  url: "/community/talkback_ajax.html",
				          async: true,
				          data: "action=talkback_update_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbFormN_email_hidden="+encodeURIComponent(fbFormN_email_hidden)+"&customer_id="+fbForm_customerId+password_params+"&token="+login_email_token+"&story_id="+encodeURIComponent(fbForm_storyId),
				          error: function(){ },
				          success: function(data){
				          	if (data.code == 1) {
							    $("#disclaimerConfirm").hide();
				          	    $("#commentLogin").hide();
				          	    $("#fbForm_message").hide();
				          	    $("#fbForm_message_count_class").hide();
				          	    $("#commentErrorUpdate_message").hide();
				          	    $("#commentInfo_Fb").hide(); 
				          	    $("#commentsForm_send").hide();
				          	    $("#fbCommentPublishCheckbox").hide();
							    $("#commentsForm_send_noFb").hide(); 
			          		    $("#commentInfo_noFb").show();
			          		    $("#manageAccount").toggle();
			          		    $("#commentInfo_noFb").text(data.message);
			          		    setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
			          		} else if (data.code == 2){
								$("#commentLogin").show();
								$("#fbForm_message").show();
								$("#fbForm_message_count_class").show();
								$("#commentErrorUpdate_message").hide();
								$("#commentInfo_Fb").hide(); 
								$("#commentsForm_send").hide();
								$("#fbCommentPublishCheckbox").hide();
								$("#commentsForm_send_noFb").hide(); 
								$("#commentInfo_noFb").hide();
								$("#manageAccount").toggle();
								setMessageBox(data.message, data.addclass);
								if (data.user.customer_id == 53){
									auto_login_email(data);
								}
							} else if (data.code == 3){
								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p> 			// Handler to reset the timer on each notification 
 			var timeoutHandle;
 			function setMessageBox(message, boxclass) {
 			    $("#messageBox").hide();
 			    $("#messageBox").html(message);
 			    $("#messageBox").removeClass("warning error success").addClass(boxclass);
 			    $("#messageBox").fadeIn(1500);</p>
<p> 			    clearTimeout(timeoutHandle);</p>
<p> 			    timeoutHandle = setTimeout(function(){
 			        $("#messageBox").fadeOut(2000, function () {
 			      });
 			    }, 12000);
 			}</p>
<p> 			function forgot_password_send() {
				var email = $.trim($('#password_forgot_email').val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				if(emailRegObj.test(email) == false){      
					$("#commentError_password_forgot_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=reset_password&customer_id="+fbForm_customerId+"&email="+encodeURIComponent(email),  
					    error: function(){ },
					    success: function(data){
						        if (data.code = 0) {
						            setMessageBox(data.message, data.addclass);
						        }
						        else if (data.code = 1) {
						            $('#comment_password_reset_form').toggle('slow');
						            $('#comment_login_form').toggle('slow');
						            setMessageBox(data.message, data.addclass);
						        }
					    }     
				 	});</p>
<p>				}
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_login_noFb() {
				var fbFormN_email = $.trim($("#fbFormN_email_login").val());
				var fbFormN_password = $.trim($("#fbFormN_password_login").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); </p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					//$("#commentsForm_send").attr("disabled", "true");
					//$("#commentsForm_send_noFb").attr("disabled", "true");
					//save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_login_email&email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password),
						error: function(){</p>
<p>						},
						success: function(data){
							//$("#commentLogin").hide();
							//$("#fbForm_message").hide();
							//$("#fbForm_message_count_class").hide();
							//$("#commentError_message").hide();
							//$("#commentInfo_Fb").hide(); 
							//$("#commentsForm_send").hide();
							//$("#fbCommentPublishCheckbox").hide();
							//$("#commentsForm_send_noFb").hide(); </p>
<p>							if (data.code == 2) {
								$('.commentFBlogin').hide();
								$('#comment_login_form').hide();
								$("#change_phonenumber").show();
								setMessageBox(data.message, data.addclass);
							} else {
								$("#change_phonenumber").hide();
								//$("#commentInfo_noFb").show();
								//$("#commentLoggedInEmail").text(data.message);
								setMessageBox(data.message, data.addclass);
								$("#commentLoggedInEmail").show();
								if ('user' in data) {
									auto_login_email(data);
								}
							}
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////</p>
<p>			function comments_modifyForm_phone_change() {</p>
<p>				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change_sms_verify() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbFormN_sms_change_Ver = $.trim($("#fbFormN_sms_change_Ver").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change_sms_verify&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change)+"&code="+encodeURIComponent(fbFormN_sms_change_Ver),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_sms_change_ver").hide();
							$("#fbFormN_sms_change_Ver").hide();
							$("#commentsForm_sms_send_change_veryfy").hide();
							$("#change_phonenumber").hide();</p>
<p>							$('#comment_login_form').show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}
			///////////////////////////////////////////////////
			function commentsForm_sms_verify() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbFormN_smsVer = $.trim($("#fbFormN_smsVer").val());</p>
<p>				var hasErrors = false;</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_sms_verify&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&email="+encodeURIComponent(fbFormN_email)+"&telefone="+encodeURIComponent(fbFormN_telephone)+"&code="+ fbFormN_smsVer +"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId),
						error: function(){
						},
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {
								$("#commentLogin").hide();
								$("#sms_verify").hide();
								$("#fbFormN_smsVer").hide();
								$("#commentsForm_sms_veryfy").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>			//////////////////////////////////////////
			//swissnoise quiva
			function auto_login_quiva(data) {
				console.log("quiva login start");
				var user = {
					"remoteId": data.uid,
					"username": data.user.email,
					"password": data.pcr,
					"email": data.user.email,
					"firstName": data.user.first_name,
					"lastName": data.user.last_name,
					"zipCode": data.user.post_code,
					"locality": data.user.city,
					"phoneNumber": data.user.mobile_number
				};
				whatif.login(user).always(function() {</p>
<p>				});
				console.log("quiva login done");
			}
			//END swissnoise quiva</p>
<p>  			function auto_login_email(data) {
			    $(".commentFBlogin").hide();
			    $(".commentOhnelogin").hide();
			    var html = '';
			    var name = data.user.first_name +' '+ data.user.last_name;
			    html += '<span class="fbUserWelcome">Bienvenue, <span id="fbUserRealName">'+ name +'</span></span><br />';
			    html += '<a href="" id="commentsForm_send_email" onclick="return false;">Soumettre Commentaire</button>';
			    html += '<a href="" class="emailLogoutButton" onclick="return false;">Déconnecter</a><br />';
			    html += '<a href="" id="emailManageAccount" onclick="return false;">Gérer le profil</a>';
			    html += '<input id="login_email_token" name="login_email_token" value="'+ data.token +'" type="hidden">';
			    html += '<input id="login_email_email" name="login_email_email" value="'+ data.user.email +'" type="hidden">';
			    $("#commentLoggedInEmail").html(html);
			    set_logged_in_cookie(data);
			    $("#commentLoggedInEmail").show();</p>
<p>  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_send_noFb() {
  				var fbForm_message = $.trim($("#fbForm_message").val());  
  				fbForm_message = fbForm_message.replace(/&/g, "+");
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
  				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
  				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
  				var fbFormN_location = $.trim($("#fbFormN_location").val());
  				var fbFormN_email = $.trim($("#fbFormN_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				if ($("#fbFormN_password").length) {
  				    var fbFormN_password = $.trim($("#fbFormN_password").val());
  				}
  				if ($("#fbFormN_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; 
				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				// dont check for ZIP, cause of foreign countries 
				//var locReg = !(fbFormN_zip.match(/(*)/)) && !(fbFormN_location.match(/(*)/)) && fbFormN_zip.length > 1 && fbFormN_location.length > 1;   
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;
				var password_params = '';</p>
<p>				$("#commentError_name").hide();
				$("#commentError_location").hide();
				$("#commentError_email").hide();
				$("#commentError_password").hide();
				$("#commentError_message").hide();
				$("#commentError_disclaimer").hide();
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show();
					hasErrors = true;
				}</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show();
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;
				}</p>
<p>				if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show();
					$(".disclaimerText").show();
					hasErrors = true;
				}</p>
<p>				if (!hasErrors) {</p>
<p>					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "html",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=sendComment&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
						error: function(){ },
						success: function(){
							$("#commentLogin").hide();
							$("#fbForm_message").hide();
							$("#fbForm_message_count_class").hide();
							$("#commentError_message").hide();
							$("#commentInfo_Fb").hide();
							$("#commentsForm_send").hide();
							$("#fbCommentPublishCheckbox").hide();
							$("#commentsForm_send_noFb").hide();
							$("#disclaimerConfirm").hide();
							$("#commentInfo_noFb").show();
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_send_email() {
				var fbForm_message = $.trim($("#fbForm_message").val());  
				fbForm_message = fbForm_message.replace(/&/g, "+");
				var fbForm_uri = $.trim($("#fbForm_uri").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_ip = $.trim($("#fbForm_ip").val());
				var login_email_token = $.trim($("#login_email_token").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_email = $.trim($("#login_email_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message </p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; </p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$("#commentError_message").hide(); 	
				$("#commentError_disclaimer").hide(); 	
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>			    if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					commentNotSent = false;</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=send_comment_email&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&customer_id="+fbForm_customerId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID+"&email="+encodeURIComponent(fbFormN_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
						          	if (data.code == 1) {
						          	    $("#commentLogin").hide();
						          	    $("#fbForm_message").hide();
						          	    $("#fbForm_message_count_class").hide();      	
						          	    $("#commentError_message").hide();
									    $("#commentError_name").hide(); 	 	
									    $("#commentError_location").hide(); 	
									    $("#commentError_email").hide();	
									    $("#commentError_disclaimer").hide(); 	
									    $(".disclaimerText").hide();
									    $("#commentInfo_noFb").hide(); 
    									$("#commentsForm_send").hide(); 
									    $("#fbCommentPublishCheckbox").hide();
									    $("#disclaimerConfirm").hide();
									    $("#commentsForm_send_noFb").hide();	
						          	    $("#commentInfo_noFb").show();  
						          	    $("#commentSendLoading").hide();
						          	    $("#commentInfo_Notice").hide();
						          	    $("#manageAccount").hide();
						          	}
						          	else if (data.code == 2) {
						          	    setMessageBox(data.message, data.addclass);
						          	}
					    }     
				 	});		
				}		
  			}  			</p>
<p>			///////////////////////////////////////////////////
			///////////////////////////////////////////////////
  			// some jquery UI functions
			function fbLoginDisplay(loginState) {
				$(document).ready(function(){
					if (loginState == true) {
						$(".notloggedToFacebook").hide();
						$(".loggedToFacebook").show();
						$('#commentsForm_send_noFb').hide();
						$('#commentsForm_send').show();
						$("#fbCommentPublishCheckbox").show();
						$(".recommendCommentFacebook").show();
					}
	else {
						$(".loggedToFacebook").hide(); 
						$(".notloggedToFacebook").show(); 
						$('#commentsForm_send').hide();
						$('#commentsForm_send_noFb').show();
						$("#fbCommentPublishCheckbox").hide();
						$(".recommendCommentFacebook").hide();
						if ($("#commentLoggedInEmail").length) {
							$("#commentLoggedInEmail").show();
						}
				}});
  			}</p>
<p>  			///////////////////////////////////////////////////
  			function fbDomInsert(username, uid, token) {  
						$(document).ready(function(){  
		           $("#fbUserRealName").html(username); 
		           var imgHtml= "<img src='https://graph.facebook.com/me/picture?access_token="+token+"'/>";
		           $("#fbUserProfilePicture").html(imgHtml);</p>
<p>		           $("#fbForm_realName").val(username); 
		           $("#fbForm_userId").val(uid);
		           $("#fbForm_userToken").val(token);
	        	});
				}
				///////////////////////////////////////////////////
				function loginDrop() {
					$(document).ready(function(){
						$('#commentLogin').slideDown();
						$("textarea#fbForm_message").attr("rows", 6);
						$("#commentsForm_send").removeAttr("disabled");
						$("#commentsForm_send_noFb").attr("disabled", "");
						$("#commentsForm_send_email").removeAttr("disabled");
						$("#fbForm_message").val("");
						$('#fbForm_message').removeAttr("onclick");
					});
				}
		///////////////////////////////////////////////////
		function doOnFbConnect() {
			$(".recommendCommentFacebook").show(); // for comments below: display checkbox to choose if recommended comments get published on facebook
		}</p>
<p>		///////////////////////////////////////////////////
		function log(msg){
			if (typeof console === 'undefined') {
				return false;
			} else {
				return true;
			}
		}</p>
<p>		/////////////////////////////////////////////////////////////////////////////////	
        /////////////////////////////////////////////////////////////////////////////////  
        /////////////////////////////////////////////////////////////////////////////////
        // main </p>
<p>        // fb auth 
        var fbAccessToken = ''; 
        var fbUserID = ''; 
        var fbUserName = '';  
        FBcomments.initFb(); 
        var nnFBloggedIn = check_nnCookie();  
   			if (nnFBloggedIn == true) {
   				fbLoginDisplay(true); </p>
<p>   			}
   			else {
   				fbLoginDisplay(false); 
   			}</p>
<p>function inputFocus(thisFor, thisClass) {
    $('#'+ thisFor).focus(function() {
        $('.'+ thisClass).animate({ opacity: "0" }, "fast");
    }).blur(function() {
        if($(this).val() == "") {
            $('.'+ thisClass).animate({ opacity: "1" }, "fast");
        }
    });
}</p>
<p>			//// some more jquery stuff
   			$(document).ready(function(){
				read_logged_in_cookie();</p>
<p>				// hide 'populär auf facebook' widget in sideline
				//$("#fb_activityFeed").hide(); </p>
<p>				$("#fbCommentPublishCheckbox").hide();</p>
<p>$('#fbFormN_password_login').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_post_confirmed').focus().click();
        return false;
    }
});</p>
<p>$('#fbFormN_smsVer').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_sms_veryfy').focus().click();
        return false;
    }
});</p>
<p>// Bind to set the fadeout of form labels when clicked or focused
$('.sbsLabel label').each(function () {
    var thisFor = $(this).attr('for');
    var thisClass = $(this).attr('class');
    inputFocus(thisFor, thisClass);
});</p>
<p>   				// some form display handling 
					$('#disclaimerButtonShow').bind('click', function(){
						$('.disclaimerText').show();
						$('#disclaimerButtonShow').css('display','none');
						$('#disclaimerButtonHide').css('display','inline');
					});
					$('#disclaimerButtonHide').bind('click', function(){
						$('.disclaimerText').hide();
						$('#disclaimerButtonHide').css('display','none');
						$('#disclaimerButtonShow').css('display','inline');
					});</p>
<p>				// display login data on start 
				if ($("#fbUserRealName").html()) {
					if ($("#fbUserRealName").html().length >= 2){ // && $("textarea#fbForm_message").attr("rows") > 2
						$("#fbCommentPublishCheckbox").show();
					}
				}</p>
<p>				// clear textarea 
				$("#fbForm_message").val(''); </p>
<p>				// submit buttons , disable on on reload 
				$("#commentsForm_send").attr("disabled", "true");
				$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>				// set checkboxes
				$('#fbForm_publishOnFB').attr('checked', true); 
				$('.recommendCommentPublishOnFb').attr('checked', true); 
				$('#disclaimerConfirmBtn').attr('checked', false);</p>
<p>				// fixes a tiny bug: if values are prefilled on reload they should not be grey 
				var myFbFormIds = ('fbFormN_firstName', 'fbFormN_surname', 'fbFormN_zip', 'fbFormN_location', 'fbFormN_email', 'fbFormN_password', 'fbFormN_password_confirm');
				for (var ii=0;ii < myFbFormIds.length; ii++) {
				  if ($("#"+myFbFormIds(ii)).length) {
					if (!($("#"+myFbFormIds(ii)).val().match(/(*)/))) {
						$("#"+myFbFormIds(ii)).css('color','#000000'); 
					};
				  }
				}

				$('.comment_signup_form_toggle').live('click', function(){
					$('#comment_signup_form').toggle('slow');
					$('#comment_login_form').toggle('slow');
					return false;
				});

				$('.comment_form_forgot_password').live('click', function(){
				    $('#comment_password_reset_form').toggle('slow');
				    $('#comment_login_form').toggle('slow');
				    return false;
				});

				$('.emailLogoutButton').live('click', function() {
					delete_cookie('comment_login_details_email');
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$(".commentFBlogin").show();
					$(".commentOhnelogin").show();
				});

				$('#show_update_phone').live('click', function() {
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$("#comment_login_form").hide();

					$("#change_phonenumber").show();
					$(".commentOhnelogin").show();
				});

				$('#commentsForm_send_email').live('click', function() {
				    if (commentNotSent) {
				        commentsForm_send_email();
				    }
				});

				$('#emailManageAccount').live('click', function () {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());

				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=login_manage_account&#038;customer_id="+customer_id+"&#038;email="+encodeURIComponent(login_email_email)+"&#038;token="+login_email_token,
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#manageAccount').html(data.message);
					            $('#manageAccount').show();
					        }
					    }     
				 	});
				});

				});
        </script><br /></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</title>
		<link>https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-68/</link>
		
		<dc:creator><![CDATA[Conseil-Chauffage]]></dc:creator>
		<pubDate>Wed, 18 Mar 2020 00:53:22 +0000</pubDate>
				<category><![CDATA[Chauffage au Bois]]></category>
		<category><![CDATA[avec]]></category>
		<category><![CDATA[bois]]></category>
		<category><![CDATA[fines]]></category>
		<category><![CDATA[finir]]></category>
		<category><![CDATA[les]]></category>
		<category><![CDATA[Linvité]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[pour]]></category>
		<category><![CDATA[poussières]]></category>
		<category><![CDATA[Réflexions]]></category>
		<category><![CDATA[Signatures]]></category>
		<guid isPermaLink="false">https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-68/</guid>

					<description><![CDATA[L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse. Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable ... <p class="read-more-container"><a title="L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions" class="read-more button" href="https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-68/#more-1866" aria-label="Plus sur L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions">Lire l'Article</a></p>]]></description>
										<content:encoded><![CDATA[<h1>L&rsquo;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</h1>
<p></p>
<div id="mainContent">
<p>	Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse.</p>
<p>Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable de nos forêts, son potentiel est estimé pour le canton de Vaud à 30% de la chaleur consommée.</p>
<p>Mais des voix s&#39;élèvent régulièrement pour alerter sur les émissions polluantes de poussières fines du bois. Comment est-ce vraiment?</p>
<p>La Commission fédérale de l&#39;hygiène de l&#39;air a très bien résumé le problème dans son rapport &quot;Les poussières fines en Suisse 2013&quot;. Elle explique les très grandes différences existant selon le type de chauffage (ancien ou moderne, automatique ou manuel) et le type de bois de chauffage (bûches, granulés, copeaux de bois). Grâce à l&#39;amélioration des conditions de combustion, il met en évidence la diminution très importante de la quantité de poussières fines émises, mais, en plus et surtout, leurs modifications de composition chimique et donc leur nocivité.</p>
<p>Une combustion optimale ou complète signifie l&#39;absence totale ou presque complète de produits imbrûlés, principalement de la suie et du goudron, composés toxiques classés cancérigènes par l&#39;OMS. Les petites quantités de poussières fines résultant de la combustion complète du bois sont composées de sels minéraux peu ou peu toxiques pour la santé.</p>
<p>Concrètement, la Commission fédérale met en évidence une réduction du poids des poussières fines jusqu&#39;à un facteur 100 avec les usines de granulés modernes par rapport aux anciennes usines de grumes. Si l&#39;on tient toujours compte de l&#39;évolution de la composition chimique des poussières, le gain en termes de protection de la santé atteint un facteur de 1000, voire beaucoup plus. Une véritable révolution silencieuse a eu lieu!</p>
<p>Il convient donc d&#39;encourager, d&#39;exploiter et d&#39;entretenir correctement les installations de chauffage modernes en appliquant les règles pertinentes. C&#39;est l&#39;assurance d&#39;une combustion complète et propre du bois.</p>
<p>Pour un usage domestique, c&#39;est notamment le cas des poêles et chaudières à granulés automatiques, choisissez un combustible très sec assurant une combustion complète. Les granulés sont également idéaux pour les bâtiments ou pour un groupe de bâtiments.</p>
<p>Pour le chauffage central des villages ou des quartiers d&#39;habitation, les chaudières à copeaux de bois sont privilégiées et équipées de filtres performants pour respecter les très strictes limites d&#39;émission fixées par la Confédération (OPair). </p>
<p class="publishedDate">Créé: 02.03.2020, 06:49</p>
</p></div>
<p><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script language="javascript"></p>
<p>		var commentNotSent = true;
		///////////////////////////////////////////////////
		// object FBcomments, can be reused for FB authentification
        var FBcomments = {
        		fbAppId : '251285271592561',
                version: 'v2.0',
        		fbChannel_path : '/facebook_xd_receiver.html', 
        		isLoggedIn : false, </p>
<p>            ///////////////////////////////////////////////////
        		initFb : function() {	
	        		window.fbAsyncInit = function() {
                    FB.init({appId: FBcomments.fbAppId, version: FBcomments.version});
	                if (typeof FB === 'undefined') {
        		 				alert($("#tr_fbConnectError").html()); 
        		 			} 
	            };</p>
<p>                (function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)(0);
                    if (d.getElementById(id)) return;
                    js = d.createElement(s); js.id = id;
                    js.src = "http://connect.facebook.net/fr_FR/sdk.js";
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));
          	},
          	///////////////////////////////////////////////////
          	fbLogin : function() { 
          	 var populateFbData_ = this.populateFbData;
          	 var fbDisplay_ = this.fbDisplay;	
          	 var promptFanBox_ = this.promptFanBox;</p>
<p>        		 FB.init({appId: FBcomments.fbAppId, version: FBcomments.version}); 
        		 if (typeof FB === 'undefined') {
        		 	alert($("#tr_fbConnectError").html()); 
        		 } 	
							  	FB.login(function(response) {
									  if (response.authResponse) {
									     // granted some permissions 
									     this.isLoggedIn = true; 
									  	 populateFbData_(response.authResponse.accessToken, response.authResponse.userID);
									  	 fbDisplay_(); 
									  	 promptFanBox_(response.authResponse.userID);
									  } 
									  else { 
									    // user is not logged
									    this.isLoggedIn = false;
									  	fbDisplay_();  
									  }
									}, {scope:'publish_actions'});
				},
				///////////////////////////////////////////////////
				fbLogout : function() {  
					var fbDisplay_ = this.fbDisplay;
					$.cookie('fbsNN', '', { path: '/', expires: -1 });
					isLoggedIn = false;
					fbDisplay_();
        		},</p>
<p>				///////////////////////////////////////////////////
				populateFbData : function(accessToken, userID) {
					fbAccessToken = accessToken;
					fbUserID = userID;
					FB.api(
					'/me',
					{
						fields: 'name'
					},
					function(response) {
						var fbUserName = '';
						if (response){
							if (response.name){
								fbUserName = response.name;
							}
						}
						// store a fb-independent cookie for future login 
						$.cookie('fbsNN', "access_token="+escape(fbAccessToken)+""+"&uid="+fbUserID+"&realname="+escape(fbUserName), { path: '/', expires: 30 }); 
						fbDomInsert(fbUserName, fbUserID, fbAccessToken);
					}
					);
				},</p>
<p>				///////////////////////////////////////////////////
				promptFanBox : function(userId) {
  				 	FB.api({
					    method: 'fql.query',        
					    query: 'SELECT uid FROM page_fan WHERE uid='+userId+' AND page_id='+10150100771335484 
						},
							function(response) {
								if (typeof response(0) === 'undefined') {
									// user has not liked the page 
									$(document).ready(function(){  
										var txt = $("#tr_fanBoxPromptTitle").html(); 
										tb_show(txt,'/facebook_iframe.html?&height=250&width=645');
									});
								}	
							}
						 );
  				 },
  				 ///////////////////////////////////////////////////
  				 fbDisplay : function() {    
  				 		fbLoginDisplay(this.isLoggedIn );  
  				 		loginDrop();
  				 }
  				 ///////////////////////////////////////////////////
        } // end object</p>
<p>				///////////////////////////////////////////////////
				// cookie based user registration, maybe replaced by user DB in future
  			function fetch_nnCookie() { 
  				 		var nnRegex = /access_token=((^&)+)&uid=((0-9)+)&realname=(.+)/; 
							nnRegex.exec($.cookie('fbsNN')); 		 
							fbAccessToken = unescape(RegExp.$1);      
							fbUserID = RegExp.$2;
							fbUserName = unescape(RegExp.$3);	  
  			}
				///////////////////////////////////////////////////
  			function check_nnCookie() {	          
  				 	if( $.cookie('fbsNN') == null) {   	 
  				 		return false; 
  				 	}
  				 	else { 
							fetch_nnCookie();   
  				 		// check for valid data, delete cookie otherwise 
  				 		if (fbAccessToken != null && fbAccessToken.length > 0 && fbUserID != null && fbUserID.length > 0  && fbUserName != null && fbUserName.length > 0 && fbUserName != 'undefined') {
  				 			fbDomInsert(fbUserName, fbUserID, fbAccessToken); 
  				 			return true;   
  				 		}
  				 		else {
  				 			$.cookie('fbsNN', '', { expires: -1 }); 
  				 			return false;  
  				 		}
  				 	}
  			}</p>
<p>  			///////////////////////////////////////////////////
  			// form handler 
  			function commentsForm_send () {
  				var fbForm_message = $.trim($("#fbForm_message").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());			
  				var fbForm_realName = $.trim($("#fbForm_realName").val());
  				var fbForm_userId = $.trim($("#fbForm_userId").val());
  				var fbForm_userToken = $("#fbForm_userToken").val(); 
  				var fbForm_publishOnFB = $("#fbForm_publishOnFB:checked").val();
  				if (typeof fbForm_publishOnFB === 'undefined') {
  					fbForm_publishOnFB = 0; 
  				}
					var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());	
					var hasErrors = false; 
					var messageReg =  fbForm_message.length > 1; </p>
<p>					if (messageReg == false) {
						$("#commentError_message").show(); 	
						hasErrors = true; 
					}
					if (fbFormN_gotcha.length > 1) {
						hasErrors = true; 
					} </p>
<p>          if (!($('#disclaimerConfirmBtn').is(':checked'))) {
						$("#commentError_disclaimer").show();
						hasErrors = true; 
					}
  				if (!hasErrors) {
						$("#commentsForm_send").attr("disabled", "true");
						$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>						$("#commentSendLoading").show(); 
						$.ajax({ type: "POST",
							dataType: "text",
							cache: false,
							url: "/community/talkback_ajax.html",
							async: true,
							data: "action=sendComment&fbForm_realName="+encodeURIComponent(fbForm_realName)+"&fbForm_userId="+fbForm_userId+"&fbForm_userToken="+encodeURIComponent(fbForm_userToken)+"&fbForm_publishOnFB="+fbForm_publishOnFB+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
							error: function(){
								alert($("#tr_commentSendError").html()); 
							},
							complete: function(reqCode){
								$("#commentLogin").hide();
								$("#fbForm_message").hide();
								$("#fbForm_message_count_class").hide();      	
								$("#commentError_message").hide();
									$("#commentError_name").hide();
									$("#commentError_location").hide();
									$("#commentError_email").hide();
									$("#commentError_disclaimer").hide();
									$(".disclaimerText").hide();
									$("#commentInfo_noFb").hide();
									$("#commentsForm_send").hide();
									$("#fbCommentPublishCheckbox").hide();
									$("#commentsForm_send_noFb").hide();
								$("#commentInfo_Fb").show();
								$("#commentSendLoading").hide();
							}
						});
					} // hasErrors
				}</p>
<p> 			//////////////////////////////////////////////////
 			function delete_cookie(cookie) {
				$.cookie(cookie, null, {path: '/'});
 			}</p>
<p>			//////////////////////////////////////////////////
			function save_form_to_cookie(class_name) {
				var form = new Array();
				$("."+ class_name).each(function(index) {
					form(index) = {};
					form(index)('id') = $(this).attr("id");
					form(index)('val') = $(this).val();
				});
				$.cookie(class_name, JSON.stringify(form), {json:true});
			}</p>
<p> 			//////////////////////////////////////////////////
 			function save_object_to_cookie(data) {
 			    var form = new Array();
 			    form(0)('id') = 'fbFormN_firstName';
 			    form(0)('val') = '';
 			    form(1)('id') = 'fbFormN_surname';
 			    form(1)('val') = '';
 			    form(2)('id') = 'fbFormN_zip';
 			    form(2)('val') = '';
 			    form(3)('id') = 'fbFormN_location';
 			    form(3)('val') = '';
 			    form(4)('id') = 'fbFormN_email';
 			    form(4)('val') = '';
 			    $("."+ class_name).each(function(index) {
 			        form(index) = {};
 			        form(index)('id') = $(this).attr("id");
 			        form(index)('val') = $(this).val();
 			    });
 			    $.cookie(class_name, JSON.stringify(form), {json:true});
 			}</p>
<p>			//////////////////////////////////////////////////
			function set_logged_in_cookie(data) {
			    $.cookie('comment_login_details_email', JSON.stringify(data), {json:true,expires:14,path: '/'});
			}</p>
<p>			//////////////////////////////////////////////////
			function read_logged_in_cookie() {
				var cookie_form_data_json = $.cookie('comment_login_details_email');
				if (cookie_form_data_json != null) {
					var form_data = JSON.parse(cookie_form_data_json);
					if (typeof form_data != 'undefined') {
						if (form_data.user.customer_id == 53){
							if (typeof form_data.pcr != 'undefined' && form_data.pcr != null && form_data.pcr.length > 0){
								if (typeof form_data.uid != 'undefined' && form_data.uid != null && form_data.uid != 0){
									auto_login_email(form_data);
									return;
								}
							}
						} else {
							auto_login_email(form_data);
						}
					}
				}</p>
<p>			}</p>
<p> 			//////////////////////////////////////////////////
 			function read_form_from_cookie(class_name) {
 			    var cookie_form_data_json = $.cookie(class_name);
 			    var form_data = JSON.parse(cookie_form_data_json);
 			    $.each(form_data, function(index, value) {
 			        $("#"+ value.id).val(value.val);
 			    });
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_create_account() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
				var fbFormN_location = $.trim($("#fbFormN_location").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				if ($("#fbFormN_password").length) {
				    var fbFormN_password = $.trim($("#fbFormN_password").val());
				}
				if ($("#fbFormN_password_confirm").length) {
				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
				}</p>
<p>				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
if (fbFormN_telephone.length > 1) {</p>
<p>			var telephoneReg = (fbFormN_telephone.match(/^(ds)*$/));</p>
<p>}
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_telephone").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentError_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentError_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    $("#commentError_password").show();
					    hasErrors = true;
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_create_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId)+password_params,
						error: function(){ },
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {</p>
<p>			$("#disclaimerConfirm").hide();
			$("#commentLogin").hide();
			$("#fbForm_message").hide();
			$("#fbForm_message_count_class").hide();
			$("#commentError_message").hide();
			$("#commentInfo_Fb").hide(); 
			$("#commentsForm_send").hide();
			$("#fbCommentPublishCheckbox").hide();
			$("#commentsForm_send_noFb").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>				/////////////////////////////////////////////////
				function confirm_delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=confirm_delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html(data.message);
					            $('#deleteAccount').fadeIn(800);
					            $('#commentFormSubContainer').slideUp(1000);
					            $('body,html').stop().animate({
					                'scrollTop': $("#deleteAccount").offset().top-200
					            }, 1000)
					        }
					    }     
				 	});
				}</p>
<p>                /////////////////////////////////////////////////
				function cancel_delete_account() {
					$('#deleteAccount').html('');
					$('#deleteAccount').hide();
					$('#commentFormSubContainer').slideDown(1000);
				}</p>
<p>                /////////////////////////////////////////////////
				function delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
					        }
					        else if (data.code == 2) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
					        }
					    }     
				 	});
				}</p>
<p>  			//////////////////////////////////////////////////
  			function commentsForm_update_account_close() {
  			    $("#manageAccount").html('');
  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_update_account() {
  				var fbFormN_firstName = $.trim($("#update_firstName").val());
  				var fbFormN_surname = $.trim($("#update_surname").val());
  				var fbFormN_zip = $.trim($("#update_zip").val());
  				var fbFormN_location = $.trim($("#update_location").val());
  				var fbFormN_telephone = $.trim($("#update_telephone").val());
  				var fbFormN_email = $.trim($("#update_email").val());
  				var fbFormN_email_hidden = $.trim($("#update_email_hidden").val());
  				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
  				var login_email_token = $.trim($("#login_email_token").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				if ($("#update_password").length) {
  				    var fbFormN_password = $.trim($("#update_password").val());
  				}
  				if ($("#update_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#update_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; </p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentErrorUpdate_name").hide(); 	
				$("#commentErrorUpdate_location").hide(); 
				$("#commentErrorUpdate_telephone").hide(); 
				$("#commentErrorUpdate_email").hide(); 
				$("#commentErrorUpdate_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentErrorUpdate_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentErrorUpdate_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentErrorUpdate_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentErrorUpdate_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    if ((fbFormN_password != 'mot de passe' || fbFormN_password_confirm != 'confirmer le mot de passe') && (fbFormN_password != 'password' || fbFormN_password_confirm != 'confirm password')) {
					        $("#commentErrorUpdate_password").show();
					        hasErrors = true;
					    }
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
	                save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
				          dataType: "json",
				          cache: false,
	                	  url: "/community/talkback_ajax.html",
				          async: true,
				          data: "action=talkback_update_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbFormN_email_hidden="+encodeURIComponent(fbFormN_email_hidden)+"&customer_id="+fbForm_customerId+password_params+"&token="+login_email_token+"&story_id="+encodeURIComponent(fbForm_storyId),
				          error: function(){ },
				          success: function(data){
				          	if (data.code == 1) {
							    $("#disclaimerConfirm").hide();
				          	    $("#commentLogin").hide();
				          	    $("#fbForm_message").hide();
				          	    $("#fbForm_message_count_class").hide();
				          	    $("#commentErrorUpdate_message").hide();
				          	    $("#commentInfo_Fb").hide(); 
				          	    $("#commentsForm_send").hide();
				          	    $("#fbCommentPublishCheckbox").hide();
							    $("#commentsForm_send_noFb").hide(); 
			          		    $("#commentInfo_noFb").show();
			          		    $("#manageAccount").toggle();
			          		    $("#commentInfo_noFb").text(data.message);
			          		    setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
			          		} else if (data.code == 2){
								$("#commentLogin").show();
								$("#fbForm_message").show();
								$("#fbForm_message_count_class").show();
								$("#commentErrorUpdate_message").hide();
								$("#commentInfo_Fb").hide(); 
								$("#commentsForm_send").hide();
								$("#fbCommentPublishCheckbox").hide();
								$("#commentsForm_send_noFb").hide(); 
								$("#commentInfo_noFb").hide();
								$("#manageAccount").toggle();
								setMessageBox(data.message, data.addclass);
								if (data.user.customer_id == 53){
									auto_login_email(data);
								}
							} else if (data.code == 3){
								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p> 			// Handler to reset the timer on each notification 
 			var timeoutHandle;
 			function setMessageBox(message, boxclass) {
 			    $("#messageBox").hide();
 			    $("#messageBox").html(message);
 			    $("#messageBox").removeClass("warning error success").addClass(boxclass);
 			    $("#messageBox").fadeIn(1500);</p>
<p> 			    clearTimeout(timeoutHandle);</p>
<p> 			    timeoutHandle = setTimeout(function(){
 			        $("#messageBox").fadeOut(2000, function () {
 			      });
 			    }, 12000);
 			}</p>
<p> 			function forgot_password_send() {
				var email = $.trim($('#password_forgot_email').val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				if(emailRegObj.test(email) == false){      
					$("#commentError_password_forgot_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=reset_password&customer_id="+fbForm_customerId+"&email="+encodeURIComponent(email),  
					    error: function(){ },
					    success: function(data){
						        if (data.code = 0) {
						            setMessageBox(data.message, data.addclass);
						        }
						        else if (data.code = 1) {
						            $('#comment_password_reset_form').toggle('slow');
						            $('#comment_login_form').toggle('slow');
						            setMessageBox(data.message, data.addclass);
						        }
					    }     
				 	});</p>
<p>				}
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_login_noFb() {
				var fbFormN_email = $.trim($("#fbFormN_email_login").val());
				var fbFormN_password = $.trim($("#fbFormN_password_login").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); </p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					//$("#commentsForm_send").attr("disabled", "true");
					//$("#commentsForm_send_noFb").attr("disabled", "true");
					//save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_login_email&email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password),
						error: function(){</p>
<p>						},
						success: function(data){
							//$("#commentLogin").hide();
							//$("#fbForm_message").hide();
							//$("#fbForm_message_count_class").hide();
							//$("#commentError_message").hide();
							//$("#commentInfo_Fb").hide(); 
							//$("#commentsForm_send").hide();
							//$("#fbCommentPublishCheckbox").hide();
							//$("#commentsForm_send_noFb").hide(); </p>
<p>							if (data.code == 2) {
								$('.commentFBlogin').hide();
								$('#comment_login_form').hide();
								$("#change_phonenumber").show();
								setMessageBox(data.message, data.addclass);
							} else {
								$("#change_phonenumber").hide();
								//$("#commentInfo_noFb").show();
								//$("#commentLoggedInEmail").text(data.message);
								setMessageBox(data.message, data.addclass);
								$("#commentLoggedInEmail").show();
								if ('user' in data) {
									auto_login_email(data);
								}
							}
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////</p>
<p>			function comments_modifyForm_phone_change() {</p>
<p>				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change_sms_verify() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbFormN_sms_change_Ver = $.trim($("#fbFormN_sms_change_Ver").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change_sms_verify&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change)+"&code="+encodeURIComponent(fbFormN_sms_change_Ver),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_sms_change_ver").hide();
							$("#fbFormN_sms_change_Ver").hide();
							$("#commentsForm_sms_send_change_veryfy").hide();
							$("#change_phonenumber").hide();</p>
<p>							$('#comment_login_form').show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}
			///////////////////////////////////////////////////
			function commentsForm_sms_verify() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbFormN_smsVer = $.trim($("#fbFormN_smsVer").val());</p>
<p>				var hasErrors = false;</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_sms_verify&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&email="+encodeURIComponent(fbFormN_email)+"&telefone="+encodeURIComponent(fbFormN_telephone)+"&code="+ fbFormN_smsVer +"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId),
						error: function(){
						},
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {
								$("#commentLogin").hide();
								$("#sms_verify").hide();
								$("#fbFormN_smsVer").hide();
								$("#commentsForm_sms_veryfy").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>			//////////////////////////////////////////
			//swissnoise quiva
			function auto_login_quiva(data) {
				console.log("quiva login start");
				var user = {
					"remoteId": data.uid,
					"username": data.user.email,
					"password": data.pcr,
					"email": data.user.email,
					"firstName": data.user.first_name,
					"lastName": data.user.last_name,
					"zipCode": data.user.post_code,
					"locality": data.user.city,
					"phoneNumber": data.user.mobile_number
				};
				whatif.login(user).always(function() {</p>
<p>				});
				console.log("quiva login done");
			}
			//END swissnoise quiva</p>
<p>  			function auto_login_email(data) {
			    $(".commentFBlogin").hide();
			    $(".commentOhnelogin").hide();
			    var html = '';
			    var name = data.user.first_name +' '+ data.user.last_name;
			    html += '<span class="fbUserWelcome">Bienvenue, <span id="fbUserRealName">'+ name +'</span></span><br />';
			    html += '<a href="" id="commentsForm_send_email" onclick="return false;">Soumettre Commentaire</button>';
			    html += '<a href="" class="emailLogoutButton" onclick="return false;">Déconnecter</a><br />';
			    html += '<a href="" id="emailManageAccount" onclick="return false;">Gérer le profil</a>';
			    html += '<input id="login_email_token" name="login_email_token" value="'+ data.token +'" type="hidden">';
			    html += '<input id="login_email_email" name="login_email_email" value="'+ data.user.email +'" type="hidden">';
			    $("#commentLoggedInEmail").html(html);
			    set_logged_in_cookie(data);
			    $("#commentLoggedInEmail").show();</p>
<p>  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_send_noFb() {
  				var fbForm_message = $.trim($("#fbForm_message").val());  
  				fbForm_message = fbForm_message.replace(/&/g, "+");
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
  				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
  				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
  				var fbFormN_location = $.trim($("#fbFormN_location").val());
  				var fbFormN_email = $.trim($("#fbFormN_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				if ($("#fbFormN_password").length) {
  				    var fbFormN_password = $.trim($("#fbFormN_password").val());
  				}
  				if ($("#fbFormN_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; 
				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				// dont check for ZIP, cause of foreign countries 
				//var locReg = !(fbFormN_zip.match(/(*)/)) && !(fbFormN_location.match(/(*)/)) && fbFormN_zip.length > 1 && fbFormN_location.length > 1;   
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;
				var password_params = '';</p>
<p>				$("#commentError_name").hide();
				$("#commentError_location").hide();
				$("#commentError_email").hide();
				$("#commentError_password").hide();
				$("#commentError_message").hide();
				$("#commentError_disclaimer").hide();
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show();
					hasErrors = true;
				}</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show();
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;
				}</p>
<p>				if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show();
					$(".disclaimerText").show();
					hasErrors = true;
				}</p>
<p>				if (!hasErrors) {</p>
<p>					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "html",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=sendComment&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
						error: function(){ },
						success: function(){
							$("#commentLogin").hide();
							$("#fbForm_message").hide();
							$("#fbForm_message_count_class").hide();
							$("#commentError_message").hide();
							$("#commentInfo_Fb").hide();
							$("#commentsForm_send").hide();
							$("#fbCommentPublishCheckbox").hide();
							$("#commentsForm_send_noFb").hide();
							$("#disclaimerConfirm").hide();
							$("#commentInfo_noFb").show();
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_send_email() {
				var fbForm_message = $.trim($("#fbForm_message").val());  
				fbForm_message = fbForm_message.replace(/&/g, "+");
				var fbForm_uri = $.trim($("#fbForm_uri").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_ip = $.trim($("#fbForm_ip").val());
				var login_email_token = $.trim($("#login_email_token").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_email = $.trim($("#login_email_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message </p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; </p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$("#commentError_message").hide(); 	
				$("#commentError_disclaimer").hide(); 	
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>			    if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					commentNotSent = false;</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=send_comment_email&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&customer_id="+fbForm_customerId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID+"&email="+encodeURIComponent(fbFormN_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
						          	if (data.code == 1) {
						          	    $("#commentLogin").hide();
						          	    $("#fbForm_message").hide();
						          	    $("#fbForm_message_count_class").hide();      	
						          	    $("#commentError_message").hide();
									    $("#commentError_name").hide(); 	 	
									    $("#commentError_location").hide(); 	
									    $("#commentError_email").hide();	
									    $("#commentError_disclaimer").hide(); 	
									    $(".disclaimerText").hide();
									    $("#commentInfo_noFb").hide(); 
    									$("#commentsForm_send").hide(); 
									    $("#fbCommentPublishCheckbox").hide();
									    $("#disclaimerConfirm").hide();
									    $("#commentsForm_send_noFb").hide();	
						          	    $("#commentInfo_noFb").show();  
						          	    $("#commentSendLoading").hide();
						          	    $("#commentInfo_Notice").hide();
						          	    $("#manageAccount").hide();
						          	}
						          	else if (data.code == 2) {
						          	    setMessageBox(data.message, data.addclass);
						          	}
					    }     
				 	});		
				}		
  			}  			</p>
<p>			///////////////////////////////////////////////////
			///////////////////////////////////////////////////
  			// some jquery UI functions
			function fbLoginDisplay(loginState) {
				$(document).ready(function(){
					if (loginState == true) {
						$(".notloggedToFacebook").hide();
						$(".loggedToFacebook").show();
						$('#commentsForm_send_noFb').hide();
						$('#commentsForm_send').show();
						$("#fbCommentPublishCheckbox").show();
						$(".recommendCommentFacebook").show();
					}
	else {
						$(".loggedToFacebook").hide(); 
						$(".notloggedToFacebook").show(); 
						$('#commentsForm_send').hide();
						$('#commentsForm_send_noFb').show();
						$("#fbCommentPublishCheckbox").hide();
						$(".recommendCommentFacebook").hide();
						if ($("#commentLoggedInEmail").length) {
							$("#commentLoggedInEmail").show();
						}
				}});
  			}</p>
<p>  			///////////////////////////////////////////////////
  			function fbDomInsert(username, uid, token) {  
						$(document).ready(function(){  
		           $("#fbUserRealName").html(username); 
		           var imgHtml= "<img src='https://graph.facebook.com/me/picture?access_token="+token+"'/>";
		           $("#fbUserProfilePicture").html(imgHtml);</p>
<p>		           $("#fbForm_realName").val(username); 
		           $("#fbForm_userId").val(uid);
		           $("#fbForm_userToken").val(token);
	        	});
				}
				///////////////////////////////////////////////////
				function loginDrop() {
					$(document).ready(function(){
						$('#commentLogin').slideDown();
						$("textarea#fbForm_message").attr("rows", 6);
						$("#commentsForm_send").removeAttr("disabled");
						$("#commentsForm_send_noFb").attr("disabled", "");
						$("#commentsForm_send_email").removeAttr("disabled");
						$("#fbForm_message").val("");
						$('#fbForm_message').removeAttr("onclick");
					});
				}
		///////////////////////////////////////////////////
		function doOnFbConnect() {
			$(".recommendCommentFacebook").show(); // for comments below: display checkbox to choose if recommended comments get published on facebook
		}</p>
<p>		///////////////////////////////////////////////////
		function log(msg){
			if (typeof console === 'undefined') {
				return false;
			} else {
				return true;
			}
		}</p>
<p>		/////////////////////////////////////////////////////////////////////////////////	
        /////////////////////////////////////////////////////////////////////////////////  
        /////////////////////////////////////////////////////////////////////////////////
        // main </p>
<p>        // fb auth 
        var fbAccessToken = ''; 
        var fbUserID = ''; 
        var fbUserName = '';  
        FBcomments.initFb(); 
        var nnFBloggedIn = check_nnCookie();  
   			if (nnFBloggedIn == true) {
   				fbLoginDisplay(true); </p>
<p>   			}
   			else {
   				fbLoginDisplay(false); 
   			}</p>
<p>function inputFocus(thisFor, thisClass) {
    $('#'+ thisFor).focus(function() {
        $('.'+ thisClass).animate({ opacity: "0" }, "fast");
    }).blur(function() {
        if($(this).val() == "") {
            $('.'+ thisClass).animate({ opacity: "1" }, "fast");
        }
    });
}</p>
<p>			//// some more jquery stuff
   			$(document).ready(function(){
				read_logged_in_cookie();</p>
<p>				// hide 'populär auf facebook' widget in sideline
				//$("#fb_activityFeed").hide(); </p>
<p>				$("#fbCommentPublishCheckbox").hide();</p>
<p>$('#fbFormN_password_login').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_post_confirmed').focus().click();
        return false;
    }
});</p>
<p>$('#fbFormN_smsVer').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_sms_veryfy').focus().click();
        return false;
    }
});</p>
<p>// Bind to set the fadeout of form labels when clicked or focused
$('.sbsLabel label').each(function () {
    var thisFor = $(this).attr('for');
    var thisClass = $(this).attr('class');
    inputFocus(thisFor, thisClass);
});</p>
<p>   				// some form display handling 
					$('#disclaimerButtonShow').bind('click', function(){
						$('.disclaimerText').show();
						$('#disclaimerButtonShow').css('display','none');
						$('#disclaimerButtonHide').css('display','inline');
					});
					$('#disclaimerButtonHide').bind('click', function(){
						$('.disclaimerText').hide();
						$('#disclaimerButtonHide').css('display','none');
						$('#disclaimerButtonShow').css('display','inline');
					});</p>
<p>				// display login data on start 
				if ($("#fbUserRealName").html()) {
					if ($("#fbUserRealName").html().length >= 2){ // && $("textarea#fbForm_message").attr("rows") > 2
						$("#fbCommentPublishCheckbox").show();
					}
				}</p>
<p>				// clear textarea 
				$("#fbForm_message").val(''); </p>
<p>				// submit buttons , disable on on reload 
				$("#commentsForm_send").attr("disabled", "true");
				$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>				// set checkboxes
				$('#fbForm_publishOnFB').attr('checked', true); 
				$('.recommendCommentPublishOnFb').attr('checked', true); 
				$('#disclaimerConfirmBtn').attr('checked', false);</p>
<p>				// fixes a tiny bug: if values are prefilled on reload they should not be grey 
				var myFbFormIds = ('fbFormN_firstName', 'fbFormN_surname', 'fbFormN_zip', 'fbFormN_location', 'fbFormN_email', 'fbFormN_password', 'fbFormN_password_confirm');
				for (var ii=0;ii < myFbFormIds.length; ii++) {
				  if ($("#"+myFbFormIds(ii)).length) {
					if (!($("#"+myFbFormIds(ii)).val().match(/(*)/))) {
						$("#"+myFbFormIds(ii)).css('color','#000000'); 
					};
				  }
				}

				$('.comment_signup_form_toggle').live('click', function(){
					$('#comment_signup_form').toggle('slow');
					$('#comment_login_form').toggle('slow');
					return false;
				});

				$('.comment_form_forgot_password').live('click', function(){
				    $('#comment_password_reset_form').toggle('slow');
				    $('#comment_login_form').toggle('slow');
				    return false;
				});

				$('.emailLogoutButton').live('click', function() {
					delete_cookie('comment_login_details_email');
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$(".commentFBlogin").show();
					$(".commentOhnelogin").show();
				});

				$('#show_update_phone').live('click', function() {
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$("#comment_login_form").hide();

					$("#change_phonenumber").show();
					$(".commentOhnelogin").show();
				});

				$('#commentsForm_send_email').live('click', function() {
				    if (commentNotSent) {
				        commentsForm_send_email();
				    }
				});

				$('#emailManageAccount').live('click', function () {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());

				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=login_manage_account&#038;customer_id="+customer_id+"&#038;email="+encodeURIComponent(login_email_email)+"&#038;token="+login_email_token,
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#manageAccount').html(data.message);
					            $('#manageAccount').show();
					        }
					    }     
				 	});
				});

				});
        </script><br /></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</title>
		<link>https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-67/</link>
		
		<dc:creator><![CDATA[Conseil-Chauffage]]></dc:creator>
		<pubDate>Tue, 17 Mar 2020 20:44:16 +0000</pubDate>
				<category><![CDATA[Chauffage au Bois]]></category>
		<category><![CDATA[avec]]></category>
		<category><![CDATA[bois]]></category>
		<category><![CDATA[fines]]></category>
		<category><![CDATA[finir]]></category>
		<category><![CDATA[les]]></category>
		<category><![CDATA[Linvité]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[pour]]></category>
		<category><![CDATA[poussières]]></category>
		<category><![CDATA[Réflexions]]></category>
		<category><![CDATA[Signatures]]></category>
		<guid isPermaLink="false">https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-67/</guid>

					<description><![CDATA[L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse. Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable ... <p class="read-more-container"><a title="L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions" class="read-more button" href="https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-67/#more-1860" aria-label="Plus sur L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions">Lire l'Article</a></p>]]></description>
										<content:encoded><![CDATA[<h1>L&rsquo;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</h1>
<p></p>
<div id="mainContent">
<p>	Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse.</p>
<p>Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable de nos forêts, son potentiel est estimé pour le canton de Vaud à 30% de la chaleur consommée.</p>
<p>Mais des voix s&#39;élèvent régulièrement pour alerter sur les émissions polluantes de poussières fines du bois. Comment est-ce vraiment?</p>
<p>La Commission fédérale de l&#39;hygiène de l&#39;air a très bien résumé le problème dans son rapport &quot;Les poussières fines en Suisse 2013&quot;. Elle explique les très grandes différences existant selon le type de chauffage (ancien ou moderne, automatique ou manuel) et le type de bois de chauffage (bûches, granulés, copeaux de bois). Grâce à l&#39;amélioration des conditions de combustion, il met en évidence la diminution très importante de la quantité de poussières fines émises, mais, en plus et surtout, leurs changements de composition chimique et donc de nocivité.</p>
<p>Une combustion optimale ou complète signifie l&#39;absence totale ou presque complète de produits imbrûlés, principalement de la suie et du goudron, composés toxiques classés cancérigènes par l&#39;OMS. Les petites quantités de poussières fines résultant de la combustion complète du bois sont composées de sels minéraux peu ou peu toxiques pour la santé.</p>
<p>Concrètement, la Commission fédérale met en évidence une réduction du poids des poussières fines jusqu&#39;à un facteur 100 avec les usines de granulés modernes par rapport aux anciennes usines de grumes. Si l&#39;on tient toujours compte de l&#39;évolution de la composition chimique des poussières, le gain en termes de protection de la santé atteint un facteur de 1000, voire beaucoup plus. Une véritable révolution silencieuse a eu lieu!</p>
<p>Il convient donc d&#39;encourager l&#39;utilisation des installations de chauffage modernes, de les faire fonctionner correctement et de les entretenir en appliquant les règles pertinentes. C&#39;est l&#39;assurance d&#39;une combustion complète et propre du bois.</p>
<p>Pour un usage domestique, c&#39;est notamment le cas des poêles et chaudières à granulés automatiques, choisissez un combustible très sec assurant une combustion complète. Les granulés sont également idéaux pour les bâtiments ou pour un groupe de bâtiments.</p>
<p>Pour le chauffage central des villages ou des quartiers d&#39;habitation, les chaudières à copeaux de bois sont privilégiées et équipées de filtres performants pour respecter les très strictes limites d&#39;émission fixées par la Confédération (OPair). </p>
<p class="publishedDate">Créé: 02.03.2020, 06:49</p>
</p></div>
<p><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script language="javascript"></p>
<p>		var commentNotSent = true;
		///////////////////////////////////////////////////
		// object FBcomments, can be reused for FB authentification
        var FBcomments = {
        		fbAppId : '251285271592561',
                version: 'v2.0',
        		fbChannel_path : '/facebook_xd_receiver.html', 
        		isLoggedIn : false, </p>
<p>            ///////////////////////////////////////////////////
        		initFb : function() {	
	        		window.fbAsyncInit = function() {
                    FB.init({appId: FBcomments.fbAppId, version: FBcomments.version});
	                if (typeof FB === 'undefined') {
        		 				alert($("#tr_fbConnectError").html()); 
        		 			} 
	            };</p>
<p>                (function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)(0);
                    if (d.getElementById(id)) return;
                    js = d.createElement(s); js.id = id;
                    js.src = "http://connect.facebook.net/fr_FR/sdk.js";
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));
          	},
          	///////////////////////////////////////////////////
          	fbLogin : function() { 
          	 var populateFbData_ = this.populateFbData;
          	 var fbDisplay_ = this.fbDisplay;	
          	 var promptFanBox_ = this.promptFanBox;</p>
<p>        		 FB.init({appId: FBcomments.fbAppId, version: FBcomments.version}); 
        		 if (typeof FB === 'undefined') {
        		 	alert($("#tr_fbConnectError").html()); 
        		 } 	
							  	FB.login(function(response) {
									  if (response.authResponse) {
									     // granted some permissions 
									     this.isLoggedIn = true; 
									  	 populateFbData_(response.authResponse.accessToken, response.authResponse.userID);
									  	 fbDisplay_(); 
									  	 promptFanBox_(response.authResponse.userID);
									  } 
									  else { 
									    // user is not logged
									    this.isLoggedIn = false;
									  	fbDisplay_();  
									  }
									}, {scope:'publish_actions'});
				},
				///////////////////////////////////////////////////
				fbLogout : function() {  
					var fbDisplay_ = this.fbDisplay;
					$.cookie('fbsNN', '', { path: '/', expires: -1 });
					isLoggedIn = false;
					fbDisplay_();
        		},</p>
<p>				///////////////////////////////////////////////////
				populateFbData : function(accessToken, userID) {
					fbAccessToken = accessToken;
					fbUserID = userID;
					FB.api(
					'/me',
					{
						fields: 'name'
					},
					function(response) {
						var fbUserName = '';
						if (response){
							if (response.name){
								fbUserName = response.name;
							}
						}
						// store a fb-independent cookie for future login 
						$.cookie('fbsNN', "access_token="+escape(fbAccessToken)+""+"&uid="+fbUserID+"&realname="+escape(fbUserName), { path: '/', expires: 30 }); 
						fbDomInsert(fbUserName, fbUserID, fbAccessToken);
					}
					);
				},</p>
<p>				///////////////////////////////////////////////////
				promptFanBox : function(userId) {
  				 	FB.api({
					    method: 'fql.query',        
					    query: 'SELECT uid FROM page_fan WHERE uid='+userId+' AND page_id='+10150100771335484 
						},
							function(response) {
								if (typeof response(0) === 'undefined') {
									// user has not liked the page 
									$(document).ready(function(){  
										var txt = $("#tr_fanBoxPromptTitle").html(); 
										tb_show(txt,'/facebook_iframe.html?&height=250&width=645');
									});
								}	
							}
						 );
  				 },
  				 ///////////////////////////////////////////////////
  				 fbDisplay : function() {    
  				 		fbLoginDisplay(this.isLoggedIn );  
  				 		loginDrop();
  				 }
  				 ///////////////////////////////////////////////////
        } // end object</p>
<p>				///////////////////////////////////////////////////
				// cookie based user registration, maybe replaced by user DB in future
  			function fetch_nnCookie() { 
  				 		var nnRegex = /access_token=((^&)+)&uid=((0-9)+)&realname=(.+)/; 
							nnRegex.exec($.cookie('fbsNN')); 		 
							fbAccessToken = unescape(RegExp.$1);      
							fbUserID = RegExp.$2;
							fbUserName = unescape(RegExp.$3);	  
  			}
				///////////////////////////////////////////////////
  			function check_nnCookie() {	          
  				 	if( $.cookie('fbsNN') == null) {   	 
  				 		return false; 
  				 	}
  				 	else { 
							fetch_nnCookie();   
  				 		// check for valid data, delete cookie otherwise 
  				 		if (fbAccessToken != null && fbAccessToken.length > 0 && fbUserID != null && fbUserID.length > 0  && fbUserName != null && fbUserName.length > 0 && fbUserName != 'undefined') {
  				 			fbDomInsert(fbUserName, fbUserID, fbAccessToken); 
  				 			return true;   
  				 		}
  				 		else {
  				 			$.cookie('fbsNN', '', { expires: -1 }); 
  				 			return false;  
  				 		}
  				 	}
  			}</p>
<p>  			///////////////////////////////////////////////////
  			// form handler 
  			function commentsForm_send () {
  				var fbForm_message = $.trim($("#fbForm_message").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());			
  				var fbForm_realName = $.trim($("#fbForm_realName").val());
  				var fbForm_userId = $.trim($("#fbForm_userId").val());
  				var fbForm_userToken = $("#fbForm_userToken").val(); 
  				var fbForm_publishOnFB = $("#fbForm_publishOnFB:checked").val();
  				if (typeof fbForm_publishOnFB === 'undefined') {
  					fbForm_publishOnFB = 0; 
  				}
					var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());	
					var hasErrors = false; 
					var messageReg =  fbForm_message.length > 1; </p>
<p>					if (messageReg == false) {
						$("#commentError_message").show(); 	
						hasErrors = true; 
					}
					if (fbFormN_gotcha.length > 1) {
						hasErrors = true; 
					} </p>
<p>          if (!($('#disclaimerConfirmBtn').is(':checked'))) {
						$("#commentError_disclaimer").show();
						hasErrors = true; 
					}
  				if (!hasErrors) {
						$("#commentsForm_send").attr("disabled", "true");
						$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>						$("#commentSendLoading").show(); 
						$.ajax({ type: "POST",
							dataType: "text",
							cache: false,
							url: "/community/talkback_ajax.html",
							async: true,
							data: "action=sendComment&fbForm_realName="+encodeURIComponent(fbForm_realName)+"&fbForm_userId="+fbForm_userId+"&fbForm_userToken="+encodeURIComponent(fbForm_userToken)+"&fbForm_publishOnFB="+fbForm_publishOnFB+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
							error: function(){
								alert($("#tr_commentSendError").html()); 
							},
							complete: function(reqCode){
								$("#commentLogin").hide();
								$("#fbForm_message").hide();
								$("#fbForm_message_count_class").hide();      	
								$("#commentError_message").hide();
									$("#commentError_name").hide();
									$("#commentError_location").hide();
									$("#commentError_email").hide();
									$("#commentError_disclaimer").hide();
									$(".disclaimerText").hide();
									$("#commentInfo_noFb").hide();
									$("#commentsForm_send").hide();
									$("#fbCommentPublishCheckbox").hide();
									$("#commentsForm_send_noFb").hide();
								$("#commentInfo_Fb").show();
								$("#commentSendLoading").hide();
							}
						});
					} // hasErrors
				}</p>
<p> 			//////////////////////////////////////////////////
 			function delete_cookie(cookie) {
				$.cookie(cookie, null, {path: '/'});
 			}</p>
<p>			//////////////////////////////////////////////////
			function save_form_to_cookie(class_name) {
				var form = new Array();
				$("."+ class_name).each(function(index) {
					form(index) = {};
					form(index)('id') = $(this).attr("id");
					form(index)('val') = $(this).val();
				});
				$.cookie(class_name, JSON.stringify(form), {json:true});
			}</p>
<p> 			//////////////////////////////////////////////////
 			function save_object_to_cookie(data) {
 			    var form = new Array();
 			    form(0)('id') = 'fbFormN_firstName';
 			    form(0)('val') = '';
 			    form(1)('id') = 'fbFormN_surname';
 			    form(1)('val') = '';
 			    form(2)('id') = 'fbFormN_zip';
 			    form(2)('val') = '';
 			    form(3)('id') = 'fbFormN_location';
 			    form(3)('val') = '';
 			    form(4)('id') = 'fbFormN_email';
 			    form(4)('val') = '';
 			    $("."+ class_name).each(function(index) {
 			        form(index) = {};
 			        form(index)('id') = $(this).attr("id");
 			        form(index)('val') = $(this).val();
 			    });
 			    $.cookie(class_name, JSON.stringify(form), {json:true});
 			}</p>
<p>			//////////////////////////////////////////////////
			function set_logged_in_cookie(data) {
			    $.cookie('comment_login_details_email', JSON.stringify(data), {json:true,expires:14,path: '/'});
			}</p>
<p>			//////////////////////////////////////////////////
			function read_logged_in_cookie() {
				var cookie_form_data_json = $.cookie('comment_login_details_email');
				if (cookie_form_data_json != null) {
					var form_data = JSON.parse(cookie_form_data_json);
					if (typeof form_data != 'undefined') {
						if (form_data.user.customer_id == 53){
							if (typeof form_data.pcr != 'undefined' && form_data.pcr != null && form_data.pcr.length > 0){
								if (typeof form_data.uid != 'undefined' && form_data.uid != null && form_data.uid != 0){
									auto_login_email(form_data);
									return;
								}
							}
						} else {
							auto_login_email(form_data);
						}
					}
				}</p>
<p>			}</p>
<p> 			//////////////////////////////////////////////////
 			function read_form_from_cookie(class_name) {
 			    var cookie_form_data_json = $.cookie(class_name);
 			    var form_data = JSON.parse(cookie_form_data_json);
 			    $.each(form_data, function(index, value) {
 			        $("#"+ value.id).val(value.val);
 			    });
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_create_account() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
				var fbFormN_location = $.trim($("#fbFormN_location").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				if ($("#fbFormN_password").length) {
				    var fbFormN_password = $.trim($("#fbFormN_password").val());
				}
				if ($("#fbFormN_password_confirm").length) {
				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
				}</p>
<p>				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
if (fbFormN_telephone.length > 1) {</p>
<p>			var telephoneReg = (fbFormN_telephone.match(/^(ds)*$/));</p>
<p>}
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_telephone").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentError_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentError_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    $("#commentError_password").show();
					    hasErrors = true;
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_create_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId)+password_params,
						error: function(){ },
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {</p>
<p>			$("#disclaimerConfirm").hide();
			$("#commentLogin").hide();
			$("#fbForm_message").hide();
			$("#fbForm_message_count_class").hide();
			$("#commentError_message").hide();
			$("#commentInfo_Fb").hide(); 
			$("#commentsForm_send").hide();
			$("#fbCommentPublishCheckbox").hide();
			$("#commentsForm_send_noFb").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>				/////////////////////////////////////////////////
				function confirm_delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=confirm_delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html(data.message);
					            $('#deleteAccount').fadeIn(800);
					            $('#commentFormSubContainer').slideUp(1000);
					            $('body,html').stop().animate({
					                'scrollTop': $("#deleteAccount").offset().top-200
					            }, 1000)
					        }
					    }     
				 	});
				}</p>
<p>                /////////////////////////////////////////////////
				function cancel_delete_account() {
					$('#deleteAccount').html('');
					$('#deleteAccount').hide();
					$('#commentFormSubContainer').slideDown(1000);
				}</p>
<p>                /////////////////////////////////////////////////
				function delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
					        }
					        else if (data.code == 2) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
					        }
					    }     
				 	});
				}</p>
<p>  			//////////////////////////////////////////////////
  			function commentsForm_update_account_close() {
  			    $("#manageAccount").html('');
  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_update_account() {
  				var fbFormN_firstName = $.trim($("#update_firstName").val());
  				var fbFormN_surname = $.trim($("#update_surname").val());
  				var fbFormN_zip = $.trim($("#update_zip").val());
  				var fbFormN_location = $.trim($("#update_location").val());
  				var fbFormN_telephone = $.trim($("#update_telephone").val());
  				var fbFormN_email = $.trim($("#update_email").val());
  				var fbFormN_email_hidden = $.trim($("#update_email_hidden").val());
  				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
  				var login_email_token = $.trim($("#login_email_token").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				if ($("#update_password").length) {
  				    var fbFormN_password = $.trim($("#update_password").val());
  				}
  				if ($("#update_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#update_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; </p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentErrorUpdate_name").hide(); 	
				$("#commentErrorUpdate_location").hide(); 
				$("#commentErrorUpdate_telephone").hide(); 
				$("#commentErrorUpdate_email").hide(); 
				$("#commentErrorUpdate_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentErrorUpdate_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentErrorUpdate_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentErrorUpdate_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentErrorUpdate_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    if ((fbFormN_password != 'mot de passe' || fbFormN_password_confirm != 'confirmer le mot de passe') && (fbFormN_password != 'password' || fbFormN_password_confirm != 'confirm password')) {
					        $("#commentErrorUpdate_password").show();
					        hasErrors = true;
					    }
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
	                save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
				          dataType: "json",
				          cache: false,
	                	  url: "/community/talkback_ajax.html",
				          async: true,
				          data: "action=talkback_update_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbFormN_email_hidden="+encodeURIComponent(fbFormN_email_hidden)+"&customer_id="+fbForm_customerId+password_params+"&token="+login_email_token+"&story_id="+encodeURIComponent(fbForm_storyId),
				          error: function(){ },
				          success: function(data){
				          	if (data.code == 1) {
							    $("#disclaimerConfirm").hide();
				          	    $("#commentLogin").hide();
				          	    $("#fbForm_message").hide();
				          	    $("#fbForm_message_count_class").hide();
				          	    $("#commentErrorUpdate_message").hide();
				          	    $("#commentInfo_Fb").hide(); 
				          	    $("#commentsForm_send").hide();
				          	    $("#fbCommentPublishCheckbox").hide();
							    $("#commentsForm_send_noFb").hide(); 
			          		    $("#commentInfo_noFb").show();
			          		    $("#manageAccount").toggle();
			          		    $("#commentInfo_noFb").text(data.message);
			          		    setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
			          		} else if (data.code == 2){
								$("#commentLogin").show();
								$("#fbForm_message").show();
								$("#fbForm_message_count_class").show();
								$("#commentErrorUpdate_message").hide();
								$("#commentInfo_Fb").hide(); 
								$("#commentsForm_send").hide();
								$("#fbCommentPublishCheckbox").hide();
								$("#commentsForm_send_noFb").hide(); 
								$("#commentInfo_noFb").hide();
								$("#manageAccount").toggle();
								setMessageBox(data.message, data.addclass);
								if (data.user.customer_id == 53){
									auto_login_email(data);
								}
							} else if (data.code == 3){
								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p> 			// Handler to reset the timer on each notification 
 			var timeoutHandle;
 			function setMessageBox(message, boxclass) {
 			    $("#messageBox").hide();
 			    $("#messageBox").html(message);
 			    $("#messageBox").removeClass("warning error success").addClass(boxclass);
 			    $("#messageBox").fadeIn(1500);</p>
<p> 			    clearTimeout(timeoutHandle);</p>
<p> 			    timeoutHandle = setTimeout(function(){
 			        $("#messageBox").fadeOut(2000, function () {
 			      });
 			    }, 12000);
 			}</p>
<p> 			function forgot_password_send() {
				var email = $.trim($('#password_forgot_email').val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				if(emailRegObj.test(email) == false){      
					$("#commentError_password_forgot_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=reset_password&customer_id="+fbForm_customerId+"&email="+encodeURIComponent(email),  
					    error: function(){ },
					    success: function(data){
						        if (data.code = 0) {
						            setMessageBox(data.message, data.addclass);
						        }
						        else if (data.code = 1) {
						            $('#comment_password_reset_form').toggle('slow');
						            $('#comment_login_form').toggle('slow');
						            setMessageBox(data.message, data.addclass);
						        }
					    }     
				 	});</p>
<p>				}
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_login_noFb() {
				var fbFormN_email = $.trim($("#fbFormN_email_login").val());
				var fbFormN_password = $.trim($("#fbFormN_password_login").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); </p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					//$("#commentsForm_send").attr("disabled", "true");
					//$("#commentsForm_send_noFb").attr("disabled", "true");
					//save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_login_email&email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password),
						error: function(){</p>
<p>						},
						success: function(data){
							//$("#commentLogin").hide();
							//$("#fbForm_message").hide();
							//$("#fbForm_message_count_class").hide();
							//$("#commentError_message").hide();
							//$("#commentInfo_Fb").hide(); 
							//$("#commentsForm_send").hide();
							//$("#fbCommentPublishCheckbox").hide();
							//$("#commentsForm_send_noFb").hide(); </p>
<p>							if (data.code == 2) {
								$('.commentFBlogin').hide();
								$('#comment_login_form').hide();
								$("#change_phonenumber").show();
								setMessageBox(data.message, data.addclass);
							} else {
								$("#change_phonenumber").hide();
								//$("#commentInfo_noFb").show();
								//$("#commentLoggedInEmail").text(data.message);
								setMessageBox(data.message, data.addclass);
								$("#commentLoggedInEmail").show();
								if ('user' in data) {
									auto_login_email(data);
								}
							}
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////</p>
<p>			function comments_modifyForm_phone_change() {</p>
<p>				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change_sms_verify() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbFormN_sms_change_Ver = $.trim($("#fbFormN_sms_change_Ver").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change_sms_verify&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change)+"&code="+encodeURIComponent(fbFormN_sms_change_Ver),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_sms_change_ver").hide();
							$("#fbFormN_sms_change_Ver").hide();
							$("#commentsForm_sms_send_change_veryfy").hide();
							$("#change_phonenumber").hide();</p>
<p>							$('#comment_login_form').show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}
			///////////////////////////////////////////////////
			function commentsForm_sms_verify() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbFormN_smsVer = $.trim($("#fbFormN_smsVer").val());</p>
<p>				var hasErrors = false;</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_sms_verify&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&email="+encodeURIComponent(fbFormN_email)+"&telefone="+encodeURIComponent(fbFormN_telephone)+"&code="+ fbFormN_smsVer +"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId),
						error: function(){
						},
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {
								$("#commentLogin").hide();
								$("#sms_verify").hide();
								$("#fbFormN_smsVer").hide();
								$("#commentsForm_sms_veryfy").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>			//////////////////////////////////////////
			//swissnoise quiva
			function auto_login_quiva(data) {
				console.log("quiva login start");
				var user = {
					"remoteId": data.uid,
					"username": data.user.email,
					"password": data.pcr,
					"email": data.user.email,
					"firstName": data.user.first_name,
					"lastName": data.user.last_name,
					"zipCode": data.user.post_code,
					"locality": data.user.city,
					"phoneNumber": data.user.mobile_number
				};
				whatif.login(user).always(function() {</p>
<p>				});
				console.log("quiva login done");
			}
			//END swissnoise quiva</p>
<p>  			function auto_login_email(data) {
			    $(".commentFBlogin").hide();
			    $(".commentOhnelogin").hide();
			    var html = '';
			    var name = data.user.first_name +' '+ data.user.last_name;
			    html += '<span class="fbUserWelcome">Bienvenue, <span id="fbUserRealName">'+ name +'</span></span><br />';
			    html += '<a href="" id="commentsForm_send_email" onclick="return false;">Soumettre Commentaire</button>';
			    html += '<a href="" class="emailLogoutButton" onclick="return false;">Déconnecter</a><br />';
			    html += '<a href="" id="emailManageAccount" onclick="return false;">Gérer le profil</a>';
			    html += '<input id="login_email_token" name="login_email_token" value="'+ data.token +'" type="hidden">';
			    html += '<input id="login_email_email" name="login_email_email" value="'+ data.user.email +'" type="hidden">';
			    $("#commentLoggedInEmail").html(html);
			    set_logged_in_cookie(data);
			    $("#commentLoggedInEmail").show();</p>
<p>  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_send_noFb() {
  				var fbForm_message = $.trim($("#fbForm_message").val());  
  				fbForm_message = fbForm_message.replace(/&/g, "+");
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
  				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
  				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
  				var fbFormN_location = $.trim($("#fbFormN_location").val());
  				var fbFormN_email = $.trim($("#fbFormN_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				if ($("#fbFormN_password").length) {
  				    var fbFormN_password = $.trim($("#fbFormN_password").val());
  				}
  				if ($("#fbFormN_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; 
				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				// dont check for ZIP, cause of foreign countries 
				//var locReg = !(fbFormN_zip.match(/(*)/)) && !(fbFormN_location.match(/(*)/)) && fbFormN_zip.length > 1 && fbFormN_location.length > 1;   
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;
				var password_params = '';</p>
<p>				$("#commentError_name").hide();
				$("#commentError_location").hide();
				$("#commentError_email").hide();
				$("#commentError_password").hide();
				$("#commentError_message").hide();
				$("#commentError_disclaimer").hide();
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show();
					hasErrors = true;
				}</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show();
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;
				}</p>
<p>				if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show();
					$(".disclaimerText").show();
					hasErrors = true;
				}</p>
<p>				if (!hasErrors) {</p>
<p>					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "html",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=sendComment&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
						error: function(){ },
						success: function(){
							$("#commentLogin").hide();
							$("#fbForm_message").hide();
							$("#fbForm_message_count_class").hide();
							$("#commentError_message").hide();
							$("#commentInfo_Fb").hide();
							$("#commentsForm_send").hide();
							$("#fbCommentPublishCheckbox").hide();
							$("#commentsForm_send_noFb").hide();
							$("#disclaimerConfirm").hide();
							$("#commentInfo_noFb").show();
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_send_email() {
				var fbForm_message = $.trim($("#fbForm_message").val());  
				fbForm_message = fbForm_message.replace(/&/g, "+");
				var fbForm_uri = $.trim($("#fbForm_uri").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_ip = $.trim($("#fbForm_ip").val());
				var login_email_token = $.trim($("#login_email_token").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_email = $.trim($("#login_email_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message </p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; </p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$("#commentError_message").hide(); 	
				$("#commentError_disclaimer").hide(); 	
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>			    if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					commentNotSent = false;</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=send_comment_email&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&customer_id="+fbForm_customerId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID+"&email="+encodeURIComponent(fbFormN_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
						          	if (data.code == 1) {
						          	    $("#commentLogin").hide();
						          	    $("#fbForm_message").hide();
						          	    $("#fbForm_message_count_class").hide();      	
						          	    $("#commentError_message").hide();
									    $("#commentError_name").hide(); 	 	
									    $("#commentError_location").hide(); 	
									    $("#commentError_email").hide();	
									    $("#commentError_disclaimer").hide(); 	
									    $(".disclaimerText").hide();
									    $("#commentInfo_noFb").hide(); 
    									$("#commentsForm_send").hide(); 
									    $("#fbCommentPublishCheckbox").hide();
									    $("#disclaimerConfirm").hide();
									    $("#commentsForm_send_noFb").hide();	
						          	    $("#commentInfo_noFb").show();  
						          	    $("#commentSendLoading").hide();
						          	    $("#commentInfo_Notice").hide();
						          	    $("#manageAccount").hide();
						          	}
						          	else if (data.code == 2) {
						          	    setMessageBox(data.message, data.addclass);
						          	}
					    }     
				 	});		
				}		
  			}  			</p>
<p>			///////////////////////////////////////////////////
			///////////////////////////////////////////////////
  			// some jquery UI functions
			function fbLoginDisplay(loginState) {
				$(document).ready(function(){
					if (loginState == true) {
						$(".notloggedToFacebook").hide();
						$(".loggedToFacebook").show();
						$('#commentsForm_send_noFb').hide();
						$('#commentsForm_send').show();
						$("#fbCommentPublishCheckbox").show();
						$(".recommendCommentFacebook").show();
					}
	else {
						$(".loggedToFacebook").hide(); 
						$(".notloggedToFacebook").show(); 
						$('#commentsForm_send').hide();
						$('#commentsForm_send_noFb').show();
						$("#fbCommentPublishCheckbox").hide();
						$(".recommendCommentFacebook").hide();
						if ($("#commentLoggedInEmail").length) {
							$("#commentLoggedInEmail").show();
						}
				}});
  			}</p>
<p>  			///////////////////////////////////////////////////
  			function fbDomInsert(username, uid, token) {  
						$(document).ready(function(){  
		           $("#fbUserRealName").html(username); 
		           var imgHtml= "<img src='https://graph.facebook.com/me/picture?access_token="+token+"'/>";
		           $("#fbUserProfilePicture").html(imgHtml);</p>
<p>		           $("#fbForm_realName").val(username); 
		           $("#fbForm_userId").val(uid);
		           $("#fbForm_userToken").val(token);
	        	});
				}
				///////////////////////////////////////////////////
				function loginDrop() {
					$(document).ready(function(){
						$('#commentLogin').slideDown();
						$("textarea#fbForm_message").attr("rows", 6);
						$("#commentsForm_send").removeAttr("disabled");
						$("#commentsForm_send_noFb").attr("disabled", "");
						$("#commentsForm_send_email").removeAttr("disabled");
						$("#fbForm_message").val("");
						$('#fbForm_message').removeAttr("onclick");
					});
				}
		///////////////////////////////////////////////////
		function doOnFbConnect() {
			$(".recommendCommentFacebook").show(); // for comments below: display checkbox to choose if recommended comments get published on facebook
		}</p>
<p>		///////////////////////////////////////////////////
		function log(msg){
			if (typeof console === 'undefined') {
				return false;
			} else {
				return true;
			}
		}</p>
<p>		/////////////////////////////////////////////////////////////////////////////////	
        /////////////////////////////////////////////////////////////////////////////////  
        /////////////////////////////////////////////////////////////////////////////////
        // main </p>
<p>        // fb auth 
        var fbAccessToken = ''; 
        var fbUserID = ''; 
        var fbUserName = '';  
        FBcomments.initFb(); 
        var nnFBloggedIn = check_nnCookie();  
   			if (nnFBloggedIn == true) {
   				fbLoginDisplay(true); </p>
<p>   			}
   			else {
   				fbLoginDisplay(false); 
   			}</p>
<p>function inputFocus(thisFor, thisClass) {
    $('#'+ thisFor).focus(function() {
        $('.'+ thisClass).animate({ opacity: "0" }, "fast");
    }).blur(function() {
        if($(this).val() == "") {
            $('.'+ thisClass).animate({ opacity: "1" }, "fast");
        }
    });
}</p>
<p>			//// some more jquery stuff
   			$(document).ready(function(){
				read_logged_in_cookie();</p>
<p>				// hide 'populär auf facebook' widget in sideline
				//$("#fb_activityFeed").hide(); </p>
<p>				$("#fbCommentPublishCheckbox").hide();</p>
<p>$('#fbFormN_password_login').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_post_confirmed').focus().click();
        return false;
    }
});</p>
<p>$('#fbFormN_smsVer').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_sms_veryfy').focus().click();
        return false;
    }
});</p>
<p>// Bind to set the fadeout of form labels when clicked or focused
$('.sbsLabel label').each(function () {
    var thisFor = $(this).attr('for');
    var thisClass = $(this).attr('class');
    inputFocus(thisFor, thisClass);
});</p>
<p>   				// some form display handling 
					$('#disclaimerButtonShow').bind('click', function(){
						$('.disclaimerText').show();
						$('#disclaimerButtonShow').css('display','none');
						$('#disclaimerButtonHide').css('display','inline');
					});
					$('#disclaimerButtonHide').bind('click', function(){
						$('.disclaimerText').hide();
						$('#disclaimerButtonHide').css('display','none');
						$('#disclaimerButtonShow').css('display','inline');
					});</p>
<p>				// display login data on start 
				if ($("#fbUserRealName").html()) {
					if ($("#fbUserRealName").html().length >= 2){ // && $("textarea#fbForm_message").attr("rows") > 2
						$("#fbCommentPublishCheckbox").show();
					}
				}</p>
<p>				// clear textarea 
				$("#fbForm_message").val(''); </p>
<p>				// submit buttons , disable on on reload 
				$("#commentsForm_send").attr("disabled", "true");
				$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>				// set checkboxes
				$('#fbForm_publishOnFB').attr('checked', true); 
				$('.recommendCommentPublishOnFb').attr('checked', true); 
				$('#disclaimerConfirmBtn').attr('checked', false);</p>
<p>				// fixes a tiny bug: if values are prefilled on reload they should not be grey 
				var myFbFormIds = ('fbFormN_firstName', 'fbFormN_surname', 'fbFormN_zip', 'fbFormN_location', 'fbFormN_email', 'fbFormN_password', 'fbFormN_password_confirm');
				for (var ii=0;ii < myFbFormIds.length; ii++) {
				  if ($("#"+myFbFormIds(ii)).length) {
					if (!($("#"+myFbFormIds(ii)).val().match(/(*)/))) {
						$("#"+myFbFormIds(ii)).css('color','#000000'); 
					};
				  }
				}

				$('.comment_signup_form_toggle').live('click', function(){
					$('#comment_signup_form').toggle('slow');
					$('#comment_login_form').toggle('slow');
					return false;
				});

				$('.comment_form_forgot_password').live('click', function(){
				    $('#comment_password_reset_form').toggle('slow');
				    $('#comment_login_form').toggle('slow');
				    return false;
				});

				$('.emailLogoutButton').live('click', function() {
					delete_cookie('comment_login_details_email');
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$(".commentFBlogin").show();
					$(".commentOhnelogin").show();
				});

				$('#show_update_phone').live('click', function() {
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$("#comment_login_form").hide();

					$("#change_phonenumber").show();
					$(".commentOhnelogin").show();
				});

				$('#commentsForm_send_email').live('click', function() {
				    if (commentNotSent) {
				        commentsForm_send_email();
				    }
				});

				$('#emailManageAccount').live('click', function () {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());

				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=login_manage_account&#038;customer_id="+customer_id+"&#038;email="+encodeURIComponent(login_email_email)+"&#038;token="+login_email_token,
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#manageAccount').html(data.message);
					            $('#manageAccount').show();
					        }
					    }     
				 	});
				});

				});
        </script><br /></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</title>
		<link>https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-66/</link>
		
		<dc:creator><![CDATA[Conseil-Chauffage]]></dc:creator>
		<pubDate>Tue, 17 Mar 2020 16:28:32 +0000</pubDate>
				<category><![CDATA[Chauffage au Bois]]></category>
		<category><![CDATA[avec]]></category>
		<category><![CDATA[bois]]></category>
		<category><![CDATA[fines]]></category>
		<category><![CDATA[finir]]></category>
		<category><![CDATA[les]]></category>
		<category><![CDATA[Linvité]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[pour]]></category>
		<category><![CDATA[poussières]]></category>
		<category><![CDATA[Réflexions]]></category>
		<category><![CDATA[Signatures]]></category>
		<guid isPermaLink="false">https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-66/</guid>

					<description><![CDATA[L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse. Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable ... <p class="read-more-container"><a title="L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions" class="read-more button" href="https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-66/#more-1854" aria-label="Plus sur L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions">Lire l'Article</a></p>]]></description>
										<content:encoded><![CDATA[<h1>L&rsquo;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</h1>
<p></p>
<div id="mainContent">
<p>	Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse.</p>
<p>Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable de nos forêts, son potentiel est estimé pour le canton de Vaud à 30% de la chaleur consommée.</p>
<p>Mais des voix s&#39;élèvent régulièrement pour alerter sur les émissions polluantes de poussières fines du bois. Comment est-ce vraiment?</p>
<p>La Commission fédérale de l&#39;hygiène de l&#39;air a très bien résumé le problème dans son rapport &quot;Les poussières fines en Suisse 2013&quot;. Elle explique les très grandes différences existant selon le type de chauffage (ancien ou moderne, automatique ou manuel) et le type de bois de chauffage (bûches, granulés, copeaux de bois). Grâce à l&#39;amélioration des conditions de combustion, il met en évidence la diminution très importante de la quantité de poussières fines émises, mais, en plus et surtout, leurs changements de composition chimique et donc de nocivité.</p>
<p>Une combustion optimale ou complète signifie l&#39;absence totale ou presque complète de produits imbrûlés, principalement de la suie et du goudron, composés toxiques classés cancérigènes par l&#39;OMS. Les petites quantités de poussières fines résultant de la combustion complète du bois sont composées de sels minéraux peu ou peu toxiques pour la santé.</p>
<p>Concrètement, la Commission fédérale met en évidence une réduction du poids des poussières fines jusqu&#39;à un facteur 100 avec les usines de granulés modernes par rapport aux anciennes usines de grumes. Si l&#39;on tient toujours compte de l&#39;évolution de la composition chimique des poussières, le gain en termes de protection de la santé atteint un facteur de 1000, voire beaucoup plus. Une véritable révolution silencieuse a eu lieu!</p>
<p>Il convient donc d&#39;encourager l&#39;utilisation des installations de chauffage modernes, de les faire fonctionner correctement et de les entretenir en appliquant les règles pertinentes. C&#39;est l&#39;assurance d&#39;une combustion complète et propre du bois.</p>
<p>Pour un usage domestique, c&#39;est notamment le cas des poêles et chaudières à granulés automatiques, choisissez un combustible très sec assurant une combustion complète. Les granulés sont également idéaux pour les bâtiments ou pour un groupe de bâtiments.</p>
<p>Pour le chauffage central des villages ou des quartiers d&#39;habitation, les chaudières à copeaux de bois sont privilégiées et équipées de filtres performants pour respecter les très strictes limites d&#39;émission fixées par la Confédération (OPair). </p>
<p class="publishedDate">Créé: 02.03.2020, 06:49</p>
</p></div>
<p><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script language="javascript"></p>
<p>		var commentNotSent = true;
		///////////////////////////////////////////////////
		// object FBcomments, can be reused for FB authentification
        var FBcomments = {
        		fbAppId : '251285271592561',
                version: 'v2.0',
        		fbChannel_path : '/facebook_xd_receiver.html', 
        		isLoggedIn : false, </p>
<p>            ///////////////////////////////////////////////////
        		initFb : function() {	
	        		window.fbAsyncInit = function() {
                    FB.init({appId: FBcomments.fbAppId, version: FBcomments.version});
	                if (typeof FB === 'undefined') {
        		 				alert($("#tr_fbConnectError").html()); 
        		 			} 
	            };</p>
<p>                (function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)(0);
                    if (d.getElementById(id)) return;
                    js = d.createElement(s); js.id = id;
                    js.src = "http://connect.facebook.net/fr_FR/sdk.js";
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));
          	},
          	///////////////////////////////////////////////////
          	fbLogin : function() { 
          	 var populateFbData_ = this.populateFbData;
          	 var fbDisplay_ = this.fbDisplay;	
          	 var promptFanBox_ = this.promptFanBox;</p>
<p>        		 FB.init({appId: FBcomments.fbAppId, version: FBcomments.version}); 
        		 if (typeof FB === 'undefined') {
        		 	alert($("#tr_fbConnectError").html()); 
        		 } 	
							  	FB.login(function(response) {
									  if (response.authResponse) {
									     // granted some permissions 
									     this.isLoggedIn = true; 
									  	 populateFbData_(response.authResponse.accessToken, response.authResponse.userID);
									  	 fbDisplay_(); 
									  	 promptFanBox_(response.authResponse.userID);
									  } 
									  else { 
									    // user is not logged
									    this.isLoggedIn = false;
									  	fbDisplay_();  
									  }
									}, {scope:'publish_actions'});
				},
				///////////////////////////////////////////////////
				fbLogout : function() {  
					var fbDisplay_ = this.fbDisplay;
					$.cookie('fbsNN', '', { path: '/', expires: -1 });
					isLoggedIn = false;
					fbDisplay_();
        		},</p>
<p>				///////////////////////////////////////////////////
				populateFbData : function(accessToken, userID) {
					fbAccessToken = accessToken;
					fbUserID = userID;
					FB.api(
					'/me',
					{
						fields: 'name'
					},
					function(response) {
						var fbUserName = '';
						if (response){
							if (response.name){
								fbUserName = response.name;
							}
						}
						// store a fb-independent cookie for future login 
						$.cookie('fbsNN', "access_token="+escape(fbAccessToken)+""+"&uid="+fbUserID+"&realname="+escape(fbUserName), { path: '/', expires: 30 }); 
						fbDomInsert(fbUserName, fbUserID, fbAccessToken);
					}
					);
				},</p>
<p>				///////////////////////////////////////////////////
				promptFanBox : function(userId) {
  				 	FB.api({
					    method: 'fql.query',        
					    query: 'SELECT uid FROM page_fan WHERE uid='+userId+' AND page_id='+10150100771335484 
						},
							function(response) {
								if (typeof response(0) === 'undefined') {
									// user has not liked the page 
									$(document).ready(function(){  
										var txt = $("#tr_fanBoxPromptTitle").html(); 
										tb_show(txt,'/facebook_iframe.html?&height=250&width=645');
									});
								}	
							}
						 );
  				 },
  				 ///////////////////////////////////////////////////
  				 fbDisplay : function() {    
  				 		fbLoginDisplay(this.isLoggedIn );  
  				 		loginDrop();
  				 }
  				 ///////////////////////////////////////////////////
        } // end object</p>
<p>				///////////////////////////////////////////////////
				// cookie based user registration, maybe replaced by user DB in future
  			function fetch_nnCookie() { 
  				 		var nnRegex = /access_token=((^&)+)&uid=((0-9)+)&realname=(.+)/; 
							nnRegex.exec($.cookie('fbsNN')); 		 
							fbAccessToken = unescape(RegExp.$1);      
							fbUserID = RegExp.$2;
							fbUserName = unescape(RegExp.$3);	  
  			}
				///////////////////////////////////////////////////
  			function check_nnCookie() {	          
  				 	if( $.cookie('fbsNN') == null) {   	 
  				 		return false; 
  				 	}
  				 	else { 
							fetch_nnCookie();   
  				 		// check for valid data, delete cookie otherwise 
  				 		if (fbAccessToken != null && fbAccessToken.length > 0 && fbUserID != null && fbUserID.length > 0  && fbUserName != null && fbUserName.length > 0 && fbUserName != 'undefined') {
  				 			fbDomInsert(fbUserName, fbUserID, fbAccessToken); 
  				 			return true;   
  				 		}
  				 		else {
  				 			$.cookie('fbsNN', '', { expires: -1 }); 
  				 			return false;  
  				 		}
  				 	}
  			}</p>
<p>  			///////////////////////////////////////////////////
  			// form handler 
  			function commentsForm_send () {
  				var fbForm_message = $.trim($("#fbForm_message").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());			
  				var fbForm_realName = $.trim($("#fbForm_realName").val());
  				var fbForm_userId = $.trim($("#fbForm_userId").val());
  				var fbForm_userToken = $("#fbForm_userToken").val(); 
  				var fbForm_publishOnFB = $("#fbForm_publishOnFB:checked").val();
  				if (typeof fbForm_publishOnFB === 'undefined') {
  					fbForm_publishOnFB = 0; 
  				}
					var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());	
					var hasErrors = false; 
					var messageReg =  fbForm_message.length > 1; </p>
<p>					if (messageReg == false) {
						$("#commentError_message").show(); 	
						hasErrors = true; 
					}
					if (fbFormN_gotcha.length > 1) {
						hasErrors = true; 
					} </p>
<p>          if (!($('#disclaimerConfirmBtn').is(':checked'))) {
						$("#commentError_disclaimer").show();
						hasErrors = true; 
					}
  				if (!hasErrors) {
						$("#commentsForm_send").attr("disabled", "true");
						$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>						$("#commentSendLoading").show(); 
						$.ajax({ type: "POST",
							dataType: "text",
							cache: false,
							url: "/community/talkback_ajax.html",
							async: true,
							data: "action=sendComment&fbForm_realName="+encodeURIComponent(fbForm_realName)+"&fbForm_userId="+fbForm_userId+"&fbForm_userToken="+encodeURIComponent(fbForm_userToken)+"&fbForm_publishOnFB="+fbForm_publishOnFB+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
							error: function(){
								alert($("#tr_commentSendError").html()); 
							},
							complete: function(reqCode){
								$("#commentLogin").hide();
								$("#fbForm_message").hide();
								$("#fbForm_message_count_class").hide();      	
								$("#commentError_message").hide();
									$("#commentError_name").hide();
									$("#commentError_location").hide();
									$("#commentError_email").hide();
									$("#commentError_disclaimer").hide();
									$(".disclaimerText").hide();
									$("#commentInfo_noFb").hide();
									$("#commentsForm_send").hide();
									$("#fbCommentPublishCheckbox").hide();
									$("#commentsForm_send_noFb").hide();
								$("#commentInfo_Fb").show();
								$("#commentSendLoading").hide();
							}
						});
					} // hasErrors
				}</p>
<p> 			//////////////////////////////////////////////////
 			function delete_cookie(cookie) {
				$.cookie(cookie, null, {path: '/'});
 			}</p>
<p>			//////////////////////////////////////////////////
			function save_form_to_cookie(class_name) {
				var form = new Array();
				$("."+ class_name).each(function(index) {
					form(index) = {};
					form(index)('id') = $(this).attr("id");
					form(index)('val') = $(this).val();
				});
				$.cookie(class_name, JSON.stringify(form), {json:true});
			}</p>
<p> 			//////////////////////////////////////////////////
 			function save_object_to_cookie(data) {
 			    var form = new Array();
 			    form(0)('id') = 'fbFormN_firstName';
 			    form(0)('val') = '';
 			    form(1)('id') = 'fbFormN_surname';
 			    form(1)('val') = '';
 			    form(2)('id') = 'fbFormN_zip';
 			    form(2)('val') = '';
 			    form(3)('id') = 'fbFormN_location';
 			    form(3)('val') = '';
 			    form(4)('id') = 'fbFormN_email';
 			    form(4)('val') = '';
 			    $("."+ class_name).each(function(index) {
 			        form(index) = {};
 			        form(index)('id') = $(this).attr("id");
 			        form(index)('val') = $(this).val();
 			    });
 			    $.cookie(class_name, JSON.stringify(form), {json:true});
 			}</p>
<p>			//////////////////////////////////////////////////
			function set_logged_in_cookie(data) {
			    $.cookie('comment_login_details_email', JSON.stringify(data), {json:true,expires:14,path: '/'});
			}</p>
<p>			//////////////////////////////////////////////////
			function read_logged_in_cookie() {
				var cookie_form_data_json = $.cookie('comment_login_details_email');
				if (cookie_form_data_json != null) {
					var form_data = JSON.parse(cookie_form_data_json);
					if (typeof form_data != 'undefined') {
						if (form_data.user.customer_id == 53){
							if (typeof form_data.pcr != 'undefined' && form_data.pcr != null && form_data.pcr.length > 0){
								if (typeof form_data.uid != 'undefined' && form_data.uid != null && form_data.uid != 0){
									auto_login_email(form_data);
									return;
								}
							}
						} else {
							auto_login_email(form_data);
						}
					}
				}</p>
<p>			}</p>
<p> 			//////////////////////////////////////////////////
 			function read_form_from_cookie(class_name) {
 			    var cookie_form_data_json = $.cookie(class_name);
 			    var form_data = JSON.parse(cookie_form_data_json);
 			    $.each(form_data, function(index, value) {
 			        $("#"+ value.id).val(value.val);
 			    });
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_create_account() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
				var fbFormN_location = $.trim($("#fbFormN_location").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				if ($("#fbFormN_password").length) {
				    var fbFormN_password = $.trim($("#fbFormN_password").val());
				}
				if ($("#fbFormN_password_confirm").length) {
				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
				}</p>
<p>				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
if (fbFormN_telephone.length > 1) {</p>
<p>			var telephoneReg = (fbFormN_telephone.match(/^(ds)*$/));</p>
<p>}
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_telephone").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentError_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentError_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    $("#commentError_password").show();
					    hasErrors = true;
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_create_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId)+password_params,
						error: function(){ },
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {</p>
<p>			$("#disclaimerConfirm").hide();
			$("#commentLogin").hide();
			$("#fbForm_message").hide();
			$("#fbForm_message_count_class").hide();
			$("#commentError_message").hide();
			$("#commentInfo_Fb").hide(); 
			$("#commentsForm_send").hide();
			$("#fbCommentPublishCheckbox").hide();
			$("#commentsForm_send_noFb").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>				/////////////////////////////////////////////////
				function confirm_delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=confirm_delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html(data.message);
					            $('#deleteAccount').fadeIn(800);
					            $('#commentFormSubContainer').slideUp(1000);
					            $('body,html').stop().animate({
					                'scrollTop': $("#deleteAccount").offset().top-200
					            }, 1000)
					        }
					    }     
				 	});
				}</p>
<p>                /////////////////////////////////////////////////
				function cancel_delete_account() {
					$('#deleteAccount').html('');
					$('#deleteAccount').hide();
					$('#commentFormSubContainer').slideDown(1000);
				}</p>
<p>                /////////////////////////////////////////////////
				function delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
					        }
					        else if (data.code == 2) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
					        }
					    }     
				 	});
				}</p>
<p>  			//////////////////////////////////////////////////
  			function commentsForm_update_account_close() {
  			    $("#manageAccount").html('');
  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_update_account() {
  				var fbFormN_firstName = $.trim($("#update_firstName").val());
  				var fbFormN_surname = $.trim($("#update_surname").val());
  				var fbFormN_zip = $.trim($("#update_zip").val());
  				var fbFormN_location = $.trim($("#update_location").val());
  				var fbFormN_telephone = $.trim($("#update_telephone").val());
  				var fbFormN_email = $.trim($("#update_email").val());
  				var fbFormN_email_hidden = $.trim($("#update_email_hidden").val());
  				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
  				var login_email_token = $.trim($("#login_email_token").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				if ($("#update_password").length) {
  				    var fbFormN_password = $.trim($("#update_password").val());
  				}
  				if ($("#update_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#update_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; </p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentErrorUpdate_name").hide(); 	
				$("#commentErrorUpdate_location").hide(); 
				$("#commentErrorUpdate_telephone").hide(); 
				$("#commentErrorUpdate_email").hide(); 
				$("#commentErrorUpdate_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentErrorUpdate_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentErrorUpdate_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentErrorUpdate_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentErrorUpdate_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    if ((fbFormN_password != 'mot de passe' || fbFormN_password_confirm != 'confirmer le mot de passe') && (fbFormN_password != 'password' || fbFormN_password_confirm != 'confirm password')) {
					        $("#commentErrorUpdate_password").show();
					        hasErrors = true;
					    }
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
	                save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
				          dataType: "json",
				          cache: false,
	                	  url: "/community/talkback_ajax.html",
				          async: true,
				          data: "action=talkback_update_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbFormN_email_hidden="+encodeURIComponent(fbFormN_email_hidden)+"&customer_id="+fbForm_customerId+password_params+"&token="+login_email_token+"&story_id="+encodeURIComponent(fbForm_storyId),
				          error: function(){ },
				          success: function(data){
				          	if (data.code == 1) {
							    $("#disclaimerConfirm").hide();
				          	    $("#commentLogin").hide();
				          	    $("#fbForm_message").hide();
				          	    $("#fbForm_message_count_class").hide();
				          	    $("#commentErrorUpdate_message").hide();
				          	    $("#commentInfo_Fb").hide(); 
				          	    $("#commentsForm_send").hide();
				          	    $("#fbCommentPublishCheckbox").hide();
							    $("#commentsForm_send_noFb").hide(); 
			          		    $("#commentInfo_noFb").show();
			          		    $("#manageAccount").toggle();
			          		    $("#commentInfo_noFb").text(data.message);
			          		    setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
			          		} else if (data.code == 2){
								$("#commentLogin").show();
								$("#fbForm_message").show();
								$("#fbForm_message_count_class").show();
								$("#commentErrorUpdate_message").hide();
								$("#commentInfo_Fb").hide(); 
								$("#commentsForm_send").hide();
								$("#fbCommentPublishCheckbox").hide();
								$("#commentsForm_send_noFb").hide(); 
								$("#commentInfo_noFb").hide();
								$("#manageAccount").toggle();
								setMessageBox(data.message, data.addclass);
								if (data.user.customer_id == 53){
									auto_login_email(data);
								}
							} else if (data.code == 3){
								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p> 			// Handler to reset the timer on each notification 
 			var timeoutHandle;
 			function setMessageBox(message, boxclass) {
 			    $("#messageBox").hide();
 			    $("#messageBox").html(message);
 			    $("#messageBox").removeClass("warning error success").addClass(boxclass);
 			    $("#messageBox").fadeIn(1500);</p>
<p> 			    clearTimeout(timeoutHandle);</p>
<p> 			    timeoutHandle = setTimeout(function(){
 			        $("#messageBox").fadeOut(2000, function () {
 			      });
 			    }, 12000);
 			}</p>
<p> 			function forgot_password_send() {
				var email = $.trim($('#password_forgot_email').val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				if(emailRegObj.test(email) == false){      
					$("#commentError_password_forgot_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=reset_password&customer_id="+fbForm_customerId+"&email="+encodeURIComponent(email),  
					    error: function(){ },
					    success: function(data){
						        if (data.code = 0) {
						            setMessageBox(data.message, data.addclass);
						        }
						        else if (data.code = 1) {
						            $('#comment_password_reset_form').toggle('slow');
						            $('#comment_login_form').toggle('slow');
						            setMessageBox(data.message, data.addclass);
						        }
					    }     
				 	});</p>
<p>				}
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_login_noFb() {
				var fbFormN_email = $.trim($("#fbFormN_email_login").val());
				var fbFormN_password = $.trim($("#fbFormN_password_login").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); </p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					//$("#commentsForm_send").attr("disabled", "true");
					//$("#commentsForm_send_noFb").attr("disabled", "true");
					//save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_login_email&email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password),
						error: function(){</p>
<p>						},
						success: function(data){
							//$("#commentLogin").hide();
							//$("#fbForm_message").hide();
							//$("#fbForm_message_count_class").hide();
							//$("#commentError_message").hide();
							//$("#commentInfo_Fb").hide(); 
							//$("#commentsForm_send").hide();
							//$("#fbCommentPublishCheckbox").hide();
							//$("#commentsForm_send_noFb").hide(); </p>
<p>							if (data.code == 2) {
								$('.commentFBlogin').hide();
								$('#comment_login_form').hide();
								$("#change_phonenumber").show();
								setMessageBox(data.message, data.addclass);
							} else {
								$("#change_phonenumber").hide();
								//$("#commentInfo_noFb").show();
								//$("#commentLoggedInEmail").text(data.message);
								setMessageBox(data.message, data.addclass);
								$("#commentLoggedInEmail").show();
								if ('user' in data) {
									auto_login_email(data);
								}
							}
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////</p>
<p>			function comments_modifyForm_phone_change() {</p>
<p>				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change_sms_verify() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbFormN_sms_change_Ver = $.trim($("#fbFormN_sms_change_Ver").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change_sms_verify&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change)+"&code="+encodeURIComponent(fbFormN_sms_change_Ver),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_sms_change_ver").hide();
							$("#fbFormN_sms_change_Ver").hide();
							$("#commentsForm_sms_send_change_veryfy").hide();
							$("#change_phonenumber").hide();</p>
<p>							$('#comment_login_form').show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}
			///////////////////////////////////////////////////
			function commentsForm_sms_verify() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbFormN_smsVer = $.trim($("#fbFormN_smsVer").val());</p>
<p>				var hasErrors = false;</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_sms_verify&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&email="+encodeURIComponent(fbFormN_email)+"&telefone="+encodeURIComponent(fbFormN_telephone)+"&code="+ fbFormN_smsVer +"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId),
						error: function(){
						},
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {
								$("#commentLogin").hide();
								$("#sms_verify").hide();
								$("#fbFormN_smsVer").hide();
								$("#commentsForm_sms_veryfy").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>			//////////////////////////////////////////
			//swissnoise quiva
			function auto_login_quiva(data) {
				console.log("quiva login start");
				var user = {
					"remoteId": data.uid,
					"username": data.user.email,
					"password": data.pcr,
					"email": data.user.email,
					"firstName": data.user.first_name,
					"lastName": data.user.last_name,
					"zipCode": data.user.post_code,
					"locality": data.user.city,
					"phoneNumber": data.user.mobile_number
				};
				whatif.login(user).always(function() {</p>
<p>				});
				console.log("quiva login done");
			}
			//END swissnoise quiva</p>
<p>  			function auto_login_email(data) {
			    $(".commentFBlogin").hide();
			    $(".commentOhnelogin").hide();
			    var html = '';
			    var name = data.user.first_name +' '+ data.user.last_name;
			    html += '<span class="fbUserWelcome">Bienvenue, <span id="fbUserRealName">'+ name +'</span></span><br />';
			    html += '<a href="" id="commentsForm_send_email" onclick="return false;">Soumettre Commentaire</button>';
			    html += '<a href="" class="emailLogoutButton" onclick="return false;">Déconnecter</a><br />';
			    html += '<a href="" id="emailManageAccount" onclick="return false;">Gérer le profil</a>';
			    html += '<input id="login_email_token" name="login_email_token" value="'+ data.token +'" type="hidden">';
			    html += '<input id="login_email_email" name="login_email_email" value="'+ data.user.email +'" type="hidden">';
			    $("#commentLoggedInEmail").html(html);
			    set_logged_in_cookie(data);
			    $("#commentLoggedInEmail").show();</p>
<p>  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_send_noFb() {
  				var fbForm_message = $.trim($("#fbForm_message").val());  
  				fbForm_message = fbForm_message.replace(/&/g, "+");
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
  				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
  				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
  				var fbFormN_location = $.trim($("#fbFormN_location").val());
  				var fbFormN_email = $.trim($("#fbFormN_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				if ($("#fbFormN_password").length) {
  				    var fbFormN_password = $.trim($("#fbFormN_password").val());
  				}
  				if ($("#fbFormN_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; 
				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				// dont check for ZIP, cause of foreign countries 
				//var locReg = !(fbFormN_zip.match(/(*)/)) && !(fbFormN_location.match(/(*)/)) && fbFormN_zip.length > 1 && fbFormN_location.length > 1;   
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;
				var password_params = '';</p>
<p>				$("#commentError_name").hide();
				$("#commentError_location").hide();
				$("#commentError_email").hide();
				$("#commentError_password").hide();
				$("#commentError_message").hide();
				$("#commentError_disclaimer").hide();
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show();
					hasErrors = true;
				}</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show();
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;
				}</p>
<p>				if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show();
					$(".disclaimerText").show();
					hasErrors = true;
				}</p>
<p>				if (!hasErrors) {</p>
<p>					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "html",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=sendComment&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
						error: function(){ },
						success: function(){
							$("#commentLogin").hide();
							$("#fbForm_message").hide();
							$("#fbForm_message_count_class").hide();
							$("#commentError_message").hide();
							$("#commentInfo_Fb").hide();
							$("#commentsForm_send").hide();
							$("#fbCommentPublishCheckbox").hide();
							$("#commentsForm_send_noFb").hide();
							$("#disclaimerConfirm").hide();
							$("#commentInfo_noFb").show();
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_send_email() {
				var fbForm_message = $.trim($("#fbForm_message").val());  
				fbForm_message = fbForm_message.replace(/&/g, "+");
				var fbForm_uri = $.trim($("#fbForm_uri").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_ip = $.trim($("#fbForm_ip").val());
				var login_email_token = $.trim($("#login_email_token").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_email = $.trim($("#login_email_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message </p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; </p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$("#commentError_message").hide(); 	
				$("#commentError_disclaimer").hide(); 	
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>			    if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					commentNotSent = false;</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=send_comment_email&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&customer_id="+fbForm_customerId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID+"&email="+encodeURIComponent(fbFormN_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
						          	if (data.code == 1) {
						          	    $("#commentLogin").hide();
						          	    $("#fbForm_message").hide();
						          	    $("#fbForm_message_count_class").hide();      	
						          	    $("#commentError_message").hide();
									    $("#commentError_name").hide(); 	 	
									    $("#commentError_location").hide(); 	
									    $("#commentError_email").hide();	
									    $("#commentError_disclaimer").hide(); 	
									    $(".disclaimerText").hide();
									    $("#commentInfo_noFb").hide(); 
    									$("#commentsForm_send").hide(); 
									    $("#fbCommentPublishCheckbox").hide();
									    $("#disclaimerConfirm").hide();
									    $("#commentsForm_send_noFb").hide();	
						          	    $("#commentInfo_noFb").show();  
						          	    $("#commentSendLoading").hide();
						          	    $("#commentInfo_Notice").hide();
						          	    $("#manageAccount").hide();
						          	}
						          	else if (data.code == 2) {
						          	    setMessageBox(data.message, data.addclass);
						          	}
					    }     
				 	});		
				}		
  			}  			</p>
<p>			///////////////////////////////////////////////////
			///////////////////////////////////////////////////
  			// some jquery UI functions
			function fbLoginDisplay(loginState) {
				$(document).ready(function(){
					if (loginState == true) {
						$(".notloggedToFacebook").hide();
						$(".loggedToFacebook").show();
						$('#commentsForm_send_noFb').hide();
						$('#commentsForm_send').show();
						$("#fbCommentPublishCheckbox").show();
						$(".recommendCommentFacebook").show();
					}
	else {
						$(".loggedToFacebook").hide(); 
						$(".notloggedToFacebook").show(); 
						$('#commentsForm_send').hide();
						$('#commentsForm_send_noFb').show();
						$("#fbCommentPublishCheckbox").hide();
						$(".recommendCommentFacebook").hide();
						if ($("#commentLoggedInEmail").length) {
							$("#commentLoggedInEmail").show();
						}
				}});
  			}</p>
<p>  			///////////////////////////////////////////////////
  			function fbDomInsert(username, uid, token) {  
						$(document).ready(function(){  
		           $("#fbUserRealName").html(username); 
		           var imgHtml= "<img src='https://graph.facebook.com/me/picture?access_token="+token+"'/>";
		           $("#fbUserProfilePicture").html(imgHtml);</p>
<p>		           $("#fbForm_realName").val(username); 
		           $("#fbForm_userId").val(uid);
		           $("#fbForm_userToken").val(token);
	        	});
				}
				///////////////////////////////////////////////////
				function loginDrop() {
					$(document).ready(function(){
						$('#commentLogin').slideDown();
						$("textarea#fbForm_message").attr("rows", 6);
						$("#commentsForm_send").removeAttr("disabled");
						$("#commentsForm_send_noFb").attr("disabled", "");
						$("#commentsForm_send_email").removeAttr("disabled");
						$("#fbForm_message").val("");
						$('#fbForm_message').removeAttr("onclick");
					});
				}
		///////////////////////////////////////////////////
		function doOnFbConnect() {
			$(".recommendCommentFacebook").show(); // for comments below: display checkbox to choose if recommended comments get published on facebook
		}</p>
<p>		///////////////////////////////////////////////////
		function log(msg){
			if (typeof console === 'undefined') {
				return false;
			} else {
				return true;
			}
		}</p>
<p>		/////////////////////////////////////////////////////////////////////////////////	
        /////////////////////////////////////////////////////////////////////////////////  
        /////////////////////////////////////////////////////////////////////////////////
        // main </p>
<p>        // fb auth 
        var fbAccessToken = ''; 
        var fbUserID = ''; 
        var fbUserName = '';  
        FBcomments.initFb(); 
        var nnFBloggedIn = check_nnCookie();  
   			if (nnFBloggedIn == true) {
   				fbLoginDisplay(true); </p>
<p>   			}
   			else {
   				fbLoginDisplay(false); 
   			}</p>
<p>function inputFocus(thisFor, thisClass) {
    $('#'+ thisFor).focus(function() {
        $('.'+ thisClass).animate({ opacity: "0" }, "fast");
    }).blur(function() {
        if($(this).val() == "") {
            $('.'+ thisClass).animate({ opacity: "1" }, "fast");
        }
    });
}</p>
<p>			//// some more jquery stuff
   			$(document).ready(function(){
				read_logged_in_cookie();</p>
<p>				// hide 'populär auf facebook' widget in sideline
				//$("#fb_activityFeed").hide(); </p>
<p>				$("#fbCommentPublishCheckbox").hide();</p>
<p>$('#fbFormN_password_login').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_post_confirmed').focus().click();
        return false;
    }
});</p>
<p>$('#fbFormN_smsVer').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_sms_veryfy').focus().click();
        return false;
    }
});</p>
<p>// Bind to set the fadeout of form labels when clicked or focused
$('.sbsLabel label').each(function () {
    var thisFor = $(this).attr('for');
    var thisClass = $(this).attr('class');
    inputFocus(thisFor, thisClass);
});</p>
<p>   				// some form display handling 
					$('#disclaimerButtonShow').bind('click', function(){
						$('.disclaimerText').show();
						$('#disclaimerButtonShow').css('display','none');
						$('#disclaimerButtonHide').css('display','inline');
					});
					$('#disclaimerButtonHide').bind('click', function(){
						$('.disclaimerText').hide();
						$('#disclaimerButtonHide').css('display','none');
						$('#disclaimerButtonShow').css('display','inline');
					});</p>
<p>				// display login data on start 
				if ($("#fbUserRealName").html()) {
					if ($("#fbUserRealName").html().length >= 2){ // && $("textarea#fbForm_message").attr("rows") > 2
						$("#fbCommentPublishCheckbox").show();
					}
				}</p>
<p>				// clear textarea 
				$("#fbForm_message").val(''); </p>
<p>				// submit buttons , disable on on reload 
				$("#commentsForm_send").attr("disabled", "true");
				$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>				// set checkboxes
				$('#fbForm_publishOnFB').attr('checked', true); 
				$('.recommendCommentPublishOnFb').attr('checked', true); 
				$('#disclaimerConfirmBtn').attr('checked', false);</p>
<p>				// fixes a tiny bug: if values are prefilled on reload they should not be grey 
				var myFbFormIds = ('fbFormN_firstName', 'fbFormN_surname', 'fbFormN_zip', 'fbFormN_location', 'fbFormN_email', 'fbFormN_password', 'fbFormN_password_confirm');
				for (var ii=0;ii < myFbFormIds.length; ii++) {
				  if ($("#"+myFbFormIds(ii)).length) {
					if (!($("#"+myFbFormIds(ii)).val().match(/(*)/))) {
						$("#"+myFbFormIds(ii)).css('color','#000000'); 
					};
				  }
				}

				$('.comment_signup_form_toggle').live('click', function(){
					$('#comment_signup_form').toggle('slow');
					$('#comment_login_form').toggle('slow');
					return false;
				});

				$('.comment_form_forgot_password').live('click', function(){
				    $('#comment_password_reset_form').toggle('slow');
				    $('#comment_login_form').toggle('slow');
				    return false;
				});

				$('.emailLogoutButton').live('click', function() {
					delete_cookie('comment_login_details_email');
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$(".commentFBlogin").show();
					$(".commentOhnelogin").show();
				});

				$('#show_update_phone').live('click', function() {
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$("#comment_login_form").hide();

					$("#change_phonenumber").show();
					$(".commentOhnelogin").show();
				});

				$('#commentsForm_send_email').live('click', function() {
				    if (commentNotSent) {
				        commentsForm_send_email();
				    }
				});

				$('#emailManageAccount').live('click', function () {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());

				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=login_manage_account&#038;customer_id="+customer_id+"&#038;email="+encodeURIComponent(login_email_email)+"&#038;token="+login_email_token,
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#manageAccount').html(data.message);
					            $('#manageAccount').show();
					        }
					    }     
				 	});
				});

				});
        </script><br /></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</title>
		<link>https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-65/</link>
		
		<dc:creator><![CDATA[Conseil-Chauffage]]></dc:creator>
		<pubDate>Tue, 17 Mar 2020 11:18:12 +0000</pubDate>
				<category><![CDATA[Chauffage au Bois]]></category>
		<category><![CDATA[avec]]></category>
		<category><![CDATA[bois]]></category>
		<category><![CDATA[fines]]></category>
		<category><![CDATA[finir]]></category>
		<category><![CDATA[les]]></category>
		<category><![CDATA[Linvité]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[pour]]></category>
		<category><![CDATA[poussières]]></category>
		<category><![CDATA[Réflexions]]></category>
		<category><![CDATA[Signatures]]></category>
		<guid isPermaLink="false">https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-65/</guid>

					<description><![CDATA[L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse. Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable ... <p class="read-more-container"><a title="L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions" class="read-more button" href="https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-65/#more-1845" aria-label="Plus sur L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions">Lire l'Article</a></p>]]></description>
										<content:encoded><![CDATA[<h1>L&rsquo;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</h1>
<p></p>
<div id="mainContent">
<p>	Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse.</p>
<p>Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable de nos forêts, son potentiel est estimé pour le canton de Vaud à 30% de la chaleur consommée.</p>
<p>Mais des voix s&#39;élèvent régulièrement pour alerter sur les émissions polluantes de poussières fines du bois. Comment est-ce vraiment?</p>
<p>La Commission fédérale de l&#39;hygiène de l&#39;air a très bien résumé le problème dans son rapport &quot;Les poussières fines en Suisse 2013&quot;. Elle explique les très grandes différences existant selon le type de chauffage (ancien ou moderne, automatique ou manuel) et le type de bois de chauffage (bûches, granulés, copeaux de bois). Grâce à l&#39;amélioration des conditions de combustion, il met en évidence la diminution très importante de la quantité de poussières fines émises, mais, en plus et surtout, leurs changements de composition chimique et donc de nocivité.</p>
<p>Une combustion optimale ou complète signifie l&#39;absence totale ou presque complète de produits imbrûlés, principalement de la suie et du goudron, composés toxiques classés cancérigènes par l&#39;OMS. Les petites quantités de poussières fines résultant de la combustion complète du bois sont composées de sels minéraux peu ou peu toxiques pour la santé.</p>
<p>Concrètement, la Commission fédérale met en évidence une réduction du poids des poussières fines jusqu&#39;à un facteur 100 avec les usines de granulés modernes par rapport aux anciennes usines de grumes. Si l&#39;on tient toujours compte de l&#39;évolution de la composition chimique des poussières, le gain en termes de protection de la santé atteint un facteur de 1000, voire beaucoup plus. Une véritable révolution silencieuse a eu lieu!</p>
<p>Il convient donc d&#39;encourager l&#39;utilisation des installations de chauffage modernes, de les faire fonctionner correctement et de les entretenir en appliquant les règles pertinentes. C&#39;est l&#39;assurance d&#39;une combustion complète et propre du bois.</p>
<p>Pour un usage domestique, c&#39;est notamment le cas des poêles et chaudières à granulés automatiques, choisissez un combustible très sec assurant une combustion complète. Les granulés sont également idéaux pour les bâtiments ou pour un groupe de bâtiments.</p>
<p>Pour le chauffage central des villages ou des quartiers d&#39;habitation, les chaudières à copeaux de bois sont privilégiées et équipées de filtres performants pour respecter les très strictes limites d&#39;émission fixées par la Confédération (OPair). </p>
<p class="publishedDate">Créé: 02.03.2020, 06:49</p>
</p></div>
<p><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script language="javascript"></p>
<p>		var commentNotSent = true;
		///////////////////////////////////////////////////
		// object FBcomments, can be reused for FB authentification
        var FBcomments = {
        		fbAppId : '251285271592561',
                version: 'v2.0',
        		fbChannel_path : '/facebook_xd_receiver.html', 
        		isLoggedIn : false, </p>
<p>            ///////////////////////////////////////////////////
        		initFb : function() {	
	        		window.fbAsyncInit = function() {
                    FB.init({appId: FBcomments.fbAppId, version: FBcomments.version});
	                if (typeof FB === 'undefined') {
        		 				alert($("#tr_fbConnectError").html()); 
        		 			} 
	            };</p>
<p>                (function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)(0);
                    if (d.getElementById(id)) return;
                    js = d.createElement(s); js.id = id;
                    js.src = "http://connect.facebook.net/fr_FR/sdk.js";
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));
          	},
          	///////////////////////////////////////////////////
          	fbLogin : function() { 
          	 var populateFbData_ = this.populateFbData;
          	 var fbDisplay_ = this.fbDisplay;	
          	 var promptFanBox_ = this.promptFanBox;</p>
<p>        		 FB.init({appId: FBcomments.fbAppId, version: FBcomments.version}); 
        		 if (typeof FB === 'undefined') {
        		 	alert($("#tr_fbConnectError").html()); 
        		 } 	
							  	FB.login(function(response) {
									  if (response.authResponse) {
									     // granted some permissions 
									     this.isLoggedIn = true; 
									  	 populateFbData_(response.authResponse.accessToken, response.authResponse.userID);
									  	 fbDisplay_(); 
									  	 promptFanBox_(response.authResponse.userID);
									  } 
									  else { 
									    // user is not logged
									    this.isLoggedIn = false;
									  	fbDisplay_();  
									  }
									}, {scope:'publish_actions'});
				},
				///////////////////////////////////////////////////
				fbLogout : function() {  
					var fbDisplay_ = this.fbDisplay;
					$.cookie('fbsNN', '', { path: '/', expires: -1 });
					isLoggedIn = false;
					fbDisplay_();
        		},</p>
<p>				///////////////////////////////////////////////////
				populateFbData : function(accessToken, userID) {
					fbAccessToken = accessToken;
					fbUserID = userID;
					FB.api(
					'/me',
					{
						fields: 'name'
					},
					function(response) {
						var fbUserName = '';
						if (response){
							if (response.name){
								fbUserName = response.name;
							}
						}
						// store a fb-independent cookie for future login 
						$.cookie('fbsNN', "access_token="+escape(fbAccessToken)+""+"&uid="+fbUserID+"&realname="+escape(fbUserName), { path: '/', expires: 30 }); 
						fbDomInsert(fbUserName, fbUserID, fbAccessToken);
					}
					);
				},</p>
<p>				///////////////////////////////////////////////////
				promptFanBox : function(userId) {
  				 	FB.api({
					    method: 'fql.query',        
					    query: 'SELECT uid FROM page_fan WHERE uid='+userId+' AND page_id='+10150100771335484 
						},
							function(response) {
								if (typeof response(0) === 'undefined') {
									// user has not liked the page 
									$(document).ready(function(){  
										var txt = $("#tr_fanBoxPromptTitle").html(); 
										tb_show(txt,'/facebook_iframe.html?&height=250&width=645');
									});
								}	
							}
						 );
  				 },
  				 ///////////////////////////////////////////////////
  				 fbDisplay : function() {    
  				 		fbLoginDisplay(this.isLoggedIn );  
  				 		loginDrop();
  				 }
  				 ///////////////////////////////////////////////////
        } // end object</p>
<p>				///////////////////////////////////////////////////
				// cookie based user registration, maybe replaced by user DB in future
  			function fetch_nnCookie() { 
  				 		var nnRegex = /access_token=((^&)+)&uid=((0-9)+)&realname=(.+)/; 
							nnRegex.exec($.cookie('fbsNN')); 		 
							fbAccessToken = unescape(RegExp.$1);      
							fbUserID = RegExp.$2;
							fbUserName = unescape(RegExp.$3);	  
  			}
				///////////////////////////////////////////////////
  			function check_nnCookie() {	          
  				 	if( $.cookie('fbsNN') == null) {   	 
  				 		return false; 
  				 	}
  				 	else { 
							fetch_nnCookie();   
  				 		// check for valid data, delete cookie otherwise 
  				 		if (fbAccessToken != null && fbAccessToken.length > 0 && fbUserID != null && fbUserID.length > 0  && fbUserName != null && fbUserName.length > 0 && fbUserName != 'undefined') {
  				 			fbDomInsert(fbUserName, fbUserID, fbAccessToken); 
  				 			return true;   
  				 		}
  				 		else {
  				 			$.cookie('fbsNN', '', { expires: -1 }); 
  				 			return false;  
  				 		}
  				 	}
  			}</p>
<p>  			///////////////////////////////////////////////////
  			// form handler 
  			function commentsForm_send () {
  				var fbForm_message = $.trim($("#fbForm_message").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());			
  				var fbForm_realName = $.trim($("#fbForm_realName").val());
  				var fbForm_userId = $.trim($("#fbForm_userId").val());
  				var fbForm_userToken = $("#fbForm_userToken").val(); 
  				var fbForm_publishOnFB = $("#fbForm_publishOnFB:checked").val();
  				if (typeof fbForm_publishOnFB === 'undefined') {
  					fbForm_publishOnFB = 0; 
  				}
					var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());	
					var hasErrors = false; 
					var messageReg =  fbForm_message.length > 1; </p>
<p>					if (messageReg == false) {
						$("#commentError_message").show(); 	
						hasErrors = true; 
					}
					if (fbFormN_gotcha.length > 1) {
						hasErrors = true; 
					} </p>
<p>          if (!($('#disclaimerConfirmBtn').is(':checked'))) {
						$("#commentError_disclaimer").show();
						hasErrors = true; 
					}
  				if (!hasErrors) {
						$("#commentsForm_send").attr("disabled", "true");
						$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>						$("#commentSendLoading").show(); 
						$.ajax({ type: "POST",
							dataType: "text",
							cache: false,
							url: "/community/talkback_ajax.html",
							async: true,
							data: "action=sendComment&fbForm_realName="+encodeURIComponent(fbForm_realName)+"&fbForm_userId="+fbForm_userId+"&fbForm_userToken="+encodeURIComponent(fbForm_userToken)+"&fbForm_publishOnFB="+fbForm_publishOnFB+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
							error: function(){
								alert($("#tr_commentSendError").html()); 
							},
							complete: function(reqCode){
								$("#commentLogin").hide();
								$("#fbForm_message").hide();
								$("#fbForm_message_count_class").hide();      	
								$("#commentError_message").hide();
									$("#commentError_name").hide();
									$("#commentError_location").hide();
									$("#commentError_email").hide();
									$("#commentError_disclaimer").hide();
									$(".disclaimerText").hide();
									$("#commentInfo_noFb").hide();
									$("#commentsForm_send").hide();
									$("#fbCommentPublishCheckbox").hide();
									$("#commentsForm_send_noFb").hide();
								$("#commentInfo_Fb").show();
								$("#commentSendLoading").hide();
							}
						});
					} // hasErrors
				}</p>
<p> 			//////////////////////////////////////////////////
 			function delete_cookie(cookie) {
				$.cookie(cookie, null, {path: '/'});
 			}</p>
<p>			//////////////////////////////////////////////////
			function save_form_to_cookie(class_name) {
				var form = new Array();
				$("."+ class_name).each(function(index) {
					form(index) = {};
					form(index)('id') = $(this).attr("id");
					form(index)('val') = $(this).val();
				});
				$.cookie(class_name, JSON.stringify(form), {json:true});
			}</p>
<p> 			//////////////////////////////////////////////////
 			function save_object_to_cookie(data) {
 			    var form = new Array();
 			    form(0)('id') = 'fbFormN_firstName';
 			    form(0)('val') = '';
 			    form(1)('id') = 'fbFormN_surname';
 			    form(1)('val') = '';
 			    form(2)('id') = 'fbFormN_zip';
 			    form(2)('val') = '';
 			    form(3)('id') = 'fbFormN_location';
 			    form(3)('val') = '';
 			    form(4)('id') = 'fbFormN_email';
 			    form(4)('val') = '';
 			    $("."+ class_name).each(function(index) {
 			        form(index) = {};
 			        form(index)('id') = $(this).attr("id");
 			        form(index)('val') = $(this).val();
 			    });
 			    $.cookie(class_name, JSON.stringify(form), {json:true});
 			}</p>
<p>			//////////////////////////////////////////////////
			function set_logged_in_cookie(data) {
			    $.cookie('comment_login_details_email', JSON.stringify(data), {json:true,expires:14,path: '/'});
			}</p>
<p>			//////////////////////////////////////////////////
			function read_logged_in_cookie() {
				var cookie_form_data_json = $.cookie('comment_login_details_email');
				if (cookie_form_data_json != null) {
					var form_data = JSON.parse(cookie_form_data_json);
					if (typeof form_data != 'undefined') {
						if (form_data.user.customer_id == 53){
							if (typeof form_data.pcr != 'undefined' && form_data.pcr != null && form_data.pcr.length > 0){
								if (typeof form_data.uid != 'undefined' && form_data.uid != null && form_data.uid != 0){
									auto_login_email(form_data);
									return;
								}
							}
						} else {
							auto_login_email(form_data);
						}
					}
				}</p>
<p>			}</p>
<p> 			//////////////////////////////////////////////////
 			function read_form_from_cookie(class_name) {
 			    var cookie_form_data_json = $.cookie(class_name);
 			    var form_data = JSON.parse(cookie_form_data_json);
 			    $.each(form_data, function(index, value) {
 			        $("#"+ value.id).val(value.val);
 			    });
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_create_account() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
				var fbFormN_location = $.trim($("#fbFormN_location").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				if ($("#fbFormN_password").length) {
				    var fbFormN_password = $.trim($("#fbFormN_password").val());
				}
				if ($("#fbFormN_password_confirm").length) {
				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
				}</p>
<p>				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
if (fbFormN_telephone.length > 1) {</p>
<p>			var telephoneReg = (fbFormN_telephone.match(/^(ds)*$/));</p>
<p>}
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_telephone").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentError_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentError_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    $("#commentError_password").show();
					    hasErrors = true;
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_create_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId)+password_params,
						error: function(){ },
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {</p>
<p>			$("#disclaimerConfirm").hide();
			$("#commentLogin").hide();
			$("#fbForm_message").hide();
			$("#fbForm_message_count_class").hide();
			$("#commentError_message").hide();
			$("#commentInfo_Fb").hide(); 
			$("#commentsForm_send").hide();
			$("#fbCommentPublishCheckbox").hide();
			$("#commentsForm_send_noFb").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>				/////////////////////////////////////////////////
				function confirm_delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=confirm_delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html(data.message);
					            $('#deleteAccount').fadeIn(800);
					            $('#commentFormSubContainer').slideUp(1000);
					            $('body,html').stop().animate({
					                'scrollTop': $("#deleteAccount").offset().top-200
					            }, 1000)
					        }
					    }     
				 	});
				}</p>
<p>                /////////////////////////////////////////////////
				function cancel_delete_account() {
					$('#deleteAccount').html('');
					$('#deleteAccount').hide();
					$('#commentFormSubContainer').slideDown(1000);
				}</p>
<p>                /////////////////////////////////////////////////
				function delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
					        }
					        else if (data.code == 2) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
					        }
					    }     
				 	});
				}</p>
<p>  			//////////////////////////////////////////////////
  			function commentsForm_update_account_close() {
  			    $("#manageAccount").html('');
  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_update_account() {
  				var fbFormN_firstName = $.trim($("#update_firstName").val());
  				var fbFormN_surname = $.trim($("#update_surname").val());
  				var fbFormN_zip = $.trim($("#update_zip").val());
  				var fbFormN_location = $.trim($("#update_location").val());
  				var fbFormN_telephone = $.trim($("#update_telephone").val());
  				var fbFormN_email = $.trim($("#update_email").val());
  				var fbFormN_email_hidden = $.trim($("#update_email_hidden").val());
  				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
  				var login_email_token = $.trim($("#login_email_token").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				if ($("#update_password").length) {
  				    var fbFormN_password = $.trim($("#update_password").val());
  				}
  				if ($("#update_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#update_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; </p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentErrorUpdate_name").hide(); 	
				$("#commentErrorUpdate_location").hide(); 
				$("#commentErrorUpdate_telephone").hide(); 
				$("#commentErrorUpdate_email").hide(); 
				$("#commentErrorUpdate_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentErrorUpdate_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentErrorUpdate_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentErrorUpdate_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentErrorUpdate_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    if ((fbFormN_password != 'mot de passe' || fbFormN_password_confirm != 'confirmer le mot de passe') && (fbFormN_password != 'password' || fbFormN_password_confirm != 'confirm password')) {
					        $("#commentErrorUpdate_password").show();
					        hasErrors = true;
					    }
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
	                save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
				          dataType: "json",
				          cache: false,
	                	  url: "/community/talkback_ajax.html",
				          async: true,
				          data: "action=talkback_update_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbFormN_email_hidden="+encodeURIComponent(fbFormN_email_hidden)+"&customer_id="+fbForm_customerId+password_params+"&token="+login_email_token+"&story_id="+encodeURIComponent(fbForm_storyId),
				          error: function(){ },
				          success: function(data){
				          	if (data.code == 1) {
							    $("#disclaimerConfirm").hide();
				          	    $("#commentLogin").hide();
				          	    $("#fbForm_message").hide();
				          	    $("#fbForm_message_count_class").hide();
				          	    $("#commentErrorUpdate_message").hide();
				          	    $("#commentInfo_Fb").hide(); 
				          	    $("#commentsForm_send").hide();
				          	    $("#fbCommentPublishCheckbox").hide();
							    $("#commentsForm_send_noFb").hide(); 
			          		    $("#commentInfo_noFb").show();
			          		    $("#manageAccount").toggle();
			          		    $("#commentInfo_noFb").text(data.message);
			          		    setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
			          		} else if (data.code == 2){
								$("#commentLogin").show();
								$("#fbForm_message").show();
								$("#fbForm_message_count_class").show();
								$("#commentErrorUpdate_message").hide();
								$("#commentInfo_Fb").hide(); 
								$("#commentsForm_send").hide();
								$("#fbCommentPublishCheckbox").hide();
								$("#commentsForm_send_noFb").hide(); 
								$("#commentInfo_noFb").hide();
								$("#manageAccount").toggle();
								setMessageBox(data.message, data.addclass);
								if (data.user.customer_id == 53){
									auto_login_email(data);
								}
							} else if (data.code == 3){
								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p> 			// Handler to reset the timer on each notification 
 			var timeoutHandle;
 			function setMessageBox(message, boxclass) {
 			    $("#messageBox").hide();
 			    $("#messageBox").html(message);
 			    $("#messageBox").removeClass("warning error success").addClass(boxclass);
 			    $("#messageBox").fadeIn(1500);</p>
<p> 			    clearTimeout(timeoutHandle);</p>
<p> 			    timeoutHandle = setTimeout(function(){
 			        $("#messageBox").fadeOut(2000, function () {
 			      });
 			    }, 12000);
 			}</p>
<p> 			function forgot_password_send() {
				var email = $.trim($('#password_forgot_email').val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				if(emailRegObj.test(email) == false){      
					$("#commentError_password_forgot_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=reset_password&customer_id="+fbForm_customerId+"&email="+encodeURIComponent(email),  
					    error: function(){ },
					    success: function(data){
						        if (data.code = 0) {
						            setMessageBox(data.message, data.addclass);
						        }
						        else if (data.code = 1) {
						            $('#comment_password_reset_form').toggle('slow');
						            $('#comment_login_form').toggle('slow');
						            setMessageBox(data.message, data.addclass);
						        }
					    }     
				 	});</p>
<p>				}
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_login_noFb() {
				var fbFormN_email = $.trim($("#fbFormN_email_login").val());
				var fbFormN_password = $.trim($("#fbFormN_password_login").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); </p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					//$("#commentsForm_send").attr("disabled", "true");
					//$("#commentsForm_send_noFb").attr("disabled", "true");
					//save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_login_email&email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password),
						error: function(){</p>
<p>						},
						success: function(data){
							//$("#commentLogin").hide();
							//$("#fbForm_message").hide();
							//$("#fbForm_message_count_class").hide();
							//$("#commentError_message").hide();
							//$("#commentInfo_Fb").hide(); 
							//$("#commentsForm_send").hide();
							//$("#fbCommentPublishCheckbox").hide();
							//$("#commentsForm_send_noFb").hide(); </p>
<p>							if (data.code == 2) {
								$('.commentFBlogin').hide();
								$('#comment_login_form').hide();
								$("#change_phonenumber").show();
								setMessageBox(data.message, data.addclass);
							} else {
								$("#change_phonenumber").hide();
								//$("#commentInfo_noFb").show();
								//$("#commentLoggedInEmail").text(data.message);
								setMessageBox(data.message, data.addclass);
								$("#commentLoggedInEmail").show();
								if ('user' in data) {
									auto_login_email(data);
								}
							}
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////</p>
<p>			function comments_modifyForm_phone_change() {</p>
<p>				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change_sms_verify() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbFormN_sms_change_Ver = $.trim($("#fbFormN_sms_change_Ver").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change_sms_verify&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change)+"&code="+encodeURIComponent(fbFormN_sms_change_Ver),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_sms_change_ver").hide();
							$("#fbFormN_sms_change_Ver").hide();
							$("#commentsForm_sms_send_change_veryfy").hide();
							$("#change_phonenumber").hide();</p>
<p>							$('#comment_login_form').show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}
			///////////////////////////////////////////////////
			function commentsForm_sms_verify() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbFormN_smsVer = $.trim($("#fbFormN_smsVer").val());</p>
<p>				var hasErrors = false;</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_sms_verify&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&email="+encodeURIComponent(fbFormN_email)+"&telefone="+encodeURIComponent(fbFormN_telephone)+"&code="+ fbFormN_smsVer +"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId),
						error: function(){
						},
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {
								$("#commentLogin").hide();
								$("#sms_verify").hide();
								$("#fbFormN_smsVer").hide();
								$("#commentsForm_sms_veryfy").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>			//////////////////////////////////////////
			//swissnoise quiva
			function auto_login_quiva(data) {
				console.log("quiva login start");
				var user = {
					"remoteId": data.uid,
					"username": data.user.email,
					"password": data.pcr,
					"email": data.user.email,
					"firstName": data.user.first_name,
					"lastName": data.user.last_name,
					"zipCode": data.user.post_code,
					"locality": data.user.city,
					"phoneNumber": data.user.mobile_number
				};
				whatif.login(user).always(function() {</p>
<p>				});
				console.log("quiva login done");
			}
			//END swissnoise quiva</p>
<p>  			function auto_login_email(data) {
			    $(".commentFBlogin").hide();
			    $(".commentOhnelogin").hide();
			    var html = '';
			    var name = data.user.first_name +' '+ data.user.last_name;
			    html += '<span class="fbUserWelcome">Bienvenue, <span id="fbUserRealName">'+ name +'</span></span><br />';
			    html += '<a href="" id="commentsForm_send_email" onclick="return false;">Soumettre Commentaire</button>';
			    html += '<a href="" class="emailLogoutButton" onclick="return false;">Déconnecter</a><br />';
			    html += '<a href="" id="emailManageAccount" onclick="return false;">Gérer le profil</a>';
			    html += '<input id="login_email_token" name="login_email_token" value="'+ data.token +'" type="hidden">';
			    html += '<input id="login_email_email" name="login_email_email" value="'+ data.user.email +'" type="hidden">';
			    $("#commentLoggedInEmail").html(html);
			    set_logged_in_cookie(data);
			    $("#commentLoggedInEmail").show();</p>
<p>  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_send_noFb() {
  				var fbForm_message = $.trim($("#fbForm_message").val());  
  				fbForm_message = fbForm_message.replace(/&/g, "+");
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
  				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
  				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
  				var fbFormN_location = $.trim($("#fbFormN_location").val());
  				var fbFormN_email = $.trim($("#fbFormN_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				if ($("#fbFormN_password").length) {
  				    var fbFormN_password = $.trim($("#fbFormN_password").val());
  				}
  				if ($("#fbFormN_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; 
				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				// dont check for ZIP, cause of foreign countries 
				//var locReg = !(fbFormN_zip.match(/(*)/)) && !(fbFormN_location.match(/(*)/)) && fbFormN_zip.length > 1 && fbFormN_location.length > 1;   
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;
				var password_params = '';</p>
<p>				$("#commentError_name").hide();
				$("#commentError_location").hide();
				$("#commentError_email").hide();
				$("#commentError_password").hide();
				$("#commentError_message").hide();
				$("#commentError_disclaimer").hide();
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show();
					hasErrors = true;
				}</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show();
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;
				}</p>
<p>				if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show();
					$(".disclaimerText").show();
					hasErrors = true;
				}</p>
<p>				if (!hasErrors) {</p>
<p>					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "html",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=sendComment&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
						error: function(){ },
						success: function(){
							$("#commentLogin").hide();
							$("#fbForm_message").hide();
							$("#fbForm_message_count_class").hide();
							$("#commentError_message").hide();
							$("#commentInfo_Fb").hide();
							$("#commentsForm_send").hide();
							$("#fbCommentPublishCheckbox").hide();
							$("#commentsForm_send_noFb").hide();
							$("#disclaimerConfirm").hide();
							$("#commentInfo_noFb").show();
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_send_email() {
				var fbForm_message = $.trim($("#fbForm_message").val());  
				fbForm_message = fbForm_message.replace(/&/g, "+");
				var fbForm_uri = $.trim($("#fbForm_uri").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_ip = $.trim($("#fbForm_ip").val());
				var login_email_token = $.trim($("#login_email_token").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_email = $.trim($("#login_email_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message </p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; </p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$("#commentError_message").hide(); 	
				$("#commentError_disclaimer").hide(); 	
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>			    if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					commentNotSent = false;</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=send_comment_email&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&customer_id="+fbForm_customerId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID+"&email="+encodeURIComponent(fbFormN_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
						          	if (data.code == 1) {
						          	    $("#commentLogin").hide();
						          	    $("#fbForm_message").hide();
						          	    $("#fbForm_message_count_class").hide();      	
						          	    $("#commentError_message").hide();
									    $("#commentError_name").hide(); 	 	
									    $("#commentError_location").hide(); 	
									    $("#commentError_email").hide();	
									    $("#commentError_disclaimer").hide(); 	
									    $(".disclaimerText").hide();
									    $("#commentInfo_noFb").hide(); 
    									$("#commentsForm_send").hide(); 
									    $("#fbCommentPublishCheckbox").hide();
									    $("#disclaimerConfirm").hide();
									    $("#commentsForm_send_noFb").hide();	
						          	    $("#commentInfo_noFb").show();  
						          	    $("#commentSendLoading").hide();
						          	    $("#commentInfo_Notice").hide();
						          	    $("#manageAccount").hide();
						          	}
						          	else if (data.code == 2) {
						          	    setMessageBox(data.message, data.addclass);
						          	}
					    }     
				 	});		
				}		
  			}  			</p>
<p>			///////////////////////////////////////////////////
			///////////////////////////////////////////////////
  			// some jquery UI functions
			function fbLoginDisplay(loginState) {
				$(document).ready(function(){
					if (loginState == true) {
						$(".notloggedToFacebook").hide();
						$(".loggedToFacebook").show();
						$('#commentsForm_send_noFb').hide();
						$('#commentsForm_send').show();
						$("#fbCommentPublishCheckbox").show();
						$(".recommendCommentFacebook").show();
					}
	else {
						$(".loggedToFacebook").hide(); 
						$(".notloggedToFacebook").show(); 
						$('#commentsForm_send').hide();
						$('#commentsForm_send_noFb').show();
						$("#fbCommentPublishCheckbox").hide();
						$(".recommendCommentFacebook").hide();
						if ($("#commentLoggedInEmail").length) {
							$("#commentLoggedInEmail").show();
						}
				}});
  			}</p>
<p>  			///////////////////////////////////////////////////
  			function fbDomInsert(username, uid, token) {  
						$(document).ready(function(){  
		           $("#fbUserRealName").html(username); 
		           var imgHtml= "<img src='https://graph.facebook.com/me/picture?access_token="+token+"'/>";
		           $("#fbUserProfilePicture").html(imgHtml);</p>
<p>		           $("#fbForm_realName").val(username); 
		           $("#fbForm_userId").val(uid);
		           $("#fbForm_userToken").val(token);
	        	});
				}
				///////////////////////////////////////////////////
				function loginDrop() {
					$(document).ready(function(){
						$('#commentLogin').slideDown();
						$("textarea#fbForm_message").attr("rows", 6);
						$("#commentsForm_send").removeAttr("disabled");
						$("#commentsForm_send_noFb").attr("disabled", "");
						$("#commentsForm_send_email").removeAttr("disabled");
						$("#fbForm_message").val("");
						$('#fbForm_message').removeAttr("onclick");
					});
				}
		///////////////////////////////////////////////////
		function doOnFbConnect() {
			$(".recommendCommentFacebook").show(); // for comments below: display checkbox to choose if recommended comments get published on facebook
		}</p>
<p>		///////////////////////////////////////////////////
		function log(msg){
			if (typeof console === 'undefined') {
				return false;
			} else {
				return true;
			}
		}</p>
<p>		/////////////////////////////////////////////////////////////////////////////////	
        /////////////////////////////////////////////////////////////////////////////////  
        /////////////////////////////////////////////////////////////////////////////////
        // main </p>
<p>        // fb auth 
        var fbAccessToken = ''; 
        var fbUserID = ''; 
        var fbUserName = '';  
        FBcomments.initFb(); 
        var nnFBloggedIn = check_nnCookie();  
   			if (nnFBloggedIn == true) {
   				fbLoginDisplay(true); </p>
<p>   			}
   			else {
   				fbLoginDisplay(false); 
   			}</p>
<p>function inputFocus(thisFor, thisClass) {
    $('#'+ thisFor).focus(function() {
        $('.'+ thisClass).animate({ opacity: "0" }, "fast");
    }).blur(function() {
        if($(this).val() == "") {
            $('.'+ thisClass).animate({ opacity: "1" }, "fast");
        }
    });
}</p>
<p>			//// some more jquery stuff
   			$(document).ready(function(){
				read_logged_in_cookie();</p>
<p>				// hide 'populär auf facebook' widget in sideline
				//$("#fb_activityFeed").hide(); </p>
<p>				$("#fbCommentPublishCheckbox").hide();</p>
<p>$('#fbFormN_password_login').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_post_confirmed').focus().click();
        return false;
    }
});</p>
<p>$('#fbFormN_smsVer').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_sms_veryfy').focus().click();
        return false;
    }
});</p>
<p>// Bind to set the fadeout of form labels when clicked or focused
$('.sbsLabel label').each(function () {
    var thisFor = $(this).attr('for');
    var thisClass = $(this).attr('class');
    inputFocus(thisFor, thisClass);
});</p>
<p>   				// some form display handling 
					$('#disclaimerButtonShow').bind('click', function(){
						$('.disclaimerText').show();
						$('#disclaimerButtonShow').css('display','none');
						$('#disclaimerButtonHide').css('display','inline');
					});
					$('#disclaimerButtonHide').bind('click', function(){
						$('.disclaimerText').hide();
						$('#disclaimerButtonHide').css('display','none');
						$('#disclaimerButtonShow').css('display','inline');
					});</p>
<p>				// display login data on start 
				if ($("#fbUserRealName").html()) {
					if ($("#fbUserRealName").html().length >= 2){ // && $("textarea#fbForm_message").attr("rows") > 2
						$("#fbCommentPublishCheckbox").show();
					}
				}</p>
<p>				// clear textarea 
				$("#fbForm_message").val(''); </p>
<p>				// submit buttons , disable on on reload 
				$("#commentsForm_send").attr("disabled", "true");
				$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>				// set checkboxes
				$('#fbForm_publishOnFB').attr('checked', true); 
				$('.recommendCommentPublishOnFb').attr('checked', true); 
				$('#disclaimerConfirmBtn').attr('checked', false);</p>
<p>				// fixes a tiny bug: if values are prefilled on reload they should not be grey 
				var myFbFormIds = ('fbFormN_firstName', 'fbFormN_surname', 'fbFormN_zip', 'fbFormN_location', 'fbFormN_email', 'fbFormN_password', 'fbFormN_password_confirm');
				for (var ii=0;ii < myFbFormIds.length; ii++) {
				  if ($("#"+myFbFormIds(ii)).length) {
					if (!($("#"+myFbFormIds(ii)).val().match(/(*)/))) {
						$("#"+myFbFormIds(ii)).css('color','#000000'); 
					};
				  }
				}

				$('.comment_signup_form_toggle').live('click', function(){
					$('#comment_signup_form').toggle('slow');
					$('#comment_login_form').toggle('slow');
					return false;
				});

				$('.comment_form_forgot_password').live('click', function(){
				    $('#comment_password_reset_form').toggle('slow');
				    $('#comment_login_form').toggle('slow');
				    return false;
				});

				$('.emailLogoutButton').live('click', function() {
					delete_cookie('comment_login_details_email');
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$(".commentFBlogin").show();
					$(".commentOhnelogin").show();
				});

				$('#show_update_phone').live('click', function() {
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$("#comment_login_form").hide();

					$("#change_phonenumber").show();
					$(".commentOhnelogin").show();
				});

				$('#commentsForm_send_email').live('click', function() {
				    if (commentNotSent) {
				        commentsForm_send_email();
				    }
				});

				$('#emailManageAccount').live('click', function () {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());

				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=login_manage_account&#038;customer_id="+customer_id+"&#038;email="+encodeURIComponent(login_email_email)+"&#038;token="+login_email_token,
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#manageAccount').html(data.message);
					            $('#manageAccount').show();
					        }
					    }     
				 	});
				});

				});
        </script><br /></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</title>
		<link>https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-64/</link>
		
		<dc:creator><![CDATA[Conseil-Chauffage]]></dc:creator>
		<pubDate>Tue, 17 Mar 2020 07:09:59 +0000</pubDate>
				<category><![CDATA[Chauffage au Bois]]></category>
		<category><![CDATA[avec]]></category>
		<category><![CDATA[bois]]></category>
		<category><![CDATA[fines]]></category>
		<category><![CDATA[finir]]></category>
		<category><![CDATA[les]]></category>
		<category><![CDATA[Linvité]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[pour]]></category>
		<category><![CDATA[poussières]]></category>
		<category><![CDATA[Réflexions]]></category>
		<category><![CDATA[Signatures]]></category>
		<guid isPermaLink="false">https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-64/</guid>

					<description><![CDATA[L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse. Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable ... <p class="read-more-container"><a title="L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions" class="read-more button" href="https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-64/#more-1838" aria-label="Plus sur L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions">Lire l'Article</a></p>]]></description>
										<content:encoded><![CDATA[<h1>L&rsquo;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</h1>
<p></p>
<div id="mainContent">
<p>	Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse.</p>
<p>Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable de nos forêts, son potentiel est estimé pour le canton de Vaud à 30% de la chaleur consommée.</p>
<p>Mais des voix s&#39;élèvent régulièrement pour alerter sur les émissions polluantes de poussières fines du bois. Comment est-ce vraiment?</p>
<p>La Commission fédérale de l&#39;hygiène de l&#39;air a très bien résumé le problème dans son rapport &quot;Les poussières fines en Suisse 2013&quot;. Elle explique les très grandes différences existant selon le type de chauffage (ancien ou moderne, automatique ou manuel) et le type de bois de chauffage (bûches, granulés, copeaux de bois). Grâce à l&#39;amélioration des conditions de combustion, il met en évidence la diminution très importante de la quantité de poussières fines émises, mais, en plus et surtout, leurs changements de composition chimique et donc de nocivité.</p>
<p>Une combustion optimale ou complète signifie l&#39;absence totale ou presque complète de produits imbrûlés, principalement de la suie et du goudron, composés toxiques classés cancérigènes par l&#39;OMS. Les petites quantités de poussières fines résultant de la combustion complète du bois sont composées de sels minéraux peu ou peu toxiques pour la santé.</p>
<p>Concrètement, la Commission fédérale met en évidence une réduction du poids des poussières fines jusqu&#39;à un facteur 100 avec les usines de granulés modernes par rapport aux anciennes usines de grumes. Si l&#39;on tient toujours compte de l&#39;évolution de la composition chimique des poussières, le gain en termes de protection de la santé atteint un facteur de 1000, voire beaucoup plus. Une véritable révolution silencieuse a eu lieu!</p>
<p>Il convient donc d&#39;encourager l&#39;utilisation des installations de chauffage modernes, de les faire fonctionner correctement et de les entretenir en appliquant les règles pertinentes. C&#39;est l&#39;assurance d&#39;une combustion complète et propre du bois.</p>
<p>Pour un usage domestique, c&#39;est notamment le cas des poêles et chaudières à granulés automatiques, choisissez un combustible très sec assurant une combustion complète. Les granulés sont également idéaux pour les bâtiments ou pour un groupe de bâtiments.</p>
<p>Pour le chauffage central des villages ou des quartiers d&#39;habitation, les chaudières à copeaux de bois sont privilégiées et équipées de filtres performants pour respecter les très strictes limites d&#39;émission fixées par la Confédération (OPair). </p>
<p class="publishedDate">Créé: 02.03.2020, 06:49</p>
</p></div>
<p><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script language="javascript"></p>
<p>		var commentNotSent = true;
		///////////////////////////////////////////////////
		// object FBcomments, can be reused for FB authentification
        var FBcomments = {
        		fbAppId : '251285271592561',
                version: 'v2.0',
        		fbChannel_path : '/facebook_xd_receiver.html', 
        		isLoggedIn : false, </p>
<p>            ///////////////////////////////////////////////////
        		initFb : function() {	
	        		window.fbAsyncInit = function() {
                    FB.init({appId: FBcomments.fbAppId, version: FBcomments.version});
	                if (typeof FB === 'undefined') {
        		 				alert($("#tr_fbConnectError").html()); 
        		 			} 
	            };</p>
<p>                (function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)(0);
                    if (d.getElementById(id)) return;
                    js = d.createElement(s); js.id = id;
                    js.src = "http://connect.facebook.net/fr_FR/sdk.js";
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));
          	},
          	///////////////////////////////////////////////////
          	fbLogin : function() { 
          	 var populateFbData_ = this.populateFbData;
          	 var fbDisplay_ = this.fbDisplay;	
          	 var promptFanBox_ = this.promptFanBox;</p>
<p>        		 FB.init({appId: FBcomments.fbAppId, version: FBcomments.version}); 
        		 if (typeof FB === 'undefined') {
        		 	alert($("#tr_fbConnectError").html()); 
        		 } 	
							  	FB.login(function(response) {
									  if (response.authResponse) {
									     // granted some permissions 
									     this.isLoggedIn = true; 
									  	 populateFbData_(response.authResponse.accessToken, response.authResponse.userID);
									  	 fbDisplay_(); 
									  	 promptFanBox_(response.authResponse.userID);
									  } 
									  else { 
									    // user is not logged
									    this.isLoggedIn = false;
									  	fbDisplay_();  
									  }
									}, {scope:'publish_actions'});
				},
				///////////////////////////////////////////////////
				fbLogout : function() {  
					var fbDisplay_ = this.fbDisplay;
					$.cookie('fbsNN', '', { path: '/', expires: -1 });
					isLoggedIn = false;
					fbDisplay_();
        		},</p>
<p>				///////////////////////////////////////////////////
				populateFbData : function(accessToken, userID) {
					fbAccessToken = accessToken;
					fbUserID = userID;
					FB.api(
					'/me',
					{
						fields: 'name'
					},
					function(response) {
						var fbUserName = '';
						if (response){
							if (response.name){
								fbUserName = response.name;
							}
						}
						// store a fb-independent cookie for future login 
						$.cookie('fbsNN', "access_token="+escape(fbAccessToken)+""+"&uid="+fbUserID+"&realname="+escape(fbUserName), { path: '/', expires: 30 }); 
						fbDomInsert(fbUserName, fbUserID, fbAccessToken);
					}
					);
				},</p>
<p>				///////////////////////////////////////////////////
				promptFanBox : function(userId) {
  				 	FB.api({
					    method: 'fql.query',        
					    query: 'SELECT uid FROM page_fan WHERE uid='+userId+' AND page_id='+10150100771335484 
						},
							function(response) {
								if (typeof response(0) === 'undefined') {
									// user has not liked the page 
									$(document).ready(function(){  
										var txt = $("#tr_fanBoxPromptTitle").html(); 
										tb_show(txt,'/facebook_iframe.html?&height=250&width=645');
									});
								}	
							}
						 );
  				 },
  				 ///////////////////////////////////////////////////
  				 fbDisplay : function() {    
  				 		fbLoginDisplay(this.isLoggedIn );  
  				 		loginDrop();
  				 }
  				 ///////////////////////////////////////////////////
        } // end object</p>
<p>				///////////////////////////////////////////////////
				// cookie based user registration, maybe replaced by user DB in future
  			function fetch_nnCookie() { 
  				 		var nnRegex = /access_token=((^&)+)&uid=((0-9)+)&realname=(.+)/; 
							nnRegex.exec($.cookie('fbsNN')); 		 
							fbAccessToken = unescape(RegExp.$1);      
							fbUserID = RegExp.$2;
							fbUserName = unescape(RegExp.$3);	  
  			}
				///////////////////////////////////////////////////
  			function check_nnCookie() {	          
  				 	if( $.cookie('fbsNN') == null) {   	 
  				 		return false; 
  				 	}
  				 	else { 
							fetch_nnCookie();   
  				 		// check for valid data, delete cookie otherwise 
  				 		if (fbAccessToken != null && fbAccessToken.length > 0 && fbUserID != null && fbUserID.length > 0  && fbUserName != null && fbUserName.length > 0 && fbUserName != 'undefined') {
  				 			fbDomInsert(fbUserName, fbUserID, fbAccessToken); 
  				 			return true;   
  				 		}
  				 		else {
  				 			$.cookie('fbsNN', '', { expires: -1 }); 
  				 			return false;  
  				 		}
  				 	}
  			}</p>
<p>  			///////////////////////////////////////////////////
  			// form handler 
  			function commentsForm_send () {
  				var fbForm_message = $.trim($("#fbForm_message").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());			
  				var fbForm_realName = $.trim($("#fbForm_realName").val());
  				var fbForm_userId = $.trim($("#fbForm_userId").val());
  				var fbForm_userToken = $("#fbForm_userToken").val(); 
  				var fbForm_publishOnFB = $("#fbForm_publishOnFB:checked").val();
  				if (typeof fbForm_publishOnFB === 'undefined') {
  					fbForm_publishOnFB = 0; 
  				}
					var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());	
					var hasErrors = false; 
					var messageReg =  fbForm_message.length > 1; </p>
<p>					if (messageReg == false) {
						$("#commentError_message").show(); 	
						hasErrors = true; 
					}
					if (fbFormN_gotcha.length > 1) {
						hasErrors = true; 
					} </p>
<p>          if (!($('#disclaimerConfirmBtn').is(':checked'))) {
						$("#commentError_disclaimer").show();
						hasErrors = true; 
					}
  				if (!hasErrors) {
						$("#commentsForm_send").attr("disabled", "true");
						$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>						$("#commentSendLoading").show(); 
						$.ajax({ type: "POST",
							dataType: "text",
							cache: false,
							url: "/community/talkback_ajax.html",
							async: true,
							data: "action=sendComment&fbForm_realName="+encodeURIComponent(fbForm_realName)+"&fbForm_userId="+fbForm_userId+"&fbForm_userToken="+encodeURIComponent(fbForm_userToken)+"&fbForm_publishOnFB="+fbForm_publishOnFB+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
							error: function(){
								alert($("#tr_commentSendError").html()); 
							},
							complete: function(reqCode){
								$("#commentLogin").hide();
								$("#fbForm_message").hide();
								$("#fbForm_message_count_class").hide();      	
								$("#commentError_message").hide();
									$("#commentError_name").hide();
									$("#commentError_location").hide();
									$("#commentError_email").hide();
									$("#commentError_disclaimer").hide();
									$(".disclaimerText").hide();
									$("#commentInfo_noFb").hide();
									$("#commentsForm_send").hide();
									$("#fbCommentPublishCheckbox").hide();
									$("#commentsForm_send_noFb").hide();
								$("#commentInfo_Fb").show();
								$("#commentSendLoading").hide();
							}
						});
					} // hasErrors
				}</p>
<p> 			//////////////////////////////////////////////////
 			function delete_cookie(cookie) {
				$.cookie(cookie, null, {path: '/'});
 			}</p>
<p>			//////////////////////////////////////////////////
			function save_form_to_cookie(class_name) {
				var form = new Array();
				$("."+ class_name).each(function(index) {
					form(index) = {};
					form(index)('id') = $(this).attr("id");
					form(index)('val') = $(this).val();
				});
				$.cookie(class_name, JSON.stringify(form), {json:true});
			}</p>
<p> 			//////////////////////////////////////////////////
 			function save_object_to_cookie(data) {
 			    var form = new Array();
 			    form(0)('id') = 'fbFormN_firstName';
 			    form(0)('val') = '';
 			    form(1)('id') = 'fbFormN_surname';
 			    form(1)('val') = '';
 			    form(2)('id') = 'fbFormN_zip';
 			    form(2)('val') = '';
 			    form(3)('id') = 'fbFormN_location';
 			    form(3)('val') = '';
 			    form(4)('id') = 'fbFormN_email';
 			    form(4)('val') = '';
 			    $("."+ class_name).each(function(index) {
 			        form(index) = {};
 			        form(index)('id') = $(this).attr("id");
 			        form(index)('val') = $(this).val();
 			    });
 			    $.cookie(class_name, JSON.stringify(form), {json:true});
 			}</p>
<p>			//////////////////////////////////////////////////
			function set_logged_in_cookie(data) {
			    $.cookie('comment_login_details_email', JSON.stringify(data), {json:true,expires:14,path: '/'});
			}</p>
<p>			//////////////////////////////////////////////////
			function read_logged_in_cookie() {
				var cookie_form_data_json = $.cookie('comment_login_details_email');
				if (cookie_form_data_json != null) {
					var form_data = JSON.parse(cookie_form_data_json);
					if (typeof form_data != 'undefined') {
						if (form_data.user.customer_id == 53){
							if (typeof form_data.pcr != 'undefined' && form_data.pcr != null && form_data.pcr.length > 0){
								if (typeof form_data.uid != 'undefined' && form_data.uid != null && form_data.uid != 0){
									auto_login_email(form_data);
									return;
								}
							}
						} else {
							auto_login_email(form_data);
						}
					}
				}</p>
<p>			}</p>
<p> 			//////////////////////////////////////////////////
 			function read_form_from_cookie(class_name) {
 			    var cookie_form_data_json = $.cookie(class_name);
 			    var form_data = JSON.parse(cookie_form_data_json);
 			    $.each(form_data, function(index, value) {
 			        $("#"+ value.id).val(value.val);
 			    });
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_create_account() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
				var fbFormN_location = $.trim($("#fbFormN_location").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				if ($("#fbFormN_password").length) {
				    var fbFormN_password = $.trim($("#fbFormN_password").val());
				}
				if ($("#fbFormN_password_confirm").length) {
				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
				}</p>
<p>				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
if (fbFormN_telephone.length > 1) {</p>
<p>			var telephoneReg = (fbFormN_telephone.match(/^(ds)*$/));</p>
<p>}
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_telephone").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentError_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentError_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    $("#commentError_password").show();
					    hasErrors = true;
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_create_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId)+password_params,
						error: function(){ },
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {</p>
<p>			$("#disclaimerConfirm").hide();
			$("#commentLogin").hide();
			$("#fbForm_message").hide();
			$("#fbForm_message_count_class").hide();
			$("#commentError_message").hide();
			$("#commentInfo_Fb").hide(); 
			$("#commentsForm_send").hide();
			$("#fbCommentPublishCheckbox").hide();
			$("#commentsForm_send_noFb").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>				/////////////////////////////////////////////////
				function confirm_delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=confirm_delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html(data.message);
					            $('#deleteAccount').fadeIn(800);
					            $('#commentFormSubContainer').slideUp(1000);
					            $('body,html').stop().animate({
					                'scrollTop': $("#deleteAccount").offset().top-200
					            }, 1000)
					        }
					    }     
				 	});
				}</p>
<p>                /////////////////////////////////////////////////
				function cancel_delete_account() {
					$('#deleteAccount').html('');
					$('#deleteAccount').hide();
					$('#commentFormSubContainer').slideDown(1000);
				}</p>
<p>                /////////////////////////////////////////////////
				function delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
					        }
					        else if (data.code == 2) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
					        }
					    }     
				 	});
				}</p>
<p>  			//////////////////////////////////////////////////
  			function commentsForm_update_account_close() {
  			    $("#manageAccount").html('');
  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_update_account() {
  				var fbFormN_firstName = $.trim($("#update_firstName").val());
  				var fbFormN_surname = $.trim($("#update_surname").val());
  				var fbFormN_zip = $.trim($("#update_zip").val());
  				var fbFormN_location = $.trim($("#update_location").val());
  				var fbFormN_telephone = $.trim($("#update_telephone").val());
  				var fbFormN_email = $.trim($("#update_email").val());
  				var fbFormN_email_hidden = $.trim($("#update_email_hidden").val());
  				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
  				var login_email_token = $.trim($("#login_email_token").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				if ($("#update_password").length) {
  				    var fbFormN_password = $.trim($("#update_password").val());
  				}
  				if ($("#update_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#update_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; </p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentErrorUpdate_name").hide(); 	
				$("#commentErrorUpdate_location").hide(); 
				$("#commentErrorUpdate_telephone").hide(); 
				$("#commentErrorUpdate_email").hide(); 
				$("#commentErrorUpdate_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentErrorUpdate_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentErrorUpdate_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentErrorUpdate_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentErrorUpdate_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    if ((fbFormN_password != 'mot de passe' || fbFormN_password_confirm != 'confirmer le mot de passe') && (fbFormN_password != 'password' || fbFormN_password_confirm != 'confirm password')) {
					        $("#commentErrorUpdate_password").show();
					        hasErrors = true;
					    }
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
	                save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
				          dataType: "json",
				          cache: false,
	                	  url: "/community/talkback_ajax.html",
				          async: true,
				          data: "action=talkback_update_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbFormN_email_hidden="+encodeURIComponent(fbFormN_email_hidden)+"&customer_id="+fbForm_customerId+password_params+"&token="+login_email_token+"&story_id="+encodeURIComponent(fbForm_storyId),
				          error: function(){ },
				          success: function(data){
				          	if (data.code == 1) {
							    $("#disclaimerConfirm").hide();
				          	    $("#commentLogin").hide();
				          	    $("#fbForm_message").hide();
				          	    $("#fbForm_message_count_class").hide();
				          	    $("#commentErrorUpdate_message").hide();
				          	    $("#commentInfo_Fb").hide(); 
				          	    $("#commentsForm_send").hide();
				          	    $("#fbCommentPublishCheckbox").hide();
							    $("#commentsForm_send_noFb").hide(); 
			          		    $("#commentInfo_noFb").show();
			          		    $("#manageAccount").toggle();
			          		    $("#commentInfo_noFb").text(data.message);
			          		    setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
			          		} else if (data.code == 2){
								$("#commentLogin").show();
								$("#fbForm_message").show();
								$("#fbForm_message_count_class").show();
								$("#commentErrorUpdate_message").hide();
								$("#commentInfo_Fb").hide(); 
								$("#commentsForm_send").hide();
								$("#fbCommentPublishCheckbox").hide();
								$("#commentsForm_send_noFb").hide(); 
								$("#commentInfo_noFb").hide();
								$("#manageAccount").toggle();
								setMessageBox(data.message, data.addclass);
								if (data.user.customer_id == 53){
									auto_login_email(data);
								}
							} else if (data.code == 3){
								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p> 			// Handler to reset the timer on each notification 
 			var timeoutHandle;
 			function setMessageBox(message, boxclass) {
 			    $("#messageBox").hide();
 			    $("#messageBox").html(message);
 			    $("#messageBox").removeClass("warning error success").addClass(boxclass);
 			    $("#messageBox").fadeIn(1500);</p>
<p> 			    clearTimeout(timeoutHandle);</p>
<p> 			    timeoutHandle = setTimeout(function(){
 			        $("#messageBox").fadeOut(2000, function () {
 			      });
 			    }, 12000);
 			}</p>
<p> 			function forgot_password_send() {
				var email = $.trim($('#password_forgot_email').val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				if(emailRegObj.test(email) == false){      
					$("#commentError_password_forgot_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=reset_password&customer_id="+fbForm_customerId+"&email="+encodeURIComponent(email),  
					    error: function(){ },
					    success: function(data){
						        if (data.code = 0) {
						            setMessageBox(data.message, data.addclass);
						        }
						        else if (data.code = 1) {
						            $('#comment_password_reset_form').toggle('slow');
						            $('#comment_login_form').toggle('slow');
						            setMessageBox(data.message, data.addclass);
						        }
					    }     
				 	});</p>
<p>				}
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_login_noFb() {
				var fbFormN_email = $.trim($("#fbFormN_email_login").val());
				var fbFormN_password = $.trim($("#fbFormN_password_login").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); </p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					//$("#commentsForm_send").attr("disabled", "true");
					//$("#commentsForm_send_noFb").attr("disabled", "true");
					//save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_login_email&email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password),
						error: function(){</p>
<p>						},
						success: function(data){
							//$("#commentLogin").hide();
							//$("#fbForm_message").hide();
							//$("#fbForm_message_count_class").hide();
							//$("#commentError_message").hide();
							//$("#commentInfo_Fb").hide(); 
							//$("#commentsForm_send").hide();
							//$("#fbCommentPublishCheckbox").hide();
							//$("#commentsForm_send_noFb").hide(); </p>
<p>							if (data.code == 2) {
								$('.commentFBlogin').hide();
								$('#comment_login_form').hide();
								$("#change_phonenumber").show();
								setMessageBox(data.message, data.addclass);
							} else {
								$("#change_phonenumber").hide();
								//$("#commentInfo_noFb").show();
								//$("#commentLoggedInEmail").text(data.message);
								setMessageBox(data.message, data.addclass);
								$("#commentLoggedInEmail").show();
								if ('user' in data) {
									auto_login_email(data);
								}
							}
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////</p>
<p>			function comments_modifyForm_phone_change() {</p>
<p>				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change_sms_verify() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbFormN_sms_change_Ver = $.trim($("#fbFormN_sms_change_Ver").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change_sms_verify&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change)+"&code="+encodeURIComponent(fbFormN_sms_change_Ver),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_sms_change_ver").hide();
							$("#fbFormN_sms_change_Ver").hide();
							$("#commentsForm_sms_send_change_veryfy").hide();
							$("#change_phonenumber").hide();</p>
<p>							$('#comment_login_form').show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}
			///////////////////////////////////////////////////
			function commentsForm_sms_verify() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbFormN_smsVer = $.trim($("#fbFormN_smsVer").val());</p>
<p>				var hasErrors = false;</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_sms_verify&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&email="+encodeURIComponent(fbFormN_email)+"&telefone="+encodeURIComponent(fbFormN_telephone)+"&code="+ fbFormN_smsVer +"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId),
						error: function(){
						},
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {
								$("#commentLogin").hide();
								$("#sms_verify").hide();
								$("#fbFormN_smsVer").hide();
								$("#commentsForm_sms_veryfy").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>			//////////////////////////////////////////
			//swissnoise quiva
			function auto_login_quiva(data) {
				console.log("quiva login start");
				var user = {
					"remoteId": data.uid,
					"username": data.user.email,
					"password": data.pcr,
					"email": data.user.email,
					"firstName": data.user.first_name,
					"lastName": data.user.last_name,
					"zipCode": data.user.post_code,
					"locality": data.user.city,
					"phoneNumber": data.user.mobile_number
				};
				whatif.login(user).always(function() {</p>
<p>				});
				console.log("quiva login done");
			}
			//END swissnoise quiva</p>
<p>  			function auto_login_email(data) {
			    $(".commentFBlogin").hide();
			    $(".commentOhnelogin").hide();
			    var html = '';
			    var name = data.user.first_name +' '+ data.user.last_name;
			    html += '<span class="fbUserWelcome">Bienvenue, <span id="fbUserRealName">'+ name +'</span></span><br />';
			    html += '<a href="" id="commentsForm_send_email" onclick="return false;">Soumettre Commentaire</button>';
			    html += '<a href="" class="emailLogoutButton" onclick="return false;">Déconnecter</a><br />';
			    html += '<a href="" id="emailManageAccount" onclick="return false;">Gérer le profil</a>';
			    html += '<input id="login_email_token" name="login_email_token" value="'+ data.token +'" type="hidden">';
			    html += '<input id="login_email_email" name="login_email_email" value="'+ data.user.email +'" type="hidden">';
			    $("#commentLoggedInEmail").html(html);
			    set_logged_in_cookie(data);
			    $("#commentLoggedInEmail").show();</p>
<p>  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_send_noFb() {
  				var fbForm_message = $.trim($("#fbForm_message").val());  
  				fbForm_message = fbForm_message.replace(/&/g, "+");
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
  				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
  				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
  				var fbFormN_location = $.trim($("#fbFormN_location").val());
  				var fbFormN_email = $.trim($("#fbFormN_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				if ($("#fbFormN_password").length) {
  				    var fbFormN_password = $.trim($("#fbFormN_password").val());
  				}
  				if ($("#fbFormN_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; 
				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				// dont check for ZIP, cause of foreign countries 
				//var locReg = !(fbFormN_zip.match(/(*)/)) && !(fbFormN_location.match(/(*)/)) && fbFormN_zip.length > 1 && fbFormN_location.length > 1;   
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;
				var password_params = '';</p>
<p>				$("#commentError_name").hide();
				$("#commentError_location").hide();
				$("#commentError_email").hide();
				$("#commentError_password").hide();
				$("#commentError_message").hide();
				$("#commentError_disclaimer").hide();
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show();
					hasErrors = true;
				}</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show();
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;
				}</p>
<p>				if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show();
					$(".disclaimerText").show();
					hasErrors = true;
				}</p>
<p>				if (!hasErrors) {</p>
<p>					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "html",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=sendComment&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
						error: function(){ },
						success: function(){
							$("#commentLogin").hide();
							$("#fbForm_message").hide();
							$("#fbForm_message_count_class").hide();
							$("#commentError_message").hide();
							$("#commentInfo_Fb").hide();
							$("#commentsForm_send").hide();
							$("#fbCommentPublishCheckbox").hide();
							$("#commentsForm_send_noFb").hide();
							$("#disclaimerConfirm").hide();
							$("#commentInfo_noFb").show();
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_send_email() {
				var fbForm_message = $.trim($("#fbForm_message").val());  
				fbForm_message = fbForm_message.replace(/&/g, "+");
				var fbForm_uri = $.trim($("#fbForm_uri").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_ip = $.trim($("#fbForm_ip").val());
				var login_email_token = $.trim($("#login_email_token").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_email = $.trim($("#login_email_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message </p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; </p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$("#commentError_message").hide(); 	
				$("#commentError_disclaimer").hide(); 	
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>			    if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					commentNotSent = false;</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=send_comment_email&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&customer_id="+fbForm_customerId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID+"&email="+encodeURIComponent(fbFormN_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
						          	if (data.code == 1) {
						          	    $("#commentLogin").hide();
						          	    $("#fbForm_message").hide();
						          	    $("#fbForm_message_count_class").hide();      	
						          	    $("#commentError_message").hide();
									    $("#commentError_name").hide(); 	 	
									    $("#commentError_location").hide(); 	
									    $("#commentError_email").hide();	
									    $("#commentError_disclaimer").hide(); 	
									    $(".disclaimerText").hide();
									    $("#commentInfo_noFb").hide(); 
    									$("#commentsForm_send").hide(); 
									    $("#fbCommentPublishCheckbox").hide();
									    $("#disclaimerConfirm").hide();
									    $("#commentsForm_send_noFb").hide();	
						          	    $("#commentInfo_noFb").show();  
						          	    $("#commentSendLoading").hide();
						          	    $("#commentInfo_Notice").hide();
						          	    $("#manageAccount").hide();
						          	}
						          	else if (data.code == 2) {
						          	    setMessageBox(data.message, data.addclass);
						          	}
					    }     
				 	});		
				}		
  			}  			</p>
<p>			///////////////////////////////////////////////////
			///////////////////////////////////////////////////
  			// some jquery UI functions
			function fbLoginDisplay(loginState) {
				$(document).ready(function(){
					if (loginState == true) {
						$(".notloggedToFacebook").hide();
						$(".loggedToFacebook").show();
						$('#commentsForm_send_noFb').hide();
						$('#commentsForm_send').show();
						$("#fbCommentPublishCheckbox").show();
						$(".recommendCommentFacebook").show();
					}
	else {
						$(".loggedToFacebook").hide(); 
						$(".notloggedToFacebook").show(); 
						$('#commentsForm_send').hide();
						$('#commentsForm_send_noFb').show();
						$("#fbCommentPublishCheckbox").hide();
						$(".recommendCommentFacebook").hide();
						if ($("#commentLoggedInEmail").length) {
							$("#commentLoggedInEmail").show();
						}
				}});
  			}</p>
<p>  			///////////////////////////////////////////////////
  			function fbDomInsert(username, uid, token) {  
						$(document).ready(function(){  
		           $("#fbUserRealName").html(username); 
		           var imgHtml= "<img src='https://graph.facebook.com/me/picture?access_token="+token+"'/>";
		           $("#fbUserProfilePicture").html(imgHtml);</p>
<p>		           $("#fbForm_realName").val(username); 
		           $("#fbForm_userId").val(uid);
		           $("#fbForm_userToken").val(token);
	        	});
				}
				///////////////////////////////////////////////////
				function loginDrop() {
					$(document).ready(function(){
						$('#commentLogin').slideDown();
						$("textarea#fbForm_message").attr("rows", 6);
						$("#commentsForm_send").removeAttr("disabled");
						$("#commentsForm_send_noFb").attr("disabled", "");
						$("#commentsForm_send_email").removeAttr("disabled");
						$("#fbForm_message").val("");
						$('#fbForm_message').removeAttr("onclick");
					});
				}
		///////////////////////////////////////////////////
		function doOnFbConnect() {
			$(".recommendCommentFacebook").show(); // for comments below: display checkbox to choose if recommended comments get published on facebook
		}</p>
<p>		///////////////////////////////////////////////////
		function log(msg){
			if (typeof console === 'undefined') {
				return false;
			} else {
				return true;
			}
		}</p>
<p>		/////////////////////////////////////////////////////////////////////////////////	
        /////////////////////////////////////////////////////////////////////////////////  
        /////////////////////////////////////////////////////////////////////////////////
        // main </p>
<p>        // fb auth 
        var fbAccessToken = ''; 
        var fbUserID = ''; 
        var fbUserName = '';  
        FBcomments.initFb(); 
        var nnFBloggedIn = check_nnCookie();  
   			if (nnFBloggedIn == true) {
   				fbLoginDisplay(true); </p>
<p>   			}
   			else {
   				fbLoginDisplay(false); 
   			}</p>
<p>function inputFocus(thisFor, thisClass) {
    $('#'+ thisFor).focus(function() {
        $('.'+ thisClass).animate({ opacity: "0" }, "fast");
    }).blur(function() {
        if($(this).val() == "") {
            $('.'+ thisClass).animate({ opacity: "1" }, "fast");
        }
    });
}</p>
<p>			//// some more jquery stuff
   			$(document).ready(function(){
				read_logged_in_cookie();</p>
<p>				// hide 'populär auf facebook' widget in sideline
				//$("#fb_activityFeed").hide(); </p>
<p>				$("#fbCommentPublishCheckbox").hide();</p>
<p>$('#fbFormN_password_login').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_post_confirmed').focus().click();
        return false;
    }
});</p>
<p>$('#fbFormN_smsVer').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_sms_veryfy').focus().click();
        return false;
    }
});</p>
<p>// Bind to set the fadeout of form labels when clicked or focused
$('.sbsLabel label').each(function () {
    var thisFor = $(this).attr('for');
    var thisClass = $(this).attr('class');
    inputFocus(thisFor, thisClass);
});</p>
<p>   				// some form display handling 
					$('#disclaimerButtonShow').bind('click', function(){
						$('.disclaimerText').show();
						$('#disclaimerButtonShow').css('display','none');
						$('#disclaimerButtonHide').css('display','inline');
					});
					$('#disclaimerButtonHide').bind('click', function(){
						$('.disclaimerText').hide();
						$('#disclaimerButtonHide').css('display','none');
						$('#disclaimerButtonShow').css('display','inline');
					});</p>
<p>				// display login data on start 
				if ($("#fbUserRealName").html()) {
					if ($("#fbUserRealName").html().length >= 2){ // && $("textarea#fbForm_message").attr("rows") > 2
						$("#fbCommentPublishCheckbox").show();
					}
				}</p>
<p>				// clear textarea 
				$("#fbForm_message").val(''); </p>
<p>				// submit buttons , disable on on reload 
				$("#commentsForm_send").attr("disabled", "true");
				$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>				// set checkboxes
				$('#fbForm_publishOnFB').attr('checked', true); 
				$('.recommendCommentPublishOnFb').attr('checked', true); 
				$('#disclaimerConfirmBtn').attr('checked', false);</p>
<p>				// fixes a tiny bug: if values are prefilled on reload they should not be grey 
				var myFbFormIds = ('fbFormN_firstName', 'fbFormN_surname', 'fbFormN_zip', 'fbFormN_location', 'fbFormN_email', 'fbFormN_password', 'fbFormN_password_confirm');
				for (var ii=0;ii < myFbFormIds.length; ii++) {
				  if ($("#"+myFbFormIds(ii)).length) {
					if (!($("#"+myFbFormIds(ii)).val().match(/(*)/))) {
						$("#"+myFbFormIds(ii)).css('color','#000000'); 
					};
				  }
				}

				$('.comment_signup_form_toggle').live('click', function(){
					$('#comment_signup_form').toggle('slow');
					$('#comment_login_form').toggle('slow');
					return false;
				});

				$('.comment_form_forgot_password').live('click', function(){
				    $('#comment_password_reset_form').toggle('slow');
				    $('#comment_login_form').toggle('slow');
				    return false;
				});

				$('.emailLogoutButton').live('click', function() {
					delete_cookie('comment_login_details_email');
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$(".commentFBlogin").show();
					$(".commentOhnelogin").show();
				});

				$('#show_update_phone').live('click', function() {
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$("#comment_login_form").hide();

					$("#change_phonenumber").show();
					$(".commentOhnelogin").show();
				});

				$('#commentsForm_send_email').live('click', function() {
				    if (commentNotSent) {
				        commentsForm_send_email();
				    }
				});

				$('#emailManageAccount').live('click', function () {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());

				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=login_manage_account&#038;customer_id="+customer_id+"&#038;email="+encodeURIComponent(login_email_email)+"&#038;token="+login_email_token,
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#manageAccount').html(data.message);
					            $('#manageAccount').show();
					        }
					    }     
				 	});
				});

				});
        </script><br /></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</title>
		<link>https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-63/</link>
		
		<dc:creator><![CDATA[Conseil-Chauffage]]></dc:creator>
		<pubDate>Mon, 16 Mar 2020 22:38:18 +0000</pubDate>
				<category><![CDATA[Chauffage au Bois]]></category>
		<category><![CDATA[avec]]></category>
		<category><![CDATA[bois]]></category>
		<category><![CDATA[fines]]></category>
		<category><![CDATA[finir]]></category>
		<category><![CDATA[les]]></category>
		<category><![CDATA[Linvité]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[pour]]></category>
		<category><![CDATA[poussières]]></category>
		<category><![CDATA[Réflexions]]></category>
		<category><![CDATA[Signatures]]></category>
		<guid isPermaLink="false">https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-63/</guid>

					<description><![CDATA[L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse. Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable ... <p class="read-more-container"><a title="L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions" class="read-more button" href="https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-63/#more-1827" aria-label="Plus sur L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions">Lire l'Article</a></p>]]></description>
										<content:encoded><![CDATA[<h1>L&rsquo;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</h1>
<p></p>
<div id="mainContent">
<p>	Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse.</p>
<p>Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable de nos forêts, son potentiel est estimé pour le canton de Vaud à 30% de la chaleur consommée.</p>
<p>Mais des voix s&#39;élèvent régulièrement pour alerter sur les émissions polluantes de poussières fines du bois. Comment est-ce vraiment?</p>
<p>La Commission fédérale de l&#39;hygiène de l&#39;air a très bien résumé le problème dans son rapport &quot;Les poussières fines en Suisse 2013&quot;. Elle explique les très grandes différences existant selon le type de chauffage (ancien ou moderne, automatique ou manuel) et le type de bois de chauffage (bûches, granulés, copeaux de bois). Grâce à l&#39;amélioration des conditions de combustion, il met en évidence la diminution très importante de la quantité de poussières fines émises, mais, en plus et surtout, leurs changements de composition chimique et donc de nocivité.</p>
<p>Une combustion optimale ou complète signifie l&#39;absence totale ou presque complète de produits imbrûlés, principalement de la suie et du goudron, composés toxiques classés cancérigènes par l&#39;OMS. Les petites quantités de poussières fines résultant de la combustion complète du bois sont composées de sels minéraux peu ou peu toxiques pour la santé.</p>
<p>Concrètement, la Commission fédérale met en évidence une réduction du poids des poussières fines jusqu&#39;à un facteur 100 avec les usines de granulés modernes par rapport aux anciennes usines de grumes. Si l&#39;on tient toujours compte de l&#39;évolution de la composition chimique des poussières, le gain en termes de protection de la santé atteint un facteur de 1000, voire beaucoup plus. Une véritable révolution silencieuse a eu lieu!</p>
<p>Il convient donc d&#39;encourager l&#39;utilisation des installations de chauffage modernes, de les faire fonctionner correctement et de les entretenir en appliquant les règles pertinentes. C&#39;est l&#39;assurance d&#39;une combustion complète et propre du bois.</p>
<p>Pour un usage domestique, c&#39;est notamment le cas des poêles et chaudières à granulés automatiques, choisissez un combustible très sec assurant une combustion complète. Les granulés sont également idéaux pour les bâtiments ou pour un groupe de bâtiments.</p>
<p>Pour le chauffage central des villages ou des quartiers d&#39;habitation, les chaudières à copeaux de bois sont privilégiées et équipées de filtres performants pour respecter les très strictes limites d&#39;émission fixées par la Confédération (OPair). </p>
<p class="publishedDate">Créé: 02.03.2020, 06:49</p>
</p></div>
<p><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script language="javascript"></p>
<p>		var commentNotSent = true;
		///////////////////////////////////////////////////
		// object FBcomments, can be reused for FB authentification
        var FBcomments = {
        		fbAppId : '251285271592561',
                version: 'v2.0',
        		fbChannel_path : '/facebook_xd_receiver.html', 
        		isLoggedIn : false, </p>
<p>            ///////////////////////////////////////////////////
        		initFb : function() {	
	        		window.fbAsyncInit = function() {
                    FB.init({appId: FBcomments.fbAppId, version: FBcomments.version});
	                if (typeof FB === 'undefined') {
        		 				alert($("#tr_fbConnectError").html()); 
        		 			} 
	            };</p>
<p>                (function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)(0);
                    if (d.getElementById(id)) return;
                    js = d.createElement(s); js.id = id;
                    js.src = "http://connect.facebook.net/fr_FR/sdk.js";
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));
          	},
          	///////////////////////////////////////////////////
          	fbLogin : function() { 
          	 var populateFbData_ = this.populateFbData;
          	 var fbDisplay_ = this.fbDisplay;	
          	 var promptFanBox_ = this.promptFanBox;</p>
<p>        		 FB.init({appId: FBcomments.fbAppId, version: FBcomments.version}); 
        		 if (typeof FB === 'undefined') {
        		 	alert($("#tr_fbConnectError").html()); 
        		 } 	
							  	FB.login(function(response) {
									  if (response.authResponse) {
									     // granted some permissions 
									     this.isLoggedIn = true; 
									  	 populateFbData_(response.authResponse.accessToken, response.authResponse.userID);
									  	 fbDisplay_(); 
									  	 promptFanBox_(response.authResponse.userID);
									  } 
									  else { 
									    // user is not logged
									    this.isLoggedIn = false;
									  	fbDisplay_();  
									  }
									}, {scope:'publish_actions'});
				},
				///////////////////////////////////////////////////
				fbLogout : function() {  
					var fbDisplay_ = this.fbDisplay;
					$.cookie('fbsNN', '', { path: '/', expires: -1 });
					isLoggedIn = false;
					fbDisplay_();
        		},</p>
<p>				///////////////////////////////////////////////////
				populateFbData : function(accessToken, userID) {
					fbAccessToken = accessToken;
					fbUserID = userID;
					FB.api(
					'/me',
					{
						fields: 'name'
					},
					function(response) {
						var fbUserName = '';
						if (response){
							if (response.name){
								fbUserName = response.name;
							}
						}
						// store a fb-independent cookie for future login 
						$.cookie('fbsNN', "access_token="+escape(fbAccessToken)+""+"&uid="+fbUserID+"&realname="+escape(fbUserName), { path: '/', expires: 30 }); 
						fbDomInsert(fbUserName, fbUserID, fbAccessToken);
					}
					);
				},</p>
<p>				///////////////////////////////////////////////////
				promptFanBox : function(userId) {
  				 	FB.api({
					    method: 'fql.query',        
					    query: 'SELECT uid FROM page_fan WHERE uid='+userId+' AND page_id='+10150100771335484 
						},
							function(response) {
								if (typeof response(0) === 'undefined') {
									// user has not liked the page 
									$(document).ready(function(){  
										var txt = $("#tr_fanBoxPromptTitle").html(); 
										tb_show(txt,'/facebook_iframe.html?&height=250&width=645');
									});
								}	
							}
						 );
  				 },
  				 ///////////////////////////////////////////////////
  				 fbDisplay : function() {    
  				 		fbLoginDisplay(this.isLoggedIn );  
  				 		loginDrop();
  				 }
  				 ///////////////////////////////////////////////////
        } // end object</p>
<p>				///////////////////////////////////////////////////
				// cookie based user registration, maybe replaced by user DB in future
  			function fetch_nnCookie() { 
  				 		var nnRegex = /access_token=((^&)+)&uid=((0-9)+)&realname=(.+)/; 
							nnRegex.exec($.cookie('fbsNN')); 		 
							fbAccessToken = unescape(RegExp.$1);      
							fbUserID = RegExp.$2;
							fbUserName = unescape(RegExp.$3);	  
  			}
				///////////////////////////////////////////////////
  			function check_nnCookie() {	          
  				 	if( $.cookie('fbsNN') == null) {   	 
  				 		return false; 
  				 	}
  				 	else { 
							fetch_nnCookie();   
  				 		// check for valid data, delete cookie otherwise 
  				 		if (fbAccessToken != null && fbAccessToken.length > 0 && fbUserID != null && fbUserID.length > 0  && fbUserName != null && fbUserName.length > 0 && fbUserName != 'undefined') {
  				 			fbDomInsert(fbUserName, fbUserID, fbAccessToken); 
  				 			return true;   
  				 		}
  				 		else {
  				 			$.cookie('fbsNN', '', { expires: -1 }); 
  				 			return false;  
  				 		}
  				 	}
  			}</p>
<p>  			///////////////////////////////////////////////////
  			// form handler 
  			function commentsForm_send () {
  				var fbForm_message = $.trim($("#fbForm_message").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());			
  				var fbForm_realName = $.trim($("#fbForm_realName").val());
  				var fbForm_userId = $.trim($("#fbForm_userId").val());
  				var fbForm_userToken = $("#fbForm_userToken").val(); 
  				var fbForm_publishOnFB = $("#fbForm_publishOnFB:checked").val();
  				if (typeof fbForm_publishOnFB === 'undefined') {
  					fbForm_publishOnFB = 0; 
  				}
					var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());	
					var hasErrors = false; 
					var messageReg =  fbForm_message.length > 1; </p>
<p>					if (messageReg == false) {
						$("#commentError_message").show(); 	
						hasErrors = true; 
					}
					if (fbFormN_gotcha.length > 1) {
						hasErrors = true; 
					} </p>
<p>          if (!($('#disclaimerConfirmBtn').is(':checked'))) {
						$("#commentError_disclaimer").show();
						hasErrors = true; 
					}
  				if (!hasErrors) {
						$("#commentsForm_send").attr("disabled", "true");
						$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>						$("#commentSendLoading").show(); 
						$.ajax({ type: "POST",
							dataType: "text",
							cache: false,
							url: "/community/talkback_ajax.html",
							async: true,
							data: "action=sendComment&fbForm_realName="+encodeURIComponent(fbForm_realName)+"&fbForm_userId="+fbForm_userId+"&fbForm_userToken="+encodeURIComponent(fbForm_userToken)+"&fbForm_publishOnFB="+fbForm_publishOnFB+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
							error: function(){
								alert($("#tr_commentSendError").html()); 
							},
							complete: function(reqCode){
								$("#commentLogin").hide();
								$("#fbForm_message").hide();
								$("#fbForm_message_count_class").hide();      	
								$("#commentError_message").hide();
									$("#commentError_name").hide();
									$("#commentError_location").hide();
									$("#commentError_email").hide();
									$("#commentError_disclaimer").hide();
									$(".disclaimerText").hide();
									$("#commentInfo_noFb").hide();
									$("#commentsForm_send").hide();
									$("#fbCommentPublishCheckbox").hide();
									$("#commentsForm_send_noFb").hide();
								$("#commentInfo_Fb").show();
								$("#commentSendLoading").hide();
							}
						});
					} // hasErrors
				}</p>
<p> 			//////////////////////////////////////////////////
 			function delete_cookie(cookie) {
				$.cookie(cookie, null, {path: '/'});
 			}</p>
<p>			//////////////////////////////////////////////////
			function save_form_to_cookie(class_name) {
				var form = new Array();
				$("."+ class_name).each(function(index) {
					form(index) = {};
					form(index)('id') = $(this).attr("id");
					form(index)('val') = $(this).val();
				});
				$.cookie(class_name, JSON.stringify(form), {json:true});
			}</p>
<p> 			//////////////////////////////////////////////////
 			function save_object_to_cookie(data) {
 			    var form = new Array();
 			    form(0)('id') = 'fbFormN_firstName';
 			    form(0)('val') = '';
 			    form(1)('id') = 'fbFormN_surname';
 			    form(1)('val') = '';
 			    form(2)('id') = 'fbFormN_zip';
 			    form(2)('val') = '';
 			    form(3)('id') = 'fbFormN_location';
 			    form(3)('val') = '';
 			    form(4)('id') = 'fbFormN_email';
 			    form(4)('val') = '';
 			    $("."+ class_name).each(function(index) {
 			        form(index) = {};
 			        form(index)('id') = $(this).attr("id");
 			        form(index)('val') = $(this).val();
 			    });
 			    $.cookie(class_name, JSON.stringify(form), {json:true});
 			}</p>
<p>			//////////////////////////////////////////////////
			function set_logged_in_cookie(data) {
			    $.cookie('comment_login_details_email', JSON.stringify(data), {json:true,expires:14,path: '/'});
			}</p>
<p>			//////////////////////////////////////////////////
			function read_logged_in_cookie() {
				var cookie_form_data_json = $.cookie('comment_login_details_email');
				if (cookie_form_data_json != null) {
					var form_data = JSON.parse(cookie_form_data_json);
					if (typeof form_data != 'undefined') {
						if (form_data.user.customer_id == 53){
							if (typeof form_data.pcr != 'undefined' && form_data.pcr != null && form_data.pcr.length > 0){
								if (typeof form_data.uid != 'undefined' && form_data.uid != null && form_data.uid != 0){
									auto_login_email(form_data);
									return;
								}
							}
						} else {
							auto_login_email(form_data);
						}
					}
				}</p>
<p>			}</p>
<p> 			//////////////////////////////////////////////////
 			function read_form_from_cookie(class_name) {
 			    var cookie_form_data_json = $.cookie(class_name);
 			    var form_data = JSON.parse(cookie_form_data_json);
 			    $.each(form_data, function(index, value) {
 			        $("#"+ value.id).val(value.val);
 			    });
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_create_account() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
				var fbFormN_location = $.trim($("#fbFormN_location").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				if ($("#fbFormN_password").length) {
				    var fbFormN_password = $.trim($("#fbFormN_password").val());
				}
				if ($("#fbFormN_password_confirm").length) {
				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
				}</p>
<p>				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
if (fbFormN_telephone.length > 1) {</p>
<p>			var telephoneReg = (fbFormN_telephone.match(/^(ds)*$/));</p>
<p>}
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_telephone").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentError_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentError_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    $("#commentError_password").show();
					    hasErrors = true;
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_create_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId)+password_params,
						error: function(){ },
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {</p>
<p>			$("#disclaimerConfirm").hide();
			$("#commentLogin").hide();
			$("#fbForm_message").hide();
			$("#fbForm_message_count_class").hide();
			$("#commentError_message").hide();
			$("#commentInfo_Fb").hide(); 
			$("#commentsForm_send").hide();
			$("#fbCommentPublishCheckbox").hide();
			$("#commentsForm_send_noFb").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>				/////////////////////////////////////////////////
				function confirm_delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=confirm_delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html(data.message);
					            $('#deleteAccount').fadeIn(800);
					            $('#commentFormSubContainer').slideUp(1000);
					            $('body,html').stop().animate({
					                'scrollTop': $("#deleteAccount").offset().top-200
					            }, 1000)
					        }
					    }     
				 	});
				}</p>
<p>                /////////////////////////////////////////////////
				function cancel_delete_account() {
					$('#deleteAccount').html('');
					$('#deleteAccount').hide();
					$('#commentFormSubContainer').slideDown(1000);
				}</p>
<p>                /////////////////////////////////////////////////
				function delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
					        }
					        else if (data.code == 2) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
					        }
					    }     
				 	});
				}</p>
<p>  			//////////////////////////////////////////////////
  			function commentsForm_update_account_close() {
  			    $("#manageAccount").html('');
  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_update_account() {
  				var fbFormN_firstName = $.trim($("#update_firstName").val());
  				var fbFormN_surname = $.trim($("#update_surname").val());
  				var fbFormN_zip = $.trim($("#update_zip").val());
  				var fbFormN_location = $.trim($("#update_location").val());
  				var fbFormN_telephone = $.trim($("#update_telephone").val());
  				var fbFormN_email = $.trim($("#update_email").val());
  				var fbFormN_email_hidden = $.trim($("#update_email_hidden").val());
  				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
  				var login_email_token = $.trim($("#login_email_token").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				if ($("#update_password").length) {
  				    var fbFormN_password = $.trim($("#update_password").val());
  				}
  				if ($("#update_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#update_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; </p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentErrorUpdate_name").hide(); 	
				$("#commentErrorUpdate_location").hide(); 
				$("#commentErrorUpdate_telephone").hide(); 
				$("#commentErrorUpdate_email").hide(); 
				$("#commentErrorUpdate_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentErrorUpdate_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentErrorUpdate_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentErrorUpdate_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentErrorUpdate_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    if ((fbFormN_password != 'mot de passe' || fbFormN_password_confirm != 'confirmer le mot de passe') && (fbFormN_password != 'password' || fbFormN_password_confirm != 'confirm password')) {
					        $("#commentErrorUpdate_password").show();
					        hasErrors = true;
					    }
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
	                save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
				          dataType: "json",
				          cache: false,
	                	  url: "/community/talkback_ajax.html",
				          async: true,
				          data: "action=talkback_update_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbFormN_email_hidden="+encodeURIComponent(fbFormN_email_hidden)+"&customer_id="+fbForm_customerId+password_params+"&token="+login_email_token+"&story_id="+encodeURIComponent(fbForm_storyId),
				          error: function(){ },
				          success: function(data){
				          	if (data.code == 1) {
							    $("#disclaimerConfirm").hide();
				          	    $("#commentLogin").hide();
				          	    $("#fbForm_message").hide();
				          	    $("#fbForm_message_count_class").hide();
				          	    $("#commentErrorUpdate_message").hide();
				          	    $("#commentInfo_Fb").hide(); 
				          	    $("#commentsForm_send").hide();
				          	    $("#fbCommentPublishCheckbox").hide();
							    $("#commentsForm_send_noFb").hide(); 
			          		    $("#commentInfo_noFb").show();
			          		    $("#manageAccount").toggle();
			          		    $("#commentInfo_noFb").text(data.message);
			          		    setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
			          		} else if (data.code == 2){
								$("#commentLogin").show();
								$("#fbForm_message").show();
								$("#fbForm_message_count_class").show();
								$("#commentErrorUpdate_message").hide();
								$("#commentInfo_Fb").hide(); 
								$("#commentsForm_send").hide();
								$("#fbCommentPublishCheckbox").hide();
								$("#commentsForm_send_noFb").hide(); 
								$("#commentInfo_noFb").hide();
								$("#manageAccount").toggle();
								setMessageBox(data.message, data.addclass);
								if (data.user.customer_id == 53){
									auto_login_email(data);
								}
							} else if (data.code == 3){
								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p> 			// Handler to reset the timer on each notification 
 			var timeoutHandle;
 			function setMessageBox(message, boxclass) {
 			    $("#messageBox").hide();
 			    $("#messageBox").html(message);
 			    $("#messageBox").removeClass("warning error success").addClass(boxclass);
 			    $("#messageBox").fadeIn(1500);</p>
<p> 			    clearTimeout(timeoutHandle);</p>
<p> 			    timeoutHandle = setTimeout(function(){
 			        $("#messageBox").fadeOut(2000, function () {
 			      });
 			    }, 12000);
 			}</p>
<p> 			function forgot_password_send() {
				var email = $.trim($('#password_forgot_email').val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				if(emailRegObj.test(email) == false){      
					$("#commentError_password_forgot_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=reset_password&customer_id="+fbForm_customerId+"&email="+encodeURIComponent(email),  
					    error: function(){ },
					    success: function(data){
						        if (data.code = 0) {
						            setMessageBox(data.message, data.addclass);
						        }
						        else if (data.code = 1) {
						            $('#comment_password_reset_form').toggle('slow');
						            $('#comment_login_form').toggle('slow');
						            setMessageBox(data.message, data.addclass);
						        }
					    }     
				 	});</p>
<p>				}
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_login_noFb() {
				var fbFormN_email = $.trim($("#fbFormN_email_login").val());
				var fbFormN_password = $.trim($("#fbFormN_password_login").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); </p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					//$("#commentsForm_send").attr("disabled", "true");
					//$("#commentsForm_send_noFb").attr("disabled", "true");
					//save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_login_email&email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password),
						error: function(){</p>
<p>						},
						success: function(data){
							//$("#commentLogin").hide();
							//$("#fbForm_message").hide();
							//$("#fbForm_message_count_class").hide();
							//$("#commentError_message").hide();
							//$("#commentInfo_Fb").hide(); 
							//$("#commentsForm_send").hide();
							//$("#fbCommentPublishCheckbox").hide();
							//$("#commentsForm_send_noFb").hide(); </p>
<p>							if (data.code == 2) {
								$('.commentFBlogin').hide();
								$('#comment_login_form').hide();
								$("#change_phonenumber").show();
								setMessageBox(data.message, data.addclass);
							} else {
								$("#change_phonenumber").hide();
								//$("#commentInfo_noFb").show();
								//$("#commentLoggedInEmail").text(data.message);
								setMessageBox(data.message, data.addclass);
								$("#commentLoggedInEmail").show();
								if ('user' in data) {
									auto_login_email(data);
								}
							}
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////</p>
<p>			function comments_modifyForm_phone_change() {</p>
<p>				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change_sms_verify() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbFormN_sms_change_Ver = $.trim($("#fbFormN_sms_change_Ver").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change_sms_verify&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change)+"&code="+encodeURIComponent(fbFormN_sms_change_Ver),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_sms_change_ver").hide();
							$("#fbFormN_sms_change_Ver").hide();
							$("#commentsForm_sms_send_change_veryfy").hide();
							$("#change_phonenumber").hide();</p>
<p>							$('#comment_login_form').show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}
			///////////////////////////////////////////////////
			function commentsForm_sms_verify() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbFormN_smsVer = $.trim($("#fbFormN_smsVer").val());</p>
<p>				var hasErrors = false;</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_sms_verify&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&email="+encodeURIComponent(fbFormN_email)+"&telefone="+encodeURIComponent(fbFormN_telephone)+"&code="+ fbFormN_smsVer +"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId),
						error: function(){
						},
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {
								$("#commentLogin").hide();
								$("#sms_verify").hide();
								$("#fbFormN_smsVer").hide();
								$("#commentsForm_sms_veryfy").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>			//////////////////////////////////////////
			//swissnoise quiva
			function auto_login_quiva(data) {
				console.log("quiva login start");
				var user = {
					"remoteId": data.uid,
					"username": data.user.email,
					"password": data.pcr,
					"email": data.user.email,
					"firstName": data.user.first_name,
					"lastName": data.user.last_name,
					"zipCode": data.user.post_code,
					"locality": data.user.city,
					"phoneNumber": data.user.mobile_number
				};
				whatif.login(user).always(function() {</p>
<p>				});
				console.log("quiva login done");
			}
			//END swissnoise quiva</p>
<p>  			function auto_login_email(data) {
			    $(".commentFBlogin").hide();
			    $(".commentOhnelogin").hide();
			    var html = '';
			    var name = data.user.first_name +' '+ data.user.last_name;
			    html += '<span class="fbUserWelcome">Bienvenue, <span id="fbUserRealName">'+ name +'</span></span><br />';
			    html += '<a href="" id="commentsForm_send_email" onclick="return false;">Soumettre Commentaire</button>';
			    html += '<a href="" class="emailLogoutButton" onclick="return false;">Déconnecter</a><br />';
			    html += '<a href="" id="emailManageAccount" onclick="return false;">Gérer le profil</a>';
			    html += '<input id="login_email_token" name="login_email_token" value="'+ data.token +'" type="hidden">';
			    html += '<input id="login_email_email" name="login_email_email" value="'+ data.user.email +'" type="hidden">';
			    $("#commentLoggedInEmail").html(html);
			    set_logged_in_cookie(data);
			    $("#commentLoggedInEmail").show();</p>
<p>  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_send_noFb() {
  				var fbForm_message = $.trim($("#fbForm_message").val());  
  				fbForm_message = fbForm_message.replace(/&/g, "+");
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
  				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
  				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
  				var fbFormN_location = $.trim($("#fbFormN_location").val());
  				var fbFormN_email = $.trim($("#fbFormN_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				if ($("#fbFormN_password").length) {
  				    var fbFormN_password = $.trim($("#fbFormN_password").val());
  				}
  				if ($("#fbFormN_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; 
				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				// dont check for ZIP, cause of foreign countries 
				//var locReg = !(fbFormN_zip.match(/(*)/)) && !(fbFormN_location.match(/(*)/)) && fbFormN_zip.length > 1 && fbFormN_location.length > 1;   
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;
				var password_params = '';</p>
<p>				$("#commentError_name").hide();
				$("#commentError_location").hide();
				$("#commentError_email").hide();
				$("#commentError_password").hide();
				$("#commentError_message").hide();
				$("#commentError_disclaimer").hide();
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show();
					hasErrors = true;
				}</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show();
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;
				}</p>
<p>				if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show();
					$(".disclaimerText").show();
					hasErrors = true;
				}</p>
<p>				if (!hasErrors) {</p>
<p>					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "html",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=sendComment&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
						error: function(){ },
						success: function(){
							$("#commentLogin").hide();
							$("#fbForm_message").hide();
							$("#fbForm_message_count_class").hide();
							$("#commentError_message").hide();
							$("#commentInfo_Fb").hide();
							$("#commentsForm_send").hide();
							$("#fbCommentPublishCheckbox").hide();
							$("#commentsForm_send_noFb").hide();
							$("#disclaimerConfirm").hide();
							$("#commentInfo_noFb").show();
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_send_email() {
				var fbForm_message = $.trim($("#fbForm_message").val());  
				fbForm_message = fbForm_message.replace(/&/g, "+");
				var fbForm_uri = $.trim($("#fbForm_uri").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_ip = $.trim($("#fbForm_ip").val());
				var login_email_token = $.trim($("#login_email_token").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_email = $.trim($("#login_email_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message </p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; </p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$("#commentError_message").hide(); 	
				$("#commentError_disclaimer").hide(); 	
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>			    if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					commentNotSent = false;</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=send_comment_email&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&customer_id="+fbForm_customerId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID+"&email="+encodeURIComponent(fbFormN_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
						          	if (data.code == 1) {
						          	    $("#commentLogin").hide();
						          	    $("#fbForm_message").hide();
						          	    $("#fbForm_message_count_class").hide();      	
						          	    $("#commentError_message").hide();
									    $("#commentError_name").hide(); 	 	
									    $("#commentError_location").hide(); 	
									    $("#commentError_email").hide();	
									    $("#commentError_disclaimer").hide(); 	
									    $(".disclaimerText").hide();
									    $("#commentInfo_noFb").hide(); 
    									$("#commentsForm_send").hide(); 
									    $("#fbCommentPublishCheckbox").hide();
									    $("#disclaimerConfirm").hide();
									    $("#commentsForm_send_noFb").hide();	
						          	    $("#commentInfo_noFb").show();  
						          	    $("#commentSendLoading").hide();
						          	    $("#commentInfo_Notice").hide();
						          	    $("#manageAccount").hide();
						          	}
						          	else if (data.code == 2) {
						          	    setMessageBox(data.message, data.addclass);
						          	}
					    }     
				 	});		
				}		
  			}  			</p>
<p>			///////////////////////////////////////////////////
			///////////////////////////////////////////////////
  			// some jquery UI functions
			function fbLoginDisplay(loginState) {
				$(document).ready(function(){
					if (loginState == true) {
						$(".notloggedToFacebook").hide();
						$(".loggedToFacebook").show();
						$('#commentsForm_send_noFb').hide();
						$('#commentsForm_send').show();
						$("#fbCommentPublishCheckbox").show();
						$(".recommendCommentFacebook").show();
					}
	else {
						$(".loggedToFacebook").hide(); 
						$(".notloggedToFacebook").show(); 
						$('#commentsForm_send').hide();
						$('#commentsForm_send_noFb').show();
						$("#fbCommentPublishCheckbox").hide();
						$(".recommendCommentFacebook").hide();
						if ($("#commentLoggedInEmail").length) {
							$("#commentLoggedInEmail").show();
						}
				}});
  			}</p>
<p>  			///////////////////////////////////////////////////
  			function fbDomInsert(username, uid, token) {  
						$(document).ready(function(){  
		           $("#fbUserRealName").html(username); 
		           var imgHtml= "<img src='https://graph.facebook.com/me/picture?access_token="+token+"'/>";
		           $("#fbUserProfilePicture").html(imgHtml);</p>
<p>		           $("#fbForm_realName").val(username); 
		           $("#fbForm_userId").val(uid);
		           $("#fbForm_userToken").val(token);
	        	});
				}
				///////////////////////////////////////////////////
				function loginDrop() {
					$(document).ready(function(){
						$('#commentLogin').slideDown();
						$("textarea#fbForm_message").attr("rows", 6);
						$("#commentsForm_send").removeAttr("disabled");
						$("#commentsForm_send_noFb").attr("disabled", "");
						$("#commentsForm_send_email").removeAttr("disabled");
						$("#fbForm_message").val("");
						$('#fbForm_message').removeAttr("onclick");
					});
				}
		///////////////////////////////////////////////////
		function doOnFbConnect() {
			$(".recommendCommentFacebook").show(); // for comments below: display checkbox to choose if recommended comments get published on facebook
		}</p>
<p>		///////////////////////////////////////////////////
		function log(msg){
			if (typeof console === 'undefined') {
				return false;
			} else {
				return true;
			}
		}</p>
<p>		/////////////////////////////////////////////////////////////////////////////////	
        /////////////////////////////////////////////////////////////////////////////////  
        /////////////////////////////////////////////////////////////////////////////////
        // main </p>
<p>        // fb auth 
        var fbAccessToken = ''; 
        var fbUserID = ''; 
        var fbUserName = '';  
        FBcomments.initFb(); 
        var nnFBloggedIn = check_nnCookie();  
   			if (nnFBloggedIn == true) {
   				fbLoginDisplay(true); </p>
<p>   			}
   			else {
   				fbLoginDisplay(false); 
   			}</p>
<p>function inputFocus(thisFor, thisClass) {
    $('#'+ thisFor).focus(function() {
        $('.'+ thisClass).animate({ opacity: "0" }, "fast");
    }).blur(function() {
        if($(this).val() == "") {
            $('.'+ thisClass).animate({ opacity: "1" }, "fast");
        }
    });
}</p>
<p>			//// some more jquery stuff
   			$(document).ready(function(){
				read_logged_in_cookie();</p>
<p>				// hide 'populär auf facebook' widget in sideline
				//$("#fb_activityFeed").hide(); </p>
<p>				$("#fbCommentPublishCheckbox").hide();</p>
<p>$('#fbFormN_password_login').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_post_confirmed').focus().click();
        return false;
    }
});</p>
<p>$('#fbFormN_smsVer').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_sms_veryfy').focus().click();
        return false;
    }
});</p>
<p>// Bind to set the fadeout of form labels when clicked or focused
$('.sbsLabel label').each(function () {
    var thisFor = $(this).attr('for');
    var thisClass = $(this).attr('class');
    inputFocus(thisFor, thisClass);
});</p>
<p>   				// some form display handling 
					$('#disclaimerButtonShow').bind('click', function(){
						$('.disclaimerText').show();
						$('#disclaimerButtonShow').css('display','none');
						$('#disclaimerButtonHide').css('display','inline');
					});
					$('#disclaimerButtonHide').bind('click', function(){
						$('.disclaimerText').hide();
						$('#disclaimerButtonHide').css('display','none');
						$('#disclaimerButtonShow').css('display','inline');
					});</p>
<p>				// display login data on start 
				if ($("#fbUserRealName").html()) {
					if ($("#fbUserRealName").html().length >= 2){ // && $("textarea#fbForm_message").attr("rows") > 2
						$("#fbCommentPublishCheckbox").show();
					}
				}</p>
<p>				// clear textarea 
				$("#fbForm_message").val(''); </p>
<p>				// submit buttons , disable on on reload 
				$("#commentsForm_send").attr("disabled", "true");
				$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>				// set checkboxes
				$('#fbForm_publishOnFB').attr('checked', true); 
				$('.recommendCommentPublishOnFb').attr('checked', true); 
				$('#disclaimerConfirmBtn').attr('checked', false);</p>
<p>				// fixes a tiny bug: if values are prefilled on reload they should not be grey 
				var myFbFormIds = ('fbFormN_firstName', 'fbFormN_surname', 'fbFormN_zip', 'fbFormN_location', 'fbFormN_email', 'fbFormN_password', 'fbFormN_password_confirm');
				for (var ii=0;ii < myFbFormIds.length; ii++) {
				  if ($("#"+myFbFormIds(ii)).length) {
					if (!($("#"+myFbFormIds(ii)).val().match(/(*)/))) {
						$("#"+myFbFormIds(ii)).css('color','#000000'); 
					};
				  }
				}

				$('.comment_signup_form_toggle').live('click', function(){
					$('#comment_signup_form').toggle('slow');
					$('#comment_login_form').toggle('slow');
					return false;
				});

				$('.comment_form_forgot_password').live('click', function(){
				    $('#comment_password_reset_form').toggle('slow');
				    $('#comment_login_form').toggle('slow');
				    return false;
				});

				$('.emailLogoutButton').live('click', function() {
					delete_cookie('comment_login_details_email');
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$(".commentFBlogin").show();
					$(".commentOhnelogin").show();
				});

				$('#show_update_phone').live('click', function() {
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$("#comment_login_form").hide();

					$("#change_phonenumber").show();
					$(".commentOhnelogin").show();
				});

				$('#commentsForm_send_email').live('click', function() {
				    if (commentNotSent) {
				        commentsForm_send_email();
				    }
				});

				$('#emailManageAccount').live('click', function () {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());

				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=login_manage_account&#038;customer_id="+customer_id+"&#038;email="+encodeURIComponent(login_email_email)+"&#038;token="+login_email_token,
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#manageAccount').html(data.message);
					            $('#manageAccount').show();
					        }
					    }     
				 	});
				});

				});
        </script><br /></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</title>
		<link>https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-62/</link>
		
		<dc:creator><![CDATA[Conseil-Chauffage]]></dc:creator>
		<pubDate>Mon, 16 Mar 2020 18:30:46 +0000</pubDate>
				<category><![CDATA[Chauffage au Bois]]></category>
		<category><![CDATA[avec]]></category>
		<category><![CDATA[bois]]></category>
		<category><![CDATA[fines]]></category>
		<category><![CDATA[finir]]></category>
		<category><![CDATA[les]]></category>
		<category><![CDATA[Linvité]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[pour]]></category>
		<category><![CDATA[poussières]]></category>
		<category><![CDATA[Réflexions]]></category>
		<category><![CDATA[Signatures]]></category>
		<guid isPermaLink="false">https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-62/</guid>

					<description><![CDATA[L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse. Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable ... <p class="read-more-container"><a title="L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions" class="read-more button" href="https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-62/#more-1821" aria-label="Plus sur L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions">Lire l'Article</a></p>]]></description>
										<content:encoded><![CDATA[<h1>L&rsquo;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</h1>
<p></p>
<div id="mainContent">
<p>	Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse.</p>
<p>Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable de nos forêts, son potentiel est estimé pour le canton de Vaud à 30% de la chaleur consommée.</p>
<p>Mais des voix s&#39;élèvent régulièrement pour alerter sur les émissions polluantes de poussières fines du bois. Comment est-ce vraiment?</p>
<p>La Commission fédérale de l&#39;hygiène de l&#39;air a très bien résumé le problème dans son rapport &quot;Les poussières fines en Suisse 2013&quot;. Elle explique les très grandes différences existant selon le type de chauffage (ancien ou moderne, automatique ou manuel) et le type de bois de chauffage (bûches, granulés, copeaux de bois). Grâce à l&#39;amélioration des conditions de combustion, il met en évidence la diminution très importante de la quantité de poussières fines émises, mais, en plus et surtout, leurs changements de composition chimique et donc de nocivité.</p>
<p>Une combustion optimale ou complète signifie l&#39;absence totale ou presque complète de produits imbrûlés, principalement de la suie et du goudron, composés toxiques classés cancérigènes par l&#39;OMS. Les petites quantités de poussières fines résultant de la combustion complète du bois sont composées de sels minéraux peu ou peu toxiques pour la santé.</p>
<p>Concrètement, la Commission fédérale met en évidence une réduction du poids des poussières fines jusqu&#39;à un facteur 100 avec les usines de granulés modernes par rapport aux anciennes usines de grumes. Si l&#39;on tient toujours compte de l&#39;évolution de la composition chimique des poussières, le gain en termes de protection de la santé atteint un facteur de 1000, voire beaucoup plus. Une véritable révolution silencieuse a eu lieu!</p>
<p>Il convient donc d&#39;encourager l&#39;utilisation des installations de chauffage modernes, de les faire fonctionner correctement et de les entretenir en appliquant les règles pertinentes. C&#39;est l&#39;assurance d&#39;une combustion complète et propre du bois.</p>
<p>Pour un usage domestique, c&#39;est notamment le cas des poêles et chaudières à granulés automatiques, choisissez un combustible très sec assurant une combustion complète. Les granulés sont également idéaux pour les bâtiments ou pour un groupe de bâtiments.</p>
<p>Pour le chauffage central des villages ou des quartiers d&#39;habitation, les chaudières à copeaux de bois sont privilégiées et équipées de filtres performants pour respecter les très strictes limites d&#39;émission fixées par la Confédération (OPair). </p>
<p class="publishedDate">Créé: 02.03.2020, 06:49</p>
</p></div>
<p><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script language="javascript"></p>
<p>		var commentNotSent = true;
		///////////////////////////////////////////////////
		// object FBcomments, can be reused for FB authentification
        var FBcomments = {
        		fbAppId : '251285271592561',
                version: 'v2.0',
        		fbChannel_path : '/facebook_xd_receiver.html', 
        		isLoggedIn : false, </p>
<p>            ///////////////////////////////////////////////////
        		initFb : function() {	
	        		window.fbAsyncInit = function() {
                    FB.init({appId: FBcomments.fbAppId, version: FBcomments.version});
	                if (typeof FB === 'undefined') {
        		 				alert($("#tr_fbConnectError").html()); 
        		 			} 
	            };</p>
<p>                (function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)(0);
                    if (d.getElementById(id)) return;
                    js = d.createElement(s); js.id = id;
                    js.src = "http://connect.facebook.net/fr_FR/sdk.js";
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));
          	},
          	///////////////////////////////////////////////////
          	fbLogin : function() { 
          	 var populateFbData_ = this.populateFbData;
          	 var fbDisplay_ = this.fbDisplay;	
          	 var promptFanBox_ = this.promptFanBox;</p>
<p>        		 FB.init({appId: FBcomments.fbAppId, version: FBcomments.version}); 
        		 if (typeof FB === 'undefined') {
        		 	alert($("#tr_fbConnectError").html()); 
        		 } 	
							  	FB.login(function(response) {
									  if (response.authResponse) {
									     // granted some permissions 
									     this.isLoggedIn = true; 
									  	 populateFbData_(response.authResponse.accessToken, response.authResponse.userID);
									  	 fbDisplay_(); 
									  	 promptFanBox_(response.authResponse.userID);
									  } 
									  else { 
									    // user is not logged
									    this.isLoggedIn = false;
									  	fbDisplay_();  
									  }
									}, {scope:'publish_actions'});
				},
				///////////////////////////////////////////////////
				fbLogout : function() {  
					var fbDisplay_ = this.fbDisplay;
					$.cookie('fbsNN', '', { path: '/', expires: -1 });
					isLoggedIn = false;
					fbDisplay_();
        		},</p>
<p>				///////////////////////////////////////////////////
				populateFbData : function(accessToken, userID) {
					fbAccessToken = accessToken;
					fbUserID = userID;
					FB.api(
					'/me',
					{
						fields: 'name'
					},
					function(response) {
						var fbUserName = '';
						if (response){
							if (response.name){
								fbUserName = response.name;
							}
						}
						// store a fb-independent cookie for future login 
						$.cookie('fbsNN', "access_token="+escape(fbAccessToken)+""+"&uid="+fbUserID+"&realname="+escape(fbUserName), { path: '/', expires: 30 }); 
						fbDomInsert(fbUserName, fbUserID, fbAccessToken);
					}
					);
				},</p>
<p>				///////////////////////////////////////////////////
				promptFanBox : function(userId) {
  				 	FB.api({
					    method: 'fql.query',        
					    query: 'SELECT uid FROM page_fan WHERE uid='+userId+' AND page_id='+10150100771335484 
						},
							function(response) {
								if (typeof response(0) === 'undefined') {
									// user has not liked the page 
									$(document).ready(function(){  
										var txt = $("#tr_fanBoxPromptTitle").html(); 
										tb_show(txt,'/facebook_iframe.html?&height=250&width=645');
									});
								}	
							}
						 );
  				 },
  				 ///////////////////////////////////////////////////
  				 fbDisplay : function() {    
  				 		fbLoginDisplay(this.isLoggedIn );  
  				 		loginDrop();
  				 }
  				 ///////////////////////////////////////////////////
        } // end object</p>
<p>				///////////////////////////////////////////////////
				// cookie based user registration, maybe replaced by user DB in future
  			function fetch_nnCookie() { 
  				 		var nnRegex = /access_token=((^&)+)&uid=((0-9)+)&realname=(.+)/; 
							nnRegex.exec($.cookie('fbsNN')); 		 
							fbAccessToken = unescape(RegExp.$1);      
							fbUserID = RegExp.$2;
							fbUserName = unescape(RegExp.$3);	  
  			}
				///////////////////////////////////////////////////
  			function check_nnCookie() {	          
  				 	if( $.cookie('fbsNN') == null) {   	 
  				 		return false; 
  				 	}
  				 	else { 
							fetch_nnCookie();   
  				 		// check for valid data, delete cookie otherwise 
  				 		if (fbAccessToken != null && fbAccessToken.length > 0 && fbUserID != null && fbUserID.length > 0  && fbUserName != null && fbUserName.length > 0 && fbUserName != 'undefined') {
  				 			fbDomInsert(fbUserName, fbUserID, fbAccessToken); 
  				 			return true;   
  				 		}
  				 		else {
  				 			$.cookie('fbsNN', '', { expires: -1 }); 
  				 			return false;  
  				 		}
  				 	}
  			}</p>
<p>  			///////////////////////////////////////////////////
  			// form handler 
  			function commentsForm_send () {
  				var fbForm_message = $.trim($("#fbForm_message").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());			
  				var fbForm_realName = $.trim($("#fbForm_realName").val());
  				var fbForm_userId = $.trim($("#fbForm_userId").val());
  				var fbForm_userToken = $("#fbForm_userToken").val(); 
  				var fbForm_publishOnFB = $("#fbForm_publishOnFB:checked").val();
  				if (typeof fbForm_publishOnFB === 'undefined') {
  					fbForm_publishOnFB = 0; 
  				}
					var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());	
					var hasErrors = false; 
					var messageReg =  fbForm_message.length > 1; </p>
<p>					if (messageReg == false) {
						$("#commentError_message").show(); 	
						hasErrors = true; 
					}
					if (fbFormN_gotcha.length > 1) {
						hasErrors = true; 
					} </p>
<p>          if (!($('#disclaimerConfirmBtn').is(':checked'))) {
						$("#commentError_disclaimer").show();
						hasErrors = true; 
					}
  				if (!hasErrors) {
						$("#commentsForm_send").attr("disabled", "true");
						$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>						$("#commentSendLoading").show(); 
						$.ajax({ type: "POST",
							dataType: "text",
							cache: false,
							url: "/community/talkback_ajax.html",
							async: true,
							data: "action=sendComment&fbForm_realName="+encodeURIComponent(fbForm_realName)+"&fbForm_userId="+fbForm_userId+"&fbForm_userToken="+encodeURIComponent(fbForm_userToken)+"&fbForm_publishOnFB="+fbForm_publishOnFB+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
							error: function(){
								alert($("#tr_commentSendError").html()); 
							},
							complete: function(reqCode){
								$("#commentLogin").hide();
								$("#fbForm_message").hide();
								$("#fbForm_message_count_class").hide();      	
								$("#commentError_message").hide();
									$("#commentError_name").hide();
									$("#commentError_location").hide();
									$("#commentError_email").hide();
									$("#commentError_disclaimer").hide();
									$(".disclaimerText").hide();
									$("#commentInfo_noFb").hide();
									$("#commentsForm_send").hide();
									$("#fbCommentPublishCheckbox").hide();
									$("#commentsForm_send_noFb").hide();
								$("#commentInfo_Fb").show();
								$("#commentSendLoading").hide();
							}
						});
					} // hasErrors
				}</p>
<p> 			//////////////////////////////////////////////////
 			function delete_cookie(cookie) {
				$.cookie(cookie, null, {path: '/'});
 			}</p>
<p>			//////////////////////////////////////////////////
			function save_form_to_cookie(class_name) {
				var form = new Array();
				$("."+ class_name).each(function(index) {
					form(index) = {};
					form(index)('id') = $(this).attr("id");
					form(index)('val') = $(this).val();
				});
				$.cookie(class_name, JSON.stringify(form), {json:true});
			}</p>
<p> 			//////////////////////////////////////////////////
 			function save_object_to_cookie(data) {
 			    var form = new Array();
 			    form(0)('id') = 'fbFormN_firstName';
 			    form(0)('val') = '';
 			    form(1)('id') = 'fbFormN_surname';
 			    form(1)('val') = '';
 			    form(2)('id') = 'fbFormN_zip';
 			    form(2)('val') = '';
 			    form(3)('id') = 'fbFormN_location';
 			    form(3)('val') = '';
 			    form(4)('id') = 'fbFormN_email';
 			    form(4)('val') = '';
 			    $("."+ class_name).each(function(index) {
 			        form(index) = {};
 			        form(index)('id') = $(this).attr("id");
 			        form(index)('val') = $(this).val();
 			    });
 			    $.cookie(class_name, JSON.stringify(form), {json:true});
 			}</p>
<p>			//////////////////////////////////////////////////
			function set_logged_in_cookie(data) {
			    $.cookie('comment_login_details_email', JSON.stringify(data), {json:true,expires:14,path: '/'});
			}</p>
<p>			//////////////////////////////////////////////////
			function read_logged_in_cookie() {
				var cookie_form_data_json = $.cookie('comment_login_details_email');
				if (cookie_form_data_json != null) {
					var form_data = JSON.parse(cookie_form_data_json);
					if (typeof form_data != 'undefined') {
						if (form_data.user.customer_id == 53){
							if (typeof form_data.pcr != 'undefined' && form_data.pcr != null && form_data.pcr.length > 0){
								if (typeof form_data.uid != 'undefined' && form_data.uid != null && form_data.uid != 0){
									auto_login_email(form_data);
									return;
								}
							}
						} else {
							auto_login_email(form_data);
						}
					}
				}</p>
<p>			}</p>
<p> 			//////////////////////////////////////////////////
 			function read_form_from_cookie(class_name) {
 			    var cookie_form_data_json = $.cookie(class_name);
 			    var form_data = JSON.parse(cookie_form_data_json);
 			    $.each(form_data, function(index, value) {
 			        $("#"+ value.id).val(value.val);
 			    });
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_create_account() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
				var fbFormN_location = $.trim($("#fbFormN_location").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				if ($("#fbFormN_password").length) {
				    var fbFormN_password = $.trim($("#fbFormN_password").val());
				}
				if ($("#fbFormN_password_confirm").length) {
				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
				}</p>
<p>				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
if (fbFormN_telephone.length > 1) {</p>
<p>			var telephoneReg = (fbFormN_telephone.match(/^(ds)*$/));</p>
<p>}
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_telephone").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentError_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentError_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    $("#commentError_password").show();
					    hasErrors = true;
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_create_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId)+password_params,
						error: function(){ },
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {</p>
<p>			$("#disclaimerConfirm").hide();
			$("#commentLogin").hide();
			$("#fbForm_message").hide();
			$("#fbForm_message_count_class").hide();
			$("#commentError_message").hide();
			$("#commentInfo_Fb").hide(); 
			$("#commentsForm_send").hide();
			$("#fbCommentPublishCheckbox").hide();
			$("#commentsForm_send_noFb").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>				/////////////////////////////////////////////////
				function confirm_delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=confirm_delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html(data.message);
					            $('#deleteAccount').fadeIn(800);
					            $('#commentFormSubContainer').slideUp(1000);
					            $('body,html').stop().animate({
					                'scrollTop': $("#deleteAccount").offset().top-200
					            }, 1000)
					        }
					    }     
				 	});
				}</p>
<p>                /////////////////////////////////////////////////
				function cancel_delete_account() {
					$('#deleteAccount').html('');
					$('#deleteAccount').hide();
					$('#commentFormSubContainer').slideDown(1000);
				}</p>
<p>                /////////////////////////////////////////////////
				function delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
					        }
					        else if (data.code == 2) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
					        }
					    }     
				 	});
				}</p>
<p>  			//////////////////////////////////////////////////
  			function commentsForm_update_account_close() {
  			    $("#manageAccount").html('');
  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_update_account() {
  				var fbFormN_firstName = $.trim($("#update_firstName").val());
  				var fbFormN_surname = $.trim($("#update_surname").val());
  				var fbFormN_zip = $.trim($("#update_zip").val());
  				var fbFormN_location = $.trim($("#update_location").val());
  				var fbFormN_telephone = $.trim($("#update_telephone").val());
  				var fbFormN_email = $.trim($("#update_email").val());
  				var fbFormN_email_hidden = $.trim($("#update_email_hidden").val());
  				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
  				var login_email_token = $.trim($("#login_email_token").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				if ($("#update_password").length) {
  				    var fbFormN_password = $.trim($("#update_password").val());
  				}
  				if ($("#update_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#update_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; </p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentErrorUpdate_name").hide(); 	
				$("#commentErrorUpdate_location").hide(); 
				$("#commentErrorUpdate_telephone").hide(); 
				$("#commentErrorUpdate_email").hide(); 
				$("#commentErrorUpdate_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentErrorUpdate_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentErrorUpdate_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentErrorUpdate_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentErrorUpdate_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    if ((fbFormN_password != 'mot de passe' || fbFormN_password_confirm != 'confirmer le mot de passe') && (fbFormN_password != 'password' || fbFormN_password_confirm != 'confirm password')) {
					        $("#commentErrorUpdate_password").show();
					        hasErrors = true;
					    }
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
	                save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
				          dataType: "json",
				          cache: false,
	                	  url: "/community/talkback_ajax.html",
				          async: true,
				          data: "action=talkback_update_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbFormN_email_hidden="+encodeURIComponent(fbFormN_email_hidden)+"&customer_id="+fbForm_customerId+password_params+"&token="+login_email_token+"&story_id="+encodeURIComponent(fbForm_storyId),
				          error: function(){ },
				          success: function(data){
				          	if (data.code == 1) {
							    $("#disclaimerConfirm").hide();
				          	    $("#commentLogin").hide();
				          	    $("#fbForm_message").hide();
				          	    $("#fbForm_message_count_class").hide();
				          	    $("#commentErrorUpdate_message").hide();
				          	    $("#commentInfo_Fb").hide(); 
				          	    $("#commentsForm_send").hide();
				          	    $("#fbCommentPublishCheckbox").hide();
							    $("#commentsForm_send_noFb").hide(); 
			          		    $("#commentInfo_noFb").show();
			          		    $("#manageAccount").toggle();
			          		    $("#commentInfo_noFb").text(data.message);
			          		    setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
			          		} else if (data.code == 2){
								$("#commentLogin").show();
								$("#fbForm_message").show();
								$("#fbForm_message_count_class").show();
								$("#commentErrorUpdate_message").hide();
								$("#commentInfo_Fb").hide(); 
								$("#commentsForm_send").hide();
								$("#fbCommentPublishCheckbox").hide();
								$("#commentsForm_send_noFb").hide(); 
								$("#commentInfo_noFb").hide();
								$("#manageAccount").toggle();
								setMessageBox(data.message, data.addclass);
								if (data.user.customer_id == 53){
									auto_login_email(data);
								}
							} else if (data.code == 3){
								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p> 			// Handler to reset the timer on each notification 
 			var timeoutHandle;
 			function setMessageBox(message, boxclass) {
 			    $("#messageBox").hide();
 			    $("#messageBox").html(message);
 			    $("#messageBox").removeClass("warning error success").addClass(boxclass);
 			    $("#messageBox").fadeIn(1500);</p>
<p> 			    clearTimeout(timeoutHandle);</p>
<p> 			    timeoutHandle = setTimeout(function(){
 			        $("#messageBox").fadeOut(2000, function () {
 			      });
 			    }, 12000);
 			}</p>
<p> 			function forgot_password_send() {
				var email = $.trim($('#password_forgot_email').val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				if(emailRegObj.test(email) == false){      
					$("#commentError_password_forgot_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=reset_password&customer_id="+fbForm_customerId+"&email="+encodeURIComponent(email),  
					    error: function(){ },
					    success: function(data){
						        if (data.code = 0) {
						            setMessageBox(data.message, data.addclass);
						        }
						        else if (data.code = 1) {
						            $('#comment_password_reset_form').toggle('slow');
						            $('#comment_login_form').toggle('slow');
						            setMessageBox(data.message, data.addclass);
						        }
					    }     
				 	});</p>
<p>				}
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_login_noFb() {
				var fbFormN_email = $.trim($("#fbFormN_email_login").val());
				var fbFormN_password = $.trim($("#fbFormN_password_login").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); </p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					//$("#commentsForm_send").attr("disabled", "true");
					//$("#commentsForm_send_noFb").attr("disabled", "true");
					//save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_login_email&email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password),
						error: function(){</p>
<p>						},
						success: function(data){
							//$("#commentLogin").hide();
							//$("#fbForm_message").hide();
							//$("#fbForm_message_count_class").hide();
							//$("#commentError_message").hide();
							//$("#commentInfo_Fb").hide(); 
							//$("#commentsForm_send").hide();
							//$("#fbCommentPublishCheckbox").hide();
							//$("#commentsForm_send_noFb").hide(); </p>
<p>							if (data.code == 2) {
								$('.commentFBlogin').hide();
								$('#comment_login_form').hide();
								$("#change_phonenumber").show();
								setMessageBox(data.message, data.addclass);
							} else {
								$("#change_phonenumber").hide();
								//$("#commentInfo_noFb").show();
								//$("#commentLoggedInEmail").text(data.message);
								setMessageBox(data.message, data.addclass);
								$("#commentLoggedInEmail").show();
								if ('user' in data) {
									auto_login_email(data);
								}
							}
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////</p>
<p>			function comments_modifyForm_phone_change() {</p>
<p>				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change_sms_verify() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbFormN_sms_change_Ver = $.trim($("#fbFormN_sms_change_Ver").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change_sms_verify&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change)+"&code="+encodeURIComponent(fbFormN_sms_change_Ver),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_sms_change_ver").hide();
							$("#fbFormN_sms_change_Ver").hide();
							$("#commentsForm_sms_send_change_veryfy").hide();
							$("#change_phonenumber").hide();</p>
<p>							$('#comment_login_form').show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}
			///////////////////////////////////////////////////
			function commentsForm_sms_verify() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbFormN_smsVer = $.trim($("#fbFormN_smsVer").val());</p>
<p>				var hasErrors = false;</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_sms_verify&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&email="+encodeURIComponent(fbFormN_email)+"&telefone="+encodeURIComponent(fbFormN_telephone)+"&code="+ fbFormN_smsVer +"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId),
						error: function(){
						},
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {
								$("#commentLogin").hide();
								$("#sms_verify").hide();
								$("#fbFormN_smsVer").hide();
								$("#commentsForm_sms_veryfy").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>			//////////////////////////////////////////
			//swissnoise quiva
			function auto_login_quiva(data) {
				console.log("quiva login start");
				var user = {
					"remoteId": data.uid,
					"username": data.user.email,
					"password": data.pcr,
					"email": data.user.email,
					"firstName": data.user.first_name,
					"lastName": data.user.last_name,
					"zipCode": data.user.post_code,
					"locality": data.user.city,
					"phoneNumber": data.user.mobile_number
				};
				whatif.login(user).always(function() {</p>
<p>				});
				console.log("quiva login done");
			}
			//END swissnoise quiva</p>
<p>  			function auto_login_email(data) {
			    $(".commentFBlogin").hide();
			    $(".commentOhnelogin").hide();
			    var html = '';
			    var name = data.user.first_name +' '+ data.user.last_name;
			    html += '<span class="fbUserWelcome">Bienvenue, <span id="fbUserRealName">'+ name +'</span></span><br />';
			    html += '<a href="" id="commentsForm_send_email" onclick="return false;">Soumettre Commentaire</button>';
			    html += '<a href="" class="emailLogoutButton" onclick="return false;">Déconnecter</a><br />';
			    html += '<a href="" id="emailManageAccount" onclick="return false;">Gérer le profil</a>';
			    html += '<input id="login_email_token" name="login_email_token" value="'+ data.token +'" type="hidden">';
			    html += '<input id="login_email_email" name="login_email_email" value="'+ data.user.email +'" type="hidden">';
			    $("#commentLoggedInEmail").html(html);
			    set_logged_in_cookie(data);
			    $("#commentLoggedInEmail").show();</p>
<p>  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_send_noFb() {
  				var fbForm_message = $.trim($("#fbForm_message").val());  
  				fbForm_message = fbForm_message.replace(/&/g, "+");
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
  				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
  				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
  				var fbFormN_location = $.trim($("#fbFormN_location").val());
  				var fbFormN_email = $.trim($("#fbFormN_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				if ($("#fbFormN_password").length) {
  				    var fbFormN_password = $.trim($("#fbFormN_password").val());
  				}
  				if ($("#fbFormN_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; 
				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				// dont check for ZIP, cause of foreign countries 
				//var locReg = !(fbFormN_zip.match(/(*)/)) && !(fbFormN_location.match(/(*)/)) && fbFormN_zip.length > 1 && fbFormN_location.length > 1;   
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;
				var password_params = '';</p>
<p>				$("#commentError_name").hide();
				$("#commentError_location").hide();
				$("#commentError_email").hide();
				$("#commentError_password").hide();
				$("#commentError_message").hide();
				$("#commentError_disclaimer").hide();
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show();
					hasErrors = true;
				}</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show();
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;
				}</p>
<p>				if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show();
					$(".disclaimerText").show();
					hasErrors = true;
				}</p>
<p>				if (!hasErrors) {</p>
<p>					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "html",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=sendComment&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
						error: function(){ },
						success: function(){
							$("#commentLogin").hide();
							$("#fbForm_message").hide();
							$("#fbForm_message_count_class").hide();
							$("#commentError_message").hide();
							$("#commentInfo_Fb").hide();
							$("#commentsForm_send").hide();
							$("#fbCommentPublishCheckbox").hide();
							$("#commentsForm_send_noFb").hide();
							$("#disclaimerConfirm").hide();
							$("#commentInfo_noFb").show();
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_send_email() {
				var fbForm_message = $.trim($("#fbForm_message").val());  
				fbForm_message = fbForm_message.replace(/&/g, "+");
				var fbForm_uri = $.trim($("#fbForm_uri").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_ip = $.trim($("#fbForm_ip").val());
				var login_email_token = $.trim($("#login_email_token").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_email = $.trim($("#login_email_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message </p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; </p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$("#commentError_message").hide(); 	
				$("#commentError_disclaimer").hide(); 	
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>			    if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					commentNotSent = false;</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=send_comment_email&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&customer_id="+fbForm_customerId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID+"&email="+encodeURIComponent(fbFormN_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
						          	if (data.code == 1) {
						          	    $("#commentLogin").hide();
						          	    $("#fbForm_message").hide();
						          	    $("#fbForm_message_count_class").hide();      	
						          	    $("#commentError_message").hide();
									    $("#commentError_name").hide(); 	 	
									    $("#commentError_location").hide(); 	
									    $("#commentError_email").hide();	
									    $("#commentError_disclaimer").hide(); 	
									    $(".disclaimerText").hide();
									    $("#commentInfo_noFb").hide(); 
    									$("#commentsForm_send").hide(); 
									    $("#fbCommentPublishCheckbox").hide();
									    $("#disclaimerConfirm").hide();
									    $("#commentsForm_send_noFb").hide();	
						          	    $("#commentInfo_noFb").show();  
						          	    $("#commentSendLoading").hide();
						          	    $("#commentInfo_Notice").hide();
						          	    $("#manageAccount").hide();
						          	}
						          	else if (data.code == 2) {
						          	    setMessageBox(data.message, data.addclass);
						          	}
					    }     
				 	});		
				}		
  			}  			</p>
<p>			///////////////////////////////////////////////////
			///////////////////////////////////////////////////
  			// some jquery UI functions
			function fbLoginDisplay(loginState) {
				$(document).ready(function(){
					if (loginState == true) {
						$(".notloggedToFacebook").hide();
						$(".loggedToFacebook").show();
						$('#commentsForm_send_noFb').hide();
						$('#commentsForm_send').show();
						$("#fbCommentPublishCheckbox").show();
						$(".recommendCommentFacebook").show();
					}
	else {
						$(".loggedToFacebook").hide(); 
						$(".notloggedToFacebook").show(); 
						$('#commentsForm_send').hide();
						$('#commentsForm_send_noFb').show();
						$("#fbCommentPublishCheckbox").hide();
						$(".recommendCommentFacebook").hide();
						if ($("#commentLoggedInEmail").length) {
							$("#commentLoggedInEmail").show();
						}
				}});
  			}</p>
<p>  			///////////////////////////////////////////////////
  			function fbDomInsert(username, uid, token) {  
						$(document).ready(function(){  
		           $("#fbUserRealName").html(username); 
		           var imgHtml= "<img src='https://graph.facebook.com/me/picture?access_token="+token+"'/>";
		           $("#fbUserProfilePicture").html(imgHtml);</p>
<p>		           $("#fbForm_realName").val(username); 
		           $("#fbForm_userId").val(uid);
		           $("#fbForm_userToken").val(token);
	        	});
				}
				///////////////////////////////////////////////////
				function loginDrop() {
					$(document).ready(function(){
						$('#commentLogin').slideDown();
						$("textarea#fbForm_message").attr("rows", 6);
						$("#commentsForm_send").removeAttr("disabled");
						$("#commentsForm_send_noFb").attr("disabled", "");
						$("#commentsForm_send_email").removeAttr("disabled");
						$("#fbForm_message").val("");
						$('#fbForm_message').removeAttr("onclick");
					});
				}
		///////////////////////////////////////////////////
		function doOnFbConnect() {
			$(".recommendCommentFacebook").show(); // for comments below: display checkbox to choose if recommended comments get published on facebook
		}</p>
<p>		///////////////////////////////////////////////////
		function log(msg){
			if (typeof console === 'undefined') {
				return false;
			} else {
				return true;
			}
		}</p>
<p>		/////////////////////////////////////////////////////////////////////////////////	
        /////////////////////////////////////////////////////////////////////////////////  
        /////////////////////////////////////////////////////////////////////////////////
        // main </p>
<p>        // fb auth 
        var fbAccessToken = ''; 
        var fbUserID = ''; 
        var fbUserName = '';  
        FBcomments.initFb(); 
        var nnFBloggedIn = check_nnCookie();  
   			if (nnFBloggedIn == true) {
   				fbLoginDisplay(true); </p>
<p>   			}
   			else {
   				fbLoginDisplay(false); 
   			}</p>
<p>function inputFocus(thisFor, thisClass) {
    $('#'+ thisFor).focus(function() {
        $('.'+ thisClass).animate({ opacity: "0" }, "fast");
    }).blur(function() {
        if($(this).val() == "") {
            $('.'+ thisClass).animate({ opacity: "1" }, "fast");
        }
    });
}</p>
<p>			//// some more jquery stuff
   			$(document).ready(function(){
				read_logged_in_cookie();</p>
<p>				// hide 'populär auf facebook' widget in sideline
				//$("#fb_activityFeed").hide(); </p>
<p>				$("#fbCommentPublishCheckbox").hide();</p>
<p>$('#fbFormN_password_login').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_post_confirmed').focus().click();
        return false;
    }
});</p>
<p>$('#fbFormN_smsVer').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_sms_veryfy').focus().click();
        return false;
    }
});</p>
<p>// Bind to set the fadeout of form labels when clicked or focused
$('.sbsLabel label').each(function () {
    var thisFor = $(this).attr('for');
    var thisClass = $(this).attr('class');
    inputFocus(thisFor, thisClass);
});</p>
<p>   				// some form display handling 
					$('#disclaimerButtonShow').bind('click', function(){
						$('.disclaimerText').show();
						$('#disclaimerButtonShow').css('display','none');
						$('#disclaimerButtonHide').css('display','inline');
					});
					$('#disclaimerButtonHide').bind('click', function(){
						$('.disclaimerText').hide();
						$('#disclaimerButtonHide').css('display','none');
						$('#disclaimerButtonShow').css('display','inline');
					});</p>
<p>				// display login data on start 
				if ($("#fbUserRealName").html()) {
					if ($("#fbUserRealName").html().length >= 2){ // && $("textarea#fbForm_message").attr("rows") > 2
						$("#fbCommentPublishCheckbox").show();
					}
				}</p>
<p>				// clear textarea 
				$("#fbForm_message").val(''); </p>
<p>				// submit buttons , disable on on reload 
				$("#commentsForm_send").attr("disabled", "true");
				$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>				// set checkboxes
				$('#fbForm_publishOnFB').attr('checked', true); 
				$('.recommendCommentPublishOnFb').attr('checked', true); 
				$('#disclaimerConfirmBtn').attr('checked', false);</p>
<p>				// fixes a tiny bug: if values are prefilled on reload they should not be grey 
				var myFbFormIds = ('fbFormN_firstName', 'fbFormN_surname', 'fbFormN_zip', 'fbFormN_location', 'fbFormN_email', 'fbFormN_password', 'fbFormN_password_confirm');
				for (var ii=0;ii < myFbFormIds.length; ii++) {
				  if ($("#"+myFbFormIds(ii)).length) {
					if (!($("#"+myFbFormIds(ii)).val().match(/(*)/))) {
						$("#"+myFbFormIds(ii)).css('color','#000000'); 
					};
				  }
				}

				$('.comment_signup_form_toggle').live('click', function(){
					$('#comment_signup_form').toggle('slow');
					$('#comment_login_form').toggle('slow');
					return false;
				});

				$('.comment_form_forgot_password').live('click', function(){
				    $('#comment_password_reset_form').toggle('slow');
				    $('#comment_login_form').toggle('slow');
				    return false;
				});

				$('.emailLogoutButton').live('click', function() {
					delete_cookie('comment_login_details_email');
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$(".commentFBlogin").show();
					$(".commentOhnelogin").show();
				});

				$('#show_update_phone').live('click', function() {
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$("#comment_login_form").hide();

					$("#change_phonenumber").show();
					$(".commentOhnelogin").show();
				});

				$('#commentsForm_send_email').live('click', function() {
				    if (commentNotSent) {
				        commentsForm_send_email();
				    }
				});

				$('#emailManageAccount').live('click', function () {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());

				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=login_manage_account&#038;customer_id="+customer_id+"&#038;email="+encodeURIComponent(login_email_email)+"&#038;token="+login_email_token,
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#manageAccount').html(data.message);
					            $('#manageAccount').show();
					        }
					    }     
				 	});
				});

				});
        </script><br /></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</title>
		<link>https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-61/</link>
		
		<dc:creator><![CDATA[Conseil-Chauffage]]></dc:creator>
		<pubDate>Mon, 16 Mar 2020 14:18:06 +0000</pubDate>
				<category><![CDATA[Chauffage au Bois]]></category>
		<category><![CDATA[avec]]></category>
		<category><![CDATA[bois]]></category>
		<category><![CDATA[fines]]></category>
		<category><![CDATA[finir]]></category>
		<category><![CDATA[les]]></category>
		<category><![CDATA[Linvité]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[pour]]></category>
		<category><![CDATA[poussières]]></category>
		<category><![CDATA[Réflexions]]></category>
		<category><![CDATA[Signatures]]></category>
		<guid isPermaLink="false">https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-61/</guid>

					<description><![CDATA[L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse. Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable ... <p class="read-more-container"><a title="L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions" class="read-more button" href="https://conseil-chauffage.com/linvite-pour-en-finir-avec-les-poussieres-fines-du-bois-news-signatures-reflexions-61/#more-1815" aria-label="Plus sur L&#8217;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions">Lire l'Article</a></p>]]></description>
										<content:encoded><![CDATA[<h1>L&rsquo;invité: Pour en finir avec les poussières fines du bois &#8211; News Signatures: Réflexions</h1>
<p></p>
<div id="mainContent">
<p>	Le CO2 neutre, deuxième source d&#39;énergie renouvelable en Suisse après l&#39;énergie hydraulique, le chauffage au bois ou le bois énergie, participe activement à la politique climatique. Soutenu par la Confédération et les cantons, il ne cesse de croître et représente désormais plus de 10% de la chaleur consommée en Suisse.</p>
<p>Compte tenu des futures économies d&#39;énergie des bâtiments et de la gestion durable de nos forêts, son potentiel est estimé pour le canton de Vaud à 30% de la chaleur consommée.</p>
<p>Mais des voix s&#39;élèvent régulièrement pour alerter sur les émissions polluantes de poussières fines du bois. Comment est-ce vraiment?</p>
<p>La Commission fédérale de l&#39;hygiène de l&#39;air a très bien résumé le problème dans son rapport &quot;Les poussières fines en Suisse 2013&quot;. Elle explique les très grandes différences existant selon le type de chauffage (ancien ou moderne, automatique ou manuel) et le type de bois de chauffage (bûches, granulés, copeaux de bois). Grâce à l&#39;amélioration des conditions de combustion, il met en évidence la diminution très importante de la quantité de poussières fines émises, mais, en plus et surtout, leurs changements de composition chimique et donc de nocivité.</p>
<p>Une combustion optimale ou complète signifie l&#39;absence totale ou presque complète de produits imbrûlés, principalement de la suie et du goudron, composés toxiques classés cancérigènes par l&#39;OMS. Les petites quantités de poussières fines résultant de la combustion complète du bois sont composées de sels minéraux peu ou peu toxiques pour la santé.</p>
<p>Concrètement, la Commission fédérale met en évidence une réduction du poids des poussières fines jusqu&#39;à un facteur 100 avec les usines de granulés modernes par rapport aux anciennes usines de grumes. Si l&#39;on tient toujours compte de l&#39;évolution de la composition chimique des poussières, le gain en termes de protection de la santé atteint un facteur de 1000, voire beaucoup plus. Une véritable révolution silencieuse a eu lieu!</p>
<p>Il convient donc d&#39;encourager l&#39;utilisation des installations de chauffage modernes, de les faire fonctionner correctement et de les entretenir en appliquant les règles pertinentes. C&#39;est l&#39;assurance d&#39;une combustion complète et propre du bois.</p>
<p>Pour un usage domestique, c&#39;est notamment le cas des poêles et chaudières à granulés automatiques, choisissez un combustible très sec assurant une combustion complète. Les granulés sont également idéaux pour les bâtiments ou pour un groupe de bâtiments.</p>
<p>Pour le chauffage central des villages ou des quartiers d&#39;habitation, les chaudières à copeaux de bois sont privilégiées et équipées de filtres performants pour respecter les très strictes limites d&#39;émission fixées par la Confédération (OPair). </p>
<p class="publishedDate">Créé: 02.03.2020, 06:49</p>
</p></div>
<p><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)(0);
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "http://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));</script><script language="javascript"></p>
<p>		var commentNotSent = true;
		///////////////////////////////////////////////////
		// object FBcomments, can be reused for FB authentification
        var FBcomments = {
        		fbAppId : '251285271592561',
                version: 'v2.0',
        		fbChannel_path : '/facebook_xd_receiver.html', 
        		isLoggedIn : false, </p>
<p>            ///////////////////////////////////////////////////
        		initFb : function() {	
	        		window.fbAsyncInit = function() {
                    FB.init({appId: FBcomments.fbAppId, version: FBcomments.version});
	                if (typeof FB === 'undefined') {
        		 				alert($("#tr_fbConnectError").html()); 
        		 			} 
	            };</p>
<p>                (function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)(0);
                    if (d.getElementById(id)) return;
                    js = d.createElement(s); js.id = id;
                    js.src = "http://connect.facebook.net/fr_FR/sdk.js";
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));
          	},
          	///////////////////////////////////////////////////
          	fbLogin : function() { 
          	 var populateFbData_ = this.populateFbData;
          	 var fbDisplay_ = this.fbDisplay;	
          	 var promptFanBox_ = this.promptFanBox;</p>
<p>        		 FB.init({appId: FBcomments.fbAppId, version: FBcomments.version}); 
        		 if (typeof FB === 'undefined') {
        		 	alert($("#tr_fbConnectError").html()); 
        		 } 	
							  	FB.login(function(response) {
									  if (response.authResponse) {
									     // granted some permissions 
									     this.isLoggedIn = true; 
									  	 populateFbData_(response.authResponse.accessToken, response.authResponse.userID);
									  	 fbDisplay_(); 
									  	 promptFanBox_(response.authResponse.userID);
									  } 
									  else { 
									    // user is not logged
									    this.isLoggedIn = false;
									  	fbDisplay_();  
									  }
									}, {scope:'publish_actions'});
				},
				///////////////////////////////////////////////////
				fbLogout : function() {  
					var fbDisplay_ = this.fbDisplay;
					$.cookie('fbsNN', '', { path: '/', expires: -1 });
					isLoggedIn = false;
					fbDisplay_();
        		},</p>
<p>				///////////////////////////////////////////////////
				populateFbData : function(accessToken, userID) {
					fbAccessToken = accessToken;
					fbUserID = userID;
					FB.api(
					'/me',
					{
						fields: 'name'
					},
					function(response) {
						var fbUserName = '';
						if (response){
							if (response.name){
								fbUserName = response.name;
							}
						}
						// store a fb-independent cookie for future login 
						$.cookie('fbsNN', "access_token="+escape(fbAccessToken)+""+"&uid="+fbUserID+"&realname="+escape(fbUserName), { path: '/', expires: 30 }); 
						fbDomInsert(fbUserName, fbUserID, fbAccessToken);
					}
					);
				},</p>
<p>				///////////////////////////////////////////////////
				promptFanBox : function(userId) {
  				 	FB.api({
					    method: 'fql.query',        
					    query: 'SELECT uid FROM page_fan WHERE uid='+userId+' AND page_id='+10150100771335484 
						},
							function(response) {
								if (typeof response(0) === 'undefined') {
									// user has not liked the page 
									$(document).ready(function(){  
										var txt = $("#tr_fanBoxPromptTitle").html(); 
										tb_show(txt,'/facebook_iframe.html?&height=250&width=645');
									});
								}	
							}
						 );
  				 },
  				 ///////////////////////////////////////////////////
  				 fbDisplay : function() {    
  				 		fbLoginDisplay(this.isLoggedIn );  
  				 		loginDrop();
  				 }
  				 ///////////////////////////////////////////////////
        } // end object</p>
<p>				///////////////////////////////////////////////////
				// cookie based user registration, maybe replaced by user DB in future
  			function fetch_nnCookie() { 
  				 		var nnRegex = /access_token=((^&)+)&uid=((0-9)+)&realname=(.+)/; 
							nnRegex.exec($.cookie('fbsNN')); 		 
							fbAccessToken = unescape(RegExp.$1);      
							fbUserID = RegExp.$2;
							fbUserName = unescape(RegExp.$3);	  
  			}
				///////////////////////////////////////////////////
  			function check_nnCookie() {	          
  				 	if( $.cookie('fbsNN') == null) {   	 
  				 		return false; 
  				 	}
  				 	else { 
							fetch_nnCookie();   
  				 		// check for valid data, delete cookie otherwise 
  				 		if (fbAccessToken != null && fbAccessToken.length > 0 && fbUserID != null && fbUserID.length > 0  && fbUserName != null && fbUserName.length > 0 && fbUserName != 'undefined') {
  				 			fbDomInsert(fbUserName, fbUserID, fbAccessToken); 
  				 			return true;   
  				 		}
  				 		else {
  				 			$.cookie('fbsNN', '', { expires: -1 }); 
  				 			return false;  
  				 		}
  				 	}
  			}</p>
<p>  			///////////////////////////////////////////////////
  			// form handler 
  			function commentsForm_send () {
  				var fbForm_message = $.trim($("#fbForm_message").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());			
  				var fbForm_realName = $.trim($("#fbForm_realName").val());
  				var fbForm_userId = $.trim($("#fbForm_userId").val());
  				var fbForm_userToken = $("#fbForm_userToken").val(); 
  				var fbForm_publishOnFB = $("#fbForm_publishOnFB:checked").val();
  				if (typeof fbForm_publishOnFB === 'undefined') {
  					fbForm_publishOnFB = 0; 
  				}
					var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());	
					var hasErrors = false; 
					var messageReg =  fbForm_message.length > 1; </p>
<p>					if (messageReg == false) {
						$("#commentError_message").show(); 	
						hasErrors = true; 
					}
					if (fbFormN_gotcha.length > 1) {
						hasErrors = true; 
					} </p>
<p>          if (!($('#disclaimerConfirmBtn').is(':checked'))) {
						$("#commentError_disclaimer").show();
						hasErrors = true; 
					}
  				if (!hasErrors) {
						$("#commentsForm_send").attr("disabled", "true");
						$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>						$("#commentSendLoading").show(); 
						$.ajax({ type: "POST",
							dataType: "text",
							cache: false,
							url: "/community/talkback_ajax.html",
							async: true,
							data: "action=sendComment&fbForm_realName="+encodeURIComponent(fbForm_realName)+"&fbForm_userId="+fbForm_userId+"&fbForm_userToken="+encodeURIComponent(fbForm_userToken)+"&fbForm_publishOnFB="+fbForm_publishOnFB+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
							error: function(){
								alert($("#tr_commentSendError").html()); 
							},
							complete: function(reqCode){
								$("#commentLogin").hide();
								$("#fbForm_message").hide();
								$("#fbForm_message_count_class").hide();      	
								$("#commentError_message").hide();
									$("#commentError_name").hide();
									$("#commentError_location").hide();
									$("#commentError_email").hide();
									$("#commentError_disclaimer").hide();
									$(".disclaimerText").hide();
									$("#commentInfo_noFb").hide();
									$("#commentsForm_send").hide();
									$("#fbCommentPublishCheckbox").hide();
									$("#commentsForm_send_noFb").hide();
								$("#commentInfo_Fb").show();
								$("#commentSendLoading").hide();
							}
						});
					} // hasErrors
				}</p>
<p> 			//////////////////////////////////////////////////
 			function delete_cookie(cookie) {
				$.cookie(cookie, null, {path: '/'});
 			}</p>
<p>			//////////////////////////////////////////////////
			function save_form_to_cookie(class_name) {
				var form = new Array();
				$("."+ class_name).each(function(index) {
					form(index) = {};
					form(index)('id') = $(this).attr("id");
					form(index)('val') = $(this).val();
				});
				$.cookie(class_name, JSON.stringify(form), {json:true});
			}</p>
<p> 			//////////////////////////////////////////////////
 			function save_object_to_cookie(data) {
 			    var form = new Array();
 			    form(0)('id') = 'fbFormN_firstName';
 			    form(0)('val') = '';
 			    form(1)('id') = 'fbFormN_surname';
 			    form(1)('val') = '';
 			    form(2)('id') = 'fbFormN_zip';
 			    form(2)('val') = '';
 			    form(3)('id') = 'fbFormN_location';
 			    form(3)('val') = '';
 			    form(4)('id') = 'fbFormN_email';
 			    form(4)('val') = '';
 			    $("."+ class_name).each(function(index) {
 			        form(index) = {};
 			        form(index)('id') = $(this).attr("id");
 			        form(index)('val') = $(this).val();
 			    });
 			    $.cookie(class_name, JSON.stringify(form), {json:true});
 			}</p>
<p>			//////////////////////////////////////////////////
			function set_logged_in_cookie(data) {
			    $.cookie('comment_login_details_email', JSON.stringify(data), {json:true,expires:14,path: '/'});
			}</p>
<p>			//////////////////////////////////////////////////
			function read_logged_in_cookie() {
				var cookie_form_data_json = $.cookie('comment_login_details_email');
				if (cookie_form_data_json != null) {
					var form_data = JSON.parse(cookie_form_data_json);
					if (typeof form_data != 'undefined') {
						if (form_data.user.customer_id == 53){
							if (typeof form_data.pcr != 'undefined' && form_data.pcr != null && form_data.pcr.length > 0){
								if (typeof form_data.uid != 'undefined' && form_data.uid != null && form_data.uid != 0){
									auto_login_email(form_data);
									return;
								}
							}
						} else {
							auto_login_email(form_data);
						}
					}
				}</p>
<p>			}</p>
<p> 			//////////////////////////////////////////////////
 			function read_form_from_cookie(class_name) {
 			    var cookie_form_data_json = $.cookie(class_name);
 			    var form_data = JSON.parse(cookie_form_data_json);
 			    $.each(form_data, function(index, value) {
 			        $("#"+ value.id).val(value.val);
 			    });
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_create_account() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
				var fbFormN_location = $.trim($("#fbFormN_location").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				if ($("#fbFormN_password").length) {
				    var fbFormN_password = $.trim($("#fbFormN_password").val());
				}
				if ($("#fbFormN_password_confirm").length) {
				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
				}</p>
<p>				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
if (fbFormN_telephone.length > 1) {</p>
<p>			var telephoneReg = (fbFormN_telephone.match(/^(ds)*$/));</p>
<p>}
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_telephone").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentError_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentError_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    $("#commentError_password").show();
					    hasErrors = true;
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_create_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId)+password_params,
						error: function(){ },
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {</p>
<p>			$("#disclaimerConfirm").hide();
			$("#commentLogin").hide();
			$("#fbForm_message").hide();
			$("#fbForm_message_count_class").hide();
			$("#commentError_message").hide();
			$("#commentInfo_Fb").hide(); 
			$("#commentsForm_send").hide();
			$("#fbCommentPublishCheckbox").hide();
			$("#commentsForm_send_noFb").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>				/////////////////////////////////////////////////
				function confirm_delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=confirm_delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html(data.message);
					            $('#deleteAccount').fadeIn(800);
					            $('#commentFormSubContainer').slideUp(1000);
					            $('body,html').stop().animate({
					                'scrollTop': $("#deleteAccount").offset().top-200
					            }, 1000)
					        }
					    }     
				 	});
				}</p>
<p>                /////////////////////////////////////////////////
				function cancel_delete_account() {
					$('#deleteAccount').html('');
					$('#deleteAccount').hide();
					$('#commentFormSubContainer').slideDown(1000);
				}</p>
<p>                /////////////////////////////////////////////////
				function delete_account() {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=delete_account&customer_id="+customer_id+"&email="+encodeURIComponent(login_email_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
					        }
					        else if (data.code == 2) {
					            $('#deleteAccount').html('');
					            $('#deleteAccount').hide();
					            $('#commentFormSubContainer').slideDown(1000);
					            setMessageBox(data.message, data.addclass);
					        }
					    }     
				 	});
				}</p>
<p>  			//////////////////////////////////////////////////
  			function commentsForm_update_account_close() {
  			    $("#manageAccount").html('');
  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_update_account() {
  				var fbFormN_firstName = $.trim($("#update_firstName").val());
  				var fbFormN_surname = $.trim($("#update_surname").val());
  				var fbFormN_zip = $.trim($("#update_zip").val());
  				var fbFormN_location = $.trim($("#update_location").val());
  				var fbFormN_telephone = $.trim($("#update_telephone").val());
  				var fbFormN_email = $.trim($("#update_email").val());
  				var fbFormN_email_hidden = $.trim($("#update_email_hidden").val());
  				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
  				var login_email_token = $.trim($("#login_email_token").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				if ($("#update_password").length) {
  				    var fbFormN_password = $.trim($("#update_password").val());
  				}
  				if ($("#update_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#update_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; </p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;</p>
<p>				var password_params = '';</p>
<p>				$("#commentErrorUpdate_name").hide(); 	
				$("#commentErrorUpdate_location").hide(); 
				$("#commentErrorUpdate_telephone").hide(); 
				$("#commentErrorUpdate_email").hide(); 
				$("#commentErrorUpdate_password").hide(); 
				$(".disclaimerText").hide();</p>
<p>				if (nameReg == false) {
					$("#commentErrorUpdate_name").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentErrorUpdate_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (telephoneReg == null) {
					$("#commentErrorUpdate_telephone").show();
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){
					$("#commentErrorUpdate_email").show();
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>				if ($("#fbFormN_password").length && $("#fbFormN_password_confirm").length) {
					if (fbFormN_password != fbFormN_password_confirm) {
					    if ((fbFormN_password != 'mot de passe' || fbFormN_password_confirm != 'confirmer le mot de passe') && (fbFormN_password != 'password' || fbFormN_password_confirm != 'confirm password')) {
					        $("#commentErrorUpdate_password").show();
					        hasErrors = true;
					    }
					}
					else {
					    password_params += "&fbFormN_password=" + encodeURIComponent(fbFormN_password);
				        password_params += "&fbFormN_password_confirm=" + encodeURIComponent(fbFormN_password_confirm);
					}
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
	                save_form_to_cookie('comment_form_input');
					jQuery.ajax({ type: "POST",
				          dataType: "json",
				          cache: false,
	                	  url: "/community/talkback_ajax.html",
				          async: true,
				          data: "action=talkback_update_account&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_telephone="+encodeURIComponent(fbFormN_telephone)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbFormN_email_hidden="+encodeURIComponent(fbFormN_email_hidden)+"&customer_id="+fbForm_customerId+password_params+"&token="+login_email_token+"&story_id="+encodeURIComponent(fbForm_storyId),
				          error: function(){ },
				          success: function(data){
				          	if (data.code == 1) {
							    $("#disclaimerConfirm").hide();
				          	    $("#commentLogin").hide();
				          	    $("#fbForm_message").hide();
				          	    $("#fbForm_message_count_class").hide();
				          	    $("#commentErrorUpdate_message").hide();
				          	    $("#commentInfo_Fb").hide(); 
				          	    $("#commentsForm_send").hide();
				          	    $("#fbCommentPublishCheckbox").hide();
							    $("#commentsForm_send_noFb").hide(); 
			          		    $("#commentInfo_noFb").show();
			          		    $("#manageAccount").toggle();
			          		    $("#commentInfo_noFb").text(data.message);
			          		    setMessageBox(data.message, data.addclass);
								delete_cookie('comment_login_details_email');
			          		} else if (data.code == 2){
								$("#commentLogin").show();
								$("#fbForm_message").show();
								$("#fbForm_message_count_class").show();
								$("#commentErrorUpdate_message").hide();
								$("#commentInfo_Fb").hide(); 
								$("#commentsForm_send").hide();
								$("#fbCommentPublishCheckbox").hide();
								$("#commentsForm_send_noFb").hide(); 
								$("#commentInfo_noFb").hide();
								$("#manageAccount").toggle();
								setMessageBox(data.message, data.addclass);
								if (data.user.customer_id == 53){
									auto_login_email(data);
								}
							} else if (data.code == 3){
								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p> 			// Handler to reset the timer on each notification 
 			var timeoutHandle;
 			function setMessageBox(message, boxclass) {
 			    $("#messageBox").hide();
 			    $("#messageBox").html(message);
 			    $("#messageBox").removeClass("warning error success").addClass(boxclass);
 			    $("#messageBox").fadeIn(1500);</p>
<p> 			    clearTimeout(timeoutHandle);</p>
<p> 			    timeoutHandle = setTimeout(function(){
 			        $("#messageBox").fadeOut(2000, function () {
 			      });
 			    }, 12000);
 			}</p>
<p> 			function forgot_password_send() {
				var email = $.trim($('#password_forgot_email').val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				if(emailRegObj.test(email) == false){      
					$("#commentError_password_forgot_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=reset_password&customer_id="+fbForm_customerId+"&email="+encodeURIComponent(email),  
					    error: function(){ },
					    success: function(data){
						        if (data.code = 0) {
						            setMessageBox(data.message, data.addclass);
						        }
						        else if (data.code = 1) {
						            $('#comment_password_reset_form').toggle('slow');
						            $('#comment_login_form').toggle('slow');
						            setMessageBox(data.message, data.addclass);
						        }
					    }     
				 	});</p>
<p>				}
 			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_login_noFb() {
				var fbFormN_email = $.trim($("#fbFormN_email_login").val());
				var fbFormN_password = $.trim($("#fbFormN_password_login").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				var hasErrors = false;</p>
<p>				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/;</p>
<p>				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); </p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {</p>
<p>					//$("#commentsForm_send").attr("disabled", "true");
					//$("#commentsForm_send_noFb").attr("disabled", "true");
					//save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_login_email&email="+encodeURIComponent(fbFormN_email)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password),
						error: function(){</p>
<p>						},
						success: function(data){
							//$("#commentLogin").hide();
							//$("#fbForm_message").hide();
							//$("#fbForm_message_count_class").hide();
							//$("#commentError_message").hide();
							//$("#commentInfo_Fb").hide(); 
							//$("#commentsForm_send").hide();
							//$("#fbCommentPublishCheckbox").hide();
							//$("#commentsForm_send_noFb").hide(); </p>
<p>							if (data.code == 2) {
								$('.commentFBlogin').hide();
								$('#comment_login_form').hide();
								$("#change_phonenumber").show();
								setMessageBox(data.message, data.addclass);
							} else {
								$("#change_phonenumber").hide();
								//$("#commentInfo_noFb").show();
								//$("#commentLoggedInEmail").text(data.message);
								setMessageBox(data.message, data.addclass);
								$("#commentLoggedInEmail").show();
								if ('user' in data) {
									auto_login_email(data);
								}
							}
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////</p>
<p>			function comments_modifyForm_phone_change() {</p>
<p>				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_email_phone_chnage").hide();
							$("#fbFormN_email_phone_chnage").hide();
							$("#commentError_telephone_change").hide();
							$("#fbFormN_telephone_change").hide();
							$("#commentError_password_phone_chnage").hide();
							$("#fbFormN_password_phone_chnage").hide();
							$("#commentsForm_sms_change_veryfy").hide();</p>
<p>							$("#fbFormN_sms_change_Ver").show();
							$("#commentsForm_sms_send_change_veryfy").show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_phone_change_sms_verify() {
				var fbFormN_email_phone_chnage = $.trim($("#fbFormN_email_phone_chnage").val());
				var fbFormN_telephone_change = $.trim($("#fbFormN_telephone_change").val());
				var fbFormN_password_phone_chnage = $.trim($("#fbFormN_password_phone_chnage").val());
				var fbFormN_sms_change_Ver = $.trim($("#fbFormN_sms_change_Ver").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());</p>
<p>				jQuery.ajax({ type: "POST",
					dataType: "json",
					cache: false,
					url: "/community/talkback_ajax.html",
					async: true,
					data: "action=talkback_phone_change_sms_verify&email="+encodeURIComponent(fbFormN_email_phone_chnage)+"&customer_id="+fbForm_customerId+"&password="+encodeURIComponent(fbFormN_password_phone_chnage)+"&telephone="+encodeURIComponent(fbFormN_telephone_change)+"&code="+encodeURIComponent(fbFormN_sms_change_Ver),
					error: function(){
					},
					success: function(data){
						if (data.code == 1) {
							$("#commentError_sms_change_ver").hide();
							$("#fbFormN_sms_change_Ver").hide();
							$("#commentsForm_sms_send_change_veryfy").hide();
							$("#change_phonenumber").hide();</p>
<p>							$('#comment_login_form').show();</p>
<p>							setMessageBox(data.message, data.addclass);
						} else {
							setMessageBox(data.message, data.addclass);
						}
					}
				});
			}
			///////////////////////////////////////////////////
			function commentsForm_sms_verify() {
				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
				var fbFormN_telephone = $.trim($("#fbFormN_telephone").val());
				var fbFormN_email = $.trim($("#fbFormN_email").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbFormN_smsVer = $.trim($("#fbFormN_smsVer").val());</p>
<p>				var hasErrors = false;</p>
<p>				if (!hasErrors) {</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "json",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=talkback_sms_verify&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&email="+encodeURIComponent(fbFormN_email)+"&telefone="+encodeURIComponent(fbFormN_telephone)+"&code="+ fbFormN_smsVer +"&customer_id="+fbForm_customerId+"&story_id="+encodeURIComponent(fbForm_storyId),
						error: function(){
						},
						success: function(data){
							if (data.code == 0) {
								setMessageBox(data.message, data.addclass);
							} else {
								$("#commentLogin").hide();
								$("#sms_verify").hide();
								$("#fbFormN_smsVer").hide();
								$("#commentsForm_sms_veryfy").hide();</p>
<p>								setMessageBox(data.message, data.addclass);
							}
						}
					});
				}
			}</p>
<p>			//////////////////////////////////////////
			//swissnoise quiva
			function auto_login_quiva(data) {
				console.log("quiva login start");
				var user = {
					"remoteId": data.uid,
					"username": data.user.email,
					"password": data.pcr,
					"email": data.user.email,
					"firstName": data.user.first_name,
					"lastName": data.user.last_name,
					"zipCode": data.user.post_code,
					"locality": data.user.city,
					"phoneNumber": data.user.mobile_number
				};
				whatif.login(user).always(function() {</p>
<p>				});
				console.log("quiva login done");
			}
			//END swissnoise quiva</p>
<p>  			function auto_login_email(data) {
			    $(".commentFBlogin").hide();
			    $(".commentOhnelogin").hide();
			    var html = '';
			    var name = data.user.first_name +' '+ data.user.last_name;
			    html += '<span class="fbUserWelcome">Bienvenue, <span id="fbUserRealName">'+ name +'</span></span><br />';
			    html += '<a href="" id="commentsForm_send_email" onclick="return false;">Soumettre Commentaire</button>';
			    html += '<a href="" class="emailLogoutButton" onclick="return false;">Déconnecter</a><br />';
			    html += '<a href="" id="emailManageAccount" onclick="return false;">Gérer le profil</a>';
			    html += '<input id="login_email_token" name="login_email_token" value="'+ data.token +'" type="hidden">';
			    html += '<input id="login_email_email" name="login_email_email" value="'+ data.user.email +'" type="hidden">';
			    $("#commentLoggedInEmail").html(html);
			    set_logged_in_cookie(data);
			    $("#commentLoggedInEmail").show();</p>
<p>  			}</p>
<p> 			///////////////////////////////////////////////////
  			function commentsForm_send_noFb() {
  				var fbForm_message = $.trim($("#fbForm_message").val());  
  				fbForm_message = fbForm_message.replace(/&/g, "+");
  				var fbForm_uri = $.trim($("#fbForm_uri").val());
  				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
  				var fbForm_ip = $.trim($("#fbForm_ip").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_firstName = $.trim($("#fbFormN_firstName").val());
  				var fbFormN_surname = $.trim($("#fbFormN_surname").val());
  				var fbFormN_zip = $.trim($("#fbFormN_zip").val());
  				var fbFormN_location = $.trim($("#fbFormN_location").val());
  				var fbFormN_email = $.trim($("#fbFormN_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message 
  				if ($("#fbFormN_password").length) {
  				    var fbFormN_password = $.trim($("#fbFormN_password").val());
  				}
  				if ($("#fbFormN_password_confirm").length) {
  				    var fbFormN_password_confirm = $.trim($("#fbFormN_password_confirm").val());
  				}</p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; 
				var nameReg = !(fbFormN_firstName.match(/(*)/)) && !(fbFormN_surname.match(/(*)/)) && fbFormN_firstName.length > 1 && fbFormN_surname.length > 1;
				// dont check for ZIP, cause of foreign countries 
				//var locReg = !(fbFormN_zip.match(/(*)/)) && !(fbFormN_location.match(/(*)/)) && fbFormN_zip.length > 1 && fbFormN_location.length > 1;   
				var locReg = !(fbFormN_location.match(/(*)/))&& fbFormN_location.length > 1; 
				var emailRegObj = /^((a-zA-Z0-9_.-))+@((a-zA-Z0-9_.-))+.((a-zA-Z))+((a-zA-Z))+/; 	 // /^((a-zA-Z0-9_.-+))+@(((a-zA-Z0-9-))+.)+((a-zA-Z0-9){2,4})+$/;
				var password_params = '';</p>
<p>				$("#commentError_name").hide();
				$("#commentError_location").hide();
				$("#commentError_email").hide();
				$("#commentError_password").hide();
				$("#commentError_message").hide();
				$("#commentError_disclaimer").hide();
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show();
					hasErrors = true;
				}</p>
<p>				if (nameReg == false) {
					$("#commentError_name").show();
					hasErrors = true; 
				}</p>
<p>				if (locReg == false) {
					$("#commentError_location").show(); 	
					hasErrors = true; 
				}</p>
<p>				if(emailRegObj.test(fbFormN_email) == false){      
					$("#commentError_email").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;
				}</p>
<p>				if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show();
					$(".disclaimerText").show();
					hasErrors = true;
				}</p>
<p>				if (!hasErrors) {</p>
<p>					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					save_form_to_cookie('comment_form_input');</p>
<p>					jQuery.ajax({ type: "POST",
						dataType: "html",
						cache: false,
						url: "/community/talkback_ajax.html",
						async: true,
						data: "action=sendComment&fbFormN_firstName="+encodeURIComponent(fbFormN_firstName)+"&fbFormN_surname="+encodeURIComponent(fbFormN_surname)+"&fbFormN_zip="+encodeURIComponent(fbFormN_zip)+"&fbFormN_location="+encodeURIComponent(fbFormN_location)+"&fbFormN_email="+encodeURIComponent(fbFormN_email)+"&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID,
						error: function(){ },
						success: function(){
							$("#commentLogin").hide();
							$("#fbForm_message").hide();
							$("#fbForm_message_count_class").hide();
							$("#commentError_message").hide();
							$("#commentInfo_Fb").hide();
							$("#commentsForm_send").hide();
							$("#fbCommentPublishCheckbox").hide();
							$("#commentsForm_send_noFb").hide();
							$("#disclaimerConfirm").hide();
							$("#commentInfo_noFb").show();
						}
					});
				}
			}</p>
<p>			///////////////////////////////////////////////////
			function commentsForm_send_email() {
				var fbForm_message = $.trim($("#fbForm_message").val());  
				fbForm_message = fbForm_message.replace(/&/g, "+");
				var fbForm_uri = $.trim($("#fbForm_uri").val());
				var fbForm_storyId = $.trim($("#fbForm_storyId").val());
				var fbForm_customerId = $.trim($("#fbForm_customerId").val());
				var fbForm_ip = $.trim($("#fbForm_ip").val());
				var login_email_token = $.trim($("#login_email_token").val());</p>
<p>  				var is_logged_in = false;
  				if ($("#is_logged_in").length) {
  				    is_logged_in = true;
  				}</p>
<p>  				var fbFormN_email = $.trim($("#login_email_email").val());
  				var fbForm_msgID = $.trim($("#fbForm_msgID").val()); // if this value is > 0, its a reply-to-another-comment message </p>
<p>  				var fbFormN_gotcha = $.trim($("#fbFormN_gotcha").val());</p>
<p>				var hasErrors = false; </p>
<p>				var messageReg =  fbForm_message.length > 1; </p>
<p>				$("#commentError_name").hide(); 	
				$("#commentError_location").hide(); 
				$("#commentError_email").hide(); 
				$("#commentError_password").hide(); 
				$("#commentError_message").hide(); 	
				$("#commentError_disclaimer").hide(); 	
				$(".disclaimerText").hide();</p>
<p>				if (messageReg == false) {
					$("#commentError_message").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (fbFormN_gotcha.length > 1) {
					hasErrors = true;  
				}</p>
<p>			    if (!($('#disclaimerConfirmBtn').is(':checked'))) {
					$("#commentError_disclaimer").show(); 	
					hasErrors = true; 
				}</p>
<p>				if (!hasErrors) {
					$("#commentsForm_send").attr("disabled", "true");
					$("#commentsForm_send_noFb").attr("disabled", "true");
					commentNotSent = false;</p>
<p>				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=send_comment_email&fbForm_uri="+encodeURIComponent(fbForm_uri)+"&fbForm_storyId="+fbForm_storyId+"&customer_id="+fbForm_customerId+"&fbForm_ip="+fbForm_ip+"&fbForm_message="+encodeURIComponent(fbForm_message)+"&fbForm_msgID="+fbForm_msgID+"&email="+encodeURIComponent(fbFormN_email)+"&token="+login_email_token,  
					    error: function(){ },
					    success: function(data){
						          	if (data.code == 1) {
						          	    $("#commentLogin").hide();
						          	    $("#fbForm_message").hide();
						          	    $("#fbForm_message_count_class").hide();      	
						          	    $("#commentError_message").hide();
									    $("#commentError_name").hide(); 	 	
									    $("#commentError_location").hide(); 	
									    $("#commentError_email").hide();	
									    $("#commentError_disclaimer").hide(); 	
									    $(".disclaimerText").hide();
									    $("#commentInfo_noFb").hide(); 
    									$("#commentsForm_send").hide(); 
									    $("#fbCommentPublishCheckbox").hide();
									    $("#disclaimerConfirm").hide();
									    $("#commentsForm_send_noFb").hide();	
						          	    $("#commentInfo_noFb").show();  
						          	    $("#commentSendLoading").hide();
						          	    $("#commentInfo_Notice").hide();
						          	    $("#manageAccount").hide();
						          	}
						          	else if (data.code == 2) {
						          	    setMessageBox(data.message, data.addclass);
						          	}
					    }     
				 	});		
				}		
  			}  			</p>
<p>			///////////////////////////////////////////////////
			///////////////////////////////////////////////////
  			// some jquery UI functions
			function fbLoginDisplay(loginState) {
				$(document).ready(function(){
					if (loginState == true) {
						$(".notloggedToFacebook").hide();
						$(".loggedToFacebook").show();
						$('#commentsForm_send_noFb').hide();
						$('#commentsForm_send').show();
						$("#fbCommentPublishCheckbox").show();
						$(".recommendCommentFacebook").show();
					}
	else {
						$(".loggedToFacebook").hide(); 
						$(".notloggedToFacebook").show(); 
						$('#commentsForm_send').hide();
						$('#commentsForm_send_noFb').show();
						$("#fbCommentPublishCheckbox").hide();
						$(".recommendCommentFacebook").hide();
						if ($("#commentLoggedInEmail").length) {
							$("#commentLoggedInEmail").show();
						}
				}});
  			}</p>
<p>  			///////////////////////////////////////////////////
  			function fbDomInsert(username, uid, token) {  
						$(document).ready(function(){  
		           $("#fbUserRealName").html(username); 
		           var imgHtml= "<img src='https://graph.facebook.com/me/picture?access_token="+token+"'/>";
		           $("#fbUserProfilePicture").html(imgHtml);</p>
<p>		           $("#fbForm_realName").val(username); 
		           $("#fbForm_userId").val(uid);
		           $("#fbForm_userToken").val(token);
	        	});
				}
				///////////////////////////////////////////////////
				function loginDrop() {
					$(document).ready(function(){
						$('#commentLogin').slideDown();
						$("textarea#fbForm_message").attr("rows", 6);
						$("#commentsForm_send").removeAttr("disabled");
						$("#commentsForm_send_noFb").attr("disabled", "");
						$("#commentsForm_send_email").removeAttr("disabled");
						$("#fbForm_message").val("");
						$('#fbForm_message').removeAttr("onclick");
					});
				}
		///////////////////////////////////////////////////
		function doOnFbConnect() {
			$(".recommendCommentFacebook").show(); // for comments below: display checkbox to choose if recommended comments get published on facebook
		}</p>
<p>		///////////////////////////////////////////////////
		function log(msg){
			if (typeof console === 'undefined') {
				return false;
			} else {
				return true;
			}
		}</p>
<p>		/////////////////////////////////////////////////////////////////////////////////	
        /////////////////////////////////////////////////////////////////////////////////  
        /////////////////////////////////////////////////////////////////////////////////
        // main </p>
<p>        // fb auth 
        var fbAccessToken = ''; 
        var fbUserID = ''; 
        var fbUserName = '';  
        FBcomments.initFb(); 
        var nnFBloggedIn = check_nnCookie();  
   			if (nnFBloggedIn == true) {
   				fbLoginDisplay(true); </p>
<p>   			}
   			else {
   				fbLoginDisplay(false); 
   			}</p>
<p>function inputFocus(thisFor, thisClass) {
    $('#'+ thisFor).focus(function() {
        $('.'+ thisClass).animate({ opacity: "0" }, "fast");
    }).blur(function() {
        if($(this).val() == "") {
            $('.'+ thisClass).animate({ opacity: "1" }, "fast");
        }
    });
}</p>
<p>			//// some more jquery stuff
   			$(document).ready(function(){
				read_logged_in_cookie();</p>
<p>				// hide 'populär auf facebook' widget in sideline
				//$("#fb_activityFeed").hide(); </p>
<p>				$("#fbCommentPublishCheckbox").hide();</p>
<p>$('#fbFormN_password_login').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_post_confirmed').focus().click();
        return false;
    }
});</p>
<p>$('#fbFormN_smsVer').keypress(function(e){
    if (e.which == 13){
        e.preventDefault();
        $(this).blur();
        $('#commentsForm_sms_veryfy').focus().click();
        return false;
    }
});</p>
<p>// Bind to set the fadeout of form labels when clicked or focused
$('.sbsLabel label').each(function () {
    var thisFor = $(this).attr('for');
    var thisClass = $(this).attr('class');
    inputFocus(thisFor, thisClass);
});</p>
<p>   				// some form display handling 
					$('#disclaimerButtonShow').bind('click', function(){
						$('.disclaimerText').show();
						$('#disclaimerButtonShow').css('display','none');
						$('#disclaimerButtonHide').css('display','inline');
					});
					$('#disclaimerButtonHide').bind('click', function(){
						$('.disclaimerText').hide();
						$('#disclaimerButtonHide').css('display','none');
						$('#disclaimerButtonShow').css('display','inline');
					});</p>
<p>				// display login data on start 
				if ($("#fbUserRealName").html()) {
					if ($("#fbUserRealName").html().length >= 2){ // && $("textarea#fbForm_message").attr("rows") > 2
						$("#fbCommentPublishCheckbox").show();
					}
				}</p>
<p>				// clear textarea 
				$("#fbForm_message").val(''); </p>
<p>				// submit buttons , disable on on reload 
				$("#commentsForm_send").attr("disabled", "true");
				$("#commentsForm_send_noFb").attr("disabled", "true");</p>
<p>				// set checkboxes
				$('#fbForm_publishOnFB').attr('checked', true); 
				$('.recommendCommentPublishOnFb').attr('checked', true); 
				$('#disclaimerConfirmBtn').attr('checked', false);</p>
<p>				// fixes a tiny bug: if values are prefilled on reload they should not be grey 
				var myFbFormIds = ('fbFormN_firstName', 'fbFormN_surname', 'fbFormN_zip', 'fbFormN_location', 'fbFormN_email', 'fbFormN_password', 'fbFormN_password_confirm');
				for (var ii=0;ii < myFbFormIds.length; ii++) {
				  if ($("#"+myFbFormIds(ii)).length) {
					if (!($("#"+myFbFormIds(ii)).val().match(/(*)/))) {
						$("#"+myFbFormIds(ii)).css('color','#000000'); 
					};
				  }
				}

				$('.comment_signup_form_toggle').live('click', function(){
					$('#comment_signup_form').toggle('slow');
					$('#comment_login_form').toggle('slow');
					return false;
				});

				$('.comment_form_forgot_password').live('click', function(){
				    $('#comment_password_reset_form').toggle('slow');
				    $('#comment_login_form').toggle('slow');
				    return false;
				});

				$('.emailLogoutButton').live('click', function() {
					delete_cookie('comment_login_details_email');
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$(".commentFBlogin").show();
					$(".commentOhnelogin").show();
				});

				$('#show_update_phone').live('click', function() {
					$("#commentLoggedInEmail").html('');
					$("#manageAccount").html('');
					$("#commentLoggedInEmail").hide();
					$("#comment_login_form").hide();

					$("#change_phonenumber").show();
					$(".commentOhnelogin").show();
				});

				$('#commentsForm_send_email').live('click', function() {
				    if (commentNotSent) {
				        commentsForm_send_email();
				    }
				});

				$('#emailManageAccount').live('click', function () {
				    var customer_id = $.trim($("#fbForm_customerId").val());
				    var login_email_email = $.trim($("#login_email_email").val());
				    var login_email_token = $.trim($("#login_email_token").val());

				    jQuery.ajax({ type: "POST",
					    dataType: "json",
					    cache: false,
		                url: "/community/talkback_ajax.html",
					    async: true,
					    data: "action=login_manage_account&#038;customer_id="+customer_id+"&#038;email="+encodeURIComponent(login_email_email)+"&#038;token="+login_email_token,
					    error: function(){ },
					    success: function(data){
					        if (data.code == 0) {
					            setMessageBox(data.message, data.addclass);
					        }
					        else if (data.code == 1) {
					            $('#manageAccount').html(data.message);
					            $('#manageAccount').show();
					        }
					    }     
				 	});
				});

				});
        </script><br /></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
