document.write("<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>")
document.write("<title>The Micro Class Galleries</title>")
document.write("<link rel='SHORTCUT ICON' href='../images/microclass.ico'>")
document.write("<link rel='stylesheet' type='text/css' href='../style.css'>")

lastmod  = document.lastModified	;
annee    = lastmod.substr(6,4)		;
mois     = lastmod.substr(0,2)		;
jour     = lastmod.substr(3,2)		;
lastr    = jour + '/' + mois + '/' + annee	;

Today    = new Date()			;
Annee    = Today.getFullYear()	;

G		 = "G"	;
H		 = "H"	;
V		 = "V"	;
P		 = "P"	;
Root	 = "../"	; 
Location = ""	;
Venue	 = ""	;
Volume	 = 0	;
Copy	 = ""	;
Printable   = "NO"			; 
DisplayMenu = "YES"			; 

Title   = "Micro Class galleries"
Titre   = "Les images de la Classe Micro" 

function ShowEvent() {
	document.write("<table align='center'><tr><td align='center' valign='top' width='100%' background='../images/FAFA5A.png'>")	;
	document.write("<p align='center' style='font-family: Verdana, Arial, Helvetica; color: #cc0000; font-size: 18px; margin-left: 15px; margin-right: 15px;'>")	;
	document.write("<b>Gallery "+Event+" - "+AnneeCreation+" - "+Venue) ; 
	if (Volume>0) document.write(" ("+Volume+")") ; 
	document.write("</b></p></td></tr></table><table border=0 align='center' cellpadding=5 cellspacing=0 width=560 ")	;
	document.write("background='../images/light.png'>")	;
}

function DisplayImage(IMG,ORI) {
  document.write("<td style='text-align: Center; vertical-align: Middle'")
  if(ORI==P) document.write("colspan=3 width=270")
  else       document.write("width=130")
  IMG="A"+(100000+Group+IMG);IMG=IMG.substr(2,5)
  document.write(" height=140><a href='html/"+IMG+".html'><img src='"+Location+"thumbs/"+IMG+".jpg' border=1 ");
  if (ORI==H) document.write("width =128")
  if (ORI==V) document.write("height=128")
  if (ORI==P) document.write("width =268")
  document.write("></a></td>")
}

function DisplayLine(IMG1,ORI1,IMG2,ORI2,IMG3,ORI3,IMG4,ORI4) {
  document.write("<tr><td colspan=4><table align='center' cellpadding=0 cellspacing=0>")
  Pan=0; 
  if(ORI1==P)Pan=1;
  if(ORI2==P)Pan=Pan+1;
  if(ORI3==P)Pan=Pan+1;

  document.write("<tr>");DisplayImage(IMG1,ORI1);
  if(IMG2>0) { document.write("<td><img src='../images/spacer.gif' width=10 height=130></td>") ; DisplayImage(IMG2,ORI2) ; }
  if(IMG3>0) { document.write("<td><img src='../images/spacer.gif' width=10 height=130></td>") ; if(Pan<2)DisplayImage(IMG3,ORI3) }
  if(IMG4>0) { document.write("<td><img src='../images/spacer.gif' width=10 height=130></td>") ; if(Pan<1)DisplayImage(IMG4,ORI4) }
  document.write("</tr></table></td></tr>")
}

function CopyRight() {
	document.write("<td align='center' valign='top' rowspan=2 style='color: #DD0000; font-size: 9px'><b>")	;
	document.write("&copy; 1999-"+Annee+" ")		; 
	if(Copy.length>0) document.write(Copy+" & ")	; 
	document.write("IMCCA (Micro Class)</b></td>")	;
}

function CopyLinks(Pr,PrT,Nx,NxT) {
	document.write("<tr><td colspan=4 width='100%'><table width='100%'><tr>")	; 
    CopyRight()		; 
	Prev(Pr,PrT)	; 
	document.write("</tr><tr>")	; 
	Next(Nx,NxT)	; 
	document.write("</tr></table></td></tr></table>")	;
}

function Prev(File,Type) {
	document.write("<td align='left' style='font-size: 11px'>")					; 
	if(File.length>0) {
		document.write("<b><a href='"+File+".html'>&lt;&lt;&lt; previous ")		; 
		if(Type=="G") document.write("gallery")	; else document.write("part")	; 
	}
	document.write("</a></td>")	;
}

function Next(File,Type) {
	document.write("<td align='right' style='font-size: 11px'>")				;
	if(File.length>0) {
		document.write("<b><a href='"+File+".html'>next ")						; 
		if(Type=="G") document.write("gallery")	; else document.write("part")	; 
		document.write(" &gt;&gt;&gt;</a>")	;
	}
	document.write("</td>")	; 
}

