
var ong_path1_off = "../Images/imagesv2/enews/ea_onglet_pme_off.gif";
var ong_path1_on = "../Images/imagesv2/enews/ea_onglet_pme_on.gif";
var ong_path2_off = "../Images/imagesv2/enews/ea_onglet_btp_off.gif";
var ong_path2_on = "../Images/imagesv2/enews/ea_onglet_btp_on.gif";
var ong_path3_off = "../Images/imagesv2/enews/ea_onglet_rp_off.gif";
var ong_path3_on = "../Images/imagesv2/enews/ea_onglet_rp_on.gif";
var ong_path4_off = "../Images/imagesv2/enews/ea_onglet_ccn_off.gif";
var ong_path4_on = "../Images/imagesv2/enews/ea_onglet_ccn_on.gif";
var ong_path5_off = "../Images/imagesv2/enews/ea_onglet_st_off.gif";
var ong_path5_on = "../Images/imagesv2/enews/ea_onglet_st_on.gif";

//changement d'onglets des enews
function changeOnglet(ong) {

	switch(ong) {
	case "PME":	
		document.getElementById("img_onglet_pme").src = ong_path1_on;
		document.getElementById("img_onglet_btp").src = ong_path2_off;
		document.getElementById("img_onglet_rp").src = ong_path3_off;
		document.getElementById("img_onglet_st").src = ong_path5_off;
		document.getElementById("img_onglet_cn").src = ong_path4_off;
		
		//document.getElementById("enews_PME").style.display = 'block';
	break;
	case "BTP":	
		document.getElementById("img_onglet_pme").src = ong_path1_off;
		document.getElementById("img_onglet_btp").src = ong_path2_on;
		document.getElementById("img_onglet_rp").src = ong_path3_off;		
		document.getElementById("img_onglet_st").src = ong_path5_off;
		document.getElementById("img_onglet_cn").src = ong_path4_off;
		
		//document.getElementById("enews_BTP").style.display = 'block';
	break;
	case "RP":	
		document.getElementById("img_onglet_pme").src = ong_path1_off;
		document.getElementById("img_onglet_btp").src = ong_path2_off;
		document.getElementById("img_onglet_rp").src = ong_path3_on;	
		document.getElementById("img_onglet_st").src = ong_path5_off;
		document.getElementById("img_onglet_cn").src = ong_path4_off;
		
		//document.getElementById("enews_PER").style.display = 'block';
	break;	
	case "CN":	
		document.getElementById("img_onglet_pme").src = ong_path1_off;
		document.getElementById("img_onglet_btp").src = ong_path2_off;
		document.getElementById("img_onglet_rp").src = ong_path3_off;	
		document.getElementById("img_onglet_st").src = ong_path5_off;
		document.getElementById("img_onglet_cn").src = ong_path4_on;
		
		//document.getElementById("enews_CN").style.display = 'block';
	break;	
	case "ST":	
		document.getElementById("img_onglet_pme").src = ong_path1_off;
		document.getElementById("img_onglet_btp").src = ong_path2_off;
		document.getElementById("img_onglet_rp").src = ong_path3_off;
		document.getElementById("img_onglet_cn").src = ong_path4_off;
		document.getElementById("img_onglet_st").src = ong_path5_on;
		
		//document.getElementById("enews_ST").style.display = 'block';
	break;	
	}
}

