//------------------------------------------------------------------//
//------------------------------------------------------------------//
// Detail: Ensemble de fonctions javascript utilisées pour 			//
//			la CCIVAR												//
// Vervion: V1.0													//
// Nom du fichier: function_js_ccivar.js							//
// Société: BULL													//
// Auteur : françois honore											//
//------------------------------------------------------------------//  
//------------------------------------------------------------------//

//////////////////////////////////////////////////////////////////////////////////
// Function : VersionNavigateur(Netscape, Explorer) et objet browser			//
//																				//
// Auteur:																		//
// Descriptif:												 					//
//																				//
// En entree:		- param1: 													//
// En sortie:		-															//
//																				//
// Historique:		- 04/12/2002 création										//
//																				//
//																				//
//////////////////////////////////////////////////////////////////////////////////

function Browser() {

  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isNS    = false;  // Netscape
  this.version = null;

  ua = navigator.userAgent;

  s = "MSIE";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  // Treat any other "Gecko" browser as NS 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }
}

var browser = new Browser();


function VersionNavigateur(Netscape, Explorer)
{
	if ((browser.version >= Netscape && browser.isNS) ||
	(browser.version >= Explorer && browser.isIE))
	return true;
	else return false;
}


//////////////////////////////////////////////////////////////////////////////////
// Function : 		Detail(rub_n)												//
//																				//
// Auteur:																		//
// Descriptif:																	//
//																				//
// En entree:		- param1:													//
// En sortie:		-															//
//																				//
// Historique:		- 29/11/2002 création										//
//																				//
//																				//
//////////////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------//
// ATTENTION NE JAMAIS SEPARER LE CODE CI-APRES

rub_old = "";

function Detail(rub_n)
{
	if (rub_old != rub_n) {
		if (browser.isNS) {
			if (rub_old != "") document.getElementById(rub_old).style.visibility="hidden";
			document.getElementById(rub_n).style.visibility="visible";
		}
		else {
			if (rub_old != "") document.all(rub_old).style.display = "none";
			document.all(rub_n).style.display = "";
		}
		rub_old = rub_n;
	}
}

//////////////////////////////////////////////////////////////////////////////////
// Function : 		DetailTheme(n)												//
//																				//
// Auteur:			François HONORE												//
// Descriptif:		Détaille des thème de l'info-boutique						//
//																				//
// En entree:		- param1:													//
// En sortie:		-															//
//																				//
// Historique:		- 29/11/2002 création										//
//																				//
//																				//
//////////////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------//
// ATTENTION NE JAMAIS SEPARER LE CODE CI-APRES
function DetailTheme(type,n,img_on,img_off) {
	var IMG1 = new Image();
	var IMG0 = new Image();
	IMG0.src = img_on;
	IMG1.src = img_off;
	if (document.all(type+"_"+n).style.display == "none") {
		document.all(type+"_"+n).style.display = "";
		document.all(type+"Img_"+n).src = IMG0.src;
	} else {
		document.all(type+"_"+n).style.display = "none";
		document.all(type+"Img_"+n).src = IMG1.src;
	}
}


/////////////////////////////////////////////////////////////////////////////////
// fonction BULL																//
//																				//
// Auteur:			EQUIPE BULL													//
//////////////////////////////////////////////////////////////////////////////////
function fnOpenImgteam()
{

MyFile='/include/team.asp';
MyWindow='windowTeam';
window.open(MyFile,MyWindow,'width=400,height=300,scrollbars=no,resizable=no');
}
    
function clavier_ie() //pour Explorer 
{ 
   	if (event.keyCode=='121')
      	{
      		//alert('f10');
      		fnOpenImgteam();
      	}
      }
      function clavier(e) //pour Netscape
      {
		if (event.keyCode=='121')
      	{
      		fnOpenImgteam();
      		//alert('f10');
      	}
}