//========================================================
//	Application	:	Librairie JavaScript pour Dynalis 
//					Rubrique : Domaine d'activite
//	File		:	domaine.js
//	Author		:	Korto
//	Date		:	26/07/99
//	Description	:	Fonctions Javascript 
//=========================================================
	
			
		/*** Rollover ***/
				
		function act(etat,choix) {	        	
			if (document.images) {
				
				if (choix != tempId) {
					if (etat == 0) {
						eval('document.images["puce' + choix + '"].src = img_off[0].src');
					}
					else if (etat == 1) {
						eval ('document.images["puce' + choix + '"].src = img_on[0].src');
					}
				}
				return(true);
			}
			return(false);
		}
		
		
		/*** Sélection des images du menu principal ***/
		
		function selectRubricPrincipal(rub){
		
			if (document.images) {
				if (rub == 'accueil') {
					document.images["puce0"].src = img_on[1].src;
					document.images["img3d"].src = "images/soufflet.jpg";
					top.bandeau.document.images["titre"].src = "images/titre_e.jpg";
					tempId = 0;
				} else if (rub == 'dynalis') {
					document.images["puce1"].src = img_on[1].src;
					document.images["img3d"].src = "images/soufflet.jpg";
					top.bandeau.document.images["titre"].src = "dynalis/images/bandeau.jpg";
					tempId = 1;
				} else if (rub == 'catia') {
					document.images["puce2"].src = img_on[1].src;
					document.images["img3d"].src = "images/soufflet.jpg";
					top.bandeau.document.images["titre"].src = "catia/images/bandeau.jpg";
					tempId = 2;
				} else if (rub == 'logiciel') {
					document.images["puce3"].src = img_on[1].src;
					document.images["img3d"].src = "images/vague.jpg";
					top.bandeau.document.images["titre"].src = "logiciel/images/titre_e.jpg";
					tempId = 3;
				} else if (rub == 'hotline') {
					document.images["puce4"].src = img_on[1].src;
					document.images["img3d"].src = "images/aile.jpg";
					top.bandeau.document.images["titre"].src = "hotline/images/bandeau.jpg";
					tempId = 4;
				} else if (rub == 'intes') {
					document.images["puce5"].src = img_on[1].src;
					top.bandeau.document.images["titre"].src = "intes/images/bandeau.jpg";
					tempId = 5;
				} else if (rub == 'news') {
					document.images["puce6"].src = img_on[1].src;
					document.images["img3d"].src = "images/roue.jpg";
					top.bandeau.document.images["titre"].src = "news/images/bandeau.jpg";
					tempId = 6;
				} 
			}
    	}
		
		/*** Deselection des images du menu principal ***/
		
		function changeRubricPrincipal(lien,rub){
			if (document.all) {
				lien.blur();
			}
			
			eval('document.images["puce' + tempId + '"].src = img_off[0].src;');
			
			selectRubricPrincipal(rub);
			
		}
		
		/*** Sélection des images des sous menus ***/
	
		function selectSousRubric(rub){
		
			if (document.images) {
				if (rub == rubric[0]) {
					document.images["puce0"].src = img_on[1].src;
					tempId = 0;
				} else if (rub == rubric[1]) {
					document.images["puce1"].src = img_on[1].src;
					tempId = 1;
				} else if (rub == rubric[2]) {
					document.images["puce2"].src = img_on[1].src;
					tempId = 2;
				} else if (rub == rubric[3]) {
					document.images["puce3"].src = img_on[1].src;
					tempId = 3;
				} else if (rub == rubric[4]) {
					document.images["puce4"].src = img_on[1].src;
					tempId = 4;
				} else if (rub == rubric[5]) {
					document.images["puce5"].src = img_on[1].src;
					tempId = 5;
				} 
			}
		}
		
		/*** Deselection des images des sous rubriques ***/
	
    	function changeSousRubric(lien,rub){
		
			if (document.all) {
				lien.blur();
			}
			eval('document.images["puce' + tempId + '"].src = img_off[0].src;');
			
			selectSousRubric(rub);
			
		}
		
//====================================================================