// JavaScript

//_____________________________________________Fonction de stockage des scripts ---> chargement scripts

var FuncOL = new Array();
function StkFunc(Obj) {
	FuncOL[FuncOL.length] = Obj;
	}
      
//________________________________________________________Execution des scripts au chargement de la page

window.onload = function() {
	for(i=0; i<FuncOL.length; i++) {
	FuncOL[i]();
	}
}



//_______________________________________________________________________________fin chargement scripts

//_________________________________________________________________________________________debut carre

var expo = new Image ();

expo.src = "images/actualite/EXPO2006NEG.jpg";

function permuter (id_image, source) {
	document.getElementById(id_image).src = "images/actualite/" + source;
	}
StkFunc(permuter);
//___________________________________________________________________________________________fin carre



//______________________________________________________________________________debut image popup


function PopupImage(img) {

    titre="http://www.taliaplast.com";

     w=open("",'image','width=1024,height=768,toolbar=no,scrollbars=yes,resizable=yes');
	 w.focus();
     w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
     w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+15, document.images[0].height+20); window.focus();} else { setTimeout('check()',250) } } </"+"SCRIPT>");
     w.document.write("<BODY bgcolor='#000000' onload='checksize()' align='center' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
	 w.document.write("<A href='javascript:close()'><IMG src='"+img+"' border='0'></A>");	 
	 w.document.write("</BODY></HTML>");
     w.document.close();
 	}
StkFunc(PopupImage(img));



//______________________________________________________________________________fin image popup


function montre(id) {
if (document.getElementById) {
document.getElementById(id).style.display="block";
} else if (document.all) {
document.all[id].style.display="block";
} else if (document.layers) {
document.layers[id].display="block";
}
}
StkFunc(montre(id));



function cache(id) {
if (document.getElementById) {
document.getElementById(id).style.display="none";
} else if (document.all) {
document.all[id].style.display="none";
} else if (document.layers) {
document.layers[id].display="none";
}
}
StkFunc(cache(id));

