function MW_openBrWindow(wintitle,featpiece,piece1,piece2,piece3,piece4,piece5,piece6,piece7,winName,features) { //Based off of MM_openBRWindow by Macromedia. Modified by Matthew Wiebe.//Ripped to shreds by Mike Cordeiro. Yes I know I could clean up this code A LOT. I'm new at this, so cut me some slack!// Defining the visibility of the layers. Defaulting to having all of them hidden  var supp1vis = "hidden"  var supp2vis = "hidden"  var supp3vis = "hidden"  var supp4vis = "hidden"  var supp5vis = "hidden"  var supp6vis = "hidden"  var supp7vis = "hidden"// Check to see which piece is the featured piece that should initally be displayed.// If things fart out, well, then the first image will be displayed as the detailed.if (featpiece == piece2) {	supp2vis = "visible";} else if (featpiece == piece3) {	supp3vis = "visible";} else if (featpiece == piece4) {	supp4vis = "visible";} else if (featpiece == piece5) {	supp5vis = "visible";} else if (featpiece == piece6) {	supp6vis = "visible";} else if (featpiece == piece7) {	supp7vis = "visible";} else {	supp1vis = "visible";}	// Begin writing the page  bigWindow=window.open("",winName,features);  bigWindow.document.writeln("<html>");   bigWindow.document.writeln("<head><title>" + wintitle + "</title>");  bigWindow.document.writeln('\<script language="JavaScript"\>');  bigWindow.document.writeln('\<!--');  bigWindow.document.writeln('function MM_findObj(n, d) { //v4.01');  bigWindow.document.writeln('  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {');  bigWindow.document.writeln('    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}');  bigWindow.document.writeln('  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];');  bigWindow.document.writeln('  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);');  bigWindow.document.writeln('  if(!x && d.getElementById) x=d.getElementById(n); return x;');  bigWindow.document.writeln('}');  bigWindow.document.writeln('');  bigWindow.document.writeln('function MM_showHideLayers() { //v3.0');  bigWindow.document.writeln('  var i,p,v,obj,args=MM_showHideLayers.arguments;');  bigWindow.document.writeln('  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];');  bigWindow.document.writeln("    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }");  bigWindow.document.writeln('    obj.visibility=v; }');  bigWindow.document.writeln('}');  bigWindow.document.writeln('//-->');  bigWindow.document.writeln('</script\>');  bigWindow.document.writeln('</head>');  bigWindow.document.writeln('<body bgcolor="#ffffff">');//Thumbs layers containing all the show-hide layer code  bigWindow.document.writeln('<div id="thumbs" style="position:absolute; left:0; top:0; width:500; height:45; z-index:1; visibility: visible">');  bigWindow.document.writeln('<div align="center">');  bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'show\',\'supp2\',\'\',\'hide\',\'supp3\',\'\',\'hide\',\'supp4\',\'\',\'hide\',\'supp5\',\'\',\'hide\',\'supp6\',\'\',\'hide\',\'supp7\',\'\',\'hide\')">');  bigWindow.document.writeln('<img src="../' + piece1 + '/' + piece1 + 'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="Graphique - Thumbnail" title="Visualiser une image détaillée - View a detailed image"></a>');    bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'hide\',\'supp2\',\'\',\'show\',\'supp3\',\'\',\'hide\',\'supp4\',\'\',\'hide\',\'supp5\',\'\',\'hide\',\'supp6\',\'\',\'hide\',\'supp7\',\'\',\'hide\')">');  bigWindow.document.writeln('<img src="../' + piece2 + '/' + piece2 + 'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="Graphique - Thumbnail" title="Visualiser une image détaillée - View a detailed image"></a>');    bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'hide\',\'supp2\',\'\',\'hide\',\'supp3\',\'\',\'show\',\'supp4\',\'\',\'hide\',\'supp5\',\'\',\'hide\',\'supp6\',\'\',\'hide\',\'supp7\',\'\',\'hide\')"><img src="../' + piece3 + '/' + piece3 + 'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="Graphique - Thumbnail" title="Visualiser une image détaillée - View a detailed image"></a>');    bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'hide\',\'supp2\',\'\',\'hide\',\'supp3\',\'\',\'hide\',\'supp4\',\'\',\'show\',\'supp5\',\'\',\'hide\',\'supp6\',\'\',\'hide\',\'supp7\',\'\',\'hide\')"><img src="../' + piece4 + '/' + piece4 + 'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="Graphique - Thumbnail" title="Visualiser une image détaillée - View a detailed image"></a>');    bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'hide\',\'supp2\',\'\',\'hide\',\'supp3\',\'\',\'hide\',\'supp4\',\'\',\'hide\',\'supp5\',\'\',\'show\',\'supp6\',\'\',\'hide\',\'supp7\',\'\',\'hide\')"><img src="../' + piece5 + '/' + piece5 +'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="Graphique - Thumbnail" title="Visualiser une image détaillée - View a detailed image"></a>');    bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'hide\',\'supp2\',\'\',\'hide\',\'supp3\',\'\',\'hide\',\'supp4\',\'\',\'hide\',\'supp5\',\'\',\'hide\',\'supp6\',\'\',\'show\',\'supp7\',\'\',\'hide\')"><img src="../' + piece6 + '/' + piece6 + 'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="Graphique - Thumbnail" title="Visualiser une image détaillée - View a detailed image"></a>');    bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'hide\',\'supp2\',\'\',\'hide\',\'supp3\',\'\',\'hide\',\'supp4\',\'\',\'hide\',\'supp5\',\'\',\'hide\',\'supp6\',\'\',\'hide\',\'supp7\',\'\',\'show\')"><img src="../' + piece7 + '/' + piece7 + 'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="Graphique - Thumbnail" title="Visualiser une image détaillée - View a detailed image"></a></div>');    bigWindow.document.writeln('</div>');  //First featured piece layer. The following layers contain the large images  bigWindow.document.writeln('<div id="supp1" style="position:absolute; left:0; top:45; width:500px; height:500; z-index:2; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000; visibility: ' + supp1vis + '">');  bigWindow.document.writeln('<div align="center"><img src="../' + piece1 + '/' + piece1 + 'Big.jpg" alt="Image détaillée - Detailed image"></div>');  bigWindow.document.writeln('</div>');//Second featured piece layer  bigWindow.document.writeln('<div id="supp2" style="position:absolute; left:0; top:45; width:500; height:500; z-index:3; visibility: ' + supp2vis + '; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000">');  bigWindow.document.writeln('<div align="center"><img src="../' + piece2 + '/' + piece2 + 'Big.jpg" alt="Image détaillée - Detailed image"></div>');  bigWindow.document.writeln('</div>');//Third featured piece layer  bigWindow.document.writeln('<div id="supp3" style="position:absolute; left:0; top:45; width:500; height:500; z-index:4; visibility: ' + supp3vis + '; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000"> ');  bigWindow.document.writeln('<div align="center"><img src="../' + piece3 + '/' + piece3 + 'Big.jpg" alt="Image détaillée - Detailed image"></div>');  bigWindow.document.writeln('</div>');  //Fourth featured piece layer  bigWindow.document.writeln('<div id="supp4" style="position:absolute; left:0; top:45; width:500; height:500; z-index:5; visibility: ' + supp4vis + '; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000">');  bigWindow.document.writeln('<div align="center"><img src="../' + piece4 + '/' + piece4 + 'Big.jpg" alt="Image détaillée - Detailed image"></div>');  bigWindow.document.writeln('</div>');  //Fifth featured piece layer  bigWindow.document.writeln('<div id="supp5" style="position:absolute; left:0; top:45; width:500; height:500; z-index:6; visibility: ' + supp5vis + '; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000">');  bigWindow.document.writeln('<div align="center"><img src="../' + piece5 + '/' + piece5 + 'Big.jpg" alt="Image détaillée - Detailed image"></div>');  bigWindow.document.writeln('</div>');  //Sixth featured piece layer  bigWindow.document.writeln('<div id="supp6" style="position:absolute; left:0; top:45; width:500; height:500; z-index:7; visibility: ' + supp6vis + '; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000">');  bigWindow.document.writeln('<div align="center"><img src="../' + piece6 + '/' + piece6 + 'Big.jpg" alt="Image détaillée - Detailed image"></div>');  bigWindow.document.writeln('</div>');  //Seventh featured piece layer  bigWindow.document.writeln('<div id="supp7" style="position:absolute; left:0; top:45; width:500; height:500; z-index:8; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000; visibility: ' + supp7vis + '">');  bigWindow.document.writeln('<div align="center"><img src="../' + piece7 + '/' + piece7 + 'Big.jpg" alt="Image détaillée - Detailed image"></div>');  bigWindow.document.writeln('</div>');  bigWindow.document.writeln('<div align="center"></div>');  bigWindow.document.writeln('</body></html>');  bigWindow.document.close();  bigWindow.focus();   }function MW_openBrWindowFr(wintitle,featpiece,piece1,piece2,piece3,piece4,piece5,piece6,piece7,winName,features) { //Based off of MM_openBRWindow by Macromedia. Modified by Matthew Wiebe.//Ripped to shreds by Mike Cordeiro. Yes I know I could clean up this code A LOT. I'm new at this, so cut me some slack!// Defining the visibility of the layers. Defaulting to having all of them hidden  var supp1vis = "hidden"  var supp2vis = "hidden"  var supp3vis = "hidden"  var supp4vis = "hidden"  var supp5vis = "hidden"  var supp6vis = "hidden"  var supp7vis = "hidden"// Check to see which piece is the featured piece that should initally be displayed.// If things fart out, well, then the first image will be displayed as the detailed.if (featpiece == piece2) {	supp2vis = "visible";} else if (featpiece == piece3) {	supp3vis = "visible";} else if (featpiece == piece4) {	supp4vis = "visible";} else if (featpiece == piece5) {	supp5vis = "visible";} else if (featpiece == piece6) {	supp6vis = "visible";} else if (featpiece == piece7) {	supp7vis = "visible";} else {	supp1vis = "visible";}	// Begin writing the page  bigWindow=window.open("",winName,features);  bigWindow.document.writeln("<html>");   bigWindow.document.writeln("<head><title>" + wintitle + "</title>");  bigWindow.document.writeln('\<script language="JavaScript"\>');  bigWindow.document.writeln('\<!--');  bigWindow.document.writeln('function MM_findObj(n, d) { //v4.01');  bigWindow.document.writeln('  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {');  bigWindow.document.writeln('    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}');  bigWindow.document.writeln('  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];');  bigWindow.document.writeln('  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);');  bigWindow.document.writeln('  if(!x && d.getElementById) x=d.getElementById(n); return x;');  bigWindow.document.writeln('}');  bigWindow.document.writeln('');  bigWindow.document.writeln('function MM_showHideLayers() { //v3.0');  bigWindow.document.writeln('  var i,p,v,obj,args=MM_showHideLayers.arguments;');  bigWindow.document.writeln('  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];');  bigWindow.document.writeln("    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }");  bigWindow.document.writeln('    obj.visibility=v; }');  bigWindow.document.writeln('}');  bigWindow.document.writeln('//-->');  bigWindow.document.writeln('</script\>');  bigWindow.document.writeln('</head>');  bigWindow.document.writeln('<body bgcolor="#ffffff">');//Thumbs layers containing all the show-hide layer code  bigWindow.document.writeln('<div id="thumbs" style="position:absolute; left:0; top:0; width:500; height:45; z-index:1; visibility: visible">');  bigWindow.document.writeln('<div align="center">');  bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'show\',\'supp2\',\'\',\'hide\',\'supp3\',\'\',\'hide\',\'supp4\',\'\',\'hide\',\'supp5\',\'\',\'hide\',\'supp6\',\'\',\'hide\',\'supp7\',\'\',\'hide\')">');  bigWindow.document.writeln('<img src="../' + piece1 + '/' + piece1 + 'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="' + piece1 + ' Graphique" title="Regardez une image detaillée de ' + piece1 + '"></a>');    bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'hide\',\'supp2\',\'\',\'show\',\'supp3\',\'\',\'hide\',\'supp4\',\'\',\'hide\',\'supp5\',\'\',\'hide\',\'supp6\',\'\',\'hide\',\'supp7\',\'\',\'hide\')">');  bigWindow.document.writeln('<img src="../' + piece2 + '/' + piece2 + 'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="' + piece2 + ' Graphique" title="Regardez une image detaillée de ' + piece2 + '"></a>');    bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'hide\',\'supp2\',\'\',\'hide\',\'supp3\',\'\',\'show\',\'supp4\',\'\',\'hide\',\'supp5\',\'\',\'hide\',\'supp6\',\'\',\'hide\',\'supp7\',\'\',\'hide\')"><img src="../' + piece3 + '/' + piece3 + 'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="' + piece3 + ' Graphique" title="Regardez une image detaillée de ' + piece3 + '"></a>');    bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'hide\',\'supp2\',\'\',\'hide\',\'supp3\',\'\',\'hide\',\'supp4\',\'\',\'show\',\'supp5\',\'\',\'hide\',\'supp6\',\'\',\'hide\',\'supp7\',\'\',\'hide\')"><img src="../' + piece4 + '/' + piece4 + 'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="' + piece4 + ' Graphique\" title="Regardez une image detaillée de ' + piece4 + '"></a>');    bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'hide\',\'supp2\',\'\',\'hide\',\'supp3\',\'\',\'hide\',\'supp4\',\'\',\'hide\',\'supp5\',\'\',\'show\',\'supp6\',\'\',\'hide\',\'supp7\',\'\',\'hide\')"><img src="../' + piece5 + '/' + piece5 +'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="' + piece5 + ' Graphique\" title="Regardez une image detaillée de ' + piece5 + '"></a>');    bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'hide\',\'supp2\',\'\',\'hide\',\'supp3\',\'\',\'hide\',\'supp4\',\'\',\'hide\',\'supp5\',\'\',\'hide\',\'supp6\',\'\',\'show\',\'supp7\',\'\',\'hide\')"><img src="../' + piece6 + '/' + piece6 + 'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="' + piece6 + ' Graphique\" title="Regardez une image detaillée de ' + piece6 + '"></a>');    bigWindow.document.writeln('<a href="javascript:;" onClick="MM_showHideLayers(\'supp1\',\'\',\'hide\',\'supp2\',\'\',\'hide\',\'supp3\',\'\',\'hide\',\'supp4\',\'\',\'hide\',\'supp5\',\'\',\'hide\',\'supp6\',\'\',\'hide\',\'supp7\',\'\',\'show\')"><img src="../' + piece7 + '/' + piece7 + 'Thumb.gif" width="40" height="40" hspace="4" border="0" alt="' + piece7 + ' Graphique\" title="Regardez une image detaillée de ' + piece7 + '"></a></div>');    bigWindow.document.writeln('</div>');  //First featured piece layer. The following layers contain the large images  bigWindow.document.writeln('<div id="supp1" style="position:absolute; left:0; top:45; width:500px; height:500; z-index:2; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000; visibility: ' + supp1vis + '">');  bigWindow.document.writeln('<div align="center"><img src="../' + piece1 + '/' + piece1 + 'Big.jpg" alt="Detailed image of ' + piece1 + '"></div>');  bigWindow.document.writeln('</div>');//Second featured piece layer  bigWindow.document.writeln('<div id="supp2" style="position:absolute; left:0; top:45; width:500; height:500; z-index:3; visibility: ' + supp2vis + '; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000">');  bigWindow.document.writeln('<div align="center"><img src="../' + piece2 + '/' + piece2 + 'Big.jpg" alt="Detailed image of ' + piece2 + '"></div>');  bigWindow.document.writeln('</div>');//Third featured piece layer  bigWindow.document.writeln('<div id="supp3" style="position:absolute; left:0; top:45; width:500; height:500; z-index:4; visibility: ' + supp3vis + '; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000"> ');  bigWindow.document.writeln('<div align="center"><img src="../' + piece3 + '/' + piece3 + 'Big.jpg" alt="Detailed image of ' + piece3 + '"></div>');  bigWindow.document.writeln('</div>');  //Fourth featured piece layer  bigWindow.document.writeln('<div id="supp4" style="position:absolute; left:0; top:45; width:500; height:500; z-index:5; visibility: ' + supp4vis + '; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000">');  bigWindow.document.writeln('<div align="center"><img src="../' + piece4 + '/' + piece4 + 'Big.jpg" alt="Detailed image of ' + piece4 + '"></div>');  bigWindow.document.writeln('</div>');  //Fifth featured piece layer  bigWindow.document.writeln('<div id="supp5" style="position:absolute; left:0; top:45; width:500; height:500; z-index:6; visibility: ' + supp5vis + '; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000">');  bigWindow.document.writeln('<div align="center"><img src="../' + piece5 + '/' + piece5 + 'Big.jpg" alt="Detailed image of ' + piece5 + '"></div>');  bigWindow.document.writeln('</div>');  //Sixth featured piece layer  bigWindow.document.writeln('<div id="supp6" style="position:absolute; left:0; top:45; width:500; height:500; z-index:7; visibility: ' + supp6vis + '; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000">');  bigWindow.document.writeln('<div align="center"><img src="../' + piece6 + '/' + piece6 + 'Big.jpg" alt="Detailed image of ' + piece6 + '"></div>');  bigWindow.document.writeln('</div>');  //Seventh featured piece layer  bigWindow.document.writeln('<div id="supp7" style="position:absolute; left:0; top:45; width:500; height:500; z-index:8; background-image:  url(../../../Images/transparent.gif); layer-background-image:  url(../../../Images/transparent.gif); border: 1px none #000000; visibility: ' + supp7vis + '">');  bigWindow.document.writeln('<div align="center"><img src="../' + piece7 + '/' + piece7 + 'Big.jpg" alt="Detailed image of ' + piece7 + '"></div>');  bigWindow.document.writeln('</div>');  bigWindow.document.writeln('<div align="center"></div>');  bigWindow.document.writeln('</body></html>');  bigWindow.document.close();  bigWindow.focus();   }function openQTWindow(moviename,windowtitle,posLeft,posTop) {  // Based off PictureWindowFever by dreamweaverfever.com	newWindow = window.open("","newWindow","width=350,height=300,scrollbars=no,left="+posLeft+",top="+posTop);	newWindow.document.open();	newWindow.document.write('<html><title>'+windowtitle+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 		newWindow.document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">');	newWindow.document.write('<tr><td valign="middle" align="center">');	newWindow.document.write('<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"  WIDTH="320" HEIGHT="256" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">');	newWindow.document.write('<PARAM name="SRC" VALUE="'+moviename+'.mov">');	newWindow.document.write('<PARAM name="CONTROLLER" VALUE="TRUE">');    newWindow.document.write('<PARAM name="AUTOPLAY" VALUE="TRUE">');    newWindow.document.write('<EMBED src="'+moviename+'.mov" WIDTH="320" HEIGHT="256" CONTROLLER="TRUE" AUTOPLAY="TRUE" TYPE="video/quicktime" PLUGINSPAGE="http://www.apple.com/quicktime/download/">');	newWindow.document.write('</EMBED>');	newWindow.document.write('</OBJECT> </td>');	newWindow.document.write('</tr>');	newWindow.document.write('</table>');	newWindow.document.write('</body></html>');	newWindow.document.close();	newWindow.focus();}
