

// JavaScript Document
var Type = [ "" , "Huile", "Aquarelle" ];
var Etat = [ "" , "A vendre" ];


function cellout(id){

document.write ( "<TD CLASS=\"tabexpo\"><P><IMG CLASS=\"imgtab\" src=\"expo/imgt/i_"+ CellDef[ id ][7] +"\""  );
document.write ( " onClick=\"javascript:Enlarge( \'expo/tabl/" +  CellDef[ id ][7]  + "\')\" ></P>" );
document.write ( "<B>" + CellDef [ id ][0 ] +"</B>&nbsp;" + Type [ CellDef [ id ][4]] + "<BR>" );
document.write (  "<SPAN CLASS=\"tabexpouk\">" + CellDef [ id ][1 ]+ "</SPAN>" );
document.write ( "<BR>" + CellDef [ id ][6] + "</TD>");
				
}

function cellall(){

nb = CellDef.length  ;
for ( i = 0 ; i < nb ; i ++) {
	document.write ( "<TR>")
	cellout( i++ ) 
	if ( i < nb ) { cellout( i ) }
	document.write ( "</TR>")
}
}

function Enlarge( tableau  ){ //show picture and auto-center... 
		titre ="titre"
	OpenWindow = window.open("","MonTableau","fullscreen")

	OpenWindow.document.write("<head><TITLE>"+titre+"</TITLE>")
	OpenWindow.document.write("<link href=\"etc/le-doze.css\" rel=\"stylesheet\" type=\"text/css\">")
	OpenWindow.document.write("<script>if(window.focus)self.focus();</script></head>")
	
	OpenWindow.document.write("<BODY>")
	OpenWindow.document.write("<table width=\"100%\" heigth=\"100%\" ><TR ><TD heigth=\"20\">&nbsp;</TD></TR><tr><TD   heigth=\"100%\"  CLASS=\"poptab\">")
	OpenWindow.document.write("<a href='javascript:window.close()'><IMG src="+tableau+" border=0 ></a>")
	OpenWindow.document.write("</td></tr><TFOOT VALIGN=\"bottom\"><TD ALIGN=\"center\"> Cliquer sur l'image pour fermer </TD></TFOOT></table></BODY>")
	OpenWindow.document.write("</HTML>")

OpenWindow.document.close()

	
}



