// 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 leLien2 = 'lien2';
//	Identifiant de la div
var NomDiv = 'popcuivre';
var NomDiv2 = 'popdom';
//	Largeur et Hauteur de la div (en pixels)
//	A adapter en fonction du contenu du formulaire.
var PropRight = 550;
var PropBottom = 600;
var ouverture;
function Enregistre() { 
window.document.getElementById(leLien).onclick=ouvrir; 
window.document.getElementById(leLien2).onclick=ouvrir2;
}

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 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 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 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 cacheBloc() { window.document.getElementById(NomDiv).style.display='none'; window.document.getElementById(leLien).onclick=ouvrir;}

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

window.onload=Enregistre;



