<!-- Start script 
  var ms = navigator.appVersion.indexOf("MSIE");
  from = 60;
  from2 = 350;
  to = 0;
  to2 = 0;
  moveto = 1;
  moveto2 = 6;
function move1() {
  if (from > to) {
    if ((ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)) {
      document.all.texte.style.bottom = (from -= moveto);
    } else {
      document.texte.bottom = (from -= moveto);
    };
    setTimeout('move1(' + from + ',' + to + ',' + moveto + ')', 30);
  }
}
function move2() {
  if (from2 > to2) {
    if ((ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)) {
      document.all.texte2.style.left = (from2 -= moveto2);
    } else {
      document.texte2.left = (from2 -= moveto2);
    };
    setTimeout('move2(' + from2 + ',' + to + ',' + moveto2 + ')', 30);
  }
}
// End script -->

ver = navigator.appVersion.substring(0,1)
<!--******************************POP WINDOWS***************************************-->
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function Frame (doc)
{
if (ver >= 4)
{
if (top.location == self.document.location)
{
document.write('<frameset cols="800,*" framespacing="0" border="0" frameborder="no">');
document.write('<frameset rows="*,20">');
document.write('<frameset cols="192,*" frameborder="no">');
document.write('<frameset rows="75,*" frameborder="no">');
document.write('<frame name="menutop" src="../menutop.html" scrolling="no" marginwidth="0" marginheight="0" noresize frameborder="no">');
document.write('<frame name="menu" src="../menu.html" scrolling="yes" marginwidth="0" marginheight="0" noresize frameborder="no">');
document.write('</frameset>');
document.write('<frameset rows="35,*">');
document.write('<frame name="menutop2" src="../menutop2.html" scrolling="no" marginwidth="0" marginheight="0" noresize frameborder="no">');
document.write('<frameset cols="470,*">');
document.write('<frame name="accueil" src="accueil.html" scrolling="yes" marginwidth="10" marginheight="0" noresize>');
document.write('<frame name="menu2" src="../menu2.html" scrolling="no" marginwidth="0" marginheight="0" noresize frameborder="no">');
document.write('</frameset>');
document.write('</frameset>');
document.write('</frameset>');
document.write('<frame name="menubas" src="../menubas.html" scrolling="no" marginwidth="0" marginheight="0" noresize>');
document.write('</frameset>');
document.write('<frame name="Blank" src="../Blank.html" scrolling="no" marginwidth="0" marginheight="0" noresize frameborder="no">');
document.write('<noframes>');

document.write('<body>');
document.write('</body>');
document.write('</noframes>');
document.write('</frameset>');
parent.accueil.location.href=doc
}
}
document.write('<BODY>');
}

<!--******************************AJOUT FAVORIS************************************-->
nav=navigator.appName.substring(0,3);ver=navigator.appVersion.substring(0,1)
function addFav(){
	if(nav=="Mic"&&ver>=4){
	url_site="http://www.theatrepetitchamplain.com";
	titre_site="Théâtre Petit Champlain";
	document.write('<A HREF="#" onClick="window.external.AddFavorite(url_site,titre_site);return(false);"><img src="../img/icone/favoris.gif" border=0 height="20" title="Ajouter ce site à vos favoris"></A>');
}
else
	{
	document.write('<img src="../img/icone/favoris.gif" BORDER=0 title="Ctrl+D Pour ajouter à vos favoris">');
	}
}


function imprime(){
	if(window.print)
	{
	document.write('<A HREF="javascript:window.print()"><img src="../img/icone/imprim_on.gif" BORDER=0 title="Imprimer cette page"></a>');
	}
}

function ToolBar(etiquette,titre,date,prix)
{
document.write('<TABLE BORDERCOLOR=NAVY width=100% BORDER=0 CELLPADDING=10 CELLSPACING=0>');
document.write('<tr>');
document.write('<td ALIGN=CENTER>');
document.write('<hr size=1>');
document.write('<div CLASS="L5">ARCHIVES</div>');
document.write('<A HREF="Archive1999.html" target=accueil>1999</a> |&nbsp;');
document.write('<A HREF="Archive2000.html" target=accueil>2000</a> |&nbsp;');
document.write('<A HREF="Archive2001.html" target=accueil>2001</a> |&nbsp;');
document.write('<A HREF="Archive2002.html" target=accueil>2002</a> |&nbsp;');
document.write('<A HREF="Archive2003.html" target=accueil>2003</a> |&nbsp;');
document.write('<A HREF="Archive2004.html" target=accueil>2004</a> |&nbsp;');
document.write('<A HREF="Archive2005.html" target=accueil>2005</a>');
document.write('<hr size=1pt>');
}

