function tagsxiti(type){
    var current_url = window.location.href;
    var tabtag = new Array();

    tabtag['http://www.aloa-assurances.fr/']='accueil';
	
	tabtag['http://www.aloa-assurances.fr/actualites/xynthia/']='tempete_xynthia';
	tabtag['http://www.aloa-assurances.fr/actualites/intemperies-var/']='intemperies_var';
	tabtag['http://www.aloa-assurances.fr/actualites/qui-sommes-nous/']='qui_sommes_nous';
	tabtag['http://www.aloa-assurances.fr/actualites/actualites/label-auto-2009/']='label_auto';
	tabtag['http://www.aloa-assurances.fr/clients-satisfaits/']='clients-satisfaits';
	tabtag['http://www.aloa-assurances.fr/actualites/clients-nous-recommandent/']='clients-recommandent';
	
	tabtag['http://www.aloa-assurances.fr/services/reprendre-mon-devis/']='ineas-reprendre-devis';
	
	tabtag['http://www.aloa-assurances.fr/nos-fiches-conseils/']='fiches_conseils_sommaire';
	tabtag['http://www.aloa-assurances.fr/nos-fiches-conseils/acheter-un-bien-immmobiler/']='fiches_conseils_acheter_immo';
	tabtag['http://www.aloa-assurances.fr/nos-fiches-conseils/avoir-un-chat-chez-soi/']='fiches_conseils_avoir_chat';
	tabtag['http://www.aloa-assurances.fr/nos-fiches-conseils/le-constat-amiable/']='fiches_conseils_constat_amiable';	
	
	tabtag['http://www.aloa-assurances.fr/news/newsarchive/10_janv/']='Newsletter_1001';	
	tabtag['http://www.aloa-assurances.fr/news/newsarchive/10_mars/']='Newsletter_1003';	
	tabtag['http://www.aloa-assurances.fr/news/newsarchive/10_mai/']='Newsletter_1005';	

    tabtag['http://www.aloa-assurances.fr/assurance-auto/l-offre/']='offre_auto';
    tabtag['http://www.aloa-assurances.fr/assurance-auto/les-services/']='services_auto';
    tabtag['http://www.aloa-assurances.fr/assurance-auto/detail-des-garanties/']='garanties_auto';
    tabtag['http://www.aloa-assurances.fr/assurance-auto/questions-reponses/']='questions_auto';

    tabtag['http://www.aloa-assurances.fr/assurance-camping-car/l-offre/']='offre_camping_car';
    tabtag['http://www.aloa-assurances.fr/assurance-camping-car/les-services/']='services_camping_car';
    tabtag['http://www.aloa-assurances.fr/assurance-camping-car/detail-des-garanties/']='garanties_camping_car';
    tabtag['http://www.aloa-assurances.fr/assurance-camping-car/questions-reponses/']='questions_camping_car';

    tabtag['http://www.aloa-assurances.fr/assurance-habitation/l-offre/']='offre_habitation';
    tabtag['http://www.aloa-assurances.fr/assurance-habitation/les-services/']='services_habitation';
    tabtag['http://www.aloa-assurances.fr/assurance-habitation/detail-des-garanties/']='garanties_habitation';
    tabtag['http://www.aloa-assurances.fr/assurance-habitation/questions-reponses/']='questions_habitation';

    tabtag['http://www.aloa-assurances.fr/assurance-sante-chien-chat/l-offre/']='offre_chiens';
    tabtag['http://www.aloa-assurances.fr/assurance-sante-chien-chat/detail-des-garanties/']='garanties_chiens';
    tabtag['http://www.aloa-assurances.fr/assurance-sante-chien-chat/questions-reponses/']='questions_chiens';

    tabtag['http://www.aloa-assurances.fr/offres-promotionnelles/2-mois-gratuits/']='offrepromo-auto';

    tabtag['http://www.aloa-assurances.fr/les-moments-de-vie/enfants/']='momentdevie-enfants';
    tabtag['http://www.aloa-assurances.fr/les-moments-de-vie/vacances/']='momentdevie-vacances';
    tabtag['http://www.aloa-assurances.fr/les-moments-de-vie/campagne/']='momentdevie-campagne';
    tabtag['http://www.aloa-assurances.fr/les-moments-de-vie/animal/']='momentdevie-animal';

    tabtag['http://www.aloa-assurances.fr/espace-client/']='espace_client';    
    tabtag['http://www.aloa-assurances.fr/mon-espace-client/']='mon-espace-client';
    tabtag['http://www.aloa-assurances.fr/mon-espace-client/mes-contrats/']='client_contrat';
    tabtag['http://www.aloa-assurances.fr/mon-espace-client/regler-mes-cotisations/']='client_cotisation';
    tabtag['http://www.aloa-assurances.fr/mon-espace-client/realiser-un-devis/']='client_devis';
    tabtag['http://www.aloa-assurances.fr/mon-espace-client/attestations-et-documents/']='client_attestation';
    tabtag['http://www.aloa-assurances.fr/mon-espace-client/attestations-et-documents/demande-dattestations-et-de-documents/']='client_attestation';
    tabtag['http://www.aloa-assurances.fr/mon-espace-client/infos-personnelles/']='client_infos_perso';
    tabtag['http://www.aloa-assurances.fr/mon-espace-client/contact-et-assistance/']='client_contact_assistance';
    tabtag['http://www.aloa-assurances.fr/mon-espace-client/newsletter/']='client_newsletter';
    tabtag['http://www.aloa-assurances.fr/mon-espace-client/sudoku/']='client_sudoku';
    tabtag['http://www.aloa-assurances.fr/mon-espace-client/infos-personnelles/mdp.html']='client_changer_mot_de_passe';
    tabtag['http://www.aloa-assurances.fr/mon-espace-client/infos-personnelles/infos.html']='client_changer_coordonnées';

    tabtag['http://www.aloa-assurances.fr/plan-du-site/']='plan_site';
    tabtag['http://www.aloa-assurances.fr/aide/']='aide';
    tabtag['http://www.aloa-assurances.fr/mentions-legales/']='mentions_legales';
	tabtag['http://www.aloa-assurances.fr/nos-partenaires/']='partenaires';
	tabtag['http://www.aloa-assurances.fr/dispositions-particulieres/']='dispositions-particulieres';
	tabtag['http://www.aloa-assurances.fr/dispositions-generales/']='dispositions-generales';

    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-a.html']='lexique_a';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-b.html']='lexique_b';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-c.html']='lexique_c';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-d.html']='lexique_d';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-e.html']='lexique_e';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-f.html']='lexique_f';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-g.html']='lexique_g';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-h.html']='lexique_h';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-i.html']='lexique_i';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-j.html']='lexique_j';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-k.html']='lexique_k';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-l.html']='lexique_l';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-m.html']='lexique_m';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-n.html']='lexique_n';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-o.html']='lexique_o';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-p.html']='lexique_p';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-q.html']='lexique_q';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-r.html']='lexique_r';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-s.html']='lexique_s';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-t.html']='lexique_t';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-u.html']='lexique_u';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-v.html']='lexique_v';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-w.html']='lexique_w';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-x.html']='lexique_x';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-y.html']='lexique_y';
    tabtag['http://www.aloa-assurances.fr/lexique/category-1-glossary-z.html']='lexique_z';

    var tabxtn2 = new Array();
    tabxtn2['/assurance-auto/']='1';
    tabxtn2['/offres-promotionnelles/']='auto';
    tabxtn2['/assurance-camping-car/']='4';
    tabxtn2['/assurance-habitation/']='3';
    tabxtn2['/assurance-sante-chien-chat/']='2';
    tabxtn2['/lexique/']='pages_annexes';
    tabxtn2['/mentions-legales/']='pages_annexes';
    tabxtn2['/aide/']='pages_annexes';
    tabxtn2['/plan-du-site/']='pages_annexes';

    var tabxtn2bis = new Array();
	
    tabxtn2bis['/assurance-auto/']='1';
	
	tabxtn2bis['/assurance-sante-chien-chat/']='2';
	 
	tabxtn2bis['/assurance-habitation/']='3';
	 
    tabxtn2bis['/assurance-camping-car/']='4'; 	
    
    tabxtn2bis['/mon-espace-client/']='5';
    tabxtn2bis['/mon-espace-client/mes-contrats/']='5';
    tabxtn2bis['/mon-espace-client/regler-mes-cotisations/']='5';
    tabxtn2bis['/mon-espace-client/realiser-un-devis/']='5';
    tabxtn2bis['/mon-espace-client/attestations-et-documents/']='5';
    tabxtn2bis['/mon-espace-client/attestations-et-documents/demande-dattestations-et-de-documents/']='5';
    tabxtn2bis['/mon-espace-client/infos-personnelles/']='5';
    tabxtn2bis['/mon-espace-client/contact-et-assistance/']='5';
    tabxtn2bis['/mon-espace-client/newsletter/']='5';
    tabxtn2bis['/mon-espace-client/sudoku/']='5';
    tabxtn2bis['/mon-espace-client/infos-personnelles/mdp.html']='5';
    tabxtn2bis['/mon-espace-client/infos-personnelles/infos.html']='5';
	
	
	 tabxtn2bis['/mentions-legales/']='6';
	 tabxtn2bis['/nos-partenaires/']='6';
	 tabxtn2bis['dispositions-particulieres/']='6';
	 tabxtn2bis['dispositions-generales/']='6';
	 tabxtn2bis['/aide/']='6';
     tabxtn2bis['/plan-du-site/']='6';
	 tabxtn2bis['/lexique-assurance/']='6';	 
	 
	 tabxtn2bis['/actualites/xynthia/']='6';
	 tabxtn2bis['/actualites/intemperies-var/']='6';
	 tabxtn2bis['/actualites/qui-sommes-nous/']='6';
	 tabxtn2bis['/actualites/label-auto-2009/']='6';
	 tabxtn2bis['/actualites/clients-satisfaits/']='6';
	 tabxtn2bis['/actualites/clients-nous-recommandent/']='6';
	 
	 tabxtn2bis['/services/reprendre-mon-devis/']='6';
	 
	 tabxtn2bis['/nos-fiches-conseils/']='6';
	 tabxtn2bis['/nos-fiches-conseils/le-constat-amiable/']='6';
	 tabxtn2bis['/nos-fiches-conseils/acheter-un-bien-immmobiler/']='6';
	 tabxtn2bis['/nos-fiches-conseils/ avoir-un-chat-chez-soi/']='6';	
	 
	 tabxtn2bis['http://www.aloa-assurances.fr/news/newsarchive/10_janv/']='7';	
	 tabxtn2bis['http://www.aloa-assurances.fr/news/newsarchive/10_mars/']='7';	
	 tabxtn2bis['http://www.aloa-assurances.fr/news/newsarchive/10_mai/']='7';	
	 
	 // avant tabxtn2bis['/lexique-assurance/']='Pages-Annexes';
	 
    if(type == "tagxiti"){
        if(current_url == 'http://www.aloa-assurances.fr/assurance-sante-chien-chat/devis-en-ligne/' || current_url == 'http://www.aloa-assurances.fr/assurance-habitation/devis-en-ligne/' || current_url == 'http://www.aloa-assurances.fr/assurance-camping-car/devis-en-ligne/' || current_url == 'http://www.aloa-assurances.fr/assurance-auto/devis-en-ligne/'){
            return $('#xitiTag').text();
        }else{
            return tabtag[current_url];
        }
    }
    else if(type == "xtn2"){
        for (var i in tabxtn2){
            if(current_url.indexOf(i)!=-1){
                return tabxtn2[i];

            }
        }
    }
    else if(type == "xtn2bis"){
        if(current_url == "http://www.aloa-assurances.fr/"){
          
            return (0);
        
        }else{
          for (var i in tabxtn2bis){
              if(current_url.indexOf(i)!=-1){
                  return tabxtn2bis[i];
  
              }
          }
        }
    }
    else if(type == "roimt"){
        if(current_url == 'http://www.aloa-assurances.fr/assurance-sante-chien-chat/devis-en-ligne/' || current_url == 'http://www.aloa-assurances.fr/assurance-habitation/devis-en-ligne/' || current_url == 'http://www.aloa-assurances.fr/assurance-camping-car/devis-en-ligne/' || current_url == 'http://www.aloa-assurances.fr/assurance-auto/devis-en-ligne/'){
        	if($('#amount').text())
            	return $('#amount').text();
            else
            	return $('#specifAmount').text();
        }
    }else if(type == "xtncom"){
        if(current_url == 'http://www.aloa-assurances.fr/assurance-sante-chien-chat/devis-en-ligne/' || current_url == 'http://www.aloa-assurances.fr/assurance-habitation/devis-en-ligne/' || current_url == 'http://www.aloa-assurances.fr/assurance-camping-car/devis-en-ligne/' || current_url == 'http://www.aloa-assurances.fr/assurance-auto/devis-en-ligne/'){
        	if($('#transaction_id').text())
            	return $('#transaction_id').text();
            else
            	return $('#specifOrderID').text();
        }
    }else if(type == "xtidmod"){
    
         if(current_url == 'http://www.aloa-assurances.fr/'){
         
              return (1);
         
         }else{
         
              return (0);
          
         }
    
    }
}
