


//************************************************************************
//						DETECTION 2.0 - BUSITEL
//************************************************************************
// Auteur : Abiotik / jean luc COSTAGLIOLA
// contact : 04 67 57 03 72
//************************************************************************
// ------------------------------------- tous droits réservés abiotik 2010


//****************************************
// RECUP OLD URL 
//****************************************

	var designRub=0;
	
	if(urlOrigine==''){
		var recup = window.document.location;
		var chaine = recup.toString();
		var chaine2= recup.toString();
	}
	else{
		var chaine = urlOrigine;
		var chaine2 = urlOrigine;
	}		
	
	var longueur = chaine.length;

	var resultat = chaine.indexOf('num=');
	chaine = chaine.substring(resultat+4,longueur);	
	var resultat2 = chaine.indexOf('&');
	if(resultat2 < 0){
		extract = chaine.substring(0,longueur);	
	}
	else{
		extract = chaine.substring(0,resultat2);	
	}	
	extract=extract.toString()


//--------------------------------------- designation rub
	
/*	TABLEAU DE CORRESPONDANCE
****************************
RAYONS / UNIVERS
****************************

TRANSFERT THERMIQUE
-----------------------------
1	Ruban Transfert Thermique							1
21	Tête d'impression									2
101	Imprimante Tranfert Thermique						3
61	Pince Towa											4

ETIQUETTES ADHESIVES
-----------------------------
11	Etiquettes Adhésives								11
241	Imprimés recommandé								12


BUREAUTIQUE
-----------------------------
41	Encre Solide / papier								21
71	Kit de maintenance Phaser							22
81	Encre pour machine à affranchir Pitney Bowes®		23
151	Encre pour machine à affranchir Néopost®			24
261	Encre pour machine à affranchir Satas®			26
51	Ruban Fax											25
191	Toner Brother						27
211	Toner Canon						28
221	Toner Epson						29
201	Toner HP						29
231	Toner Lexmark						29


BOBINE THERMIQUE
-----------------------------
31	Bobine thermique									31



BOBINE THERMIQUE
-----------------------------
91	Rubans Badge Zebra									41
111	Rubans Badge Fargo									42
121	Rubans Badge Evolis									43
131	Rubans Badge Datacard								44
141	Carte Badge PVC										45




RAYON NON DEFINI
-----------------------------
61	Matériel											-

*/


// désignation des rayons
//******************************

	var designRub = 0;

	if (extract == 1) designRub = 1;
	else if(extract == 21) designRub = 2;
  	else if(extract == 101) designRub = 3;
	else if(extract == 61) designRub = 4;
	
	else if(extract == 11) designRub = 11;
	else if(extract == 241) designRub = 12;
				
	else if(extract == 41) designRub = 21;
	else if(extract == 71) designRub = 22;
	else if(extract == 81) designRub = 23;
	else if(extract == 151) designRub = 24;
	else if(extract == 261) designRub = 26;
	else if(extract == 51) designRub = 25;
	else if(extract == 191) designRub = 27;	
	else if(extract == 211) designRub = 28;	
	else if(extract == 221) designRub = 29;	
	else if(extract == 201) designRub = 29;
	else if(extract == 231) designRub = 29;		
	
	else if(extract == 31) designRub = 31;
	
	else if(extract == 91) designRub = 41;	
	else if(extract == 111) designRub = 42;	
	else if(extract == 121) designRub = 43;	
	else if(extract == 131) designRub = 44;	
	else if(extract == 141) designRub = 45;	
	// sinon
	else{designRub = 0;}	



// désignation des Unvivers
//******************************
	var designUnivers = 0;

	if(designRub !=0){
		if(designRub <11) designUnivers=1;
		else if(designRub <21) designUnivers=2;
		else if(designRub <31) designUnivers=3;		
		else if(designRub <41) designUnivers=4;	
		else if(designRub <51) designUnivers=5;
		else designUnivers=0;		
	}	
	
	
	
	
	
	
	
	
	
	