function Entete()
{
document.write('<TABLE BACKGROUND="../img/bk/BgAccueil.gif" border=0 WIDTH=100% CELLSPACING=10 CELLPADDING=0>');
document.write('<TR>');
document.write('<TD HEIGHT=100% valign=center align=center>');
}
function FinEntete(titre)
{
document.write('</DIV>');
document.write('</DIV>');

document.write('</TD>');
document.write('</TR>');
document.write('<TR>');
document.write('<TD align=right>');
document.write(titre);
document.write('</TD>');
document.write('</TR>');
}


function Info(photo)
{
document.write('</TD>');
document.write('</TR>');
document.write('<TR>');
document.write('<TD>');
document.write('<IMG SRC="',"../img/artiste/"+photo,'" width=200 hspace=10 BORDER=5 align="right">');
document.write('<P CLASS="test">');
}

function FinInfo()
{
document.write('<hr size=1>');
document.write('<div CLASS="L5">ARCHIVES</div>');
document.write('<A HREF="Archive1999.html" target=accueil>1999</a> |&nbsp;');
document.write('<A HREF="Archive2000.html" target=accueil>2000</a> |&nbsp;');
document.write('<A HREF="Archive2001.html" target=accueil>2001</a> |&nbsp;');
document.write('<A HREF="Archive2002.html" target=accueil>2002</a> |&nbsp;');
document.write('<A HREF="Archive2003.html" target=accueil>2003</a> |&nbsp;');
document.write('<A HREF="Archive2004.html" target=accueil>2004</a> |&nbsp;');
document.write('<A HREF="Archive2005.html" target=accueil>2005</a>');
document.write('<hr size=1pt>');

document.write('<A HREF="../letheatre/accueil.html" title="" target="accueil">Accueil</A> | ');
document.write('<A HREF="../letheatre/coordonn.htm" title="" target="accueil">Coordonnées</A> | ');
document.write('<A HREF="../letheatre/historique.html" title="" target="accueil">Historique</A> | ');
document.write('<A HREF="../letheatre/accueil.html" title="" target="accueil">Inscription</A>');
document.write('<br>');
document.write('<A HREF="../letheatre/PhotoTheatre.html" title="" target="accueil">Photos du Théâtre</A> | ');
document.write('<A HREF="../letheatre/sallepl1.htm" title="" target="accueil">Plan parterre</A> | ');
document.write('<A HREF="../letheatre/sallepl2.htm" title="" target="accueil">Plan mezzanine</A>');
document.write('<br>');
document.write('<A HREF="../letheatre/technique.html" title="" target="accueil">Plans techniques</A> | ');
document.write('<A HREF="../letheatre/boutique.html" title="" target="accueil">Boutique</A> | ');
document.write('<A HREF="../letheatre/plan.html" title="" target="accueil">Carte routière</A> | ');
document.write('<A HREF="../letheatre/Restaurant.html" title="" target="accueil">Restaurants</A>');
document.write('<br>');
document.write('<br>');
document.write('<IMG SRC="../img/tpcbaspg.gif">');
document.write('<br>');
document.write('<FONT color=#C0C0C0 size=1>');
document.write("Dernière mise à jour : (MM/JJ/AA) " + document.lastModified);
document.write('</td>');
document.write('</tr>');
document.write('</table>');
}


