// JavaScript Document

//_______________________________ Ouverture Pop au click____________________________
/*
	Les 2 valeurs suivantes sont à adapter en fonction de vos besoins.
*/

//	Vitesse d'aggrandissement de la div (en millisecondes)
var VitesseOuverture = 20;
//	Augmentation de la taille de la div en pixels.
var Incrementation = 30;
//	Identifiant du lien
var leLien = 'lien';
var leLien1 = 'lien1';
var leLien2 = 'lien2';
var leLien3 = 'lien3';

//	Identifiant de la div
var NomDiv = 'popchauf';
var NomDiv1 ='popeclair';
var NomDiv2 = 'popphot';
var NomDiv3 = 'poppompe';

//	Largeur et Hauteur de la div (en pixels)
//	A adapter en fonction du contenu du formulaire.
var PropRight = 610;
var PropBottom = 710;
var ouverture;
function Enregistre() { 
window.document.getElementById(leLien).onclick=ouvrir;
window.document.getElementById(leLien1).onclick=ouvrir1;
window.document.getElementById(leLien2).onclick=ouvrir2;
window.document.getElementById(leLien3).onclick=ouvrir3;
}

function ouvrir() { window.document.getElementById(leLien).onclick=''; window.document.getElementById(NomDiv).style.clip="rect(auto, 0px, 0px, auto)"; window.document.getElementById(NomDiv).style.display='block'; ouverture = window.setInterval("aggrandissement()",VitesseOuverture);}

function ouvrir1() { window.document.getElementById(leLien1).onclick=''; window.document.getElementById(NomDiv1).style.clip="rect(auto, 0px, 0px, auto)"; window.document.getElementById(NomDiv1).style.display='block'; ouverture = window.setInterval("aggrandissement1()",VitesseOuverture);}

function ouvrir2() { window.document.getElementById(leLien2).onclick=''; window.document.getElementById(NomDiv2).style.clip="rect(auto, 0px, 0px, auto)"; window.document.getElementById(NomDiv2).style.display='block'; ouverture = window.setInterval("aggrandissement2()",VitesseOuverture);}

function ouvrir3() { window.document.getElementById(leLien3).onclick=''; window.document.getElementById(NomDiv3).style.clip="rect(auto, 0px, 0px, auto)"; window.document.getElementById(NomDiv3).style.display='block'; ouverture = window.setInterval("aggrandissement3()",VitesseOuverture);}

function aggrandissement() { clipProp = (window.document.getElementById(NomDiv).style.clip).split(" "); pixel = "px"; if(!document.all)	pixel+=","; theRight = new Number(clipProp[1].replace(new RegExp(pixel), '')); theBottom = new Number(clipProp[2].replace(new RegExp(pixel), '')); if(theBottom<PropBottom) /* Script par SirJojO */ theBottom = theBottom+Incrementation; if(theRight<PropRight) /* Forums http://www.editeurjavascript.com/ */ theRight = theRight+Incrementation; else {	window.clearInterval(ouverture); window.document.getElementById(leLien).onclick=cacheBloc;} window.document.getElementById(NomDiv).style.clip="rect(auto, "+theRight+"px, "+theBottom+"px, auto)";}

function aggrandissement1() { clipProp = (window.document.getElementById(NomDiv1).style.clip).split(" "); pixel = "px"; if(!document.all)	pixel+=","; theRight = new Number(clipProp[1].replace(new RegExp(pixel), '')); theBottom = new Number(clipProp[2].replace(new RegExp(pixel), '')); if(theBottom<PropBottom) /* Script par SirJojO */ theBottom = theBottom+Incrementation; if(theRight<PropRight) /* Forums http://www.editeurjavascript.com/ */ theRight = theRight+Incrementation; else {	window.clearInterval(ouverture); window.document.getElementById(leLien1).onclick=cacheBloc1;} window.document.getElementById(NomDiv1).style.clip="rect(auto, "+theRight+"px, "+theBottom+"px, auto)";}

function aggrandissement2() { clipProp = (window.document.getElementById(NomDiv2).style.clip).split(" "); pixel = "px"; if(!document.all)	pixel+=","; theRight = new Number(clipProp[1].replace(new RegExp(pixel), '')); theBottom = new Number(clipProp[2].replace(new RegExp(pixel), '')); if(theBottom<PropBottom) /* Script par SirJojO */ theBottom = theBottom+Incrementation; if(theRight<PropRight) /* Forums http://www.editeurjavascript.com/ */ theRight = theRight+Incrementation; else {	window.clearInterval(ouverture); window.document.getElementById(leLien2).onclick=cacheBloc2;} window.document.getElementById(NomDiv2).style.clip="rect(auto, "+theRight+"px, "+theBottom+"px, auto)";}


function aggrandissement3() { clipProp = (window.document.getElementById(NomDiv3).style.clip).split(" "); pixel = "px"; if(!document.all)	pixel+=","; theRight = new Number(clipProp[1].replace(new RegExp(pixel), '')); theBottom = new Number(clipProp[2].replace(new RegExp(pixel), '')); if(theBottom<PropBottom) /* Script par SirJojO */ theBottom = theBottom+Incrementation; if(theRight<PropRight) /* Forums http://www.editeurjavascript.com/ */ theRight = theRight+Incrementation; else {	window.clearInterval(ouverture); window.document.getElementById(leLien3).onclick=cacheBloc3;} window.document.getElementById(NomDiv3).style.clip="rect(auto, "+theRight+"px, "+theBottom+"px, auto)";}


function cacheBloc() { window.document.getElementById(NomDiv).style.display='none'; window.document.getElementById(leLien).onclick=ouvrir;}

function cacheBloc1() { window.document.getElementById(NomDiv1).style.display='none'; window.document.getElementById(leLien1).onclick=ouvrir1;}

function cacheBloc2() { window.document.getElementById(NomDiv2).style.display='none'; window.document.getElementById(leLien2).onclick=ouvrir2;}

function cacheBloc3() { window.document.getElementById(NomDiv3).style.display='none'; window.document.getElementById(leLien3).onclick=ouvrir3;}

window.onload=Enregistre;



