function CacheEmailCBI(name, domain){
	var variable = '<a href=\"mailto:' + name + '@' + domain + ' \" class=\"red\">';
	variable +=name + '@' + domain + '</a>' ;
	return variable;
}


/*
if( document.getElementById) {
	window.alert = function(txt) {
		createCustomAlert(txt);
	}
}
*/

/*
function createCustomAlert(txt) {
	d = document;
	
	var ALERT_TITLE = "CONSEIL";
	var ALERT_BUTTON_TEXT = "Valider";

	if(d.getElementById("modalContainer")) return;

	mObj = d.getElementsByTagName("body")[0].appendChild(d.createElement("div"));
	mObj.id = "modalContainer";
	mObj.style.height = d.documentElement.scrollHeight + "px";
	
	alertObj = mObj.appendChild(d.createElement("div"));
	alertObj.id = "alertBox";
	if(d.all && !window.opera) alertObj.style.top = document.documentElement.scrollTop + "px";
	alertObj.style.left = (d.documentElement.scrollWidth - alertObj.offsetWidth)/2 + "px";
	alertObj.style.visiblity="visible";
	

	alertObj.style.top = "20px";

	h1 = alertObj.appendChild(d.createElement("h1"));
	h1.appendChild(d.createTextNode(ALERT_TITLE));

	msg = alertObj.appendChild(d.createElement("p"));
	//msg.appendChild(d.createTextNode(txt));
	msg.innerHTML = txt;

	btn = alertObj.appendChild(d.createElement("a"));
	btn.id = "closeBtn";
	btn.appendChild(d.createTextNode(ALERT_BUTTON_TEXT));
	btn.href = "#";
	btn.focus();
	btn.onclick = function() { removeCustomAlert();return false; }

	alertObj.style.display = "block";
	alertObj.style.zIndex = 4000;
	
}


function removeCustomAlert() {
	document.getElementsByTagName("body")[0].removeChild(document.getElementById("modalContainer"));
}

		$Var=false;
		function MoveEffect()
		{
			if($Var==false)
			{	
				new Effect.Move('ctl0_contact', {x:0,y:95,duration:1});
				$Var=true;
			}
			else
			{
				new Effect.Move('ctl0_contact', {x:0,y:-95,duration:1});
				$Var=false;			
			}
			
			
		}
	*/	
		
		function FuncFAQ( $IdTrunc, $IdFull, $Var2)
		{
			if($Var2==false)
			{	
				new $($IdTrunc).fade({ duration: 1.0, from: 1, to: 0 });
				new Effect.SlideUp($IdTrunc);
				
				new $($IdFull).fade({ duration: 1.0, from: 0, to: 1 });
				new Effect.SlideDown($IdFull);
				$Var2=true;
			}
			else
			{
				new $($IdFull).fade({ duration: 1.0, from: 1, to: 0 });
				new Effect.SlideUp($IdFull);
				
				new $($IdTrunc).fade({ duration: 1.0, from: 0, to: 1 });
				new Effect.SlideDown($IdTrunc);
				$Var2=false;			
			}
		}
		
		
		window.onload = function()
		{
			if(window.addEventListener)
				document.addEventListener('DOMMouseScroll', moveObject, false);
		 
			document.onmousewheel = moveObject;
		}
		
			
		var scrolling = "";
		
		function setWhell( whelldi)
		{
			if( whelldi != scrolling)
			{
				scrolling = whelldi;
			}
		}
			
		function moveObject(event)
		{

			if( scrolling != "")
			{
			
				if (!event) event = window.event;

				var d = document.getElementById( scrolling);

				if (event.wheelDelta) {

					delta = event.wheelDelta / 2;
					d.scrollTop = d.scrollTop - delta;
			 
				} else if (event.detail) {

					delta = event.detail *10;
					d.scrollTop = d.scrollTop + delta;
				}
			}
		}
		
		
		function scroll_up(contaner) {
		

			var d = document.getElementById(contaner);
	 
			d.scrollTop = d.scrollTop - 5;
	 
			scrolling = window.setTimeout(function() {
				scroll_up(contaner);
			}, 10);
		}
	 
		function scroll_down(contaner) {
			var d = document.getElementById(contaner);
	 
			d.scrollTop = d.scrollTop + 5;
	 
			scrolling = window.setTimeout(function() {
				scroll_down(contaner);
			}, 10);
		}
	 
		function stop_scroll() {
			window.clearTimeout(scrolling);
		}		
