function conteneur(nUrl,nAncre,nIdSite, nNode) {
this.monUrl = nUrl;
this.monAncre = nAncre;
this.monIdSite = nIdSite;
this.monNode = nNode;
}
var tab_Ancre = new Array(new conteneur(	"/", 	"", 	"1", 	"0") , 
new conteneur(	"/cogemip/_briques/", 	"_briques", 	"1", 	"1000") , 
new conteneur(	"/cogemip/Notre_expertise_pour_vous_accompagner/", 	"Notre_expertise_pour_vous_accompagner", 	"1", 	"1001") , 
new conteneur(	"/cogemip/Plus_de_20_ans_partenaire_des_collectivites/", 	"Plus_de_20_ans_partenaire_des_collectivites", 	"1", 	"1002") , 
new conteneur(	"/cogemip/Nos_partenaires_ensemble_pour_vos_projets/", 	"Nos_partenaires_ensemble_pour_vos_projets", 	"1", 	"1003") , 
new conteneur(	"/cogemip/Le_developpement_durable_plus_qu_un_concept_un_engagement/", 	"Le_developpement_durable_plus_qu_un_concept_un_engagement", 	"1", 	"1004") , 
new conteneur(	"/cogemip/News/", 	"News", 	"1", 	"1005") , 
new conteneur(	"/cogemip/Newsletter/", 	"Newsletter", 	"1", 	"1006") , 
new conteneur(	"/cogemip/Nos_principales_realisations/", 	"Nos_principales_realisations", 	"1", 	"1007") , 
new conteneur(	"/cogemip/Nos_fiches_thematiques/", 	"Nos_fiches_thematiques", 	"1", 	"1008") , 
new conteneur(	"/cogemip/Vous_etes/", 	"Vous_etes", 	"1", 	"1009") , 
new conteneur(	"/cogemip/Nos_consultations/", 	"Nos_consultations", 	"1", 	"1010") , 
new conteneur(	"/cogemip/Plan_du_site/", 	"Plan_du_site", 	"1", 	"1011") , 
new conteneur(	"/cogemip/Mentions_legales/", 	"Mentions_legales", 	"1", 	"1012") , 
new conteneur(	"/cogemip/Credits/", 	"Credits", 	"1", 	"1013") , 
new conteneur(	"/cogemip/Contacts/", 	"Contacts", 	"1", 	"1014") , 
new conteneur(	"/cogemip/Notre_expertise_pour_vous_accompagner/Amenagement/", 	"Amenagement", 	"1", 	"1015") , 
new conteneur(	"/cogemip/Notre_expertise_pour_vous_accompagner/Construction/", 	"Construction", 	"1", 	"1016") , 
new conteneur(	"/cogemip/Notre_expertise_pour_vous_accompagner/Developpement_economique/", 	"Developpement_economique", 	"1", 	"1017") , 
new conteneur(	"/cogemip/Nos_principales_realisations/Formation/", 	"Formation", 	"1", 	"1018") , 
new conteneur(	"/cogemip/Nos_principales_realisations/Medico-social/", 	"Medico-social", 	"1", 	"1019") , 
new conteneur(	"/cogemip/Nos_principales_realisations/Sports_&_Loisirs/", 	"Sports_&_Loisirs", 	"1", 	"1020") , 
new conteneur(	"/cogemip/Nos_principales_realisations/Locaux_professionnels/", 	"Locaux_professionnels", 	"1", 	"1021") , 
new conteneur(	"/cogemip/Nos_principales_realisations/Immobilier/", 	"Immobilier", 	"1", 	"1022") , 
new conteneur(	"/cogemip/Nos_principales_realisations/Culture_&_Tourisme/", 	"Culture_&_Tourisme", 	"1", 	"1023") , 
new conteneur(	"/cogemip/Nos_principales_realisations/Patrimoine/", 	"Patrimoine", 	"1", 	"1024") , 
new conteneur(	"/cogemip/Vous_etes/Collectivite/", 	"Collectivite", 	"1", 	"1025") , 
new conteneur(	"/cogemip/Vous_etes/Entreprise/", 	"Entreprise", 	"1", 	"1026") , 
new conteneur(	"/cogemip/Vous_etes/Associations/", 	"Associations", 	"1", 	"1027") , 
new conteneur(	"/cogemip/Vous_etes/promoteurs/", 	"promoteurs", 	"1", 	"1028") , 
new conteneur(	"/cogemip/Par_metier/", 	"Par_metier", 	"1", 	"1029") , 
new conteneur(	"/cogemip/Par_cible/", 	"Par_cible", 	"1", 	"1030") , 
new conteneur(	"/cogemip/Le_developpement_durable_plus_qu_un_concept_un_engagement/Priorite_a_l_environnement/", 	"Priorite_a_l_environnement", 	"1", 	"1031") , 
new conteneur(	"/cogemip/Le_developpement_durable_plus_qu_un_concept_un_engagement/Un_engagement_social/", 	"Un_engagement_social", 	"1", 	"1032") , 
new conteneur(	"/cogemip/Le_developpement_durable_plus_qu_un_concept_un_engagement/Bilans/", 	"Bilans", 	"1", 	"1033") , 
new conteneur(	"/cogemip/Nos_principales_realisations/Par_cible/", 	"Par_cible", 	"1", 	"1043") , 
new conteneur(	"/cogemip/Nos_principales_realisations/Eco-citoyennes/", 	"Eco-citoyennes", 	"1", 	"1035") , 
new conteneur(	"/cogemip/Nos_principales_realisations/Par_metier/", 	"Par_metier", 	"1", 	"1044") , 
new conteneur(	"/cogemip/Le_developpement_durable_plus_qu_un_concept_un_engagement/Vous_etes_concernes/", 	"Vous_etes_concernes", 	"1", 	"1039") , 
new conteneur(	"/cogemip/Le_developpement_durable_plus_qu_un_concept_un_engagement/Vous_etes_concernes/Decideurs/", 	"Decideurs", 	"1", 	"1040") , 
new conteneur(	"/cogemip/Le_developpement_durable_plus_qu_un_concept_un_engagement/Vous_etes_concernes/Professionnels/", 	"Professionnels", 	"1", 	"1041") , 
new conteneur(	"/cogemip/Le_developpement_durable_plus_qu_un_concept_un_engagement/Vous_etes_concernes/Utilisateurs/", 	"Utilisateurs", 	"1", 	"1042") );
function parseUrl1(data) {
var e=/^((http|ftp):\/)?\/?([^:\/\s]+)(\/#([\w\-]+))?$/;
var e2=/^((http|ftp):\/)?\/?([^:\/\s]+)(\/\?id=\d+)(#([\w\-]+))?$/;
var e3=/^((http|ftp):\/)?\/?([^:\/\s]+)(\/#([\w\-^\/]+))\/([\w\-]+)?$/;
if (data.match(e)) {
	return  {url: RegExp['$&'],
			protocol: RegExp.$2,
			host:RegExp.$3,
			path:RegExp.$4,
			  ancre:RegExp.$5,
			file:RegExp.$6,
			hash:RegExp.$7};
}
else  if (data.match(e2)) {
	return  {url: RegExp['$&'],
			protocol: RegExp.$2,
			host:RegExp.$3,
			path:RegExp.$4,
			  path3:RegExp.$5,
			ancre:RegExp.$6,
			hash:RegExp.$7};
}
else  if (data.match(e3)) {
	return  {url: RegExp['$&'],
			protocol: RegExp.$2,
			host:RegExp.$3,
			path:RegExp.$4,
			  path3:RegExp.$5,
			ancre:RegExp.$6,
			hash:RegExp.$7};
}
else {
return  {url:"", protocol:"",host:"",path:"",file:"",hash:""};
}
}
function test_ancre(){
var sUrl = String(window.top.document.location.href);  
var thisUrl = String(this.document.location.href);  
var Url_reg = "";
Url_reg = parseUrl1(sUrl); 
var hostName = Url_reg["host"] 
var nameAncre = Url_reg["ancre"] 
if(nameAncre  != "" && nameAncre  != undefined && thisUrl.indexOf("home.php") > 0){
var  iAncre = -1;
for (var i in tab_Ancre){
	if (tab_Ancre[i].monNode == nameAncre) {
		iAncre = i
	}
}
	if (iAncre == -1) {
for (var i in tab_Ancre){
	if (tab_Ancre[i].monAncre == nameAncre) {
		iAncre = i
	}
}
}
	if (iAncre != -1) {
items = thisUrl.split("/")
;var currentSite = items[4] 
;if (tab_Ancre[iAncre].monUrl.indexOf(currentSite) > 0) { 
	var baseURL = 'http://'+hostName+'/content'+tab_Ancre[iAncre].monUrl;
 
if (window.top.document.getElementById('iframediv') !=null) { 
	if (window.parent.document.location.href == document.location.href){
		//  
return false; 
	}
	else { 
		if (document.location.href != baseURL) {
			//this.document.location.href = baseURL;
			return baseURL; 
		}
	else { 
			return false; 
		} 
	} 

} 
	} else {window.top.document.location.href = 'http://'+hostName+'/?id='+tab_Ancre[iAncre].monIdSite+'#'+nameAncre;
return false; 
	}
	}
}
}

