var dossier_v2 = "";



//-----------------------------------------------------------------------------------------------------
function getHTTPObject() {
	var xmlhttp;
	/*@cc_on
	@if (@_jscript_version >= 5)
	try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {
	try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) {
	xmlhttp = false;
	}
	}
	@else
	xmlhttp = false;
	@end @*/

 


	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
			xmlhttp.overrideMimeType("text/html; charset=ISO-8859-1");
			
		} catch (e) {
			xmlhttp = false;


		}
	}
	return xmlhttp;
}


//-----------------------------------------------------------------------------------------------------
// met en forme une chaine de caracteres
//-----------------------------------------------------------------------------------------------------
String.prototype.toUcFirst = function () {
   var firstLetter = this.substr(0,1).toUpperCase()
   return this.substr(0,1).toUpperCase() + this.substr(1,this.length);
}
String.prototype.toUcWords = function(){
     return this.toLowerCase().replace(/\w+/g,function(s){
          return s.charAt(0).toUpperCase() + s.substr(1);
     })
}

function gId(id){
    return window.document.getElementById(id) ;
}




//-----------------------------------------------------------------------------------------------------
// loading moteur
//-----------------------------------------------------------------------------------------------------
function loading_moteur_off(){
	gId('loading').style.display='none';	
}

function loading_moteur_on(){
	gId('loading').style.display='';	
}


function getCookieInfo(dataName) {
	var cookieLen = dataName.length;
	var cookieData = document.cookie;
	var allcookieLen = cookieData.length;
	var i = 0;
	var cookieEnd;
	while(i < allcookieLen) {
		var j = i + cookieLen;
		if (cookieData.substring(i,j) == dataName) {
			cookieEnd = cookieData.indexOf(";", j);
			if (cookieEnd == -1) {
				cookieEnd = cookieData.length;
			}
			return unescape(cookieData.substring(j+1, cookieEnd))
		}
		i++;
	}
	return "";
}




//-----------------------------------------------------------------------------------------------------
//Slideshow page d'accueil
//-----------------------------------------------------------------------------------------------------
function slideshow(id){
	if (id == 4) { id = 0; }
	blendimage('slideshow','slideimage', 'graphiques/index/'+(id+1)+'.png', 650);
	setTimeout("slideshow("+(id+1)+")", 3500);
}



