/* VARIABLES GLOBALES */
var image_pres=new Array(); // chemin de l'image
var texte_pres=new Array(); // texte de présentation
/* CONTENU DU MODULE DE PRESENTATION */
/* ONGLET 1 */
image_pres.push("images/logo_oplc.gif"); 
texte_pres.push("<strong>Automation softwares,</strong>"+
"<p>Optimalog proposes you a set of PC-based automation softwares (PLC, supervision, alarm).</p>"+
"<p>A trial version of 30 days is available in download in the menu \"products\".</p>"+
"<a href=\"automatism_softwares.html\">more...</a>");
/* ONGLET 2 */
image_pres.push("images/logo_pcindus2.jpg");
texte_pres.push("<strong>Industrial PCs,</strong>"+
"<p>Optimalog proposes you a set of 3 PC industrial types, equipped according to your needs. You can order your PC directly from the site via the online catalog.</p>"+
"<p>A choice of inputs/outputs, and various racks is available.</p>"+
"<a href=\"industrial_pc.html\">more...</a>");
/* ONGLET 3 */
image_pres.push("images/logo_robot.jpg");
texte_pres.push("<strong>Robotics,</strong>"+
"<p>Optimalog integrates or help you to integrate your FANUC robot or KUKA.</p>"+
"<p><a href=\"robotic.html\">more...</a></p>"+
"<strong>Phenopsis,</strong>"+
"<p>We propose a system for automated phenotyping, for the agronomic research.</p>"+
"<p><a href=\"special_machine.html\">more...</a></p>"+
"<strong>Special Machine,</strong>"+
"<p>We take in charge the complete development of the programs, the installation of SCADA and communication tools. </p>"+
"<a href=\"special_machine.html\">more...</a>");
/* ONGLET 4 */
image_pres.push("images/logo_visio.gif");
texte_pres.push("<strong>Industrial vision,</strong>"+
"<p>The appraisal of Optimalog in the domain of the industrial vision will allow you to quickly put a high performance vision system in place.</p>"+
"<p>This system will improve your control quality while limiting the rejects.</p>"+
"<a href=\"vision_en.html\">more...</a>");
/* DEFINITION DES FONCTIONS */
var lastonglet='1';
function ongletOver(id){
/* associé à onMouseOver */
	if(lastonglet!=id)
	{
		getDoc("onglet"+id).style.backgroundImage="none";
		getDoc("onglet"+id).style.backgroundColor="#fcfbfb";
	}
}
function ongletOut(id){
/* associé à onMouseOut */
	if(lastonglet!=id)
	{
		getDoc("onglet"+id).style.backgroundColor="";
		getDoc("onglet"+id).style.backgroundImage="url('images/back_onglet.gif')";
		getDoc("onglet"+id).style.backgroundRepeat="repeat-y";
	}
}
function ongletOn(id){
	ongletOver(id);
	/* on met l'onglet en "selectionné" */
	getDoc("onglet"+id).style.width="157px";
	getDoc("onglet"+id).style.height="37px";
	getDoc("onglet"+id).style.marginLeft="10px";
}
function ongletOff(id){
	/* on repete le code pour que l'onglet courant, ne change pas avec MouseOver et MouseOut */
	getDoc("onglet"+id).style.backgroundColor="";
	getDoc("onglet"+id).style.backgroundImage="url('images/back_onglet.gif')";
	getDoc("onglet"+id).style.backgroundRepeat="repeat-y";
	/* on remet l'onglet en "non selectionné" */
	getDoc("onglet"+id).style.width="167px";
	getDoc("onglet"+id).style.height="42px";	
	getDoc("onglet"+id).style.marginLeft="0px";
}
function doOnglet(id){
	/* procédure qui traite l'onglet, lorsque l'on clique */
if(id != lastonglet)
	{
	ongletOn(id);
	ongletOff(lastonglet);	
	lastonglet=id;
	getDoc("imagepres").src=image_pres[id-1]; // id-1 car tableau indexé à partir de 0
	getDoc("textepres").innerHTML=texte_pres[id-1]; // id-1 car tableau indexé à partir de 0
	}
}