//////////////////////////////////////Afficher-Masquer////////////////
var bon = (document.getElementById || document.all);

if (bon)
{
  document.write("<STYLE TYPE='text/css'>");
  document.write(".ssmenu {display: none;}");
  document.write("<\/STYLE>");

  var max = 7;
  var shown = new Array();
  for (var i=1;i<=max;i++)
  {
    shown[i+1] = false;
  }
}

function permut(i)
{
  if (!bon)
  {
    alert('Ce lien ne fonctionne pas avec votre navigateur.');
    return;
  }
  shown[i] = (shown[i]) ? false : true;
  current = (shown[i]) ? 'block' : 'none';
  if (document.getElementById)
  {
    document.getElementById('nmr'+i).style.display = current;
  }
  else if (document.all)
  {
    document.all['nmr'+i].style.display = current;
  }
}
//////////////////////////////////////Spéciale maquette Caen////////////////
window.onerror=null;
version4 = false
if(navigator.appVersion.charAt(0) == "4") version4 = true

function att(newURL, newName, newFeatures, orgName) {
  var rem = open(newURL, newName, newFeatures);
  if (rem.opener == null)
    rem.opener = window;
  rem.opener.name = orgName;
  return rem;
}
function attRem() {
  myRem = att("maqu.html","Remote","height=500,width=320,screenX=0,left=0,screenY=0,top=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0","orig");
}
window.onerror=null;
version4 = false
if(navigator.appVersion.charAt(0) == "4") version4 = true

function att(newURL, newName, newFeatures, orgName) {
  var rem = open(newURL, newName, newFeatures);
  if (rem.opener == null)
    rem.opener = window;
  rem.opener.name = orgName;
  return rem;
}
function attRem() {
  myRem = att("repertoire/maqu.html","Remote","height=500,width=350,screenX=0,left=0,screenY=0,top=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0","orig");
}
function virgile(){
paramstp="screenX=0,left=0,screenY=0,top=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0";
virg=window.open('vgi2.html','Virgile',paramstp);
virg.focus();
}
function louvre(fin){
tableau=window.open('','Louvre','screenX=0,left=0,screenY=0,top=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0');
tableau.document.write('<html><head><title>Louvre<\/title>');
tableau.document.write('<script type="text/javascript">var message="Fonction inactive ici"; function clickIE() {if (document.all) {alert(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {alert(message);return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} document.oncontextmenu=new Function("return false")<\/script>');
tableau.document.write('<\/head><body>');
tableau.document.write('<img src="http://www.culture.fr/Wave/image/joconde/'+fin+'" alt="Tableau"><\/body><\/html>');
tableau.document.close();
tableau.focus();
}

function louvre2(fin){
tableau=window.open('','Louvre','screenX=0,left=0,screenY=0,top=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0');
tableau.document.write('<html><head><title>Louvre<\/title>');
tableau.document.write('<script type="text/javascript">var message="Fonction inactive ici"; function clickIE() {if (document.all) {alert(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {alert(message);return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} document.oncontextmenu=new Function("return false")<\/script>');
tableau.document.write('<\/head><body>');
tableau.document.write('<img src="http://www.culture.fr/Wave/savimage/joconde/Lumieres/'+fin+'" alt="Tableau"><\/body><\/html>');
tableau.document.close();
tableau.focus();
}

var message="Fonction inactive ici";

function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

