// Pour le Dropdown menu ... VOIR $(".dropmenu > li").adnMenu();



// Autres scripts :

function addmailing(email, lang){
	if(validMail(email.value)){
		killAjax();
		ret = function() {
			if(ajaxOk()){
				document.getElementById('liste').innerHTML = objAjax.responseText;
			}
		}
		callAjax('/script/ajax.php?what=mailing&courriel='+email.value+'&lang='+lang,ret,null);
	}
	else{
		email.focus();
		email.select();
		alert('Veuillez entrer une adresse de courriel valide.');
	}
}

function addcomment(lang, post){
	if(validForm(post)){
		killAjax();
		ret = function(){
			if(ajaxOk()){
				document.getElementById('comment_form').innerHTML = objAjax.responseText;
			}
		}
		callAjax('/script/ajax.php?what=comment&lang='+lang,ret,null,post);
	}
}

function changeSizeTxt(plus){
	if(document.getElementById("contenu") && document.getElementById("msize") && document.getElementById("psize")){
		var cH = (document.getElementById("contenu"));
		var mA = document.getElementById("msize");
		var pA = document.getElementById("psize");
		
		if(!cH.style.fontSize) cH.style.fontSize = "12px";
		var fSize = parseInt(cH.style.fontSize.replace("px",""));
		
		mA.className = "";
		pA.className = "";
		
		if(plus){
			if(fSize<17){
				fSize++;
				cH.style.fontSize = fSize+"px";
			}
		}else{
			if(fSize>10){
				fSize--;
				cH.style.fontSize = fSize+"px";
			}
		}
		
		if(fSize>=17) pA.className = "hidden";
		if(fSize<=10) mA.className = "hidden";
	}
	return false;
}

function printPage(){
	window.print();
	return false;
}



function infoGazReload() {
	 
	var myRandom = parseInt(Math.random()*99999999); // cache buster 

	
jQuery.post("/ajax/infogaz.php", { rand:myRandom } , function(data) {
   
	
	document.getElementById('infogazzone').innerHTML = data;
	});
}

function infoGazReloadEn() {
	 
	var myRandom = parseInt(Math.random()*99999999); // cache buster 

	
jQuery.post("/ajax/infogaz.php?lan=en", { rand:myRandom } , function(data) {
   
	
	document.getElementById('infogazzone').innerHTML = data;
	});
}
	



function checkino(){
	try{
		ino_pushData();
		clearTimeout(th);
	}catch(e){
		th = setTimeout("checkino()",250);
	}
}

var th;
callInovestor = function(){
	var a = document.createElement('script');
	a.type = 'text/javascript';
	a.async = true;
	a.charset = 'utf-8';
	a.src = 'http://dfc.inovestor.com/Junex/QuoteEngine.aspx?language=fr&autoload=false';
	var s = document.getElementsByTagName('script')[0];
	s.parentNode.insertBefore(a, s);
	th = setTimeout("checkino()",250);
};

var th;
callInovestor_en = function(){
	var a = document.createElement('script');
	a.type = 'text/javascript';
	a.async = true;
	a.charset = 'utf-8';
	a.src = 'http://dfc.inovestor.com/Junex/QuoteEngine.aspx?language=en&autoload=false';
	var s = document.getElementsByTagName('script')[0];
	s.parentNode.insertBefore(a, s);
	th = setTimeout("checkino()",250);
};