function Xander_Popup(file,image_width,image_height,popup_width,popup_height,adapt_image,allow_full_size,bgcolor,textcolor,comments,comments_mode)
{
	if (!comments)
		comments = "";

	if (!comments_mode)
		comments_mode = 0;

	var sWidth = screen.availWidth;
	var sHeight = screen.availHeight;

	if (!sWidth)
		sWidth = screen.width;
	
	if (!sHeight)
		sHeight = screen.height;

	IsFullScreen = 0;

	additionnal_margin_for_comment = 0;
	if (comments_mode == 3)
		additionnal_margin_for_comment = 20;

	if (popup_width > 0)
	{
		if (popup_width < 100) popup_width = 100;
		if (popup_height < 100) popup_height = 100;
		if (popup_width > (sWidth - 30)) popup_width = sWidth - 30;
		if (popup_height > (sHeight - 30)) popup_height = sHeight - 30;
	}

	if (popup_width == -1)
	{
		if ((image_width > (sWidth - 30)) || (image_height > (sHeight - 30 - additionnal_margin_for_comment)))
		{
			if (!adapt_image)
			{
				lwidth = image_width; lheight = image_height;
				do { lwidth = lwidth * 0.9; } while (lwidth > (sWidth - 30));
				do { lheight = lheight * 0.9; } while (lheight > (sHeight - 30 - additionnal_margin_for_comment));
			}
			else
			{
				lwidth = image_width; lheight = image_height;
				do { lwidth = lwidth * 0.9; lheight = lheight * 0.9; } while ((lwidth > (sWidth - 30)) || (lheight > (sHeight - 30 - additionnal_margin_for_comment)));
			}
			popup_width = lwidth; popup_height = lheight + additionnal_margin_for_comment;
			if (adapt_image && allow_full_size) popup_width = popup_width + 13;
		}
		else
		{ popup_width = image_width; popup_height = image_height + additionnal_margin_for_comment; }		
	}

	if (popup_width >= 0)
	{
		if (popup_width < 100) popup_width = 100;
		if (popup_height < 100) popup_height = 100;
	}

	if (popup_width < 0)
	{
		IsFullScreen = 1;

		if (navigator.appName.substring(0,9) == 'Microsoft')
		{
			sWidth = screen.width;
			sHeight = screen.height;
		}
		else
		{
			sHeight = sHeight - 25; // for browsers other than IE : title bar space
		}
		popup_width = sWidth-16; // fullscreen has always toolbars ?...
		popup_height = sHeight - 20 - additionnal_margin_for_comment; // leave place for close link and comment...

		if ((popup_width < image_width) || (popup_height < image_height))
			image_reduced = true;
		else image_reduced = false;
		
		pop = window.open("","","fullscreen=yes, width="+sWidth+", height="+sHeight+", left=0, top=0, resizable=yes, scrollbars=no,menu=no,menubars=no,status=no,directories=no,location=no,toolbar=no");
	}
	else
	{
		if ((popup_width < image_width) || ((popup_height - additionnal_margin_for_comment) < image_height))
			image_reduced = true;
		else image_reduced = false;

		var top = (sHeight - popup_height - 25) / 2;
		var left = (sWidth - popup_width - 4) / 2;

		if ((!image_reduced) || (image_reduced && adapt_image && !allow_full_size))
			pop = window.open("","","width="+popup_width+", height="+popup_height+",top="+top+",left="+left+",resizable=no, scrollbars=no,menu=no,menubars=no,status=no,directories=no,location=no,toolbar=no");
		else pop = window.open("","","width="+popup_width+", height="+popup_height+", top="+top+", left="+left+", resizable=yes, scrollbars=yes,menu=no,menubars=no,status=no,directories=no,location=no,toolbar=no");
	}
	
	pop.window.document.write("<HTML><HEAD><TITLE>Zoom de l'image</TITLE></HEAD><BODY bgcolor='"+bgcolor+"', style=\"margin: 0px; padding: 0px;");
	if (IsFullScreen &&  ((adapt_image && !allow_full_size) || !image_reduced))
		pop.window.document.write("scrollbar-base-color:"+bgcolor+"; scrollbar-highlight-color:"+bgcolor+"; scrollbar-shadow-color:"+bgcolor+"; scrollbar-face-color:"+bgcolor+"; scrollbar-arrow-color:"+bgcolor+";scrollbar-track-color: "+bgcolor+";scrollbar-3dlight-color: "+bgcolor+"; scrollbar-darkshadow-color: "+bgcolor+";"); 
	pop.window.document.write("\">");

	if (comments_mode == 2)
	{
		pop.window.document.write("<style type=\"text/css\">\n<!-");
		pop.window.document.write("- \n.popperlink {position:absolute;visibility:hidden}\n-");
		pop.window.document.write("-");
		pop.window.document.write(">\n</style><div class=popperlink id=topdecklink></div><script language=\"javascript\">domok = document.getElementById;if (domok){	skn = document.getElementById(\"topdecklink\").style; if(navigator.appName.substring(0,3) == \"Net\") document.captureEvents(Event.MOUSEMOVE); document.onmousemove = get_mouse; }");
		pop.window.document.write("function poplink(msg) { var content =\"<table border=0 cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td><table width=100% border=0 cellpadding=2 cellspacing=1><tr><td bgcolor=#FFFFE1><font color=#000000 size=2 face='verdana'><center>\"+msg+\"</center></td></tr></table></td></tr></table>\"; if (domok) { document.getElementById(\"topdecklink\").innerHTML = content; if (msg != \"\") { skn.visibility = \"visible\"; } else { skn.visibility = \"hidden\"; } } } ");
		pop.window.document.write("function killlink() { if (domok) { document.getElementById(\"topdecklink\").innerHTML = '';   skn.visibility = \"hidden\"; } } ");
		pop.window.document.write("function get_mouse(e) { var x = (navigator.appName.substring(0,3) == \"Net\") ? e.pageX : event.x+document.body.scrollLeft; var y = (navigator.appName.substring(0,3) == \"Net\") ? e.pageY : event.y+document.body.scrollTop; if (navigator.appName.substring(0,3) == \"Net\") { var tWi = window.innerWidth; var tHe = window.innerHeight; if((x > (tWi-70)) && (tWi-70>=0)) skn.left = tWi-70; else skn.left = x;  if((y > (tHe-50)) && ((tHe-50) > 0)) skn.top = tHe-50; else skn.top = y+20;} else { skn.left = x; skn.top = y+20; } } </script>");
	}
	pop.window.document.write("<TABLE border=0, cellspacing=0, cellpadding=0, width=\"100%\", height=\"100%\"><TR><TD valign=center><CENTER>");
	pop.window.document.write("<img src=\""+file+"\"");

	if (comments_mode == 1)
	{
		pop.window.document.write(" alt=\""+comments+"\"");
		pop.window.document.write(" title=\""+comments+"\"");
	}
	else if (comments_mode == 2)
		pop.window.document.write(" onMouseOver=\"poplink('"+comments+"');\" onMouseOut=\"killlink();\"");

	if (!image_reduced || !adapt_image)
		pop.window.document.write(" width="+image_width+" height="+image_height);
	else 
	{
		// find best dimension for image...
		var ratioX;
		var ratioY;

		if (allow_full_size) ratioX = (popup_width - 16) / image_width;
		else ratioX = popup_width / image_width;
		if (allow_full_size) ratioY = (popup_height - additionnal_margin_for_comment-5) / image_height;
		else ratioY = (popup_height - additionnal_margin_for_comment) / image_height;

		if (ratioY < ratioX) ratioX = ratioY;
		var temp_width = ratioX * image_width;
		var temp_height = ratioX * image_height;

		pop.window.document.write(" width="+temp_width+" height="+temp_height);
	
		if (allow_full_size)
		{
			pop.window.document.write(" name=\"embedded_image\" OnClick=\"if(IsReduced == 1) { embedded_image.width="+image_width+"; embedded_image.height="+image_height+";IsReduced=0;}else{embedded_image.width="+temp_width+"; embedded_image.height="+temp_height+";IsReduced=1;}\">");
			pop.window.document.write("<script language=\"javascript\">var IsReduced=1;</script");
		}
	}
	
	pop.window.document.write(">");
	if (comments_mode == 3) pop.window.document.write("</td></tr><tr height=10 valign=\"bottom\"><td align=\"center\"><font face=\"arial\" size=2 color='"+textcolor+"'>"+comments+"</font></a><br>");
	if (IsFullScreen == 1) 	pop.window.document.write("</td></tr><tr height=10 valign=\"bottom\"><td align=\"center\"><a href=\"javascript:window.close()\"><font face=\"arial\" size=2 color='"+textcolor+"'>Fermer</font></a><br>");
	pop.window.document.write("</CENTER></TD></TR></TABLE></BODY></HTML>");
}